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
fcc08656
Commit
fcc08656
authored
Jun 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
16118b10
00ff7e6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
41 deletions
+50
-41
reserveClass.vue
src/pages/sale/reserveClass.vue
+50
-41
No files found.
src/pages/sale/reserveClass.vue
View file @
fcc08656
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<q-table
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
<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"
>
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
约课班级
管理
</div>
<div
class=
"col-2 q-table__title"
>
试听课
管理
</div>
<q-space
/>
<q-space
/>
</
template
>
</
template
>
<
template
v-slot:body-cell-Id=
"props"
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"报入"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"报入"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"p
ageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"P
ageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
</q-table>
</q-table>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -26,54 +26,64 @@
...
@@ -26,54 +26,64 @@
}
from
'../../api/scheduling/schedu'
}
from
'../../api/scheduling/schedu'
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"约课班级管理"
title
:
"试听课管理"
},
components
:
{
},
},
components
:
{},
data
()
{
data
()
{
return
{
return
{
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
10
pageSize
:
10
,
rowsPerPage
:
10
,
StartClassDate
:
""
,
//开始时间
EndClassDate
:
""
,
//结束时间
TeacherId
:
""
,
//教师编号
ClassRoomId
:
""
,
//教室编号
},
},
dataList
:
[],
dataList
:
[],
loading
:
false
,
loading
:
false
,
PageCount
:
0
,
PageCount
:
0
,
columns
:
[{
columns
:
[{
name
:
'
Cate
Name'
,
name
:
'
Teacher
Name'
,
label
:
'老师'
,
label
:
'老师'
,
field
:
'
Cate
Name'
,
field
:
'
Teacher
Name'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'C
ourseCount
'
,
name
:
'C
lassDateStr
'
,
label
:
'
时间
'
,
label
:
'
日期
'
,
align
:
'left'
,
align
:
'left'
,
field
:
row
=>
row
.
CourseCount
field
:
'ClassDateStr'
,
},
},
{
{
name
:
'
Status
'
,
name
:
'
ClassTime
'
,
label
:
'
日期
'
,
label
:
'
上课时间
'
,
align
:
'left'
,
align
:
'left'
,
field
:
row
=>
row
.
Status
field
:
'ClassTime'
,
},
},
{
{
name
:
'
UpdateBy
Name'
,
name
:
'
Room
Name'
,
label
:
'教室'
,
label
:
'教室'
,
align
:
'left'
,
align
:
'left'
,
field
:
row
=>
row
.
UpdateByName
field
:
'RoomName'
,
},
},
{
{
name
:
'
UpdateTimeStr
'
,
name
:
'
RoomNum
'
,
label
:
'人数'
,
label
:
'人数'
,
align
:
'left'
,
align
:
'left'
,
field
:
row
=>
row
.
UpdateTimeStr
field
:
'RoomNum'
,
},
{
name
:
'JoinNum'
,
label
:
'报名人数'
,
align
:
'left'
,
field
:
'JoinNum'
,
},
},
{
{
name
:
'ClassContent'
,
name
:
'ClassContent'
,
label
:
'主讲内容'
,
label
:
'主讲内容'
,
align
:
'left'
,
align
:
'left'
,
field
:
row
=>
row
.
ClassContent
field
:
'ClassContent'
,
},
},
{
{
name
:
'CateId'
,
name
:
'CateId'
,
...
@@ -83,7 +93,6 @@
...
@@ -83,7 +93,6 @@
],
],
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getList
()
this
.
getList
()
},
},
...
@@ -100,8 +109,8 @@
...
@@ -100,8 +109,8 @@
//获取课程系列分页列表
//获取课程系列分页列表
getList
()
{
getList
()
{
GetReserveClassPage
(
this
.
msg
).
then
(
res
=>
{
GetReserveClassPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
console
.
log
(
res
,
'数据'
);
if
(
res
.
Data
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
}
}
...
@@ -114,4 +123,4 @@
...
@@ -114,4 +123,4 @@
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.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