xiaodai2017 1 год назад
Родитель
Сommit
3e712d4377

+ 3 - 8
src/views/login/forget-password.vue

@@ -312,16 +312,11 @@ export default {
               password: this.loginFormY.newPassword
             }
             asyncRequest.resetpwd(model).then(async(res) => {
-              if (res && res.code === 0) {
-                this.loading = false
+              this.loading = false
+              if (res && res.code === 1) {
                 this.step++
                 this.setTime()
-              } else if (res && res.code >= 100 && res.code <= 104) {
-                await this.logout()
-              } else {
-                this.$message.warning(res.message)
-                this.loading = false
-              }
+              } 
             })
           }
         } else {

+ 3 - 5
src/views/operate/supplier/index.vue

@@ -503,17 +503,15 @@ export default {
             status: status + "" === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
+          this.loading = false;
           if (res && res.code === 1) {
-            this.loading = false;
+            
             this.$notify.success({
               title: "状态修改成功!",
               message: "",
             });
             await this.searchList();
-          }  else {
-            this.loading = false;
-            this.$message.warning(res.message);
-          }
+          } 
         })
         .catch(() => {
           console.log("取消");

+ 4 - 8
src/views/person-infor/change-password.vue

@@ -165,16 +165,12 @@ export default {
               new_pass: this.loginForm.newPassword
             }
             asyncRequest.setpwd(model).then(async(res) => {
-              if (res && res.code === 0) {
-                this.loading = false
+              this.loading = false
+              if (res && res.code === 1) {
+                
                 this.$message.success(res.message)
                 await this.logout()
-              } else if (res && res.code >= 100 && res.code <= 104) {
-                await this.logout()
-              } else {
-                this.$message.warning(res.message)
-                this.loading = false
-              }
+              } 
             })
           }
         } else {

+ 3 - 11
src/views/platformService/invoice/index.vue

@@ -393,17 +393,13 @@ export default {
             status: status + '' === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
-          if (res && res.code === 0) {
+          if (res && res.code === 1) {
             this.$notify.success({
               title: "删除成功",
               message: "",
             });
             this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
+          } 
         })
         .catch(() => {
           console.log("取消");
@@ -452,11 +448,7 @@ export default {
               message: "",
             });
             await this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
+          } 
         })
         .catch(() => {
           console.log("取消");

+ 4 - 10
src/views/serviceParam/sort/addEdit.vue

@@ -21,7 +21,7 @@
             :model="ruleForm"
             status-icon
             :rules="rulesThis"
-            label-width="120px"
+            label-width="70px"
             class="demo-ruleForm"
           >
             <el-form-item label="上一级">
@@ -33,12 +33,8 @@
                 v-model="ruleForm.cat_name"
                 :disabled="id == '007'"
                 placeholder="名称"
-                maxlength="20"
-              >
-                <template slot="prepend" v-if="pid_name">{{
-                  pid_name
-                }}</template></el-input
-              >
+                maxlength="100"
+              />
             </el-form-item>
           </el-form>
         </el-col>
@@ -193,9 +189,7 @@ export default {
               this.showModelThis = false;
               // 刷新
               this.$emit("refresh");
-            } else {
-              this.$message.warning(res.message);
-            }
+            } 
           }
         } else {
           console.log("error submit!!");

+ 4 - 8
src/views/serviceParam/sort/index.vue

@@ -388,17 +388,15 @@ export default {
             status: status + "" === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
+          this.loading = false;
           if (res && res.code === 1) {
-            this.loading = false;
+            
             this.$notify.success({
               title: "状态修改成功!",
               message: "",
             });
             await this.searchList();
-          } else {
-            this.loading = false;
-            this.$message.warning(res.message);
-          }
+          } 
         })
         .catch(() => {
           console.log("取消");
@@ -421,9 +419,7 @@ export default {
               message: "",
             });
             this.searchList();
-          } else {
-            this.$message.warning(res.message);
-          }
+          } 
         })
         .catch(() => {
           console.log("取消");