From 5bbc60367dc3aa23715bb977db7470ebb97dc59c Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Wed, 7 Jun 2023 20:18:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qualitySupervision/components/transformInfo.vue | 2 ++ .../safetySupervision/components/transformInfo.vue | 2 ++ .../qualitySupervision/components/transformInfo.vue | 4 ++-- .../safetySupervision/components/transformInfo.vue | 10 ++++++++-- .../qualitySupervision/components/transformInfo.vue | 3 ++- .../safetySupervision/components/transformInfo.vue | 2 ++ 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/enterprise/qualitySupervision/components/transformInfo.vue b/src/views/enterprise/qualitySupervision/components/transformInfo.vue index 9b07ec2..0102e5d 100644 --- a/src/views/enterprise/qualitySupervision/components/transformInfo.vue +++ b/src/views/enterprise/qualitySupervision/components/transformInfo.vue @@ -364,6 +364,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } ); diff --git a/src/views/enterprise/safetySupervision/components/transformInfo.vue b/src/views/enterprise/safetySupervision/components/transformInfo.vue index ce721f4..8afa982 100644 --- a/src/views/enterprise/safetySupervision/components/transformInfo.vue +++ b/src/views/enterprise/safetySupervision/components/transformInfo.vue @@ -365,6 +365,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } ); diff --git a/src/views/goverment/qualitySupervision/components/transformInfo.vue b/src/views/goverment/qualitySupervision/components/transformInfo.vue index d90700d..d6a281a 100644 --- a/src/views/goverment/qualitySupervision/components/transformInfo.vue +++ b/src/views/goverment/qualitySupervision/components/transformInfo.vue @@ -277,14 +277,12 @@ const singleAudit = item => { const backAll = async () => { const res = await allOptionAudit({ id: basicData.value.id, state: 5, type: 2 }); closeMain(); - emits("confirm"); ElMessage.success("操作成功"); }; // 全部审核完成,提交 const allSubmit = async () => { const res = await allOptionAudit({ id: basicData.value.id, state: 4, type: 2 }); closeMain(); - emits("confirm"); ElMessage.success("操作成功"); }; // 关闭两个对话框 @@ -342,6 +340,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } ); diff --git a/src/views/goverment/safetySupervision/components/transformInfo.vue b/src/views/goverment/safetySupervision/components/transformInfo.vue index 93db9ee..bcd8f3a 100644 --- a/src/views/goverment/safetySupervision/components/transformInfo.vue +++ b/src/views/goverment/safetySupervision/components/transformInfo.vue @@ -267,6 +267,12 @@ const singleAuditSubmit = async index => { ElMessage.success("操作成功"); } transformDialog.value = false; + auditVisible.value = false; + dialogStyle.value = { + "min-width": "824px", + transform: "translateX(0px)" + }; + getInfo(); }; // 单个整改情况审核 const singleAudit = item => { @@ -278,14 +284,12 @@ const singleAudit = item => { const backAll = async () => { const res = await allOptionAudit({ id: basicData.value.id, state: 5, type: 1 }); closeMain(); - emits("confirm"); ElMessage.success("操作成功"); }; // 全部审核完成,提交 const allSubmit = async () => { const res = await allOptionAudit({ id: basicData.value.id, state: 4, type: 1 }); closeMain(); - emits("confirm"); ElMessage.success("操作成功"); }; // 关闭两个对话框 @@ -343,6 +347,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } ); diff --git a/src/views/project/qualitySupervision/components/transformInfo.vue b/src/views/project/qualitySupervision/components/transformInfo.vue index b025c65..254fb1c 100644 --- a/src/views/project/qualitySupervision/components/transformInfo.vue +++ b/src/views/project/qualitySupervision/components/transformInfo.vue @@ -274,7 +274,6 @@ const reformInfo = ref({ const allSubmit = async () => { const res = await submitAll({ id: basicData.value.id }); closeMain(); - emits("confirm"); ElMessage.success("提交成功"); }; // 关闭两个对话框 @@ -365,6 +364,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } ); diff --git a/src/views/project/safetySupervision/components/transformInfo.vue b/src/views/project/safetySupervision/components/transformInfo.vue index a5963a1..adf6b50 100644 --- a/src/views/project/safetySupervision/components/transformInfo.vue +++ b/src/views/project/safetySupervision/components/transformInfo.vue @@ -364,6 +364,8 @@ watch( visible1.value = n; if (n) { getInfo(); + } else { + emits("confirm"); } } );