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 + '