chenrui 2 éve
szülő
commit
ed50696f43

+ 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.allProductFlag != 1) {
+            _this.activeKeyVal = '2'
+            _this.$nextTick(() => {
+              this.$refs.setCategory.pageInit()
+            })
+          } else {
+            _this.activeKeyVal = '1'
+            _this.$nextTick(() => {
+              _this.$refs.table.refresh()
+            })
+          }
         }
       })
     },