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