From 95e95bf1bd50749acf5f8164048825db880b33fb Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Feb 2025 15:50:17 +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 | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index f14f4c7..37f3b26 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -195,32 +195,34 @@ var tableView = this.elem.next(); layui.each(res.data, function (i, item) { if (item.isApprove == '1') { // Condition to make the row non-editable - var cols = tableView.find('tr[data-index=' + i + ']').find('td'); - cols.each(function (index, item) { - //对field为subName,proName 的列不进行设置 - if (index > 2) { - $(this).data('edit', 'false'); - $(this).removeAttr('data-edit'); - $(this).addClass('layui-disabled'); - //将td元素的contentEditable属性设置为false,禁止编辑 - $(this).attr('contentEditable', 'false'); - //将td元素的style属性设置为pointer-events: none,禁止点击 - $(this).css('pointer-events', 'none'); - delete item.dataset.edit - let fileDom = ''; - // 只要有文件列表,并且文件列表数量大于0,添加文件信息 - if (item.fileList && item.fileList.length > 0) { - // 根据文件列表的索引判断将哪个文件添加到相应的列 - fileDom = `${item.fileList[index - 3] || ''}`; - } + } + var cols = tableView.find('tr[data-index=' + i + ']').find('td'); + cols.each(function (index, item) { + //对field为subName,proName 的列不进行设置 + if (index > 2) { + $(this).data('edit', 'false'); + $(this).removeAttr('data-edit'); + $(this).addClass('layui-disabled'); + //将td元素的contentEditable属性设置为false,禁止编辑 + $(this).attr('contentEditable', 'false'); + //将td元素的style属性设置为pointer-events: none,禁止点击 + $(this).css('pointer-events', 'none'); + delete item.dataset.edit + let fileDom = ''; - // 将fileDom添加到当前单元格 - $(td).append(fileDom); + // 只要有文件列表,并且文件列表数量大于0,添加文件信息 + if (item.fileList && item.fileList.length > 0) { + // 根据文件列表的索引判断将哪个文件添加到相应的列 + fileDom = `${item.fileList[index - 3] || ''}`; } - }); - } + // 将fileDom添加到当前单元格 + $(this).append(fileDom); + } + + }); + }); var columsName = ['subName'];//需要合并的列名称 ['business_tenant_name','land','contract_begin','contract_end','history_arrears','period']; var columsIndex = [1];//需要合并的列索引值 [2,3,5,6,14,15];