Bläddra i källkod

Merge branch 'develop_yh13' of jianguan-web/jg-ocs-html into pre-release

李磊 2 år sedan
förälder
incheckning
0a32f02d85
1 ändrade filer med 11 tillägg och 4 borttagningar
  1. 11 4
      src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

+ 11 - 4
src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

@@ -167,10 +167,17 @@ export default {
       findById({ id: _this.$route.query.id }).then(res => {
         if (res.status == 200) {
           _this.infoObj = res.data
-          _this.activeKeyVal = '1'
-          _this.$nextTick(() => {
-            _this.$refs.table.refresh()
-          })
+          if (res.data.allDealerFlag != 1) {
+            _this.activeKeyVal = '1'
+            _this.$nextTick(() => {
+              _this.$refs.table.refresh()
+            })
+          } else if (res.data.allDealerFlag == 1 && res.data.allProductFlag != 1) {
+            _this.activeKeyVal = '2'
+            _this.$nextTick(() => {
+              this.$refs.setCategory.pageInit()
+            })
+          }
         }
       })
     },