Explorar el Código

错误提示修改

seimin hace 11 meses
padre
commit
a7dc382ebe
Se han modificado 1 ficheros con 19 adiciones y 8 borrados
  1. 19 8
      assets/js/controllers/system/systemFormCtrl.js

+ 19 - 8
assets/js/controllers/system/systemFormCtrl.js

@@ -981,15 +981,26 @@ sysFormly.controller('SystemformCtrl', ['$rootScope', '$scope', '$parse', '$filt
981 981
                                                     });
982 982
                                                 }
983 983
                                             } else {
984
+                                                if ($scope.formData.name == "company_edit" && resData.status == 10001) {
985
+                                                    SweetAlert.swal({
986
+                                                        title: "系统错误",
987
+                                                        text: "公司名称或编码重复!",
988
+                                                        type: "error",
989
+                                                        confirmButtonColor: "#DD6B55"
990
+                                                    }, function () {
991
+                                                        renderform();
992
+                                                    });
993
+                                                }else{
994
+                                                    SweetAlert.swal({
995
+                                                        title: "系统错误",
996
+                                                        text: resData.msg||"系统错误,请稍后重试!",
997
+                                                        type: "error",
998
+                                                        confirmButtonColor: "#DD6B55"
999
+                                                    }, function () {
1000
+                                                        renderform();
1001
+                                                    });
1002
+                                                }
984 1003
 
985
-                                                SweetAlert.swal({
986
-                                                    title: "系统错误",
987
-                                                    text: resData.msg||"系统错误,请稍后重试!",
988
-                                                    type: "error",
989
-                                                    confirmButtonColor: "#DD6B55"
990
-                                                }, function () {
991
-                                                    renderform();
992
-                                                });
993 1004
                                             }
994 1005
                                         } else {
995 1006
                                             SweetAlert.swal({