|
@@ -13,10 +13,10 @@
|
|
|
<div @mouseleave="target = true">
|
|
|
<div :class="[target ? 'nav-div1' : 'nav-div2']">
|
|
|
<el-tooltip v-if="!target" class="item" effect="dark" content="工具集合" placement="right">
|
|
|
- <div class="div-child" @click="$router.push({ name: 'Interface' })"><svg-icon icon-class="b_工具集合" /></div>
|
|
|
+ <div class="div-child" @click="goto('Interface')"><svg-icon icon-class="b_工具集合" /></div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip v-if="!target" class="item" effect="dark" content="环境平台" placement="right">
|
|
|
- <div class="div-child" @click="$router.push({ name: 'env' })"><svg-icon icon-class="b_环境平台" /></div>
|
|
|
+ <div class="div-child" @click="goto('env')"><svg-icon icon-class="b_环境平台" /></div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
<div class="nav-div3 nav-circular" />
|
|
@@ -60,6 +60,7 @@ import routes from '@/router/newRouter'
|
|
|
import websocket from '@/views/workbench/mixins/websocket'
|
|
|
import { memberGetLoginInMemberInfoByLdap } from '@/api/projectIndex'
|
|
|
import { logoutUrl } from '@/apiConfig/requestIP.js'
|
|
|
+import { log } from '@/utils/global'
|
|
|
export default {
|
|
|
mixins: [websocket],
|
|
|
data() {
|
|
@@ -84,6 +85,10 @@ export default {
|
|
|
this.getLoginUser()
|
|
|
},
|
|
|
methods: {
|
|
|
+ goto(name) {
|
|
|
+ log({ c: 'project', d: `goto_${name}` })
|
|
|
+ this.$router.push({ name })
|
|
|
+ },
|
|
|
getTarget() {
|
|
|
this.target = !this.target
|
|
|
},
|
|
@@ -105,6 +110,11 @@ export default {
|
|
|
},
|
|
|
// 设置二级导航类型
|
|
|
setNavTagType(type) {
|
|
|
+ if (type === 2) {
|
|
|
+ log({ c: 'sys_setting', d: 'change_nav_bar_top' })
|
|
|
+ } else {
|
|
|
+ log({ c: 'sys_setting', d: 'change_nav_bar_side' })
|
|
|
+ }
|
|
|
this.$store.dispatch('global/setNavTagType', type)
|
|
|
localStorage.setItem('navTagType', type)
|
|
|
},
|