Commit ea3e1eef authored by 黄奎's avatar 黄奎

页面修改

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