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
bc65bbc3
Commit
bc65bbc3
authored
Feb 24, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
1b4df366
67c9c961
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
514 additions
and
738 deletions
+514
-738
mateitem.vue
src/components/course/mateitem.vue
+46
-97
commission.vue
src/components/work/commission.vue
+1
-2
subscribe.vue
src/pages/studyAbroad/subscribe.vue
+445
-639
mateitem.vue
src/pages/teacher/components/mateitem.vue
+22
-0
No files found.
src/components/course/mateitem.vue
View file @
bc65bbc3
<
style
></
style
>
<
template
>
<div>
<el-collapse
v-if=
"dayData && dayData.SubList && dayData.SubList.length > 0"
>
<el-collapse-item
v-for=
"(subItem, subIndex) in dayData.SubList"
:key=
"subIndex"
:name=
"subIndex"
>
<el-collapse
v-if=
"dayData && dayData.SubList && dayData.SubList.length > 0"
>
<el-collapse-item
v-for=
"(subItem, subIndex) in dayData.SubList"
:key=
"subIndex"
:name=
"subIndex"
>
<template
slot=
"title"
>
<div
class=
"plan_Tdiv"
>
<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
>
<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
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>
<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>
<template
v-if=
"
<template
v-if=
"
subItem.ClassType == 3 &&
subItem.AppointState == 1 &&
isShowTag(subItem.GuestList, subItem.ScrollMinNum)
"
>
"
>
<q-badge
color=
"red"
rounded
style=
"margin-left:5px;"
>
未
</q-badge>
...
...
@@ -63,10 +33,7 @@
{{ subItem.StartTime }}-{{ subItem.EndTime }}
</div>
</div>
<div
class=
"plan_Inner"
v-if=
"subItem.ClassName && subItem.ClassType !== 3"
>
<div
class=
"plan_Inner"
v-if=
"subItem.ClassName && subItem.ClassType !== 3"
>
<div
class=
"plan_LeftTitle"
>
班级:
</div>
<div
class=
"plan_RightInner"
>
{{ subItem.ClassName }}
</div>
</div>
...
...
@@ -74,17 +41,11 @@
<div
class=
"plan_LeftTitle"
>
课程名称:
</div>
<div
class=
"plan_RightInner"
>
{{ subItem.CourseName }}
</div>
</div>
<div
class=
"plan_Inner"
v-if=
"subItem.GuestList && subItem.GuestList.length > 0"
>
<div
class=
"plan_Inner"
v-if=
"subItem.GuestList && subItem.GuestList.length > 0"
>
<div
class=
"plan_LeftTitle"
>
学生名称:
</div>
<div
class=
"plan_RightInner"
>
<span
style=
"margin-right:10px;"
v-for=
"(tItem, tIndex) in subItem.GuestList"
:key=
"tIndex"
>
{{ tItem.GuestName }}
<span
style=
"margin-right:10px;"
v-for=
"(tItem, tIndex) in subItem.GuestList"
:key=
"tIndex"
>
{{ tItem.GuestName }}
<span
v-if=
"tItem.AppointType == 2"
>
(补)
</span>
<span
v-if=
"tItem.AppointType == 3"
>
(重)
</span>
</span>
...
...
@@ -99,11 +60,7 @@
</div>
</
template
>
<
template
v-else
>
<div
class=
"plan_Inner"
style=
"align-items:center;"
v-if=
"subItem.CompleteProgress >= 0"
>
<div
class=
"plan_Inner"
style=
"align-items:center;"
v-if=
"subItem.CompleteProgress >= 0"
>
<div
class=
"plan_LeftTitle"
>
课程进度:
</div>
<div
class=
"plan_RightInner"
>
<el-progress
:percentage=
"subItem.CompleteProgress"
></el-progress>
...
...
@@ -113,18 +70,10 @@
<
template
v-if=
"subItem.ClassType == 3"
>
<div
class=
"plan_Inner"
>
<div
class=
"plan_LeftTitle"
>
课程状态:
</div>
<div
class=
"plan_RightInner"
style=
"color: rgb(239, 83, 80);"
v-if=
"subItem.AppointState == 1"
>
<div
class=
"plan_RightInner"
style=
"color: rgb(239, 83, 80);"
v-if=
"subItem.AppointState == 1"
>
待确认
</div>
<div
class=
"plan_RightInner"
style=
"color: rgb(33, 186, 69);"
v-if=
"subItem.AppointState == 2"
>
<div
class=
"plan_RightInner"
style=
"color: rgb(33, 186, 69);"
v-if=
"subItem.AppointState == 2"
>
已确认
</div>
</div>
...
...
@@ -133,8 +82,7 @@
<div
class=
"plan_RightInner"
>
<span
style=
"color: rgb(33, 186, 69);"
>
{{
subItem
.
ScrollMinNum
}}
</span
>
人
}}
</span>
人
</div>
</div>
</
template
>
...
...
@@ -143,33 +91,34 @@
</div>
</template>
<
script
>
export
default
{
props
:
{
dayData
:
{
type
:
Object
,
default
:
null
}
},
components
:
{},
data
()
{
return
{};
},
created
()
{},
mounted
()
{},
methods
:
{
isShowTag
(
arr
,
min
)
{
let
n
=
0
;
arr
.
map
(
e
=>
{
if
(
e
.
AppointType
!==
3
)
{
n
+=
1
;
export
default
{
props
:
{
dayData
:
{
type
:
Object
,
default
:
null
}
},
components
:
{},
data
()
{
return
{};
},
created
()
{},
mounted
()
{},
methods
:
{
isShowTag
(
arr
,
min
)
{
let
n
=
0
;
arr
.
map
(
e
=>
{
if
(
e
.
AppointType
!==
3
)
{
n
+=
1
;
}
});
if
(
n
<
min
)
{
return
true
;
}
else
{
return
false
;
}
});
if
(
n
<
min
)
{
return
true
;
}
else
{
return
false
;
}
}
}
};
}
;
</
script
>
src/components/work/commission.vue
View file @
bc65bbc3
...
...
@@ -9,7 +9,6 @@
<!--
<div
class=
"tab"
:class=
"
{'active-tab':tab==2}" @click="checkTab(2)">年度
<div
class=
'dot'
v-show=
"tab==2"
></div>
</div>
-->
</div>
<div>
<el-date-picker
v-model=
"msg.Month"
value-format=
"yyyy-MM"
size=
"small"
:type=
"elDateType"
style=
"width:110px"
...
...
@@ -240,7 +239,7 @@
style
:
'color: #A4A5B7'
,
},
{
name
:
'Rate'
,
label
:
'比例'
,
label
:
'
发放
比例'
,
align
:
'center'
,
field
:
"Rate"
,
headerStyle
:
'color: #A4A5B7;width: 100px'
,
...
...
src/pages/studyAbroad/subscribe.vue
View file @
bc65bbc3
This diff is collapsed.
Click to expand it.
src/pages/teacher/components/mateitem.vue
View file @
bc65bbc3
...
...
@@ -14,6 +14,15 @@
<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>
<template
v-if=
"
subItem.ClassType == 3 &&
subItem.AppointState == 1 &&
isShowTag(subItem.GuestList, subItem.ScrollMinNum)
"
>
<q-badge
color=
"red"
rounded
style=
"margin-left:5px;"
>
未
</q-badge>
</
template
>
</div>
</template>
<div
@
click=
"goUrl(subItem)"
style=
"cursor:pointer;"
>
...
...
@@ -73,6 +82,19 @@
id
:
item
.
Id
});
}
},
isShowTag
(
arr
,
min
)
{
let
n
=
0
;
arr
.
map
(
e
=>
{
if
(
e
.
AppointType
!==
3
)
{
n
+=
1
;
}
});
if
(
n
<
min
)
{
return
true
;
}
else
{
return
false
;
}
}
}
}
...
...
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