diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 9e2ccf7..78d2952 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -249,10 +249,14 @@ ` }) + + layer.open({ type: 1, area: ['auto', 'auto'], // 宽高 content: formHtml, + title: '评分', + btn: ['确定', '取消'], success: function (layero, index) { // 点击上传按钮的逻辑 $('#uploadBtn').on('click', function (event) { @@ -270,6 +274,19 @@ event.preventDefault(); // 阻止表单提交 } }); + }, + yes: function (index, layero) { + // 点击"确定"按钮时的逻辑 + console.log('确定按钮被点击了'); + // 这里可以执行你需要的操作 + layer.close(index); // 关闭弹框 + }, + btn2: function (index, layero) { + // 点击"取消"按钮时的逻辑 + console.log('取消按钮被点击了'); + // 这里可以执行你需要的操作,通常是关闭弹框 + layer.close(index); // 关闭弹框 + return false; // 防止关闭弹框后执行默认的按钮行为 } }) });