| | |
| | | <template> |
| | | <div :class="{'has-logo':showLogo}"> |
| | | |
| | | <logo v-if="showLogo" :collapse="isCollapse" /> |
| | | <logo v-if="showLogo" :collapse="isCollapse"/> |
| | | |
| | | <div |
| | | v-if="$store.state.app.sidebar.opened&&!$store.state.settings.menuIsHorizontal" |
| | |
| | | routes() { |
| | | return this.$router.options.routes |
| | | }, |
| | | // activeMenu() { |
| | | // const route = this.$route |
| | | // const { meta, path } = route |
| | | // // if set path, the sidebar will highlight the path you set |
| | | // removeCookie('ruleCode') |
| | | // setCookie('ruleCode', meta.code)// 将编码规则code存到cookie里面 |
| | | // if (meta.activeMenu) { |
| | | // return meta.activeMenu |
| | | // } |
| | | // return path |
| | | // }, |
| | | activeMenu() { |
| | | const route = this.$route |
| | | const { meta, path } = route |
| | |
| | | if (meta.activeMenu) { |
| | | return meta.activeMenu |
| | | } |
| | | |
| | | if (path.indexOf('kanbanManager') !== -1) { // 当点击智慧看板的时候 |
| | | const url = this.$router.resolve({ |
| | | path |
| | | // query: { id: 123 } |
| | | }) |
| | | const t = url.href.split('/') |
| | | |
| | | if (t[2] === 'jgcj') { |
| | | window.open('#/zhkbc?code=10101', '_blank') |
| | | } else if (t[2] === 'zscj') { |
| | | window.open('#/zhkbc?code=10102', '_blank') |
| | | } else if (t[2] === 'zpcj') { |
| | | window.open('#/zhkbc?code=10103', '_blank') |
| | | } else { |
| | | window.open('#/' + t[2], '_blank') |
| | | } |
| | | |
| | | } |
| | | |
| | | return path |
| | | }, |
| | | showLogo() { |