From 701447950880f09520e802ef72bb81e2356749d8 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 26 十一月 2024 14:11:58 +0800 Subject: [PATCH] Merge branch 'hc-dataproduct-1121' into lsf-dataproduct-1024 --- 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