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
5f535a23
Commit
5f535a23
authored
Jul 26, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e13ba75e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
32 deletions
+46
-32
stuClassManage.vue
src/pages/stuMan/stuClassManage.vue
+46
-32
No files found.
src/pages/stuMan/stuClassManage.vue
View file @
5f535a23
...
...
@@ -149,29 +149,6 @@
<span
:class=
"
{'classProgress':props.row.UsePlanNum
<props
.
row
.
TotalPlanNum
,'
blaStuStyle
'
:props
.
row
.
UsePlanNum=
=props.row.TotalPlanNum}"
>
{{
props
.
row
.
UsePlanNum
}}
/
{{
props
.
row
.
TotalPlanNum
}}
</span>
</q-td>
</
template
>
<!--班级状态-->
<
template
v-slot:body-cell-ClassStatusStr=
"props"
>
<q-td>
<span>
{{
props
.
row
.
ClassStatusStr
}}
</span>
<i
class=
"iconfont icon-edit"
@
click
.
stop=
"getClassItem(props.row)"
title=
"点击修改班级状态"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
设置班级状态
</div>
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"statusMsg.ClassStatus"
:options=
"classStatusList"
emit-value
map-options
label=
"班级状态"
/>
<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"
@
click=
"setClassStatus()"
/>
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</i>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
...
...
@@ -210,6 +187,32 @@
<q-item-label>
月度课耗
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popip
>
<q-item-section>
<q-item-label>
<span>
{{
props
.
row
.
ClassStatusStr
}}
</span>
<i
class=
"iconfont icon-edit"
@
click
.
stop=
"getClassItem(props.row)"
title=
"点击修改班级状态"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
设置班级状态
</div>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"statusMsg.ClassStatus"
:options=
"classStatusList"
emit-value
map-options
label=
"班级状态"
/>
<q-select
v-if=
"props.row.Teacher_Id==0"
filled
option-value=
"TId"
option-label=
"TeacherName"
style=
"margin-top:20px;"
v-model=
"statusMsg.Teacher_Id"
:options=
"TeacherList"
emit-value
map-options
label=
"带班老师"
/>
<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"
@
click=
"setClassStatus()"
/>
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</i>
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
...
...
@@ -235,7 +238,8 @@
//获取校区列表
import
{
getSchoolDropdown
,
deleteClass
deleteClass
,
getTeacherDropDownList
}
from
'../../api/school/index'
;
import
classForm
from
'../../components/course/class-form'
;
...
...
@@ -312,12 +316,6 @@
field
:
'CompleteProgress'
,
align
:
'left'
},
{
name
:
'ClassStatusStr'
,
label
:
'状态'
,
align
:
'left'
,
field
:
'ClassStatusStr'
},
{
name
:
'optioned'
,
label
:
'操作'
,
...
...
@@ -346,11 +344,13 @@
isShowEdit
:
false
,
statusMsg
:
{
ClassId
:
0
,
ClassStatus
:
0
ClassStatus
:
0
,
Teacher_Id
:
0
},
isShowClassForm
:
false
,
//是否显示新增修改弹窗
isShowClassInfo
:
false
,
//是否显示课程信息
IsShowOtherCourse
:
false
,
//是否显示其他课程
TeacherList
:[]
}
},
created
()
{
...
...
@@ -359,6 +359,7 @@
}
this
.
getClassStatus
();
this
.
getSchool
();
this
.
GetTeacherList
();
},
mounted
()
{
this
.
getClassList
();
...
...
@@ -547,7 +548,20 @@
this
.
OpenNewUrl
(
'/course/chapter'
,
{
CourseId
:
CouseId
});
}
},
//获取教师下拉
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
this
.
TeacherList
.
unshift
({
TId
:
0
,
TeacherName
:
"不限"
})
}
})
},
}
}
...
...
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