From 11aec6b395b88b3f8a85dcae4f1d269b5c364f3e Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 10:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outsourcerEvaluationList.js | 2 +- .../outsourcerEvaluation/evaluationForm.html | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/js/evaluate/outsourcerEvaluation/outsourcerEvaluationList.js b/src/main/resources/static/js/evaluate/outsourcerEvaluation/outsourcerEvaluationList.js index d6e75b5..7ea02ff 100644 --- a/src/main/resources/static/js/evaluate/outsourcerEvaluation/outsourcerEvaluationList.js +++ b/src/main/resources/static/js/evaluate/outsourcerEvaluation/outsourcerEvaluationList.js @@ -234,7 +234,7 @@ function initTable() { if (title.indexOf("查看") !== -1) { layer.open(layerOptions); } else { - layerOptions.btn = ["确定"]; + layerOptions.btn = ["确定提交"]; layerOptions.yes = function (index, layero) { //提交子页面时执行 // 获取弹出层中的form表单元素 diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index e7a2818..8691f24 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -224,6 +224,12 @@ // // 将fileDom添加到当前单元格 // $(this).append(fileDom); + + let dataId = $(this).data('field') + + if (`${dataId}-file` && `${dataId}-file`.fileName) { + $(this).find('.layui-table-cell').append(` `) + } } if (index === cols.length - 1) { @@ -256,14 +262,19 @@ const curRows = tableRowList[rowIndex] dialogLabelList.forEach((e, index) => { // fileList.push('') + + isFile = null + if (curRows[`${dialogLabelInfo[index].field}-file`]) { + isFile = curRows[`${dialogLabelInfo[index].field}-file`] + } uploadDom.push('#uploadBtn' + index) innerHtml += `