From 1ff32925b345a505417437b552f722fba5596395 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Feb 2025 11:17:28 +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 --- .../outsourcerEvaluation/evaluationForm.html | 107 ++++++++++-------- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 1a6b986..2e91b39 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -20,6 +20,10 @@ display: flex; align-items: center; } + + .layui-layer-iframe .layui-layer-btn0 { + display: none; + } @@ -203,10 +207,13 @@ //将td元素的style属性设置为pointer-events: none,禁止点击 $(this).css('pointer-events', 'none'); delete item.dataset.edit + let fileDom = '' + if (JSON.parse(msg).fileList && JSON.parse(msg).fileList.length > 0) { + fileDom = `${JSON.parse(msg).fileList[index - 3]}` + } + $(this).append(fileDom) } - - }); } }); @@ -397,54 +404,54 @@ } }); // 单元格普通编辑事件 - table.on('edit(baseTable)', function (obj) { - var value = obj.value // 得到修改后的值 - var data = obj.data // 得到所在行所有键值 - var field = obj.field; // 得到字段 - //判断修改的是当前行的第几个单元格 - let index = headerRows[2].findIndex(item => item.field === field); - //获取其对应的二级标题 用于计算 - let currentItem = headerRows[1][index]; - let standardScore = Number(currentItem.standardScore); - //是否包含前缀0 - if (value.indexOf('0') === 0 && value.length > 1) { - layer.msg('输入值不能以0开头'); - //清空当前单元格 - obj.update({ - [field]: '' - }); - return; - } - //判断是否数字 - if (value < 0) { - layer.msg('输入值不能小于0'); - //清空当前单元格 - obj.update({ - [field]: '' - }); - return; - } - if (!isPositiveInteger(value)) { - layer.msg('请输入正整数'); - //清空当前单元格 - obj.update({ - [field]: '' - }); - return; - } - if (value > standardScore) { - layer.msg('输入值不能大于标准值'); - //清空当前单元格 - obj.update({ - [field]: '' - }); - return; - } - // // 更新数据中对应的字段 - let update = {}; - update[field] = value; - obj.update(update); - }); + // table.on('edit(baseTable)', function (obj) { + // var value = obj.value // 得到修改后的值 + // var data = obj.data // 得到所在行所有键值 + // var field = obj.field; // 得到字段 + // //判断修改的是当前行的第几个单元格 + // let index = headerRows[2].findIndex(item => item.field === field); + // //获取其对应的二级标题 用于计算 + // let currentItem = headerRows[1][index]; + // let standardScore = Number(currentItem.standardScore); + // //是否包含前缀0 + // if (value.indexOf('0') === 0 && value.length > 1) { + // layer.msg('输入值不能以0开头'); + // //清空当前单元格 + // obj.update({ + // [field]: '' + // }); + // return; + // } + // //判断是否数字 + // if (value < 0) { + // layer.msg('输入值不能小于0'); + // //清空当前单元格 + // obj.update({ + // [field]: '' + // }); + // return; + // } + // if (!isPositiveInteger(value)) { + // layer.msg('请输入正整数'); + // //清空当前单元格 + // obj.update({ + // [field]: '' + // }); + // return; + // } + // if (value > standardScore) { + // layer.msg('输入值不能大于标准值'); + // //清空当前单元格 + // obj.update({ + // [field]: '' + // }); + // return; + // } + // // // 更新数据中对应的字段 + // let update = {}; + // update[field] = value; + // obj.update(update); + // }); }