Commit 661496ca authored by 黄奎's avatar 黄奎

页面修改

parent 08188a27
<template> <template>
<div class="page-body"> <div class="page-body">
<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"
class="sticky-column-table" separator="none" :data="dataList" :columns="columns" separator="none" :data="dataList" :columns="columns" row-key="name">
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 />
...@@ -52,33 +51,45 @@ ...@@ -52,33 +51,45 @@
label: '名称', label: '名称',
field: 'Name', field: 'Name',
align: 'left' align: 'left'
},{ }, {
name: 'Num', name: 'Num',
label: '排序', label: '排序',
field: 'Name', field: 'Num',
align: 'left' align: 'left'
},{ }, {
name: 'Rate', name: 'Rate',
label: '比例', label: '比例',
field: 'Rate', field: 'Rate',
align: 'left' align: 'left'
},{ },
{
name: 'CreateByName',
label: '创建人',
field: 'CreateByName',
align: 'left'
},
{
name: 'CreateTimeStr',
label: '创建时间',
field: 'CreateTimeStr',
align: 'left'
},
{
name: 'Id', name: 'Id',
label: '操作', label: '操作',
field: 'Id' field: 'Id'
} }],
],
dataList: [], dataList: [],
loading: true, loading: true,
isShowFlowForm: false, isShowFlowForm: false,
flowObj: {}, flowObj: {},
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
Name:"" Name: ""
}, },
pageCount:0 pageCount: 0
} }
}, },
mounted() { mounted() {
...@@ -114,7 +125,7 @@ ...@@ -114,7 +125,7 @@
}); });
}, },
//翻页 //翻页
changePage(val){ changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
...@@ -122,8 +133,8 @@ ...@@ -122,8 +133,8 @@
this.loading = true; this.loading = true;
GetStudentAdvisorConfigPage(this.msg).then(res => { GetStudentAdvisorConfigPage(this.msg).then(res => {
this.loading = false; this.loading = false;
console.log(res,'数据'); console.log(res, '数据');
if(res.Code==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;
} }
...@@ -132,10 +143,10 @@ ...@@ -132,10 +143,10 @@
closeflowForm() { closeflowForm() {
this.isShowFlowForm = false this.isShowFlowForm = false
}, },
refreshPage(){ refreshPage() {
this.getList(); this.getList();
}, },
addObj(obj){ addObj(obj) {
if (obj) { if (obj) {
this.flowObj = obj this.flowObj = obj
} else { } else {
...@@ -145,10 +156,8 @@ ...@@ -145,10 +156,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