From a17ee9951bd9913fe5458083e3cd2a79252f6168 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Feb 2025 16:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outsourcerEvaluation/evaluationForm.html | 36 ++++++------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 60e77d2..371c0f4 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -24,12 +24,6 @@ .layui-layer-iframe .layui-layer-btn0 { display: none; } - - .td-container { - display: flex; - align-items: center; - justify-content: space-around; - } @@ -209,8 +203,7 @@ if (index > 2 && index != cols.length - 1) { $(this).data('edit', 'false'); $(this).removeAttr('data-edit'); - // $(this).addClass('layui-disabled'); - $(this).addClass('td-container'); + $(this).addClass('layui-disabled'); //将td元素的contentEditable属性设置为false,禁止编辑 $(this).attr('contentEditable', 'false'); //将td元素的style属性设置为pointer-events: none,禁止点击 @@ -219,15 +212,15 @@ let fileDom = ''; // 只要有文件列表,并且文件列表数量大于0,添加文件信息 - if (item1.fileList && item1.fileList.length > 0) { - // 根据文件列表的索引判断将哪个文件添加到相应的列 - fileDom = `${item1.fileList[index - 3].name}`; - } + // if (item1.fileList && item1.fileList.length > 0) { + // // 根据文件列表的索引判断将哪个文件添加到相应的列 + // fileDom = `${item1.fileList[index - 3]}`; + // } - console.log('fileDomfileDomfileDomfileDom', fileDom) + // console.log('fileDomfileDomfileDomfileDom', fileDom) - // 将fileDom添加到当前单元格 - $(this).append(fileDom); + // // 将fileDom添加到当前单元格 + // $(this).append(fileDom); } }); @@ -264,11 +257,7 @@ let formHtml = `
${tableList[rowIndex].proName}
` let innerHtml = '' dialogLabelList.forEach((e, index) => { - - fileList.push({ - name: '', - path: '', - }) + fileList.push('') uploadDom.push('#uploadBtn' + index) innerHtml += `
${e.title}
@@ -309,8 +298,7 @@ console.log('文件上传成功'); console.log(res); var dataIndex = $(this.elem).data('index'); - fileList[dataIndex].path = res.obj - fileList[dataIndex].name = res.message + fileList[dataIndex] = res.obj // 隐藏当前上传按钮 $(`#uploadBtn${dataIndex}`).hide() @@ -394,9 +382,7 @@ var dataIndex = $(this).data('index'); console.log('删除图标被点击,data-index:', dataIndex); - fileList[dataIndex].path = '' - fileList[dataIndex].name = '' - + fileList[dataIndex] = '' // 执行删除操作 // $(this).parent().remove() $(`#upload-success_${dataIndex}`).hide(function () {