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
af19f42c
Commit
af19f42c
authored
Jun 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b9339a3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
52 deletions
+90
-52
schedu.js
src/api/scheduling/schedu.js
+11
-1
appointManagement.vue
src/pages/sale/appointManagement.vue
+79
-51
No files found.
src/api/scheduling/schedu.js
View file @
af19f42c
...
...
@@ -184,4 +184,14 @@ export function SetVisitorReserve(data) {
})
}
/**
* 约课管理
* @param {JSON参数} data
*/
export
function
queryVisitorReservePage
(
data
)
{
return
request
({
url
:
'/VisitorReserve/GetVisitorReservePage'
,
method
:
'post'
,
data
})
}
src/pages/sale/appointManagement.vue
View file @
af19f42c
<
template
>
<div
class=
"page-body"
>
<q-table
: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"
>
<div
class=
"col-2 q-table__title"
>
人员信息
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
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"
/>
</
template
>
</q-table>
</div>
<div
class=
"page-body"
>
<q-table
: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"
>
<div
class=
"col-2 q-table__title"
>
约课管理
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-Id=
"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=
"OperateVitior(props.row,1)"
>
<q-item-section>
<q-item-label>
转订单
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"OperateVitior(props.row,2)"
>
<q-item-section>
<q-item-label>
流单
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"OperateVitior(props.row,3)"
>
<q-item-section>
<q-item-label>
取消
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</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
>
</q-table>
</div>
</template>
<
script
>
import
{
GetReserveClass
Page
queryVisitorReserve
Page
}
from
'../../api/scheduling/schedu'
export
default
{
meta
:
{
title
:
"约课管理"
},
components
:
{
},
components
:
{},
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
10
pageIndex
:
1
,
pageSize
:
10
},
dataList
:
[],
loading
:
false
,
PageCount
:
0
,
columns
:
[{
name
:
'
Cate
Name'
,
label
:
'
老师
'
,
field
:
'
Cate
Name'
,
name
:
'
Visitor
Name'
,
label
:
'
客户名称
'
,
field
:
'
Visitor
Name'
,
align
:
'left'
},
{
name
:
'C
ourseCount
'
,
label
:
'
时间
'
,
align
:
'left
'
,
field
:
row
=>
row
.
CourseCount
name
:
'C
lassDateStr
'
,
label
:
'
日期
'
,
field
:
'ClassDateStr
'
,
align
:
'left'
},
{
name
:
'
Status
'
,
label
:
'
日期
'
,
align
:
'left
'
,
field
:
row
=>
row
.
Status
name
:
'
ClassTime
'
,
label
:
'
时间
'
,
field
:
'ClassTime
'
,
align
:
'left'
},
{
name
:
'
UpdateBy
Name'
,
label
:
'
教室
'
,
align
:
'left
'
,
field
:
row
=>
row
.
UpdateByName
name
:
'
Teacher
Name'
,
label
:
'
老师
'
,
field
:
'TeacherName
'
,
align
:
'left'
},
{
name
:
'
UpdateTimeStr
'
,
label
:
'
人数
'
,
align
:
'left
'
,
field
:
row
=>
row
.
UpdateTimeStr
name
:
'
RoomName
'
,
label
:
'
教室
'
,
field
:
'RoomName
'
,
align
:
'left'
},
{
name
:
'ClassContent'
,
label
:
'主讲内容'
,
align
:
'lef
t'
,
field
:
row
=>
row
.
ClassContent
field
:
'ClassConten
t'
,
align
:
'left'
},
{
name
:
'CateId'
,
name
:
'ReserveStatusStr'
,
label
:
'状态'
,
field
:
'ReserveStatusStr'
,
align
:
'left'
},
{
name
:
'Id'
,
label
:
'操作'
,
field
:
'
Cate
Id'
field
:
'Id'
}
],
}
...
...
@@ -99,13 +122,18 @@
},
//获取课程系列分页列表
getList
()
{
GetReserveClass
Page
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
if
(
res
.
Data
==
1
)
{
queryVisitorReserve
Page
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
}
})
},
//预约操作按钮
OperateVitior
(
item
,
type
)
{
}
}
}
...
...
@@ -114,4 +142,4 @@
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
</
style
>
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