Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
b9a026b7
Commit
b9a026b7
authored
Jun 30, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
336da5d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
56 deletions
+59
-56
lesson-form.vue
src/components/course/lesson-form.vue
+59
-56
No files found.
src/components/course/lesson-form.vue
View file @
b9a026b7
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
margin-left
:
-7px
;
margin-left
:
-7px
;
align-items
:
center
;
align-items
:
center
;
transform
:
scale
(
0.9
);
transform
:
scale
(
0.9
);
height
:
24px
;
}
}
.lesson_Form
.calendarInner
{
.lesson_Form
.calendarInner
{
...
@@ -281,63 +282,65 @@
...
@@ -281,63 +282,65 @@
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
style=
"width:10%;"
>
<q-td
:props=
"props"
style=
"width:130px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<template
v-if=
"!props.row.IsEndDate"
>
@
click=
"getInfo(props.row)"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-popup-proxy>
@
click=
"getInfo(props.row)"
>
<q-banner
v-if=
"isShowEdit"
>
<q-popup-proxy>
<div
class=
"calenderDialog"
>
<q-banner
v-if=
"isShowEdit"
>
<div
style=
"margin:10px 0 15px 0;"
>
{{
props
.
row
.
ClassDateStr
}}
课程安排
</div>
<div
class=
"calenderDialog"
>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
<div
style=
"margin:10px 0 15px 0;"
>
{{
props
.
row
.
ClassDateStr
}}
课程安排
</div>
v-model=
"addMsg.TeacherId"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"关联教师"
:dense=
"false"
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
v-model=
"addMsg.TeacherId"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"关联教师"
:dense=
"false"
<q-input
filled
v-model=
"addMsg.ClassDate"
class=
"col-6 q-pb-lg"
mask=
"date"
label=
"上课时间"
>
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<template
v-slot:append
>
<q-input
filled
v-model=
"addMsg.ClassDate"
class=
"col-6 q-pb-lg"
mask=
"date"
label=
"上课时间"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<template
v-slot:append
>
<q-popup-proxy
ref=
"qDateProxy3"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-date
v-model=
"addMsg.ClassDate"
@
input=
' () => $refs.qDateProxy3[0].hide()'
/>
<q-popup-proxy
ref=
"qDateProxy3"
transition-show=
"scale"
transition-hide=
"scale"
>
</q-popup-proxy>
<q-date
v-model=
"addMsg.ClassDate"
@
input=
' () => $refs.qDateProxy3[0].hide()'
/>
</q-icon>
</q-popup-proxy>
</
template
>
</q-icon>
</q-input>
</
template
>
<q-toggle
size=
"md"
label=
"更多设置"
left-label
color=
"primary"
:false-value=
"0"
:true-value=
"1"
</q-input>
v-model=
"isSetMoreTwo"
/>
<q-toggle
size=
"md"
label=
"更多设置"
left-label
color=
"primary"
:false-value=
"0"
:true-value=
"1"
<
template
v-if=
"isSetMoreTwo==1"
>
v-model=
"isSetMoreTwo"
/>
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
<
template
v-if=
"isSetMoreTwo==1"
>
v-model=
"addMsg.ClassRoomId"
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
v-model=
"addMsg.ClassRoomId"
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
<div
style=
"display:flex;justify-content:flex-end;margin-bottom:20px;"
>
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-btn
@
click=
"addStep()"
size=
"10px"
round
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
<div
style=
"display:flex;justify-content:flex-end;margin-bottom:20px;"
>
</div>
<q-btn
@
click=
"addStep()"
size=
"10px"
round
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
<div
class=
"row wrap"
style=
"position:relative;"
v-for=
"(subItem,subIndex) in addMsg.PlanTimeList"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"subItem.StartTime"
ref=
"StartTime"
class=
"col-6 q-pr-lg q-pb-lg"
label=
""
:rules=
"[val => !!val || '请填写开始时间']"
/>
</div>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"subItem.EndTime"
ref=
"EndTime"
class=
"col-6 q-pr-lg q-pb-lg"
label=
""
:rules=
"[val => !!val || '请填写开始时间']"
/>
</div>
</div>
<div
class=
"delBtnStyle"
>
<div
class=
"row wrap"
style=
"position:relative;"
<i
@
click=
"delStep(subIndex)"
class=
"iconfont icon-guanbi"
></i>
v-for=
"(subItem,subIndex) in addMsg.PlanTimeList"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"subItem.StartTime"
ref=
"StartTime"
class=
"col-6 q-pr-lg q-pb-lg"
label=
""
:rules=
"[val => !!val || '请填写开始时间']"
/>
</div>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"subItem.EndTime"
ref=
"EndTime"
class=
"col-6 q-pr-lg q-pb-lg"
label=
""
:rules=
"[val => !!val || '请填写开始时间']"
/>
</div>
<div
class=
"delBtnStyle"
>
<i
@
click=
"delStep(subIndex)"
class=
"iconfont icon-guanbi"
></i>
</div>
</div>
</div>
</
div
>
</
template
>
</
template
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
style=
"font-weight:400 !important"
/>
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSteps"
/>
@
click=
"saveSteps"
/
>
</q-card-actions
>
</
q-card-actions
>
</
div
>
</
div
>
</
q-banner
>
</q-
banner
>
</q-
popup-proxy
>
</q-
popup-proxy
>
</q-
btn
>
</q-btn>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click
.
stop=
"delInfo(props.row)"
></q-btn>
@
click
.
stop=
"delInfo(props.row)"
></q-btn
>
</template
>
</q-td>
</q-td>
</template>
</template>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -354,7 +357,7 @@
...
@@ -354,7 +357,7 @@
<div
v-if=
"item.ClassDateStr==data.day"
>
<div
v-if=
"item.ClassDateStr==data.day"
>
<div
class=
"calendarTop"
>
<div
class=
"calendarTop"
>
<div>
{{
item
.
RoomName
}}
</div>
<div>
{{
item
.
RoomName
}}
</div>
<div>
<div
v-if=
"!item.IsEndDate"
>
<i
class=
"iconfont icon-edit Lessicon_Edit"
@
click
.
stop=
"getInfo(item)"
>
<i
class=
"iconfont icon-edit Lessicon_Edit"
@
click
.
stop=
"getInfo(item)"
>
<q-popup-proxy>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<q-banner
v-if=
"isShowEdit"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment