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
59217df9
Commit
59217df9
authored
Jul 20, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
da489f74
77d6cb15
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
556 additions
and
55 deletions
+556
-55
temporaryClassbill-form.vue
src/components/sale/temporaryClassbill-form.vue
+2
-2
provisionalInviteForm.vue
src/components/teacher/provisionalInviteForm.vue
+15
-10
activeSummary.vue
src/pages/activity/activeSummary.vue
+2
-2
activeList.vue
src/pages/stuMan/activeList.vue
+2
-36
classPlan.vue
src/pages/stuMan/classPlan.vue
+523
-0
classRecord.vue
src/pages/stuMan/classRecord.vue
+0
-0
studentManager.vue
src/pages/teacher/studentManager.vue
+1
-4
routes.js
src/router/routes.js
+11
-1
No files found.
src/components/sale/temporaryClassbill-form.vue
View file @
59217df9
...
...
@@ -191,7 +191,7 @@
<div
class=
"backinfo_Item"
style=
"margin-bottom:20px"
>
<span
class=
"role_Line"
style=
"background-color:#02C499"
></span>
上课时间信息
</div>
<q-table
:pagination=
"msg"
no-data-label=
"暂无相关数据"
flat
<q-table
:pagination=
"msg"
no-data-label=
"暂无相关数据"
flat
style=
"border-bottom: 1px solid #DADBDC;"
class=
"sticky-column-table no-bottom-table"
:data=
"setingObj.DataObj.ClassPlanTimeList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-time=
"props"
>
...
...
@@ -206,7 +206,7 @@
<div
class=
"backinfo_Item"
style=
"margin-bottom:20px;margin-top:10px;"
>
<span
class=
"role_Line"
style=
"background-color:#8175FB"
></span>
目标学员信息
</div>
<q-table
:pagination=
"msg"
no-data-label=
"暂无相关数据"
flat
<q-table
:pagination=
"msg"
no-data-label=
"暂无相关数据"
flat
style=
"border-bottom: 1px solid #DADBDC;"
class=
"sticky-column-table no-bottom-table"
:data=
"setingObj.DataObj.OrderGuestList"
:columns=
"columns2"
row-key=
"name"
>
<
template
v-slot:body-cell-process=
"props"
>
...
...
src/components/teacher/provisionalInviteForm.vue
View file @
59217df9
...
...
@@ -74,11 +74,7 @@
</q-item>
</
template
>
</q-select>
<q-input
filled
v-model=
"msg.GuestName"
clearable
class=
"col-6"
label=
"学员姓名"
maxlength=
"200"
@
clear=
"getNotClassStudentList"
>
<
template
v-slot:append
>
<q-icon
name=
"search"
style=
"cursor:pointer;"
@
click=
"getNotClassStudentList"
/>
</
template
>
</q-input>
</div>
<div
class=
"row items-center q-ma-sm"
>
</div>
...
...
@@ -97,8 +93,17 @@
</q-table>
</div>
</q-expansion-item>
<!-- <div class="text-caption q-mb-lg q-px-md text-grey-6">学员列表</div> -->
<q-expansion-item
expand-separator
label=
"学员列表"
:value=
"true"
>
<div
class=
"row q-mb-md q-col-gutter-lg"
>
<q-input
filled
v-model=
"msg.GuestName"
clearable
class=
"col-6"
label=
"学员姓名"
maxlength=
"200"
@
clear=
"getNotClassStudentList"
>
<
template
v-slot:append
>
<q-icon
name=
"search"
style=
"cursor:pointer;"
@
click=
"getNotClassStudentList"
/>
</
template
>
</q-input>
</div>
<div
class=
"row items-center"
>
<div
class=
"col"
>
<q-table
no-data-label=
"暂无相关数据"
flat
:pagination=
"pages"
...
...
@@ -199,13 +204,12 @@
},
stuList
:
[],
selectedStu
:
[],
stuColumns
:
[
{
stuColumns
:
[{
name
:
'Id'
,
label
:
'编号'
,
field
:
'Id'
,
align
:
'left'
},{
},
{
name
:
'GuestName'
,
label
:
'姓名'
,
field
:
'GuestName'
,
...
...
@@ -389,8 +393,9 @@
message
:
'操作成功!'
,
position
:
'top'
})
this
.
persistent
=
false
this
.
persistent
=
false
this
.
$emit
(
'success'
)
this
.
$emit
(
'close'
)
}
else
{
this
.
$q
.
notify
({
type
:
'negative'
,
...
...
@@ -407,6 +412,6 @@
</
script
>
<
style
>
<
style
>
</
style
>
src/pages/activity/activeSummary.vue
View file @
59217df9
...
...
@@ -200,8 +200,8 @@ import Ueditor from "../../components/editor/UeEditor";
getDetail
(){
this
.
apipostDS
(
"/api/Education/GetActivity"
,{
Id
:
this
.
msg
.
Id
},(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
){
this
.
msg
.
Summary
=
res
.
data
.
data
.
Summary
this
.
setVal
(
res
.
data
.
data
.
Summary
);
this
.
msg
.
Summary
=
res
.
data
.
data
.
Summary
||
''
this
.
setVal
(
this
.
msg
.
Summary
);
}
})
},
...
...
src/pages/stuMan/activeList.vue
View file @
59217df9
...
...
@@ -177,11 +177,6 @@
row-key=
"name"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
活动列表
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增"
@
click=
"goUrl('/activity/activeDetail',null)"
/>
</div>
</
template
>
<
template
v-slot:body-cell-activeName=
"props"
>
<q-td
:props=
"props"
>
...
...
@@ -191,7 +186,6 @@
</div>
{{
props
.
row
.
ActivityName
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-ActivityTime=
"props"
>
...
...
@@ -208,9 +202,6 @@
<
template
v-slot:body-cell-AgeAndPeopleNum=
"props"
>
<q-td
:props=
"props"
>
<div>
<!--
<div>
{{
props
.
row
.
AgeLimit
==
1
?
'不区分年龄'
:
'区分年龄'
}}
</div>
<div
v-if=
"props.row.AgeLimit==0"
>
范围:
{{
props
.
row
.
StartAge
}}
岁~
{{
props
.
row
.
EndAge
}}
岁
</div>
-->
<!--
<div>
报名人数
</div>
-->
<div
v-if=
"props.row.Distinguish ==1"
>
总人数:
{{
props
.
row
.
ManNum
}}
人
</div>
<div
v-if=
"props.row.Distinguish ==0"
>
男性:
{{
props
.
row
.
ManNum
}}
人
<span
style=
"margin-left:10px"
>
女性:
{{
props
.
row
.
WoManNum
}}
人
</span>
</div>
...
...
@@ -225,7 +216,6 @@
<div>
<div
v-if=
"props.row.IsFree==1"
style=
"color:green;"
>
免费
</div>
<div
v-if=
"props.row.IsFree==2"
style=
"color:red;"
>
现金价格:
{{
props
.
row
.
Price
}}
元
</div>
<!--
<div
v-if=
"props.row.IsFree==2"
style=
"color:red;"
>
现金点数:
{{
props
.
row
.
PointNum
}}
点
</div>
-->
<div>
报名取消确认:
{{
props
.
row
.
IsCancelConfirm
==
1
?
'是'
:
'否'
}}
</div>
<div>
内部限制:
{{
props
.
row
.
IsCancelConfirm
==
1
?
'是'
:
'否'
}}
</div>
</div>
...
...
@@ -238,37 +228,13 @@
</div>
</q-td>
</
template
>
<!-- <template v-slot:body-cell-JoinNum="props">
<q-td :props="props">
<div>
{{props.row.JoinNum}} 人
</div>
</q-td>
</template> -->
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"复制"
@
click=
"goUrl('/activity/copyActive',props.row)"
/>
<!--
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"删除"
@
click=
"delActive(props.row)"
/>
-->
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"报名列表"
@
click=
"goUrl1('/activity/activeSignUpList',props.row)"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"delActive(props.row)"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goUrl1('/activity/activeSignUpList',props.row)"
>
<q-item-section>
<q-item-label>
报名列表
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goUrl('/activity/payment',props.row)"
>
<q-item-section>
<q-item-label>
活动收支
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goUrl('/activity/activeDetail',props.row)"
>
<q-item-section>
<q-item-label>
活动详情
</q-item-label>
...
...
src/pages/stuMan/classPlan.vue
0 → 100644
View file @
59217df9
<
style
>
.OtherCourseNum
{
display
:
inline-block
;
width
:
25px
;
height
:
25px
;
text-align
:
center
;
line-height
:
25px
;
border
:
1px
solid
#2961FE
;
border-radius
:
50%
;
cursor
:
pointer
;
color
:
#2961FE
;
}
.OCourseTable
{
width
:
400px
;
text-align
:
center
;
}
.OCourseTable
tr
td
{
height
:
40px
;
}
.OCourseTable
tr
th
{
height
:
40px
;
background-color
:
rgb
(
238
,
238
,
239
);
}
</
style
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"getClassList"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.ClassName"
label=
"班级名称"
@
clear=
"getClassList"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"getClassList"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.ClassStatus"
:options=
"classStatusList"
emit-value
map-options
label=
"班级状态"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"getClassList"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.CourseName"
label=
"学习课程"
@
clear=
"getClassList"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"getClassList"
standout=
"bg-primary text-white"
option-value=
"SId"
option-label=
"SName"
v-model=
"msg.School_Id"
:options=
"schoolList"
emit-value
map-options
label=
"关联校区"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
班级信息
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-ClassName=
"props"
>
<q-td
auto-width
:props=
"props"
>
<div
style=
"display: flex;align-items: center;"
>
<q-avatar
size=
"md"
style=
"background:#d4dfff;color:#2961FE;font-weight:bold;"
v-if=
"props.row.ClassName"
>
{{
GetFirst
(
props
.
row
.
ClassName
)
}}
</q-avatar>
<div
>
<span
style=
"color:#2961FE;margin-left:10px;cursor:pointer;"
@
click=
"getClassInfo(props.row)"
title=
"点击查看详情"
>
{{
props
.
row
.
ClassName
}}
</span>
<div
style=
"margin-left: 10px;"
>
{{
props
.
row
.
ClassNo
}}
</div>
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-OtherCourseName=
"props"
>
<q-td
auto-width
:props=
"props"
>
<template
v-if=
"props.row.OtherCourseList"
>
<template
v-if=
"props.row.OtherCourseList.length==1"
>
{{
props
.
row
.
OtherCourseList
[
0
].
CourseName
}}
【
{{
props
.
row
.
OtherCourseList
[
0
].
ClassHours
}}
课时】
</
template
>
<
template
v-if=
"props.row.OtherCourseList.length>1"
>
{{
props
.
row
.
OtherCourseList
[
0
].
CourseName
}}
:
<span
class=
"OtherCourseNum"
>
{{
props
.
row
.
OtherCourseList
.
length
}}
<q-popup-proxy>
<q-banner>
<table
class=
"OCourseTable"
style=
"border-collapse:collapse;"
>
<tr>
<th>
课程名称
</th>
<th>
课时数
</th>
</tr>
<tr
v-for=
"(sItem,sIndex) in props.row.OtherCourseList"
style=
"border-bottom:1px dashed #d1d1d1;"
>
<td>
{{
sItem
.
CourseName
}}
</td>
<td>
{{
sItem
.
ClassHours
}}
</td>
</tr>
</table>
</q-banner>
</q-popup-proxy>
</span>
</
template
>
<
template
v-if=
"props.row.OtherCourseList.length==0"
>
无
</
template
>
</template>
</q-td>
</template>
<
template
v-slot:body-cell-TeacherName=
"props"
>
<q-td
auto-width
:props=
"props"
>
<span
style=
"color:#3FC4FF;"
>
{{
props
.
row
.
TeacherName
}}
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-CourseId=
"props"
>
<q-td
auto-width
:props=
"props"
>
<span
style=
"color:blue;cursor:pointer;"
@
click=
"goChapter(props.row.CouseId)"
>
详情
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-CompleteProgress=
"props"
>
<q-td
auto-width
:props=
"props"
>
{{
props
.
row
.
UsePlanNum
}}
/
{{
props
.
row
.
TotalPlanNum
}}
</q-td>
</
template
>
<!--班级状态-->
<
template
v-slot:body-cell-ClassStatusStr=
"props"
>
<q-td>
<span>
{{
props
.
row
.
ClassStatusStr
}}
</span>
<i
class=
"iconfont icon-edit"
@
click
.
stop=
"getClassItem(props.row)"
title=
"点击修改班级状态"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
设置班级状态
</div>
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"statusMsg.ClassStatus"
:options=
"classStatusList"
emit-value
map-options
label=
"班级状态"
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"setClassStatus()"
/>
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</i>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"gotoOrder(props.row)"
>
<q-item-section>
<q-item-label>
订单中心
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goPayment(props.row)"
>
<q-item-section>
<q-item-label>
收支明细
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showOtherCourse(props.row)"
style=
"display:none;"
>
<q-item-section>
<q-item-label>
关联其他课程
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"gomonthLessonCost(props.row)"
>
<q-item-section>
<q-item-label>
月度课耗
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
</
template
>
</q-table>
<class-form
v-if=
"isShowClassForm"
:save-obj=
"classObjOption"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
</class-form>
<classinfo-form
v-if=
"isShowClassInfo"
:seting-obj=
"classObjOption"
:isShowEditBtn=
"1"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
</classinfo-form>
<othercourseForm
v-if=
"IsShowOtherCourse"
:seting-obj=
"classObjOption"
@
close=
"closeClassSaveForm"
@
success=
"refreshPage"
>
</othercourseForm>
</div>
</div>
</template>
<
script
>
import
{
queryClassStatusList
,
saveClassStatus
,
//修改班级状态
}
from
'../../api/course/class'
;
import
{
GetClassPageList
}
from
'../../api/teacher/index'
;
//获取校区列表
import
{
getSchoolDropdown
,
deleteClass
}
from
'../../api/school/index'
;
import
classForm
from
'../../components/course/class-form'
;
import
classinfoForm
from
'../../components/course/classinfo-form'
;
import
othercourseForm
from
'../../components/course/othercourse-form'
;
export
default
{
meta
:
{
title
:
"班级管理"
},
components
:
{
classForm
,
classinfoForm
,
othercourseForm
},
data
()
{
return
{
columns
:
[{
name
:
'ClassName'
,
label
:
'班级名称'
,
field
:
'ClassName'
,
align
:
'left'
},
{
name
:
'SchoolName'
,
label
:
'校区'
,
field
:
'SchoolName'
,
align
:
'left'
,
},
{
name
:
'CourseName'
,
label
:
'课程'
,
field
:
'CourseName'
,
align
:
'left'
},
{
name
:
'OtherCourseName'
,
label
:
'关联其他课程'
,
field
:
'OtherCourseName'
,
align
:
'left'
},
{
name
:
'CourseId'
,
label
:
'课程大纲'
,
field
:
'CourseId'
,
align
:
'left'
},
{
name
:
'TeacherName'
,
label
:
'带班老师'
,
field
:
'TeacherName'
,
align
:
'left'
},
{
name
:
'OpenTime'
,
label
:
'开班时间'
,
field
:
'OpenTime'
,
align
:
'left'
},
{
name
:
'FinishTimeStr'
,
label
:
'预计结束时间'
,
field
:
'FinishTimeStr'
,
align
:
'left'
},
{
name
:
'CompleteProgress'
,
label
:
'课程进度'
,
field
:
'CompleteProgress'
,
align
:
'left'
},
{
name
:
'ClassStatusStr'
,
label
:
'状态'
,
align
:
'left'
,
field
:
'ClassStatusStr'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'CourseId'
}
],
data
:
[],
loading
:
false
,
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
ClassName
:
''
,
//班级名称
ClassStatus
:
0
,
//班级状态
TeacherName
:
''
,
//带班老师
Teacher_Id
:
0
,
CourseName
:
''
,
//学习课程
School_Id
:
-
1
,
//关联校区
},
//班级状态
classStatusList
:
[],
//关联校区列表
schoolList
:
[],
pageCount
:
0
,
classObjOption
:
null
,
isShowEdit
:
false
,
statusMsg
:
{
ClassId
:
0
,
ClassStatus
:
0
},
isShowClassForm
:
false
,
//是否显示新增修改弹窗
isShowClassInfo
:
false
,
//是否显示课程信息
IsShowOtherCourse
:
false
,
//是否显示其他课程
}
},
created
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ClassName
)
{
this
.
msg
.
ClassName
=
decodeURI
(
this
.
$route
.
query
.
ClassName
)
}
let
userInfo
=
this
.
getLocalStorage
();
this
.
msg
.
Teacher_Id
=
userInfo
.
AccountId
;
this
.
getClassStatus
();
this
.
getSchool
();
},
mounted
()
{
this
.
getClassList
();
},
methods
:
{
//删除班级
removeClass
(
item
,
status
)
{
let
delMsg
=
{
ClassId
:
item
.
ClassId
,
Status
:
status
};
var
message
=
"是否要删除该班级?"
;
if
(
status
==
0
)
{
message
=
"是否要恢复该班级?"
;
}
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
message
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deleteClass
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'删除成功!'
,
position
:
'top'
})
this
.
getClassList
();
}
else
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
}
})
}).
onCancel
(()
=>
{
});
},
//当前点击的班级
getClassItem
(
item
)
{
this
.
isShowEdit
=
true
;
var
Obj
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
this
.
statusMsg
.
ClassStatus
=
Obj
.
ClassStatus
;
this
.
statusMsg
.
ClassId
=
Obj
.
ClassId
;
},
//更新班级状态
setClassStatus
()
{
saveClassStatus
(
this
.
statusMsg
).
then
(
res
=>
{
this
.
isShowEdit
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'设置成功!'
,
position
:
'top'
})
this
.
getClassList
();
}
else
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
}
});
},
gotoOrder
(
item
)
{
var
tempStr
=
'/course/classorder?ClassId='
+
item
.
ClassId
+
'&isFromMyclass=1'
;
this
.
$router
.
push
({
path
:
tempStr
});
},
//跳转到收支明细
goPayment
(
item
)
{
this
.
$router
.
push
({
path
:
'/course/paymentDetail'
,
query
:
{
ClassId
:
item
.
ClassId
,
School_Id
:
item
.
School_Id
,
ClassName
:
encodeURI
(
item
.
ClassName
)
,
isFromMyClass
:
1
,
blank
:
'y'
}
})
},
//获取校区列表
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
if
(
!
tempArray
)
{
tempArray
=
[];
}
tempArray
.
unshift
({
SId
:
-
1
,
SName
:
"不限"
})
this
.
schoolList
=
tempArray
;
}
})
},
//获取班级状态列表
getClassStatus
()
{
queryClassStatusList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
classStatusList
=
res
.
Data
;
}
}).
catch
(()
=>
{})
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getClassList
()
},
//获取菜单分页列表
getClassList
()
{
this
.
loading
=
true
;
GetClassPageList
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
//刷新页面
refreshPage
()
{
this
.
isShowClassForm
=
false
;
this
.
getClassList
();
},
//新增修改菜单
EditCourse
(
obj
)
{
if
(
obj
)
{
this
.
classObjOption
=
obj
}
else
{
this
.
classObjOption
=
null
}
this
.
isShowClassForm
=
true
},
//关闭弹窗
closeClassSaveForm
()
{
//关闭新增修改弹窗
this
.
isShowClassForm
=
false
;
//关闭班级信息弹窗
this
.
isShowClassInfo
=
false
;
//关闭关联其他课程弹窗
this
.
IsShowOtherCourse
=
false
;
},
GetFirst
(
val
)
{
if
(
val
)
{
return
val
.
substr
(
0
,
1
);
}
},
//获取进度条
getProgress
(
num
,
total
)
{
if
(
num
==
0
||
total
==
0
)
{
return
0
;
}
return
(
Math
.
round
(
num
/
total
*
100
)
/
100.00
);
},
//显示关联课程
showOtherCourse
(
item
)
{
this
.
IsShowOtherCourse
=
true
;
this
.
classObjOption
=
item
;
},
//点击班级名称
getClassInfo
(
obj
)
{
this
.
classObjOption
=
null
;
this
.
isShowClassInfo
=
false
;
this
.
classObjOption
=
obj
;
this
.
isShowClassInfo
=
true
;
},
gomonthLessonCost
(
row
){
let
ClassName
=
encodeURI
(
row
.
ClassName
)
this
.
OpenNewUrl
(
'teachMonthLessonCost'
,
{
ClassId
:
row
.
ClassId
,
ClassName
:
ClassName
,
});
},
//跳转到课程大纲
goChapter
(
CouseId
){
this
.
OpenNewUrl
(
'/course/chapter'
,
{
CourseId
:
CouseId
});
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/pages/stuMan/classRecord.vue
0 → 100644
View file @
59217df9
src/pages/teacher/studentManager.vue
View file @
59217df9
...
...
@@ -111,7 +111,7 @@
</
template
>
</q-table>
<StopLesson-form
v-if=
"isShowStopLesson"
:setObj=
"stuObj"
@
success=
"reloadPage"
@
close=
"closeMenuSaveForm"
/>
<ProvisionalInvite-form
v-if=
"isShowProvisionalInvite"
@
close=
"closeMenuSaveForm"
/>
<ProvisionalInvite-form
v-if=
"isShowProvisionalInvite"
@
close=
"closeMenuSaveForm"
/>
</div>
...
...
@@ -133,9 +133,6 @@
import
{
GetStuPageList
}
from
"../../api/teacher/student"
// import classForm from '../../components/course/class-form';
// import classinfoForm from '../../components/course/classinfo-form';
// import othercourseForm from '../../components/course/othercourse-form';
import
StopLessonForm
from
'../../components/teacher/stopLessonForm'
import
ProvisionalInviteForm
from
'../../components/teacher/provisionalInviteForm'
export
default
{
...
...
src/router/routes.js
View file @
59217df9
...
...
@@ -1026,7 +1026,17 @@ const routes = [{
path
:
"/stuMan/activeList"
,
//学管 活动列表
component
:
()
=>
import
(
"pages/stuMan/activeList"
)
}
},
{
path
:
"/stuMan/classPlan"
,
//学管 上课计划
component
:
()
=>
import
(
"pages/stuMan/classPlan"
)
},
{
path
:
"/stuMan/classRecord"
,
//学管 上课记录
component
:
()
=>
import
(
"pages/stuMan/classRecord"
)
},
],
},
...
...
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