From 2bb0e066fdc522beb51dd13f6a72cd67bd5d6a58 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期日, 09 十月 2022 18:06:46 +0800 Subject: [PATCH] 修改bug,店铺管理新增、查询 --- src/views/systemSetting/baseSetting/department/index.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/systemSetting/baseSetting/department/index.vue b/src/views/systemSetting/baseSetting/department/index.vue index 1e1ac1b..f716b60 100644 --- a/src/views/systemSetting/baseSetting/department/index.vue +++ b/src/views/systemSetting/baseSetting/department/index.vue @@ -12,7 +12,7 @@ <div class="addUser"> <el-button class="addBtn" type="primary" @click="dialogCreate = true">鏂板閮ㄩ棬</el-button> <el-dialog :visible.sync="dialogCreate" title="鏂板閮ㄩ棬淇℃伅" width="45%" v-if="dialogCreate" - :before-close="handleClose"> + :before-close="handleClose2"> <createUser :refresh="context==='' ? getUserList : search " @changMyDialog="changMyDialog" /> </el-dialog> </div> @@ -36,8 +36,8 @@ </el-table-column> <el-table-column prop="departDes" label="閮ㄩ棬鎻忚堪" min-width="10"> </el-table-column> - <el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="10"> - </el-table-column> + <!-- <el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="10"> + </el-table-column> --> <el-table-column prop="status" label="鍚敤" min-width="5"> <template slot-scope="scope"> <el-switch class="switchStyle" v-model="scope.row.status" active-text="寮�" inactive-text="鍏�" @@ -307,15 +307,26 @@ this.search(); }, // 鍏抽棴dialog - changMyDialog({flag}) { + changMyDialog({ flag }) { this.dialogUpdate = flag; this.dialogCreate = flag; }, handleClose(done) { + if (this.updateFlag) { + this.$confirm('纭鍏抽棴锛�') + .then(_ => { + this.dialogUpdate = false; + this.dialogCreate = false; + done(); + }) + .catch(_ => { }); + } else { + done(); + } + }, + handleClose2(done) { this.$confirm('纭鍏抽棴锛�') .then(_ => { - this.dialogUpdate = false; - this.dialogCreate = false; done(); }) .catch(_ => { }); -- Gitblit v1.8.0