From 69af96be154b72ce3ff181718c6f26007d6b54c8 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Sun, 27 Apr 2025 18:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../child/coordinatePhotoForm.js | 118 +++++++++--------- 1 file changed, 61 insertions(+), 57 deletions(-) diff --git a/src/main/resources/static/js/imageUpload/coordinatePhoto/child/coordinatePhotoForm.js b/src/main/resources/static/js/imageUpload/coordinatePhoto/child/coordinatePhotoForm.js index ce4b838..39ae3f2 100644 --- a/src/main/resources/static/js/imageUpload/coordinatePhoto/child/coordinatePhotoForm.js +++ b/src/main/resources/static/js/imageUpload/coordinatePhoto/child/coordinatePhotoForm.js @@ -14,7 +14,7 @@ let buildAfterImgList = []; // 恢复后照片 let CODE_1 = 0, CODE_2 = 0, CODE_3 = 0; -let files1,files2,files3; +let files1, files2, files3; let proId, proName, majorId, majorName, gxId, gxName; layui.use(['laydate', 'upload'], function () { @@ -195,17 +195,17 @@ layui.use(['laydate', 'upload'], function () { }); - window.removeImage1 = function (uniqueId,index) { + window.removeImage1 = function (uniqueId, index) { delete files1[index];//删除指定图片 $('#img-' + uniqueId).remove(); }; - window.removeImage2 = function (uniqueId,index) { + window.removeImage2 = function (uniqueId, index) { delete files2[index];//删除指定图片 $('#img-' + uniqueId).remove(); }; - window.removeImage3 = function (uniqueId,index) { + window.removeImage3 = function (uniqueId, index) { delete files3[index];//删除指定图片 $('#img-' + uniqueId).remove(); }; @@ -242,7 +242,7 @@ function setParams(params) { if (selectedId === '' || selectedId == '') { majorId = ''; majorName = ''; - }else { + } else { majorId = selectedId; majorName = selectedName; } @@ -258,7 +258,7 @@ function setParams(params) { if (selectedId === '' || selectedId == '') { gxId = ''; gxName = ''; - }else{ + } else { gxId = selectedId; gxName = selectedName; } @@ -379,7 +379,7 @@ function setFormData(data) { var sysFileResourceList = data.sysFileResourceList; if (sysFileResourceList && sysFileResourceList.length > 0) { - sysFileResourceList.forEach(function(photo) { + sysFileResourceList.forEach(function (photo) { if (photo.sourceType === "6") { buildBeforeImgList.push(photo); // 建设前 } else if (photo.sourceType === "7") { @@ -395,7 +395,7 @@ function setFormData(data) { for (var i = 0; i < buildBeforeImgList.length; i++) { let filePath = imgUrl + buildBeforeImgList[i].originalFilePath + "?token=" + tokens html = html + '