Commit 1b0b6e6f by liuyang

2024-04-12 设备管理功能开发

parent 3d917811
......@@ -132,7 +132,10 @@ $(function () {
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
save();
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
save(btnNode);
},
onDelete: function (e) {
// 阻止默认请求,使用自定义删除
......@@ -206,7 +209,7 @@ let query = function () {
/**
* 保存
*/
let save = function () {
let save = function (btnNode) {
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
......@@ -267,6 +270,7 @@ let save = function () {
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPSB003", "save", true);
btnNode.attr("disabled", false);
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment