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
4f07580f
Commit
4f07580f
authored
Jul 26, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5691005b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
stuClassManage.vue
src/pages/stuMan/stuClassManage.vue
+17
-5
No files found.
src/pages/stuMan/stuClassManage.vue
View file @
4f07580f
...
...
@@ -187,7 +187,7 @@
<q-item-label>
月度课耗
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-pop
i
p
>
<q-item
clickable
v-close-pop
u
p
>
<q-item-section>
<q-item-label>
<span>
{{
props
.
row
.
ClassStatusStr
}}
</span>
...
...
@@ -198,16 +198,16 @@
<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;"
<q-select
v-if=
"props.row.Teacher_Id==0
&&statusMsg.ClassStatus==2
"
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()"
/>
@
click=
"setClassStatus(
props.row.Teacher_Id,statusMsg.ClassStatus
)"
/>
</q-card-actions>
</div>
</q-banner>
</q-banner>
</q-popup-proxy>
</i>
</q-item-label>
...
...
@@ -411,11 +411,22 @@
getClassItem
(
item
)
{
this
.
isShowEdit
=
true
;
var
Obj
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
this
.
statusMsg
.
Teacher_Id
=
0
;
this
.
statusMsg
.
ClassStatus
=
Obj
.
ClassStatus
;
this
.
statusMsg
.
ClassId
=
Obj
.
ClassId
;
},
//更新班级状态
setClassStatus
()
{
setClassStatus
(
Teacher_Id
,
ClassStatus
)
{
if
(
Teacher_Id
==
0
&&
ClassStatus
==
2
){
if
(
this
.
statusMsg
.
Teacher_Id
==
0
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择老师`
})
return
}
}
saveClassStatus
(
this
.
statusMsg
).
then
(
res
=>
{
this
.
isShowEdit
=
false
;
if
(
res
.
Code
==
1
)
{
...
...
@@ -477,6 +488,7 @@
queryClassStatusList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
classStatusList
=
res
.
Data
;
console
.
log
(
res
,
'数据'
);
}
}).
catch
(()
=>
{})
},
...
...
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