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
918c2e7a
Commit
918c2e7a
authored
Jul 21, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
412d26a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
97 deletions
+67
-97
index.js
src/api/stuMan/index.js
+9
-0
stuList.vue
src/pages/stuMan/stuList.vue
+58
-97
No files found.
src/api/stuMan/index.js
View file @
918c2e7a
...
...
@@ -18,4 +18,13 @@ export function getVisitorAllPageList(data) {
method
:
'post'
,
data
})
}
//学管 获取学员名单分页
export
function
getStuList
(
data
)
{
return
request
({
url
:
'/Stu/GetAllStudentPage'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/stuMan/stuList.vue
View file @
918c2e7a
...
...
@@ -162,11 +162,11 @@
<div
class=
"page-search row items-center flex"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3 "
>
<q-select
@
input=
"changeSchool"
standout=
"bg-primary text-white"
v-model=
"msg.
school
"
class=
"col-6"
<q-select
@
input=
"changeSchool"
standout=
"bg-primary text-white"
v-model=
"msg.
School_Id
"
class=
"col-6"
option-label=
"SName"
option-value=
"SId"
:options=
"SchoolList"
emit-value
map-options
label=
"校区"
/>
</div>
<div
class=
"col-3 "
>
<q-select
@
input=
"changeCourse"
standout=
"bg-primary text-white"
v-model=
"msg.
course
"
class=
"col-6"
<q-select
@
input=
"changeCourse"
standout=
"bg-primary text-white"
v-model=
"msg.
CourseId
"
class=
"col-6"
option-label=
"CourseName"
option-value=
"CourseId"
use-input
:options=
"CourseList"
@
filter=
"filterCourse"
emit-value
map-options
label=
"课程"
clearable
>
<template
v-slot:no-option
>
...
...
@@ -179,7 +179,7 @@
</q-select>
</div>
<div
class=
"col-3 "
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.
class
"
class=
"col-6"
use-input
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.
ClassId
"
class=
"col-6"
use-input
@
filter=
"filterClass"
option-label=
"ClassName"
option-value=
"ClassId"
:options=
"classList"
emit-value
map-options
label=
"班级"
clearable
>
<
template
v-slot:option=
"{ itemProps, itemEvents, opt, selected, toggleOption }"
>
...
...
@@ -202,7 +202,7 @@
</q-select>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.
n
ame"
label=
"学员姓名"
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.
GuestN
ame"
label=
"学员姓名"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
...
...
@@ -214,69 +214,18 @@
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
学员名单
</div>
</
template
>
<
template
v-slot:body-cell-activeName=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"display:flex;align-items:center"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + props.row.CoverImg + ')',backgroundSize:'cover'}">
</div>
{{
props
.
row
.
ActivityName
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-ActivityTime=
"props"
>
<q-td
:props=
"props"
>
<div>
<div>
活动时间:
</div>
<div>
{{
props
.
row
.
StartTimeStr
}}
~
{{
props
.
row
.
EndTimeStr
}}
</div>
<div>
报名时间:
</div>
<div>
{{
props
.
row
.
SignStartTimeStr
}}
</div>
<div>
{{
props
.
row
.
SignEndTimeStr
}}
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-AgeAndPeopleNum=
"props"
>
<q-td
:props=
"props"
>
<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>
<div>
已报入:
{{
props
.
row
.
JoinNum
}}
人
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-activePrice=
"props"
>
<q-td
:props=
"props"
>
<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>
报名取消确认:
{{
props
.
row
.
IsCancelConfirm
==
1
?
'是'
:
'否'
}}
</div>
<div>
内部限制:
{{
props
.
row
.
IsCancelConfirm
==
1
?
'是'
:
'否'
}}
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-LocationName=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"width:200px;white-space: pre-line;"
>
{{
props
.
row
.
LocationName
}}
</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=
"goUrl1('/activity/activeSignUpList',props.row)
"
/>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"
停课"
v-if=
"props.row.GuestState===1"
@
click=
""
/>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"转班"
@
click=
"
"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
""
>
<q-item-section>
<q-item-label>
活动详情
</q-item-label>
<q-item-label>
添加事件
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
...
...
@@ -302,7 +251,7 @@
import
{
queryCourseDropdownList
}
from
'../../api/course/index'
import
{
getStuList
}
from
'../../api/stuMan/index.js'
import
MoreQuery
from
'../../components/stuMan/moreQuery.vue'
export
default
{
...
...
@@ -321,10 +270,18 @@
pageIndex
:
1
,
pageSize
:
10
,
rowsPerPage
:
10
,
school
:
0
,
course
:
0
,
class
:
0
,
name
:
""
,
School_Id
:
-
1
,
//校区
CourseId
:
0
,
//课程
ClassId
:
0
,
//班级
GuestName
:
''
,
//学生姓名
ClassNo
:
''
,
//班号
OrderId
:
""
,
//订单号
EnterID
:
0
,
//业务员
EffectStatus
:
0
,
//状态
JoinType
:
0
,
//类型
EarlyWarning
:
0
,
//预警
OrderTime
:
""
,
//下单时间
EndOrderTime
:
""
,
//下单结束时间
},
pageCount
:
0
,
columns
:
[{
...
...
@@ -338,131 +295,133 @@
name
:
"Name"
,
label
:
"姓名"
,
align
:
"left"
,
field
:
"
Id
"
,
field
:
"
GuestName
"
,
required
:
true
,
},
{
name
:
"ActivityTypeName"
,
label
:
"电话"
,
align
:
"left"
,
field
:
"
ActivityTypeNam
e"
field
:
"
Mobil
e"
},
{
name
:
"ActivityTime"
,
label
:
"合同编号"
,
align
:
"left"
align
:
"left"
,
field
:
"ContractNo"
,
},
{
name
:
"AgeAndPeopleNum"
,
label
:
"班级"
,
align
:
"left"
align
:
"left"
,
field
:
"ClassName"
,
},
{
name
:
"activePrice"
,
label
:
"课程"
,
align
:
"left"
align
:
"left"
,
field
:
"CourseName"
,
},
{
name
:
"LocationName"
,
label
:
"老师"
,
field
:
"LocationName"
,
align
:
"left"
,
style
:
"width:100px"
field
:
"TeacherName"
,
},
{
name
:
"activeStutes"
,
label
:
"订单号"
,
field
:
"ActivityStatusStr
"
,
align
:
"left"
align
:
"left
"
,
field
:
"OrderId"
,
},
{
name
:
"activeStutes"
,
label
:
"报名时间"
,
field
:
"ActivityStatusStr
"
,
align
:
"left"
align
:
"left
"
,
field
:
"OrderTime"
,
},
{
name
:
"activeStutes"
,
label
:
"业务员"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
EnterName
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"应收金额"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
PreferPrice
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"实收金额"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
Income
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"退款金额"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
Refund
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"课程总课时"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
TotalHours
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"有效课时"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
ValidClassHours
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"消耗课时"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
CompleteHours
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"剩余课时"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
SurplusHours
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"可补课课时"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
MakeUpHours
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"缺勤次数"
,
field
:
"A
ctivityStatusStr
"
,
field
:
"A
bsenceNum
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"请假次数"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
LeaveNum
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"事件记录"
,
field
:
"
ActivityStatusStr
"
,
field
:
"
EventlogNum
"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"状态"
,
field
:
"
ActivityStatus
Str"
,
field
:
"
GuestState
Str"
,
align
:
"left"
},
{
name
:
"activeStutes"
,
label
:
"类型"
,
field
:
"
ActivityStatus
Str"
,
field
:
"
JoinType
Str"
,
align
:
"left"
},
{
...
...
@@ -566,21 +525,23 @@
},
changeSchool
(
val
)
{
this
.
queryClass
.
SchoolId
=
val
this
.
getClass
()
this
.
getClass
();
this
.
resetSearch
();
},
changeCourse
(
val
)
{
this
.
queryClass
.
CourseId
=
val
this
.
getClass
()
this
.
getClass
();
this
.
resetSearch
();
},
getList
()
{
// this.loading = true;
// this.apipostDS("/api/Education/GetActivityPage", this.msg, (res) =>
{
// this.loading = false
// if (res.data.resultCode === 1)
{
// this.data = res.data.data.pageData;
// this.pageCount = res.data.data.pageCount;
//
}
//
})
getStuList
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
535
,
res
)
if
(
res
.
Code
===
1
)
{
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
}
})
},
delActive
(
item
)
{
let
that
=
this
;
...
...
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