Ver Fonte

修改bug

chenrui há 2 anos atrás
pai
commit
e93db4075b

+ 6 - 6
src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

@@ -167,16 +167,16 @@ export default {
       findById({ id: _this.$route.query.id }).then(res => {
         if (res.status == 200) {
           _this.infoObj = res.data
-          if (res.data.allProductFlag != 1) {
-            _this.activeKeyVal = '2'
-            _this.$nextTick(() => {
-              this.$refs.setCategory.pageInit()
-            })
-          } else {
+          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()
+            })
           }
         }
       })