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
59885584
Commit
59885584
authored
Feb 21, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
7423bf7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
38 deletions
+108
-38
mateitem.vue
src/components/course/mateitem.vue
+2
-2
shift-form.vue
src/components/course/shift-form.vue
+2
-2
detail.vue
src/components/stuMan/subscribe/detail.vue
+1
-1
subscribeForm.vue
src/components/stuMan/subscribe/subscribeForm.vue
+9
-2
subscribe.vue
src/pages/studyAbroad/subscribe.vue
+94
-31
No files found.
src/components/course/mateitem.vue
View file @
59885584
...
...
@@ -10,8 +10,8 @@
<span
v-if=
"subItem.TimeStr==='早上'"
class=
"commonTimeStr greenTime"
>
{{
subItem
.
TimeStr
}}
</span>
<span
v-if=
"subItem.TimeStr==='下午'"
class=
"commonTimeStr blueTime"
>
{{
subItem
.
TimeStr
}}
</span>
<span
v-if=
"subItem.TimeStr==='晚上'"
class=
"commonTimeStr orangeTime"
>
{{
subItem
.
TimeStr
}}
</span>
<
span
v-if=
"subItem.ClassType==2"
>
试听课
</span
>
<
span
v-if=
"subItem.ClassType==3"
>
预约课
</span
>
<
q-badge
rounded
color=
"orange"
label=
"试听课"
v-if=
"subItem.ClassType==2"
style=
"margin-left:5px;font-size:10px"
/
>
<
q-badge
rounded
color=
"cyan-7"
label=
"预约课"
v-if=
"subItem.ClassType==3"
style=
"margin-left:5px;font-size:10px"
/
>
<span
style=
"color:red;margin:0 5px;"
>
{{
subItem
.
TeacherName
}}
</span>
<span>
[
{{
subItem
.
RoomName
}}
]
</span>
</div>
...
...
src/components/course/shift-form.vue
View file @
59885584
...
...
@@ -80,14 +80,14 @@
<div
class=
"row wrap shifttc"
>
<el-time-select
class=
"q-mr-lg"
v-model=
"shiftOption.StartTime"
:picker-options=
"{
start: '00:00',
step: '00:
1
5',
step: '00:
0
5',
end: '23:55',
maxTime:shiftOption.EndTime
}"
placeholder=
"班次开始时间(格式00:00)"
>
</el-time-select>
<el-time-select
v-model=
"shiftOption.EndTime"
:picker-options=
"{
start: '06:00',
step: '00:
1
5',
step: '00:
0
5',
end: '23:55',
minTime:shiftOption.StartTime
}"
placeholder=
"班次结束时间(格式00:00)"
>
...
...
src/components/stuMan/subscribe/detail.vue
View file @
59885584
...
...
@@ -54,7 +54,7 @@
</q-field>
<q-field
filled
label=
"进度"
stack-label
class=
"col-6"
>
<
template
v-slot:control
>
<div>
{{
saveObj
.
Ranks
}}
/
{{
saveObj
.
TotalPlanNum
}}
<span
class=
"q-ml-sm"
>
(
{{
saveObj
.
CourseGradeName
}}
)
</span></div>
<div>
{{
saveObj
.
Ranks
}}
/
{{
saveObj
.
TotalPlanNum
}}
<span
class=
"q-ml-sm"
v-if=
"saveObj.ClassType == 3"
>
(
{{
saveObj
.
CourseGradeName
}}
)
</span></div>
</
template
>
</q-field>
<q-field
...
...
src/components/stuMan/subscribe/subscribeForm.vue
View file @
59885584
...
...
@@ -162,6 +162,7 @@
color=
"accent"
label=
"添加"
@
click=
"subscribeCourse"
:loading=
"addLoading"
class=
"q-ml-md"
:disable=
"!stuInfo.StuId || stuInfo.StuId <= 0"
/>
...
...
@@ -234,7 +235,7 @@ export default {
this
.
stuInfo
=
""
;
this
.
teaClassMsg
.
CourseId
=
0
this
.
teaClassMsg
.
TeacherId
=
0
this
.
teaClassMsg
.
chapterList
=
[]
this
.
chapterList
=
[]
this
.
teacherTimeList
=
[]
this
.
courseCheckList
=
[]
this
.
stuList
=
[]
...
...
@@ -279,6 +280,7 @@ export default {
stuInfo
:
""
,
checkStuList
:
[],
courseCheckList
:
[],
addLoading
:
false
,
chapterList
:
[],
//章节列表,
checkChapter
:
{},
//选择的章节
returnString
:
[],
//章节默认值
...
...
@@ -297,7 +299,8 @@ export default {
getCourseList
()
{
queryCourseDropdownList
({
IsQPrice
:
1
,
IsQuerySalePlat
:
1
IsQuerySalePlat
:
1
,
IsScrollClass
:
1
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
CourseList
=
res
.
Data
;
...
...
@@ -483,7 +486,9 @@ export default {
this
.
saveMsg
.
CourseGradeId
=
this
.
saveObj
.
CourseGradeId
;
this
.
saveMsg
.
ShiftSort
=
this
.
saveObj
.
ShiftSort
;
}
this
.
addLoading
=
true
SetAdminScrollAppointment
(
this
.
saveMsg
).
then
(
res
=>
{
this
.
addLoading
=
false
if
(
res
.
Code
==
1
)
{
this
.
getStu
();
this
.
stuInfo
=
""
;
...
...
@@ -510,6 +515,8 @@ export default {
this
.
$emit
(
"success"
);
}
}).
catch
(()
=>
{
this
.
addLoading
=
false
});
},
...
...
src/pages/studyAbroad/subscribe.vue
View file @
59885584
...
...
@@ -69,6 +69,7 @@
value-format=
"yyyy-MM-dd"
:clearable=
"false"
@
change=
"changeDate"
:picker-options=
"pickerOptions"
>
</el-date-picker>
</
template
>
...
...
@@ -177,8 +178,31 @@
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
>
<div
slot=
"reference"
style=
"height:80vh;position:relative"
>
<q-badge
rounded
color=
"red"
label=
"未成班"
style=
"position:absolute;top:0;right:0"
v-if=
"viewType=='day'&&isShowTag(__item.GuestList.length, __item.ScrollMinNum)"
/>
<q-icon
name=
"lock"
color=
"res"
style=
"position:absolute;top:0;right:0"
v-if=
"viewType=='week'&&isShowTag(__item.GuestList.length, __item.ScrollMinNum)"
/>
<q-badge
rounded
color=
"red"
label=
"未成班"
style=
"position:absolute;top:0;right:0"
v-if=
"
viewType == 'day' &&
isShowTag(
__item.GuestList.length,
__item.ScrollMinNum
)
"
/>
<q-icon
name=
"lock"
color=
"res"
style=
"position:absolute;top:0;right:0"
v-if=
"
viewType == 'week' &&
isShowTag(
__item.GuestList.length,
__item.ScrollMinNum
)
"
/>
<div
v-if=
"viewType == 'day' || item.RList.length == 1"
class=
"q-pa-xs"
...
...
@@ -198,10 +222,8 @@
>
</div>
<div
class=
"row flex no-wrap"
>
<span
class=
"detailLabel"
>
课程:
</span
><div
class=
"detailValue"
>
{{
__item
.
CourseName
}}
</div>
<span
class=
"detailLabel"
>
课程:
</span>
<div
class=
"detailValue"
>
{{
__item
.
CourseName
}}
</div>
</div>
<div
class=
"flex no-wrap"
>
<span
class=
"detailLabel"
>
班级:
</span
...
...
@@ -227,7 +249,9 @@
><span
>
{{
__item
.
Ranks
}}
/
{{
__item
.
TotalPlanNum
}}
</span
>
<span
class=
"q-ml-sm"
>
{{
__item
.
CourseGradeName
}}
</span>
<span
class=
"q-ml-sm"
>
{{
__item
.
CourseGradeName
}}
</span>
</div>
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType !== 2"
>
<span
class=
"detailLabel"
>
学员:
</span
...
...
@@ -238,8 +262,15 @@
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType == 3"
>
<span
class=
"detailLabel"
>
状态:
<span></span
><span
v-if=
"__item.AppointState == 1"
style=
"color:#ef5350"
>
待确认
</span
><span
v-if=
"__item.AppointState == 2"
style=
"color:#21ba45"
>
已确认
</span>
><span
v-if=
"__item.AppointState == 1"
style=
"color:#ef5350"
>
待确认
</span
><span
v-if=
"__item.AppointState == 2"
style=
"color:#21ba45"
>
已确认
</span
>
<q-btn
color=
"accent"
size=
"xs"
...
...
@@ -266,7 +297,15 @@
</div>
</div>
<div
style=
"position:relative"
>
<q-badge
rounded
color=
"red"
label=
"未成班"
style=
"position:absolute;top:0;right:0"
v-if=
"isShowTag(__item.GuestList.length, __item.ScrollMinNum)"
/>
<q-badge
rounded
color=
"red"
label=
"未成班"
style=
"position:absolute;top:0;right:0"
v-if=
"
isShowTag(__item.GuestList.length, __item.ScrollMinNum)
"
/>
<div
class=
"flex"
>
<span
class=
"detailLabel"
>
老师:
</span
><span>
{{
_item
.
TeacherName
}}
</span>
...
...
@@ -290,7 +329,7 @@
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType !== 2"
>
<span
class=
"detailLabel"
>
进度
</span
><span>
{{
__item
.
Ranks
}}
/
{{
__item
.
TotalPlanNum
}}
</span>
<span
class=
"q-ml-sm"
>
{{
__item
.
CourseGradeName
}}
</span>
<span
class=
"q-ml-sm"
>
{{
__item
.
CourseGradeName
}}
</span>
</div>
<div
class=
"flex no-wrap"
>
<span
class=
"detailLabel"
>
...
...
@@ -310,8 +349,15 @@
<div
class=
"flex no-wrap"
v-if=
"__item.ClassType == 3"
>
<span
class=
"detailLabel"
>
状态:
<span></span
><span
v-if=
"__item.AppointState == 1"
style=
"color:#ef5350"
>
待确认
</span
><span
v-if=
"__item.AppointState == 2"
style=
"color:#21ba45"
>
已确认
</span>
><span
v-if=
"__item.AppointState == 1"
style=
"color:#ef5350"
>
待确认
</span
><span
v-if=
"__item.AppointState == 2"
style=
"color:#21ba45"
>
已确认
</span
>
<q-btn
color=
"accent"
size=
"xs"
...
...
@@ -353,7 +399,8 @@
<
script
>
import
{
GetAppointmentPlanStat
,
SetSureAppointment
SetSureAppointment
,
GetAppointmentConfig
}
from
"../../api/studyabroad/subscribe.js"
;
import
{
date
}
from
"quasar"
;
import
{
...
...
@@ -366,6 +413,20 @@ import QCalendar from "@quasar/quasar-ui-qcalendar";
export
default
{
data
()
{
return
{
config
:
{
AdvanceDay
:
0
,
AppointDay
:
7
,
},
pickerOptions
:
{
disabledDate
:
time
=>
{
//time跟页面没有关系 相当于日期数组
let
timeRange
=
this
.
config
.
AppointDay
*
24
*
60
*
60
*
1000
;
// 7天
let
_maxTime
=
Date
.
now
()
-
8.64e7
+
timeRange
;
// 最大时间
return
(
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
||
time
.
getTime
()
>
_maxTime
);
//设置选择今天以及今天之后的日期
}
},
viewType
:
"week"
,
viewTypeList
:
[
{
...
...
@@ -449,16 +510,6 @@ export default {
components
:
{
SubscribeForm
},
computed
:
{
// convert the events into a map of lists keyed by date
eventsMap
()
{
const
map
=
{};
this
.
events
.
forEach
(
event
=>
(
map
[
event
.
date
]
=
map
[
event
.
date
]
||
[]).
push
(
event
)
);
return
map
;
}
},
mounted
()
{
this
.
selectedDate
=
QCalendar
.
today
();
this
.
getTeacherList
();
...
...
@@ -466,6 +517,7 @@ export default {
this
.
msg
.
StartDate
=
this
.
$refs
.
calendar
.
lastStart
;
this
.
msg
.
EndDate
=
this
.
$refs
.
calendar
.
lastEnd
;
this
.
getData
();
this
.
getAppointmentConfig
();
},
methods
:
{
badgeClasses
(
event
,
type
,
TeacherId
)
{
...
...
@@ -625,12 +677,17 @@ export default {
successHandle
()
{
this
.
getData
();
},
isShowTag
(
n
,
min
)
{
if
(
n
<
min
)
{
return
true
}
else
{
return
false
isShowTag
(
n
,
min
)
{
if
(
n
<
min
)
{
return
true
;
}
else
{
return
false
;
}
},
getAppointmentConfig
()
{
GetAppointmentConfig
({}).
then
(
res
=>
{
this
.
config
=
res
.
Data
});
}
}
};
...
...
@@ -658,6 +715,12 @@ export default {
border
:
none
;
background-color
:
transparent
;
}
.searchBox
.el-input
.el-input__inner
,
.el-select
.el-input
{
border-radius
:
0
;
height
:
25px
;
}
.courseItem
{
// overflow: auto;
// padding: 3px;
...
...
@@ -683,10 +746,10 @@ export default {
background
:
rgba
(
0
,
0
,
0
,
0
.1
);
}
.detailLabel
{
width
:
40
px
;
width
:
35
px
;
white-space
:
nowrap
;
}
.detailValue
{
.detailValue
{
width
:
100%
;
display
:
inline-block
;
}
...
...
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