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/reviewXG.vue | 2 +-
src/views/safetyproduction/review.vue | 2 +-
src/views/safetyproduction/new.vue | 20 +++++++++++++-------
src/views/safetyproduction/checklist.vue | 2 +-
4 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/views/safetyproduction/checklist.vue b/src/views/safetyproduction/checklist.vue
index d2b83ca..7c44497 100644
--- a/src/views/safetyproduction/checklist.vue
+++ b/src/views/safetyproduction/checklist.vue
@@ -266,7 +266,7 @@
</div>
</div>
- <el-dialog :title="titleN" :visible.sync="dialogVisible" width="30%">
+ <el-dialog :title="titleN" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%">
<el-form ref="form" :model="formInline" label-width="80px">
<el-form-item label="名称">
<el-input v-model="formInline.name"></el-input>
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() {
diff --git a/src/views/safetyproduction/review.vue b/src/views/safetyproduction/review.vue
index a2a5866..9539081 100644
--- a/src/views/safetyproduction/review.vue
+++ b/src/views/safetyproduction/review.vue
@@ -198,7 +198,7 @@
</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="54px">
<el-form-item label="说明">
<el-input disabled="true" v-model="form.name"></el-input>
diff --git a/src/views/safetyproduction/reviewXG.vue b/src/views/safetyproduction/reviewXG.vue
index abf8dc9..838d985 100644
--- a/src/views/safetyproduction/reviewXG.vue
+++ b/src/views/safetyproduction/reviewXG.vue
@@ -150,7 +150,7 @@
</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="formInline" label-width="54px">
<el-form-item label="说明">
<el-input v-model="formInline.name"></el-input>
--
Gitblit v1.9.2