Commit da545ee1 authored by 黄奎's avatar 黄奎

页面修改

parent 68b4882f
...@@ -3,25 +3,25 @@ ...@@ -3,25 +3,25 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="msg.LessonName" label="课程名称" <q-input @input="resetSearch" clearable filled v-model="msg.LessonName" label="课程名称" @clear="resetSearch"
@clear="resetSearch" maxlength="30" /> maxlength="30" />
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table no-bottom-table" separator="none" :data="dataList" :columns="columns" row-key="name"> class="sticky-column-table no-bottom-table" separator="none" :data="dataList" :columns="columns" row-key="name">
<template v-slot:top="props"> <template v-slot:top>
<div class="col-2 q-table__title">试听课程管理</div> <div class="col-2 q-table__title">试听课程管理</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增试听课" @click="addObj(null)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增试听课" @click="addObj(null)" />
</div> </div>
</template> </template>
<template v-slot:body-cell-CalculateType="props"> <template v-slot:body-cell-CalculateType="props">
<q-td> <q-td>
{{props.row.CalculateType==1?'单次':'按月'}} {{props.row.CalculateType==1?'单次':'按月'}}
</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"
...@@ -60,52 +60,67 @@ ...@@ -60,52 +60,67 @@
data() { data() {
return { return {
columns: [{ columns: [{
name: 'LessonName', name: 'LessonName',
label: '试听课程名称', label: '试听课程名称',
field: 'LessonName', field: 'LessonName',
align: 'left' align: 'left'
}, { },
name: 'TeacherId', {
label: '试听课主讲老师', name: 'TeacherName',
align: 'left', label: '试听课主讲老师',
field: 'TeacherId' align: 'left',
}, { field: 'TeacherName'
name: 'ClassHourFee', }, {
label: '课时费', name: 'ClassHourFee',
align: 'left', label: '课时费',
field: 'ClassHourFee' align: 'left',
}, { field: 'ClassHourFee'
name: 'CalculateType', }, {
label: '核算方式', name: 'CalculateType',
align: 'left', label: '核算方式',
field: 'CalculateType' align: 'left',
}, { field: 'CalculateType'
name: 'Id', },
label: '操作', {
field: 'Id' name: 'CreateByName',
}], label: '创建人',
align: 'left',
field: 'CreateByName'
},
{
name: 'CreateTimeStr',
label: '创建时间',
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'Id',
label: '操作',
field: 'Id'
}
],
msg: { msg: {
PageIndex: 1, PageIndex: 1,
pageSize: 12, pageSize: 1,
rowsPerPage: 12, rowsPerPage: 1,
LessonName: "" LessonName: ""
}, },
dataList: [], dataList: [],
loading: true, loading: true,
isShowListenForm: false, isShowListenForm: false,
customObj: {}, customObj: {},
pageCount:0 pageCount: 0
} }
}, },
mounted() { mounted() {
this.getList() this.getList()
}, },
methods: { methods: {
resetSearch(){ resetSearch() {
this.msg.PageIndex = 1; this.msg.PageIndex = 1;
this.getList(); this.getList();
}, },
changePage(val){ changePage(val) {
this.msg.PageIndex = val; this.msg.PageIndex = val;
this.getList(); this.getList();
}, },
...@@ -164,10 +179,8 @@ ...@@ -164,10 +179,8 @@
} }
}, },
} }
</script> </script>
<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