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
7570e10e
Commit
7570e10e
authored
Jul 01, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
85e36ee4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
stuAppointmentList.vue
src/pages/stuMan/components/stuAppointmentList.vue
+28
-14
No files found.
src/pages/stuMan/components/stuAppointmentList.vue
View file @
7570e10e
<
template
>
<
template
>
<!--学员预约统计-->
<!--学员预约统计-->
<div
style=
"padding: 20px 0"
>
<div
style=
"padding: 20px 0
;height: 700px;overflow-y: scroll;
"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:loading=
"loading"
:pagination=
"pageMsg"
no-data-label=
"暂无相关数据"
flat
<q-table
:loading=
"loading"
:pagination=
"pageMsg"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
:data=
"tableData"
:columns=
"columns"
row-key=
"name"
class=
"sticky-column-table sticky-right-column-table"
:data=
"tableData"
:columns=
"columns"
row-key=
"name"
hide-bottom
>
hide-bottom
>
<template
v-slot:body=
"props"
>
<template
v-slot:body=
"props"
>
<q-tr
:props=
"props"
>
<q-tr
:props=
"props"
>
<q-td
key=
"DateStr"
>
<q-td
auto-width
key=
"DateStr"
>
{{
props
.
row
.
DateStr
}}
{{
props
.
row
.
DateStr
}}
<br
/>
<br
/>
{{
props
.
row
.
WeekStr
}}
{{
props
.
row
.
WeekStr
}}
</q-td>
</q-td>
<q-td
key=
"TimeList"
:props=
"props"
>
<q-td
key=
"TimeList"
:props=
"props"
>
<div
v-for=
"item in props.row.TimeList"
>
<div
style=
"display: flex;"
>
<div
class=
"border-bottom"
>
<div
class=
"border-bottom"
v-for=
"item in props.row.TimeList"
style=
"display: flex;"
>
{{
item
.
StartTime
}}
-
{{
item
.
EndTime
}}
{{
item
.
StartTime
}}
-
{{
item
.
EndTime
}}
<div
class=
"border-bottom num-text"
@
click=
"ShowStuAppoint(item)"
>
{{
item
.
StuAppointNum
}}
人
</div>
</div>
</div>
</div>
</div>
</q-td>
</q-td>
<q-td
key=
"Num"
:props=
"props"
>
<
!--
<
q-td
key=
"Num"
:props=
"props"
>
<div
v-for=
"item in props.row.TimeList"
>
<div
v-for=
"item in props.row.TimeList"
>
<div
class=
"border-bottom"
style=
"cursor:pointer;color:blue;text-decoration:underline"
<div
class=
"border-bottom"
style=
"cursor:pointer;color:blue;text-decoration:underline"
@
click=
"ShowStuAppoint(item)"
>
@
click=
"ShowStuAppoint(item)"
>
{{
item
.
StuAppointNum
}}
{{
item
.
StuAppointNum
}}
</div>
</div>
</div>
</div>
</q-td>
</q-td>
-->
</q-tr>
</q-tr>
</
template
>
</
template
>
</q-table>
</q-table>
...
@@ -64,18 +69,18 @@
...
@@ -64,18 +69,18 @@
},
},
{
{
name
:
"TimeList"
,
name
:
"TimeList"
,
label
:
"时段"
,
label
:
"时段
(人数)
"
,
field
:
"TimeList"
,
field
:
"TimeList"
,
align
:
"left"
,
align
:
"left"
,
field
:
row
=>
row
.
TimeList
field
:
row
=>
row
.
TimeList
},
},
{
//
{
name
:
"Num"
,
//
name: "Num",
label
:
"预约人数"
,
//
label: "预约人数",
field
:
"Num"
,
//
field: "Num",
align
:
"left"
,
//
align: "left",
field
:
row
=>
row
.
TimeList
//
field: row => row.TimeList
},
//
},
],
],
pageMsg
:
{
pageMsg
:
{
rowsPerPage
:
1000
rowsPerPage
:
1000
...
@@ -101,6 +106,15 @@
...
@@ -101,6 +106,15 @@
},
},
};
};
</
script
>
</
script
>
<
style
>
.num-text
{
cursor
:
pointer
;
color
:
blue
;
text-decoration
:
underline
;
margin-left
:
10px
;
margin-right
:
30px
;
}
</
style
>
<
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