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
1cd6f870
Commit
1cd6f870
authored
Jul 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6bcf399d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
classconflict-form.vue
src/components/course/classconflict-form.vue
+29
-12
No files found.
src/components/course/classconflict-form.vue
View file @
1cd6f870
...
...
@@ -94,6 +94,12 @@
</div>
</
template
>
<
template
v-slot:body-cell-TeacherName=
"props"
>
<q-td>
{{
getTeacherName
(
props
.
row
.
TeacherId
)
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-PlanTimeList=
"props"
>
<q-td>
<div
v-for=
"(item,index) in props.row.PlanTimeList"
:key=
"index"
>
...
...
@@ -148,8 +154,8 @@
<div
class=
"classConDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
{{props.row.ClassDate}}课程安排
</div>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"props.row.TeacherId"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"关联教师"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
v-model=
"props.row.TeacherId"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"关联教师"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-input
filled
v-model=
"props.row.ClassDate"
class=
"col-6 q-pb-lg"
mask=
"date"
label=
"上课时间"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -165,8 +171,8 @@
<div
style=
"display:flex;justify-content:flex-end;margin-bottom:20px;"
>
<q-btn
@
click=
"addStep()"
size=
"10px"
round
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
</div>
<div
class=
"row wrap"
style=
"position:relative;"
v-for=
"(subItem,subIndex) in props.row.PlanTimeList"
:key=
"subIndex"
>
<div
class=
"row wrap"
style=
"position:relative;"
v-for=
"(subItem,subIndex) in props.row.PlanTimeList"
:key=
"subIndex"
>
<div
class=
"col-4"
>
<q-input
filled
v-model=
"subItem.StartTime"
class=
"col-6 q-pr-lg q-pb-lg"
mask=
"time"
>
<
template
v-slot:append
>
...
...
@@ -207,10 +213,9 @@
</div>
</div>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"saveSteps"
/>
<q-btn
label=
"确认调整"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"isShowEdit=false"
/>
</q-card-actions>
</div>
</q-banner>
...
...
@@ -310,7 +315,7 @@
ClassId
:
53
,
ClassName
:
""
,
ClassNo
:
""
,
ChangeType
:
1
,
ChangeType
:
1
,
},
isShowEdit
:
false
,
//单行修改参数
...
...
@@ -347,6 +352,10 @@
}
},
created
()
{
this
.
GetTeacherList
();
this
.
getClassRoomList
();
},
computed
:
{
},
mounted
()
{
...
...
@@ -354,12 +363,20 @@
this
.
msg
.
ClassId
=
this
.
ClassId
;
this
.
selectObj
.
ClassId
=
this
.
ClassId
;
}
this
.
GetTeacherList
();
this
.
getClassRoomList
();
this
.
getList
();
},
methods
:
{
getTeacherName
(
teacherId
)
{
let
obj
=
{};
obj
=
this
.
TeacherList
.
find
(
item
=>
{
return
item
.
TId
===
teacherId
;
//筛选出匹配数据
});
var
tName
=
""
;
if
(
obj
)
{
tName
=
obj
.
TeacherName
;
}
return
tName
;
},
//关闭弹窗
closeCourseForm
()
{
this
.
$emit
(
'close'
);
...
...
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