Commit 1b0b6e6f by liuyang

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

parent 3d917811
...@@ -132,7 +132,10 @@ $(function () { ...@@ -132,7 +132,10 @@ $(function () {
onSave: function (e) { onSave: function (e) {
// 阻止默认请求,使用自定义保存 // 阻止默认请求,使用自定义保存
e.preventDefault(); e.preventDefault();
save(); let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
save(btnNode);
}, },
onDelete: function (e) { onDelete: function (e) {
// 阻止默认请求,使用自定义删除 // 阻止默认请求,使用自定义删除
...@@ -206,7 +209,7 @@ let query = function () { ...@@ -206,7 +209,7 @@ let query = function () {
/** /**
* 保存 * 保存
*/ */
let save = function () { let save = function (btnNode) {
let rows = resultGrid.getCheckedRows(); let rows = resultGrid.getCheckedRows();
if (rows.length < 1) { if (rows.length < 1) {
message("请选择数据"); message("请选择数据");
...@@ -267,6 +270,7 @@ let save = function () { ...@@ -267,6 +270,7 @@ let save = function () {
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", { JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () { ok: function () {
JSUtils.submitGridsData("result", "HPSB003", "save", true); 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