Browse Source

添加了供应商模块中操作失败的原因提示

mainqaq 3 years ago
parent
commit
ed6d05d760
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/xt_pages/supply/components/addSupply.vue

+ 2 - 2
src/xt_pages/supply/components/addSupply.vue View File

432
                     this.closePop();
432
                     this.closePop();
433
                     this.$emit("init");
433
                     this.$emit("init");
434
                   } else {
434
                   } else {
435
-                    this.$message.error("新增失败");
435
+                    this.$message.error("新增失败"+res.data.msg);
436
                     setTimeout(() => {
436
                     setTimeout(() => {
437
                       this.closePop();
437
                       this.closePop();
438
                     }, 2000);
438
                     }, 2000);
480
                     this.closePop();
480
                     this.closePop();
481
                     this.$emit("init");
481
                     this.$emit("init");
482
                   } else {
482
                   } else {
483
-                    this.$message.error("修改失败");
483
+                    this.$message.error("修改失败"+res.data.msg);
484
                     setTimeout(() => {
484
                     setTimeout(() => {
485
                       this.closePop();
485
                       this.closePop();
486
                     }, 2000);
486
                     }, 2000);