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
9fcf748f
Commit
9fcf748f
authored
Dec 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8c3475ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
113 deletions
+46
-113
reserveStudentList.vue
src/pages/sale/reserveStudentList.vue
+46
-113
No files found.
src/pages/sale/reserveStudentList.vue
View file @
9fcf748f
<
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
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.KeyWords"
label=
"关键字"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</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=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top
=
"props"
>
<template
v-slot:top
>
<div
class=
"col-12 q-table__title"
>
{{
name
}}
-
{{
date
}}
试听学员名单
</div>
<q-space
/>
<div
class=
"page-option"
>
<!--
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"添加客户"
@
click=
"editVisitor(null)"
/>
-->
</div>
</
template
>
<
template
v-slot:body-cell-VisitorStatus=
"props"
>
<q-td
:props=
"props"
>
<img
v-if=
"props.row.VisitorStatus==1"
title=
"正常"
src=
"../../assets/images/normal.png"
/>
<img
v-if=
"props.row.VisitorStatus==2"
title=
"贵宾"
src=
"../../assets/images/vip.png"
/>
<img
v-if=
"props.row.VisitorStatus==3"
title=
"黑名单"
src=
"../../assets/images/blackList.png"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-Evaluate=
"props"
>
<q-td
:props=
"props"
>
{{
getRemarks
(
props
.
row
.
Evaluate
)
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-Remark=
"props"
>
<q-td
:props=
"props"
>
<el-tooltip
effect=
"dark"
:content=
"props.row.Remark"
placement=
"top"
>
{{
getRemarks
(
props
.
row
.
Remark
)
}}
</el-tooltip>
</q-td>
</
template
>
<!-- <template v-slot:body-cell-Id="props">
<q-td :props="props">
<q-btn flat size="xs" @click="editVisitor(props.row)" icon="edit" color="accent" style="font-weight:400"
label="编辑" />
<q-btn flat size="xs" @click="getDetail(props.row)" icon="iconfont icon-View" color="accent"
style="font-weight:400" label="详情" />
<q-btn flat size="xs" @click="getAppointment(props.row)" icon="iconfont icon-ziyuan1" color="accent"
style="font-weight:400; " label="申请约课" />
</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"
/>
...
...
@@ -59,13 +21,14 @@
<visitor-form
v-if=
"isShowVisitor"
:save-obj=
"visitObjOption"
@
close=
"closeVisitorForm"
@
success=
"refreshPage"
>
</visitor-form>
<schedulFanke
v-if=
"isShowDetail"
@
close=
"closeDetail"
:save-obj=
"sendObj"
></schedulFanke>
<appoint-form
v-if=
"isShowFangke"
:save-obj=
"visitObjOption"
@
close=
"closeAppoint"
@
success=
"refreshPage"
></appoint-form>
<appoint-form
v-if=
"isShowFangke"
:save-obj=
"visitObjOption"
@
close=
"closeAppoint"
@
success=
"refreshPage"
>
</appoint-form>
</div>
</template>
<
script
>
import
{
queryVisitorPage
,
queryVisitor
Reserve
Page
,
}
from
'../../api/scheduling/schedu'
import
schedulFanke
from
'../../components/schedul/schedul-fanke'
import
visitorForm
from
'../../components/schedul/visitor-form'
...
...
@@ -85,98 +48,70 @@
pageIndex
:
1
,
pageSize
:
10
,
rowsPerPage
:
10
,
IsQueryAll
:
1
,
QReserveClassIds
:
""
,
IsQueryAll
:
1
,
QReserveClassIds
:
""
,
KeyWords
:
""
,
},
name
:
""
,
date
:
""
,
name
:
""
,
date
:
""
,
pageCount
:
0
,
dataList
:
[],
loading
:
false
,
columns
:
[{
name
:
'Name'
,
name
:
'
Visitor
Name'
,
label
:
'姓名'
,
required
:
true
,
field
:
'Name'
,
align
:
'left'
},
{
name
:
'Age'
,
field
:
'Age'
,
label
:
'年龄'
,
align
:
'left'
,
},
{
name
:
'Tel'
,
field
:
'Tel'
,
label
:
'电话'
,
align
:
'left'
,
},
{
name
:
'WeChatNum'
,
field
:
'WeChatNum'
,
label
:
'微信'
,
align
:
'left'
},
{
name
:
'CourseName'
,
label
:
'兴趣课程'
,
field
:
'CourseName'
,
field
:
'VisitorName'
,
align
:
'left'
},
{
name
:
'Stu
dyTime
'
,
label
:
'学
习时间
'
,
field
:
'Stu
dyTime
'
,
name
:
'Stu
Tel
'
,
label
:
'学
员电话
'
,
field
:
'Stu
Tel
'
,
align
:
'left'
},
{
name
:
'
LevelType
'
,
label
:
'
当前水平
'
,
field
:
'
LevelType
'
,
name
:
'
QQ
'
,
label
:
'
QQ
'
,
field
:
'
QQ
'
,
align
:
'left'
},
{
name
:
'
CreateByName
'
,
label
:
'
关联人员
'
,
field
:
'
CreateByName
'
,
name
:
'
WeChatNo
'
,
label
:
'
微信号
'
,
field
:
'
WeChatNo
'
,
align
:
'left'
},
{
name
:
'
VisitorStatus
'
,
label
:
'
状态
'
,
field
:
'
VisitorStatus
'
,
name
:
'
LessonName
'
,
label
:
'
试听课程
'
,
field
:
'
LessonName
'
,
align
:
'left'
},
{
name
:
'
Evaluat
e'
,
label
:
'
意向评估
'
,
field
:
'
Evaluat
e'
,
name
:
'
TeacherNam
e'
,
label
:
'
试讲老师
'
,
field
:
'
TeacherNam
e'
,
align
:
'left'
},
{
name
:
'
CreateTimeStr
'
,
label
:
'
到访时间
'
,
field
:
'
CreateTimeStr
'
,
name
:
'
RoomName
'
,
label
:
'
教室
'
,
field
:
'
RoomName
'
,
align
:
'left'
},
{
name
:
'
VisitTimes
'
,
label
:
'
到访次数
'
,
field
:
'
VisitTimes
'
,
name
:
'
CreateByName
'
,
label
:
'
创建人
'
,
field
:
'
CreateByName
'
,
align
:
'left'
},
{
name
:
'
Remark
'
,
label
:
'
备注
'
,
field
:
'
Remark
'
,
name
:
'
CreateTimeStr2
'
,
label
:
'
创建时间
'
,
field
:
'
CreateTimeStr2
'
,
align
:
'left'
},
// {
// name: 'Id',
// label: '操作',
// }
],
sendObj
:
{},
isShowDetail
:
false
,
...
...
@@ -189,15 +124,15 @@
this
.
getList
();
},
created
()
{
if
(
this
.
$route
.
query
.
classId
)
{
this
.
msg
.
QReserveClassIds
=
this
.
$route
.
query
.
classId
}
if
(
this
.
$route
.
query
.
name
)
{
this
.
name
=
this
.
$route
.
query
.
name
}
if
(
this
.
$route
.
query
.
date
)
{
this
.
date
=
this
.
$route
.
query
.
date
}
if
(
this
.
$route
.
query
.
classId
)
{
this
.
msg
.
ReserveClassId
=
this
.
$route
.
query
.
classId
}
if
(
this
.
$route
.
query
.
name
)
{
this
.
name
=
this
.
$route
.
query
.
name
}
if
(
this
.
$route
.
query
.
date
)
{
this
.
date
=
this
.
$route
.
query
.
date
}
},
methods
:
{
//新增访客
...
...
@@ -211,7 +146,7 @@
},
getList
()
{
this
.
loading
=
true
;
queryVisitorPage
(
this
.
msg
).
then
(
res
=>
{
queryVisitor
Reserve
Page
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
...
...
@@ -257,7 +192,7 @@
},
//打开约课
getAppointment
(
item
)
{
this
.
visitObjOption
=
item
;
this
.
visitObjOption
=
item
;
this
.
isShowFangke
=
true
;
},
closeAppoint
()
{
...
...
@@ -272,9 +207,7 @@
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
</
style
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
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