接口调试

This commit is contained in:
BianLzhaoMin 2025-02-25 16:42:40 +08:00
parent 1f4116d7e8
commit 9d53fe2681
1 changed files with 18 additions and 1 deletions

View File

@ -304,8 +304,25 @@
}
console.log('提交时的formDat参数', dataForm)
let path = getUrlParam("type") == '0' ? '/outsourcer/saveEvaluateData' : '/outsourcer/updateEvaluateData';
$.ajax({
url: ctxPath + path,
type: 'post',
data: dataForm,
success: function (res) {
if (res.res == '1') {
layer.msg('保存成功');
layer.close(index); // 关闭弹框
initTable()
} else {
layer.msg(res.resMsg);
}
}
})
// 这里可以执行你需要的操作
// layer.close(index); // 关闭弹框
},
btn2: function (index, layero) {
// 点击"取消"按钮时的逻辑