From cf1b5bf548b870efd0f1b4e3d5a8f88e79cfd9c9 Mon Sep 17 00:00:00 2001 From: liuchengxin <13104445455@126.com> Date: 星期六, 08 一月 2022 12:15:22 +0800 Subject: [PATCH] 问题修改 --- src/views/system/dict/index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index fed26e3..d27918d 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -146,6 +146,7 @@ size="mini" type="text" icon="el-icon-delete" + class="del-btn" @click="handleDelete(scope.row)" v-hasPermi="['system:dict:remove']" >鍒犻櫎</el-button> @@ -162,7 +163,7 @@ /> <!-- 娣诲姞鎴栦慨鏀瑰弬鏁伴厤缃璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form-item label="瀛楀吀鍚嶇О" prop="dictName"> <el-input v-model="form.dictName" placeholder="璇疯緭鍏ュ瓧鍏稿悕绉�" /> @@ -326,7 +327,7 @@ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const dictIds = row.dictId || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎瀛楀吀缂栧彿涓�"' + dictIds + '"鐨勬暟鎹」锛�').then(function() { + this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(function() { return delType(dictIds); }).then(() => { this.getList(); -- Gitblit v1.9.1