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 += ` +