Demo
2024-03-16 7f4b5fb7a89052f1fbd2e00b34e60e1b55f73ab3
HTML/views/SOSetting/ExportAllot.html
@@ -829,25 +829,33 @@
            console.log(obj);
            if (obj.event === 'del') {
               layer.confirm('确定撤销选中的分配信息吗?', function (index) {
                  var param = {
                     Id: parseInt(obj.data.Id)
                  };
                  sendData(IP + "/BllSo/DelExportAllot", param, 'post', function (res) {
                     console.log(res);
                     if (res.code == 0) { //成功
                        layer.msg(res.msg, {
                           icon: 1,
                           time: 1000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () {
                           refreshTable();
                        });
                     } else { //不成功
                        layer.msg(res.msg, {
                           icon: 2,
                           time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () { });
                     }
                  });
                  if (doing) {
                     doing = false;
                     var param = {
                        Id: parseInt(obj.data.Id)
                     };
                     sendData(IP + "/BllSo/DelExportAllot", param, 'post', function (res) {
                        console.log(res);
                        if (res.code == 0) { //成功
                           layer.msg(res.msg, {
                              icon: 1,
                              time: 1000 //2秒关闭(如果不配置,默认是3秒)
                           }, function () {
                              refreshTable();
                              doing = true;
                           });
                        } else { //不成功
                           layer.msg(res.msg, {
                              icon: 2,
                              time: 2000 //2秒关闭(如果不配置,默认是3秒)
                           }, function () {
                              doing = true;
                            });
                        }
                     });
                  }
               });
            }
         });