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
9f7ea967
Commit
9f7ea967
authored
Feb 17, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
93bc2ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
subscribeForm.vue
src/components/stuMan/subscribe/subscribeForm.vue
+20
-18
No files found.
src/components/stuMan/subscribe/subscribeForm.vue
View file @
9f7ea967
...
...
@@ -313,7 +313,7 @@
</q-field>
<div
class=
"row col"
v-show=
"(editType == 1 || saveObj.ClassType == 3)
&&
showAddStu()"
v-show=
"(editType == 1 || saveObj.ClassType == 3)
&&
showAddStu()"
>
<div
class=
"col-10"
>
<q-select
...
...
@@ -413,14 +413,19 @@ export default {
}
},
watch
:
{
saveObj
:
{
handler
(
val
)
{
this
.
stuInfo
=
""
;
if
(
this
.
editType
==
2
&&
val
.
ClassType
==
3
)
{
this
.
getStu
();
}
},
deep
:
true
show
(
val
){
if
(
val
)
{
this
.
stuInfo
=
""
;
this
.
teaClassMsg
.
CourseId
=
0
this
.
teaClassMsg
.
TeacherId
=
0
this
.
teaClassMsg
.
chapterList
=
[]
this
.
teacherTimeList
=
[]
this
.
courseCheckList
=
[]
if
(
this
.
editType
==
2
)
{
this
.
getStu
();
}
}
}
},
data
()
{
...
...
@@ -460,7 +465,7 @@ export default {
chapterList
:
[],
//章节列表,
checkChapter
:
{},
//选择的章节
returnString
:
[],
//章节默认值
checkStuType2
:
[]
,
//
checkStuType2
:
[]
//
};
},
mounted
()
{
...
...
@@ -541,9 +546,7 @@ export default {
}
});
},
addStu
()
{
},
addStu
()
{},
//获取章节
getChapterTree
()
{
if
(
this
.
teaClassMsg
.
CourseId
==
0
)
return
;
...
...
@@ -616,6 +619,7 @@ export default {
const
totalTime
=
this
.
courseCheckList
.
reduce
((
pre
,
cur
)
=>
{
return
(
pre
+=
cur
.
Minutes
);
},
0
);
console
.
log
(
622
,
totalTime
,
this
.
checkChapter
.
StudyMinutes
)
if
(
this
.
checkChapter
.
StudyMinutes
!==
totalTime
)
{
this
.
$q
.
notify
({
message
:
"课时不匹配,请重新上课时段"
,
...
...
@@ -673,9 +677,7 @@ export default {
ok
:
"是"
,
persistent
:
true
})
.
onOk
(()
=>
{
})
.
onOk
(()
=>
{})
.
onCancel
(()
=>
{
this
.
changeDig
(
false
);
});
...
...
@@ -733,8 +735,8 @@ export default {
new
Date
(
QCalendar
.
today
()).
getTime
()
)
{
return
false
;
}
else
{
return
true
}
else
{
return
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