From 0e9a24312e48b6c434934953cb74683c93c04aa6 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期四, 31 三月 2022 16:27:41 +0800 Subject: [PATCH] 自查 --- src/views/safetyproduction/feature.vue | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/views/safetyproduction/feature.vue b/src/views/safetyproduction/feature.vue index 4872385..312c285 100644 --- a/src/views/safetyproduction/feature.vue +++ b/src/views/safetyproduction/feature.vue @@ -74,6 +74,7 @@ <el-dialog :title="title" :visible.sync="dialogVisible" + :close-on-click-modal="false" width="40%" > <el-form ref="form" :rules="rules" :model="form" label-width="80px"> @@ -303,6 +304,7 @@ }); }, deleteById(val) { + console.log(123,val) this.$confirm('确认删除吗','提示', { confirmButtonText: '确认', cancelButtonText: '取消', @@ -318,6 +320,12 @@ type: "success", duration: 2000, }); + }else { + this.$message({ + type: "warning", + // message: res.data.message, + message: "当前A级要素仍然有已绑定的B级要素,无法删除" + }); } }); }) -- Gitblit v1.9.2