Commit 7570e10e authored by youjie's avatar youjie

no message

parent 85e36ee4
<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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment