Commit fcc08656 authored by zhengke's avatar zhengke
parents 16118b10 00ff7e6a
<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="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount"
: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: 'CateName', name: 'TeacherName',
label: '老师', label: '老师',
field: 'CateName', field: 'TeacherName',
align: 'left' align: 'left'
}, },
{ {
name: 'CourseCount', name: 'ClassDateStr',
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: 'UpdateByName', name: 'RoomName',
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
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