Explorar o código

竞争对手、商品组导入bug修复

qymljy hai 9 meses
pai
achega
7ab20b511f

+ 14 - 4
src/HDrpManagement/ProductGroupMag/index.vue

@@ -58,6 +58,7 @@
 
 <script>
 import importFile from './modules/importFile.vue'
+import {Message} from "element-ui";
 export default {
   components:{
     importFile
@@ -142,13 +143,22 @@ export default {
         }
       })
       if (res.data !== '成功') {
-        this.errorUrl = res.msg
+        this.errorUrl = res.data
         res.msg = this.$t('失败')
+        Message({
+          message:res.msg,
+          type: 'error',
+          duration:3000,
+          showClose:true
+        });
+        this.$refs.basicLayout.listData()
+      }else {
+        this.tool.showMessage(res,() => {
+          this.$refs.basicLayout.listData()
+        })
       }
       /*res.msg = '失败'*/
-      this.tool.showMessage(res,() => {
-        this.$refs.basicLayout.listData()
-      })
+
     },
   },
   mounted () {

+ 1 - 1
src/HDrpManagement/competitor/detail/modules/advantAndDisadvant/add.vue

@@ -44,7 +44,7 @@ export default {
         "sa_competitor_advid": 0,
         "inferiority": "",
         "advantage": "",
-        "isdefault": 1
+        "isdefault": 0
       }
     }
   },