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
4d58c90d
Commit
4d58c90d
authored
Feb 16, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
7c0ef37a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
561 additions
and
165 deletions
+561
-165
subscribeForm.vue
src/components/stuMan/subscribe/subscribeForm.vue
+501
-150
subscribe.vue
src/pages/studyAbroad/subscribe.vue
+60
-15
No files found.
src/components/stuMan/subscribe/subscribeForm.vue
View file @
4d58c90d
This diff is collapsed.
Click to expand it.
src/pages/studyAbroad/subscribe.vue
View file @
4d58c90d
...
...
@@ -160,7 +160,7 @@
item.RList.length
)
"
@
click
.
stop=
"showDetail(__item)"
@
click
.
stop=
"showDetail(__item
, item.ClassDate,_item.TeacherId
)"
>
<div
v-if=
"viewType == 'day' || item.RList.length == 1"
>
<div
class=
"itemRow"
>
{{
_item
.
TeacherName
}}
</div>
...
...
@@ -211,10 +211,10 @@
><span
v-if=
"__item.ClassType == 3"
>
约课
</span></span
>
</div>
<div
class=
"flex no-wrap"
>
<span
class=
"detailLabel"
>
进度:
</span
><span>
{{
__item
.
Ranks
}}
/
{{
__item
.
TotalPlanNum
}}
</span>
><span>
{{
__item
.
CompleteProgress
>
0
?
__item
.
CompleteProgress
:
0
}}
%
</span>
</div>
<div
class=
"flex no-wrap"
>
<span
class=
"detailLabel"
>
学员:
</span
...
...
@@ -226,21 +226,27 @@
<span
class=
"detailLabel"
>
预约状态:
<span></span
><span
v-if=
"__item.AppointState == 1"
>
待确认
</span
><span
v-if=
"__item.AppointState == 2"
>
已确认
</span
></span
>
><span
v-if=
"__item.AppointState == 2"
>
已确认
</span>
<q-btn
color=
"accent"
size=
"xs"
label=
"确认"
v-if=
"__item.AppointState == 1"
@
click=
"
confirmSub(item.ClassDate, _item.TeacherId, __item)
"
/>
</span>
</div>
<div
class=
"flex no-wrap"
>
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType == 3"
>
<span
class=
""
>
最小成班人数:
</span
><span>
{{
__item
.
ScrollMinNum
}}
</span>
</div>
<div
class=
"flex no-wrap
"
>
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType == 3
"
>
<span
class=
""
>
最大成班人数:
</span
><span>
{{
__item
.
ScrollMaxNum
}}
</span>
</div>
<div>
</div>
<div></div>
</div>
</el-popover>
</div>
...
...
@@ -251,15 +257,20 @@
</q-calendar>
<SubscribeForm
v-model=
"showForm"
:editType=
"editType"
:dateObj=
"dateObj"
:saveObj=
"saveObj"
:teacherList=
"TeacherList2"
@
success=
"saveObj={},getData"
/>
</div>
</template>
<
script
>
import
{
GetAppointmentPlanStat
}
from
"../../api/studyabroad/subscribe.js"
;
import
{
queryChapterTree
}
from
"../../api/course/index"
;
import
{
GetAppointmentPlanStat
,
SetSureAppointment
}
from
"../../api/studyabroad/subscribe.js"
;
import
{
date
}
from
"quasar"
;
import
{
getTeacherDropDownList
,
...
...
@@ -283,6 +294,7 @@ export default {
}
],
showForm
:
false
,
editType
:
1
,
selectedDate
:
""
,
msg
:
{
StartDate
:
""
,
...
...
@@ -346,7 +358,8 @@ export default {
legendList
:
[],
TeacherList2
:
[],
events
:
[],
dateObj
:
{}
dateObj
:
{},
saveObj
:
{}
};
},
components
:
{
...
...
@@ -493,14 +506,46 @@ export default {
onClickTime2
(
data
)
{
console
.
log
(
5
,
data
);
this
.
showForm
=
true
;
this
.
editType
=
1
;
this
.
saveObj
=
{};
this
.
dateObj
=
data
.
scope
.
timestamp
;
console
.
log
(
"5.1"
,
this
.
dateObj
);
},
onClickIntervalHeader2
(
data
)
{
console
.
log
(
6
,
data
);
},
showDetail
(
data
)
{
showDetail
(
data
,
date
,
tid
)
{
console
.
log
(
7
,
data
);
this
.
showForm
=
true
;
this
.
editType
=
2
;
this
.
dateObj
.
date
=
date
;
this
.
saveObj
=
data
;
this
.
saveObj
.
Tid
=
tid
},
confirmSub
(
date
,
id
,
item
)
{
if
(
item
.
EnrollNum
<
item
.
ScrollMinNum
)
{
this
.
$q
.
notify
({
message
:
`最小开班人数为
${
item
.
ScrollMinNum
}
`
,
position
:
"top"
,
type
:
"negative"
});
return
;
}
const
msg
=
{
Date
:
date
,
TeacherId
:
id
,
ShiftSort
:
item
.
ShiftSort
};
SetSureAppointment
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
message
:
"操作成功"
,
position
:
"top"
,
type
:
"positive"
});
this
.
getData
()
}
});
}
}
};
...
...
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