Commit ea3e1eef authored by 黄奎's avatar 黄奎

页面修改

parent 3b754d8a
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
<template v-slot:top="props"> <template v-slot:top="props">
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" icon="add" @click="clearInfo(),isShowAddPop=true" ref="addBtn" label="新增"> <q-btn color="accent" size="sm" icon="add" @click="isShowAddPop=true" ref="addBtn" label="新增">
<q-popup-proxy> <q-popup-proxy >
<q-banner v-if="isShowAddPop"> <q-banner v-show="isShowAddPop">
<div class="dropClassDialog"> <div class="dropClassDialog">
<div style="margin:10px 0 15px 0;width:300px;">新增班级类型</div> <div style="margin:10px 0 15px 0;width:300px;">新增班级类型</div>
</div> </div>
...@@ -82,12 +82,11 @@ ...@@ -82,12 +82,11 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="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="修改"
@click="EditClass(props.row)" /> @click="EditClassType(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400" label="删除"
@click="deleteClass(props.row)" /> @click="deleteClassType(props.row)" />
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
</template> </template>
</div> </div>
...@@ -166,7 +165,7 @@ ...@@ -166,7 +165,7 @@
pageSize: 12 pageSize: 12
}, },
pageCount: 0, pageCount: 0,
isEdit:true isEdit: true
} }
}, },
created() {}, created() {},
...@@ -215,6 +214,7 @@ ...@@ -215,6 +214,7 @@
position: 'top' position: 'top'
}) })
this.isShowAddPop = false; this.isShowAddPop = false;
this.clearInfo();
this.GetClassTypePageList(); this.GetClassTypePageList();
} }
}) })
...@@ -225,7 +225,6 @@ ...@@ -225,7 +225,6 @@
GetClassTypePageList(this.tabeMsg).then(res => { GetClassTypePageList(this.tabeMsg).then(res => {
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
console.log(res, '数据来了');
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
} }
...@@ -237,21 +236,21 @@ ...@@ -237,21 +236,21 @@
this.GetClassTypePageList() this.GetClassTypePageList()
}, },
clearInfo() { clearInfo() {
// this.addMsg.CTypeId = 0; this.addMsg.CTypeId = 0;
// this.addMsg.CTypeName = ''; this.addMsg.CTypeName = '';
// this.addMsg.AddHourFee = ''; this.addMsg.AddHourFee = '';
// this.addMsg.DefaultClassNum = ''; this.addMsg.DefaultClassNum = '';
}, },
//编辑班级类型 //编辑班级类型
EditClass(obj) { EditClassType(obj) {
this.isShowAddPop = true;
this.addMsg.CTypeId = obj.CTypeId; this.addMsg.CTypeId = obj.CTypeId;
this.addMsg.CTypeName = obj.CTypeName; this.addMsg.CTypeName = obj.CTypeName;
this.addMsg.AddHourFee = obj.AddHourFee; this.addMsg.AddHourFee = obj.AddHourFee;
this.addMsg.DefaultClassNum = obj.DefaultClassNum; this.addMsg.DefaultClassNum = obj.DefaultClassNum;
this.$refs.addBtn.$el.click();
}, },
//删除班级类型 //删除班级类型费用配置
deleteClass(obj) { deleteClassType(obj) {
this.$q.dialog({ this.$q.dialog({
title: "删除类型", title: "删除类型",
message: '', message: '',
...@@ -273,7 +272,7 @@ ...@@ -273,7 +272,7 @@
this.GetClassTypePageList(); this.GetClassTypePageList();
} }
}) })
}); });
} }
}, },
} }
......
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