From e15c608b99fd18196496eb98f39c19da7f09a588 Mon Sep 17 00:00:00 2001 From: Kxc0822a <kxc000822> Date: 星期五, 01 四月 2022 09:31:09 +0800 Subject: [PATCH] 重大 --- src/views/safetyproduction/review.vue | 30 ++++++++++++++++++++++-------- 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/views/safetyproduction/review.vue b/src/views/safetyproduction/review.vue index 372143b..e450a9c 100644 --- a/src/views/safetyproduction/review.vue +++ b/src/views/safetyproduction/review.vue @@ -132,7 +132,7 @@ </el-row> <div v-if=" - list.safetyInspectionItemResult == '0' || null ? false : true + list.safetyInspectionItemResult == 1 " > <el-row style="padding: 15px 1%"> @@ -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> @@ -240,16 +240,17 @@ }; }, created() { - this.id = this.$route.query; - this.itemInfo(this.$route.query); + this.id = this.$route.query.id; + this.itemInfo(this.$route.query.idC); }, methods: { itemInfo(id) { - safetySelfInspectionItemInfo(id).then((res) => { + safetySelfInspectionItemInfo({id:id}).then((res) => { this.list = res.data.result; }); }, modItem() { + if(this.list.safetyInspectionItemResult!=null){ safetySelfInspectionModItemInfo(this.list).then((res) => { if (res.data.code == 200) { this.$notify({ @@ -260,19 +261,32 @@ }); this.$router.push({ path: "/gojudging", + query:{ + id:this.id + } }); } }); + }else{ + this.$confirm('是否否决项未选择','提示', { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning' + }) + } }, back() { this.$router.push({ path: "/gojudging", + query:{ + id:this.id + } }); }, 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; @@ -312,4 +326,4 @@ background-color: #034ea2; border: 1px solid #034ea2; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.2