chenrui преди 2 години
родител
ревизия
e93db4075b
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

+ 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()
+            })
           }
         }
       })