From 963cf821da3bea67d938e7ee9b60453befb02123 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 25 Feb 2025 14:47:44 +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 --- src/main/resources/static/js/common.js | 5 --- .../outsourcerEvaluation/evaluationForm.html | 45 ++++++++++++------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/src/main/resources/static/js/common.js b/src/main/resources/static/js/common.js index 5fc5874..e6a26ee 100644 --- a/src/main/resources/static/js/common.js +++ b/src/main/resources/static/js/common.js @@ -19,20 +19,15 @@ $.fn.serializeObject = function () { function getUrlParam(key) { var href = window.location.href; - console.log("key+++++", key); var url = href.split("?"); - console.log("url+++++", url); if (url.length <= 1) { return ""; } var params = url[1].split("&"); - console.log("params+++++", params); - for (var i = 0; i < params.length; i++) { var param = params[i].split("="); - console.log("param*****+++++", param); if (key == param[0]) { return param[1]; } diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 9823156..0252126 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -109,6 +109,10 @@ headerRows = []; headerRows = JSON.parse(data); + // 定义弹框内需要的label + const dialogLabelList = headerRows[1] + const dialogLabelInfo = headerRows[2] + // Clear existing headers const thead = document.querySelector('#baseTable thead'); if (thead) { @@ -212,26 +216,33 @@ event.stopPropagation(); // 阻止事件冒泡 event.preventDefault() console.log('按钮被点击了'); + let rowIndex = $(this).closest('tr').data('index') + const tableList = JSON.parse(msg) + + + console.log('rowIndex当前行的索引', rowIndex) // 在这里添加按钮点击后的逻辑 + + // 组装dom + let formHtml = '' + dialogLabelList.forEach((e, index) => { + formHtml += ` +