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
a78ee0f5
Commit
a78ee0f5
authored
Jul 07, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3095a020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
8 deletions
+108
-8
subscribeForm.vue
src/components/stuMan/subscribe/subscribeForm.vue
+107
-5
appointmentForm.vue
src/pages/stuMan/components/appointmentForm.vue
+1
-3
No files found.
src/components/stuMan/subscribe/subscribeForm.vue
View file @
a78ee0f5
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
<q-select
filled
stack-label
use-input
option-value=
"CourseId"
option-label=
"CourseName"
<q-select
filled
stack-label
use-input
option-value=
"CourseId"
option-label=
"CourseName"
v-model=
"saveMsg.CourseId"
ref=
"CourseId"
:options=
"CourseList"
label=
"课程"
:dense=
"false"
class=
"col-12"
v-model=
"saveMsg.CourseId"
ref=
"CourseId"
:options=
"CourseList"
label=
"课程"
:dense=
"false"
class=
"col-12"
emit-value
map-options
@
filter=
"filterCourse"
emit-value
map-options
@
filter=
"filterCourse"
@
input=
"getCanTeacherTimeList(), getChapterTree(), changeCourse()"
v-if=
"editType == 1"
>
@
input=
"getCanTeacherTimeList(), getChapterTree(), changeCourse()"
v-if=
"editType == 1"
:rules=
"[val => !!val || '请选择课程']"
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
<q-item-section
class=
"text-grey"
>
...
@@ -101,7 +102,8 @@
...
@@ -101,7 +102,8 @@
<div
class=
"row col-12"
>
<div
class=
"row col-12"
>
<div
class=
"col-9"
>
<div
class=
"col-9"
>
<q-select
filled
stack-label
use-input
option-value=
"StuId"
option-label=
"StuName"
v-model=
"stuInfo"
<q-select
filled
stack-label
use-input
option-value=
"StuId"
option-label=
"StuName"
v-model=
"stuInfo"
ref=
"CourseId"
:options=
"stuList"
label=
"学员列表"
:dense=
"false"
class=
"col-6"
@
filter=
"filterStu"
>
ref=
"StuId"
:options=
"stuList"
label=
"学员列表"
:dense=
"false"
class=
"col-6"
@
filter=
"filterStu"
:rules=
"[val => !!val || '请选择学员']"
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
<q-item-section
class=
"text-grey"
>
...
@@ -560,6 +562,32 @@
...
@@ -560,6 +562,32 @@
return
;
return
;
}
}
}
}
this
.
$refs
.
CourseId
.
validate
();
this
.
$refs
.
StuId
.
validate
();
if
(
!
this
.
saveMsg
.
CourseId
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择课程`
})
return
;
}
if
(
!
this
.
saveMsg
.
ChapterNo
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择章节`
})
return
;
}
if
(
!
this
.
saveMsg
.
TeacherId
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择老师`
})
return
;
}
if
(
this
.
courseCheckList
.
length
===
0
)
{
if
(
this
.
courseCheckList
.
length
===
0
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
message
:
"请选择上课时段"
,
message
:
"请选择上课时段"
,
...
@@ -568,6 +596,14 @@
...
@@ -568,6 +596,14 @@
});
});
return
;
return
;
}
}
if
(
!
this
.
stuInfo
)
{
this
.
$q
.
notify
({
message
:
"请选择学员"
,
position
:
"top"
,
type
:
"negative"
});
return
;
}
const
totalTime
=
this
.
courseCheckList
.
reduce
((
pre
,
cur
)
=>
{
const
totalTime
=
this
.
courseCheckList
.
reduce
((
pre
,
cur
)
=>
{
return
(
pre
+=
cur
.
Minutes
);
return
(
pre
+=
cur
.
Minutes
);
},
0
);
},
0
);
...
@@ -615,12 +651,78 @@
...
@@ -615,12 +651,78 @@
};
};
sObj
.
CourseGradeId
=
this
.
stuInfo
.
CourseRate
;
sObj
.
CourseGradeId
=
this
.
stuInfo
.
CourseRate
;
sObj
.
CourseGradeNo
=
""
;
sObj
.
CourseGradeNo
=
""
;
if
(
this
.
saveMsg
.
ChooseStuList
.
length
>
0
){
this
.
getCourseChapterList
(
sObj
);
let
ArrId
=
this
.
saveMsg
.
ChooseStuList
.
map
(
item
=>
{
return
item
.
GuestId
})
this
.
saveMsg
.
ChooseStuList
.
push
(
sObj
);
if
(
ArrId
.
indexOf
(
sObj
.
GuestId
)
==-
1
){
this
.
getCourseChapterList
(
sObj
);
this
.
saveMsg
.
ChooseStuList
.
push
(
sObj
);
}
else
{
this
.
$q
.
notify
({
message
:
"该学员已选择,试试别的学员吧"
,
position
:
"top"
,
type
:
"negative"
});
}
}
else
{
this
.
getCourseChapterList
(
sObj
);
this
.
saveMsg
.
ChooseStuList
.
push
(
sObj
);
}
},
},
//保存约课
//保存约课
SaveStuAppointment
()
{
SaveStuAppointment
()
{
this
.
$refs
.
CourseId
.
validate
();
this
.
$refs
.
StuId
.
validate
();
if
(
!
this
.
saveMsg
.
CourseId
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择课程`
})
return
;
}
if
(
!
this
.
saveMsg
.
ChapterNo
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择章节`
})
return
;
}
if
(
!
this
.
saveMsg
.
TeacherId
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择老师`
})
return
;
}
if
(
this
.
courseCheckList
.
length
===
0
)
{
this
.
$q
.
notify
({
message
:
"请选择上课时段"
,
position
:
"top"
,
type
:
"negative"
});
return
;
}
if
(
this
.
saveMsg
.
ChooseStuList
.
length
===
0
){
this
.
$q
.
notify
({
message
:
"请添加学员"
,
position
:
"top"
,
type
:
"negative"
});
return
;
}
let
ArrCourseGradeNo
=
this
.
saveMsg
.
ChooseStuList
.
map
(
item
=>
{
return
item
.
CourseGradeNo
})
if
(
ArrCourseGradeNo
.
indexOf
(
''
)
!=-
1
){
this
.
$q
.
notify
({
message
:
"请选择消课编号"
,
position
:
"top"
,
type
:
"negative"
});
return
;
}
this
.
addLoading
=
true
;
this
.
addLoading
=
true
;
setAdminScrollAppointment_V3
(
this
.
saveMsg
)
setAdminScrollAppointment_V3
(
this
.
saveMsg
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
src/pages/stuMan/components/appointmentForm.vue
View file @
a78ee0f5
...
@@ -12,9 +12,7 @@
...
@@ -12,9 +12,7 @@
<template
v-slot:append
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-popup-proxy
ref=
"qDateProxy1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-date
v-model=
"postMsg.Date"
@
input=
"() => $refs.qDateProxy1.hide()"
<q-date
v-model=
"postMsg.Date"
@
input=
"() => $refs.qDateProxy1.hide()"
/>
:rules=
"[val => !!val || '请选择预约日期']"
/>
</q-popup-proxy>
</q-popup-proxy>
</q-icon>
</q-icon>
</
template
>
</
template
>
...
...
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