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
98e4b455
Commit
98e4b455
authored
Jul 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
266db9d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
classConflict.vue
src/pages/course/classConflict.vue
+27
-24
No files found.
src/pages/course/classConflict.vue
View file @
98e4b455
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
:selected
.
sync=
"selected"
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
:selected
.
sync=
"selected"
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"ClassPlanId"
hide-bottom
>
row-key=
"ClassPlanId"
hide-bottom
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
上课计划冲突调整
</div>
<div
class=
"col-2 q-table__title"
>
上课计划冲突调整
【
{{
msg
.
ClassName
}}
(
{{
msg
.
ClassNo
}}
)】
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"isShowClassForm=true"
label=
"全部重排"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"isShowClassForm=true"
label=
"全部重排"
/>
...
@@ -80,7 +80,9 @@
...
@@ -80,7 +80,9 @@
<tr
v-for=
"(subItem,subIndex) in props.row.PlanRepeatList"
:key=
"subIndex"
>
<tr
v-for=
"(subItem,subIndex) in props.row.PlanRepeatList"
:key=
"subIndex"
>
<td>
{{
subItem
.
ClassName
}}
</td>
<td>
{{
subItem
.
ClassName
}}
</td>
<td>
{{
subItem
.
ClassDate
}}
</td>
<td>
{{
subItem
.
ClassDate
}}
</td>
<td
:class=
"
{'resStyle':props.row.TeacherId==subItem.TeacherId}">
{{
subItem
.
TeacherName
}}
</td>
<td><span
:class=
"
{'resStyle':props.row.TeacherId==subItem.TeacherId}">
{{
subItem
.
TeacherName
}}
</span>
</td>
<td>
<td>
<span
<span
:class=
"
{'resStyle':props.row.ClassRoomId==subItem.ClassRoomId}">
{{
subItem
.
RoomName
}}
</span>
:class=
"
{'resStyle':props.row.ClassRoomId==subItem.ClassRoomId}">
{{
subItem
.
RoomName
}}
</span>
...
@@ -165,7 +167,8 @@
...
@@ -165,7 +167,8 @@
<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"
:loading=
"saveLoading"
@
click=
"saveSteps"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"saveSteps"
/>
</q-card-actions>
</q-card-actions>
</div>
</div>
</q-banner>
</q-banner>
...
@@ -177,7 +180,8 @@
...
@@ -177,7 +180,8 @@
</div>
</div>
<class-form
v-if=
"isShowClassForm"
:save-obj=
"msg"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
<class-form
v-if=
"isShowClassForm"
:save-obj=
"msg"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
</class-form>
</class-form>
<classcon-form
v-if=
"isShowConForm"
:save-obj=
"selectObj"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
></classcon-form>
<classcon-form
v-if=
"isShowConForm"
:save-obj=
"selectObj"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
</classcon-form>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -202,11 +206,6 @@
...
@@ -202,11 +206,6 @@
data
()
{
data
()
{
return
{
return
{
columns
:
[{
columns
:
[{
name
:
"ClassName"
,
label
:
"班级"
,
field
:
"ClassName"
,
align
:
"left"
},{
name
:
"ClassDate"
,
name
:
"ClassDate"
,
label
:
"日期"
,
label
:
"日期"
,
field
:
"ClassDate"
,
field
:
"ClassDate"
,
...
@@ -243,7 +242,9 @@
...
@@ -243,7 +242,9 @@
rowsPerPage
:
1000
,
rowsPerPage
:
1000
,
},
},
msg
:
{
msg
:
{
ClassId
:
53
ClassId
:
53
,
ClassName
:
""
,
ClassNo
:
""
,
},
},
isShowEdit
:
false
,
isShowEdit
:
false
,
//单行修改参数
//单行修改参数
...
@@ -267,14 +268,14 @@
...
@@ -267,14 +268,14 @@
TeacherList
:
[],
//老师下拉数据
TeacherList
:
[],
//老师下拉数据
ClassRoomList
:
[],
//教室下拉数据
ClassRoomList
:
[],
//教室下拉数据
saveLoading
:
false
,
saveLoading
:
false
,
isShowClassForm
:
false
,
isShowClassForm
:
false
,
isShowConForm
:
false
,
isShowConForm
:
false
,
//选中传入对象
//选中传入对象
selectObj
:{
selectObj
:
{
ClassId
:
53
,
ClassId
:
53
,
ChangeType
:
1
,
ChangeType
:
1
,
selected
:[]
selected
:
[]
}
}
};
};
},
},
...
@@ -294,7 +295,9 @@
...
@@ -294,7 +295,9 @@
GetRepeatClassPlan
(
this
.
msg
).
then
(
res
=>
{
GetRepeatClassPlan
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
this
.
dataList
=
res
.
Data
.
RepeatList
;
this
.
msg
.
ClassNo
=
res
.
Data
.
ClassNo
;
this
.
msg
.
ClassName
=
res
.
Data
.
ClassName
;
this
.
selected
=
[];
this
.
selected
=
[];
}
}
})
})
...
@@ -389,21 +392,21 @@
...
@@ -389,21 +392,21 @@
this
.
getList
();
this
.
getList
();
},
},
//点击修改教师 老师 时段
//点击修改教师 老师 时段
getCommonEdit
(
type
){
getCommonEdit
(
type
)
{
if
(
this
.
selected
.
length
==
0
)
{
if
(
this
.
selected
.
length
==
0
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
position
:
"top"
,
position
:
"top"
,
message
:
`请勾选需要修改的数据!`
message
:
`请勾选需要修改的数据!`
})
})
return
return
}
else
{
}
else
{
this
.
selectObj
.
selected
=
[];
this
.
selectObj
.
selected
=
[];
this
.
selectObj
.
ChangeType
=
type
;
this
.
selectObj
.
ChangeType
=
type
;
this
.
selected
.
forEach
(
x
=>
{
this
.
selected
.
forEach
(
x
=>
{
this
.
selectObj
.
selected
.
push
(
x
.
ClassPlanId
);
this
.
selectObj
.
selected
.
push
(
x
.
ClassPlanId
);
})
})
this
.
isShowConForm
=
true
;
this
.
isShowConForm
=
true
;
}
}
}
}
}
}
...
...
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