首页快捷入口跳转逻辑
Showing
2 changed files
with
19 additions
and
3 deletions
... | @@ -28,7 +28,7 @@ export default { | ... | @@ -28,7 +28,7 @@ export default { |
28 | }; | 28 | }; |
29 | }, | 29 | }, |
30 | methods: { | 30 | methods: { |
31 | handleClick(tab, event) { | 31 | handleClick(tab) { |
32 | // this.$refs.fg.$refs.isSearch = true; | 32 | // this.$refs.fg.$refs.isSearch = true; |
33 | if (tab.name != 'fg') { | 33 | if (tab.name != 'fg') { |
34 | this.fgLoad = false; | 34 | this.fgLoad = false; |
... | @@ -51,7 +51,19 @@ export default { | ... | @@ -51,7 +51,19 @@ export default { |
51 | }, | 51 | }, |
52 | }, | 52 | }, |
53 | created() {}, | 53 | created() {}, |
54 | mounted() {}, | 54 | mounted() { |
55 | if (this.$route.query.oLevel) { | ||
56 | this.activeName = this.$route.query.oLevel; | ||
57 | this.handleClick({name:this.$route.query.oLevel}); | ||
58 | this.$nextTick(()=>{ | ||
59 | if (this.$route.query.oLevel == 'hb') { | ||
60 | this.$refs.hb.tabName = this.$route.query.tLevel; | ||
61 | }else{ | ||
62 | this.$refs.fg.tabName = this.$route.query.tLevel; | ||
63 | } | ||
64 | }) | ||
65 | } | ||
66 | }, | ||
55 | computed: {}, | 67 | computed: {}, |
56 | watch: {}, | 68 | watch: {}, |
57 | }; | 69 | }; | ... | ... |
... | @@ -137,7 +137,11 @@ export default { | ... | @@ -137,7 +137,11 @@ export default { |
137 | if (!this.isEdit) { | 137 | if (!this.isEdit) { |
138 | if(item.path){ | 138 | if(item.path){ |
139 | this.$router.push({ | 139 | this.$router.push({ |
140 | path:'/dbx' | 140 | path:'/change', |
141 | query:{ | ||
142 | oLevel:'fg', | ||
143 | tLevel:'h' | ||
144 | } | ||
141 | }) | 145 | }) |
142 | } | 146 | } |
143 | } | 147 | } | ... | ... |
-
Please register or sign in to post a comment