From 8d02c80fbed5887266bcf99d9ab9b2b3938449c6 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期五, 01 四月 2022 17:13:47 +0800 Subject: [PATCH] 自查清单 --- src/views/safetyproduction/review.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/safetyproduction/review.vue b/src/views/safetyproduction/review.vue index a2a5866..e450a9c 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> @@ -250,6 +250,7 @@ }); }, modItem() { + if(this.list.safetyInspectionItemResult!=null){ safetySelfInspectionModItemInfo(this.list).then((res) => { if (res.data.code == 200) { this.$notify({ @@ -266,6 +267,13 @@ }); } }); + }else{ + this.$confirm('是否否决项未选择','提示', { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning' + }) + } }, back() { this.$router.push({ @@ -277,8 +285,8 @@ }, handleClick(data) { this.dialogVisible = true; - this.form = data; - console.log(data); + // this.form = data; + this.form=JSON.parse(JSON.stringify(data)); }, lost() { this.dialogVisible = false; @@ -318,4 +326,4 @@ background-color: #034ea2; border: 1px solid #034ea2; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.2