From dc18edd445bd39fc0ffd1faf1647bfa7ec7d8b57 Mon Sep 17 00:00:00 2001 From: shanao Date: Tue, 5 Nov 2024 10:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=8E=AF=E4=BF=9D=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=9A=82=E5=AD=98=E7=AC=AC=E4=BA=8C=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../safetyenvironmental/inspection/components/add.vue | 9 +++------ .../safetyenvironmental/inspection/components/list.vue | 5 +++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index c7f6b64..f359e13 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -1176,10 +1176,7 @@ export default { this.$forceUpdate() }, /** - * 暂存 也就是采用分开提交的策略 - * 先提交外部表单 - * 然后每确定一条隐患就上传一条隐患 - * 避免一次性提交造成接口超时 + * 先缓存 */ staging() { let flag = false @@ -1238,8 +1235,8 @@ export default { this.$set(this.form, 'HIDDENJSON', JSON.stringify(this.form.hiddenList)) this.listLoading = true requestFN( - '/safetyenvironmental/staging', - { ...this.form } + '/safetyenvironmental/' + this.dialogType, + { ...this.form, INSPECTION_STATUS: '99' } ).then((data) => { for (let i = 0; i < data.pd.hiddenList.length; i++) { this.uploadImg(this.hdFile[i]['fileHdImgList'], data.pd.hiddenList[i].HIDDEN_ID) diff --git a/src/views/safetyenvironmental/inspection/components/list.vue b/src/views/safetyenvironmental/inspection/components/list.vue index 507fb54..d43c87d 100644 --- a/src/views/safetyenvironmental/inspection/components/list.vue +++ b/src/views/safetyenvironmental/inspection/components/list.vue @@ -164,7 +164,7 @@ 查看 流程图