| | |
| | | this.pieChart.setOption(this.pieOption) |
| | | }, |
| | | jump(route) { |
| | | const userInfo = JSON.parse(sessionStorage.getItem("userInfo")) |
| | | |
| | | const val = userInfo.permissions.find((item) => { |
| | | return item == route.permission |
| | | const { href } = this.$router.resolve({ |
| | | path: route.path |
| | | }) |
| | | |
| | | // 修改为全部在新标签页打开 |
| | | if (val) { |
| | | const { href } = this.$router.resolve({ |
| | | path: route.path |
| | | }) |
| | | window.open(href, "_blank") |
| | | } else if (!userInfo.parentId) { |
| | | this.$router.push(route.openPath) |
| | | } |
| | | window.open(href, "_blank") |
| | | }, |
| | | refrash() {}, |
| | | handleSizeChange() {}, |