From 5857e65f5f35a5f5c3bfeb7765e8078b6f9af7f0 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期四, 31 三月 2022 16:34:52 +0800 Subject: [PATCH] 自查 --- src/views/safetyproduction/feature.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/safetyproduction/feature.vue b/src/views/safetyproduction/feature.vue index 8db69d8..6dbb6e0 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"> @@ -139,7 +140,7 @@ <el-button type="primary" class="btns" @click="AddelementManagement()" >确 定</el-button > - <el-button @click="dialogVisible = false">取 消</el-button> + <el-button @click="cancel()">取 消</el-button> </span> </el-dialog> </div> @@ -318,12 +319,22 @@ type: "success", duration: 2000, }); + }else { + this.$message({ + type: "warning", + // message: res.data.message, + message: "当前A级要素仍然有已绑定的B级要素,无法删除" + }); } }); }) .catch(error =>{ }); }, + cancel(){ + this.elementManagementL(); + this.dialogVisible = false; + }, find(){ this.elementManagementL(); }, -- Gitblit v1.9.2