From 441700673a26144cfcf93b87e0bdcdb06958dabe Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 25 十一月 2024 16:06:23 +0800 Subject: [PATCH] 1. 修复问题新增对话框中,无法正确上传图片的问题 2. 工地施工阶段可选项更新 --- src/views/fysp/check/components/CompProblemAddOrUpd.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/fysp/check/components/CompProblemAddOrUpd.vue b/src/views/fysp/check/components/CompProblemAddOrUpd.vue index 0ba0cb8..f6570c1 100644 --- a/src/views/fysp/check/components/CompProblemAddOrUpd.vue +++ b/src/views/fysp/check/components/CompProblemAddOrUpd.vue @@ -614,7 +614,7 @@ }); if (this.type == 1) { let deleteImgCopy = this.deleteImg; - fileUtil.getImageFiles(picUrls, function (files) { + fileUtil.getImageFiles(picUrls, (files) => { data.append('deleteImg', deleteImgCopy); deepCopyPro.advise = deepCopyPro.advice; delete deepCopyPro['advice']; @@ -633,14 +633,13 @@ }); } else { const deepCopySubTask = useCloned(this.subtask).cloned.value; - const that = this; - fileUtil.getImageFiles(picUrls, function (files) { + fileUtil.getImageFiles(picUrls, (files) => { deepCopyPro.insGuid = deepCopySubTask.insGuid; delete deepCopyPro['description']; deepCopyPro.proName = deepCopyPro.problemname; delete deepCopyPro['problemname']; - deepCopyPro.ptGuid = that.findProTypeByGuid( - that.currProTypeGuid + deepCopyPro.ptGuid = this.findProTypeByGuid( + this.currProTypeGuid ).guid; deepCopyPro.locationId = deepCopyPro.locationid; delete deepCopyPro['locationid']; -- Gitblit v1.9.3