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
35e1faa7
Commit
35e1faa7
authored
May 13, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
也没修改
parent
3c91adc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
307 additions
and
37 deletions
+307
-37
class.js
src/api/course/class.js
+62
-37
makeup.vue
src/pages/course/makeup.vue
+240
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/course/class.js
View file @
35e1faa7
...
...
@@ -304,55 +304,80 @@ export function setTeachingPerfFinance(data) {
* @param {JSON数据} data
*/
export
function
saveClassStatus
(
data
)
{
return
request
({
url
:
'/Class/SetClassStatus'
,
method
:
'post'
,
data
})
return
request
({
url
:
'/Class/SetClassStatus'
,
method
:
'post'
,
data
})
}
/**
* 获取老师教案
*/
export
function
GetClassLessPlan
(
data
)
{
return
request
({
url
:
'/Class/GetClassLessPlan'
,
method
:
'post'
,
data
});
* 获取老师教案
*/
export
function
GetClassLessPlan
(
data
)
{
return
request
({
url
:
'/Class/GetClassLessPlan'
,
method
:
'post'
,
data
});
}
/**
* 新增老师教案
*/
export
function
SetClassLessPlan
(
data
)
{
return
request
({
url
:
'/Class/SetClassLessPlan'
,
method
:
'post'
,
data
});
* 新增老师教案
*/
export
function
SetClassLessPlan
(
data
)
{
return
request
({
url
:
'/Class/SetClassLessPlan'
,
method
:
'post'
,
data
});
}
/**
* 获取备课模板
*/
export
function
GetClassLessPlanList
(
data
)
{
return
request
({
url
:
'/Class/GetClassLessPlanList'
,
method
:
'post'
,
data
});
* 获取备课模板
*/
export
function
GetClassLessPlanList
(
data
)
{
return
request
({
url
:
'/Class/GetClassLessPlanList'
,
method
:
'post'
,
data
});
}
/**
* 评论显示打分
*/
export
function
GetNowUserLessonComment
(
data
)
{
return
request
({
url
:
'/Class/GetNowUserLessonComment'
,
method
:
'post'
,
data
});
* 评论显示打分
*/
export
function
GetNowUserLessonComment
(
data
)
{
return
request
({
url
:
'/Class/GetNowUserLessonComment'
,
method
:
'post'
,
data
});
}
/**
* 补课管理分页列表
* @param {JSON参数} data
*/
export
function
queryAbsentPage
(
data
)
{
return
request
({
url
:
'/Class/GetAbsentPage'
,
method
:
'post'
,
data
})
}
/**
* 修改补课状态
* @param {JSON参数} data
*/
export
function
saveMakeUpStatus
(
data
)
{
return
request
({
url
:
'/Class/SetMakeUpStatus'
,
method
:
'post'
,
data
})
}
src/pages/course/makeup.vue
0 → 100644
View file @
35e1faa7
<
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=
"refreshPage"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.GuestName"
label=
"学员名称"
@
clear=
"refreshPage"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"refreshPage"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.ClassName"
label=
"班级"
@
clear=
"refreshPage"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"refreshPage"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.CourseName"
label=
"课程"
@
clear=
"refreshPage"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"refreshPage"
standout=
"bg-primary text-white"
v-model=
"msg.MakeUpStatus"
clearable
option-value=
"Id"
option-label=
"Name"
:options=
"statusList"
emit-value
map-options
label=
"状态"
/>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3 Sysuser_Date"
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartDate"
type=
"date"
placeholder=
"开始日期"
size=
"small"
style=
"width:47%;"
@
change=
"refreshPage"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
至
<el-date-picker
v-model=
"msg.EndDate"
type=
"date"
placeholder=
"结束日期"
size=
"small"
style=
"width:47%;"
@
change=
"refreshPage"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
</
template
>
</q-field>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-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
/>
<div
class=
"page-option"
>
</div>
</
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-MakeUpStatusStr=
"props"
>
<q-td>
<span>
{{
props
.
row
.
MakeUpStatusStr
}}
</span>
</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
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"处理"
@
click=
"isShowEdit=true,getClickItem(props.row)"
>
<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.MakeUpStatus"
:options=
"statusList"
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=
"setCheckStatus()"
/>
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</q-btn>
</q-td>
</
template
>
</q-table>
</div>
</div>
</template>
<
script
>
import
{
queryAbsentPage
,
saveMakeUpStatus
,
}
from
'../../api/course/class'
;
export
default
{
meta
:
{
title
:
"补课管理"
},
components
:
{
},
data
()
{
return
{
columns
:
[{
name
:
'GuestName'
,
label
:
'学员姓名'
,
field
:
'GuestName'
,
align
:
'left'
},
{
name
:
'ClassName'
,
label
:
'班级'
,
field
:
'ClassName'
,
align
:
'left'
,
},
{
name
:
'CourseName'
,
label
:
'课程'
,
field
:
'CourseName'
,
align
:
'left'
},
{
name
:
'TeacherName'
,
label
:
'带班老师'
,
field
:
'TeacherName'
,
align
:
'left'
},
{
name
:
'RoomName'
,
label
:
'教室名称'
,
field
:
'RoomName'
,
align
:
'left'
},
{
name
:
'MakeUpStatusStr'
,
label
:
'状态'
,
align
:
'left'
,
field
:
'MakeUpStatusStr'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'CourseId'
}
],
data
:
[],
loading
:
false
,
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
MakeUpStatus
:
""
,
//(2-已处理,3-未处理)
GuestName
:
""
,
//学员名称
ClassName
:
""
,
//班级名称
CourseName
:
""
,
//课程名称
TeacherName
:
""
,
//老师名称
RoomName
:
""
,
//教室名称
StartDate
:
""
,
//开始日期
EndDate
:
""
,
//结束日期
},
pageCount
:
0
,
isShowEdit
:
false
,
//是否显示修改
statusList
:
[{
Id
:
2
,
Name
:
'已处理'
},
{
Id
:
3
,
Name
:
"未处理"
}
],
statusMsg
:
{
MakeUpStatus
:
2
,
ClassCheckId
:
0
,
GuestId
:
0
,
},
}
},
created
()
{
},
mounted
()
{
this
.
getAbsentPage
();
},
methods
:
{
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getAbsentPage
()
},
//获取补课分页列表
getAbsentPage
()
{
this
.
loading
=
true
;
queryAbsentPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
//刷新页面
refreshPage
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getAbsentPage
();
},
//获取点击项
getClickItem
(
item
)
{
this
.
statusMsg
.
ClassCheckId
=
item
.
ClassCheckId
;
this
.
statusMsg
.
GuestId
=
item
.
OrderGuestId
;
},
clearMsg
()
{
this
.
statusMsg
.
MakeUpStatus
=
2
;
this
.
statusMsg
.
ClassCheckId
=
0
;
this
.
statusMsg
.
GuestId
=
0
;
},
//设置处理状态
setCheckStatus
()
{
saveMakeUpStatus
(
this
.
statusMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
isShowEdit
=
false
;
this
.
clearMsg
();
this
.
getAbsentPage
()
}
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
});
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/router/routes.js
View file @
35e1faa7
...
...
@@ -177,6 +177,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/course/classManage.vue"
)
},
{
path
:
"/course/makeup"
,
//补课管理
component
:
()
=>
import
(
"pages/course/makeup.vue"
)
},
{
path
:
"/course/baseSet"
,
//基础设置
component
:
()
=>
...
...
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