From d5e1d77a47f7684d9681357c0ffec37f01aeb52e Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期四, 31 三月 2022 14:23:13 +0800 Subject: [PATCH] 自查清单 --- src/views/safetyproduction/new.vue | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/safetyproduction/new.vue b/src/views/safetyproduction/new.vue index 35b0d78..5792d28 100644 --- a/src/views/safetyproduction/new.vue +++ b/src/views/safetyproduction/new.vue @@ -112,7 +112,7 @@ </div> </div> </div> - <el-dialog title="添加" :visible.sync="dialogVisible" width="30%"> + <el-dialog title="添加" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%"> <el-form ref="form" :model="form" label-width="100px"> <el-form-item label="自查清单名称"> <el-input v-model="form.inspectionName"></el-input> @@ -339,19 +339,19 @@ this.TreeB(currentObj.value); }, handleClick(data) { - console.log('tag', data.id) - if (data.safetyInspectionItemId!=undefined) { - this.$router.push({ + console.log("tag", data.id); + if (data.safetyInspectionItemId != undefined) { + this.$router.push({ path: "/reviewXG", query: { id: data.safetyInspectionItemId, }, }); - } else{ - this.$router.push({ + } else { + this.$router.push({ path: "/reviewXG", query: { - id:data.id + id: data.id, }, }); } @@ -384,6 +384,9 @@ message: "新增成功", title: "成功", }); + this.$router.push({ + path:"/checklistself" + }); } }); } else if (this.id == "编辑") { @@ -396,6 +399,9 @@ title: "成功", }); }); + this.$router.push({ + path:"/checklistself" + }); } }, btnsQX() { -- Gitblit v1.9.2