1
hwh
2024-06-07 6ac1d0e9607ee9b30b9d5ac90046769e30268b37
HTML_09/views/SystemSettings/Dictionary.html
@@ -377,6 +377,31 @@
                                    }
                                 }
                              }
                              else if(field.Level == '0'){
                                 if(doing){
                                    doing = false;
                                    sendData(IP + "/sys/AddDic", param, 'post',function(res) {
                                       console.log(res);
                                       if (res.code == 0) { //成功
                                          layer.msg(res.msg, {
                                             icon: 1,
                                             time: 2000 //2秒关闭(如果不配置,默认是3秒)
                                          }, function() {
                                             layer.close(index); //关闭弹层
                                             refreshTable($("#DictName").val(),$("#ParentNo").val(),$("#Level").val(), $("#IsEdit").val(), $("#IsAdd").val());
                                             doing = true;
                                          });
                                       }
                                       else
                                       { //不成功
                                          layer.msg(res.msg, {
                                             icon: 2,
                                             time: 2000 //2秒关闭(如果不配置,默认是3秒)
                                          }, function() {doing = true;});
                                       }
                                    });
                                 }
                              }
                              
                           });
                           submit.trigger('click');