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"); } } );