Compare commits
2 Commits
a9d9aa7695
...
4757078a15
Author | SHA1 | Date |
---|---|---|
a0049873 | 4757078a15 | |
a0049873 | 04aacd14a6 |
|
@ -19,7 +19,15 @@
|
|||
:key="item.key"
|
||||
@click="jumpPage(item, 'headerClick')"
|
||||
class="nav"
|
||||
:class="[{'select':item.key == select},{'select-inner':(item.key == 'DetailsPageconetent' && item.innerKey && props.targetFlag)}]"
|
||||
:class="[
|
||||
{ select: item.key == select },
|
||||
{
|
||||
'select-inner':
|
||||
item.key == 'DetailsPageconetent' &&
|
||||
item.innerKey &&
|
||||
props.targetFlag,
|
||||
},
|
||||
]"
|
||||
>
|
||||
{{ item.name }}
|
||||
</div>
|
||||
|
@ -54,6 +62,7 @@
|
|||
p-id="2187"
|
||||
width="0.35rem"
|
||||
height="0.35rem"
|
||||
@click="goToView()"
|
||||
>
|
||||
<path
|
||||
d="M544 161.536a330.666667 330.666667 0 0 1 298.666667 329.130667h-0.341334c0.213333 1.493333 0.341333 2.986667 0.341334 4.565333v219.434667h39.68a32 32 0 0 1 0 64h-212.053334a160 160 0 0 1-316.586666 0H141.909333a32 32 0 1 1 0-64h39.424v-219.434667c0-1.578667 0.128-3.072 0.341334-4.565333H181.333333a330.666667 330.666667 0 0 1 298.666667-329.130667V128a32 32 0 1 1 64 0v33.536z m-298.666667 553.130667h533.333334v-219.434667c0-1.578667 0.128-3.072 0.341333-4.565333h-0.341333a266.666667 266.666667 0 1 0-533.333334 0h-0.341333c0.213333 1.493333 0.341333 2.986667 0.341333 4.565333v219.434667z m359.765334 64H418.901333a96 96 0 0 0 186.197334 0z"
|
||||
|
@ -90,14 +99,18 @@
|
|||
</template>
|
||||
<span
|
||||
class="name"
|
||||
@click="jumpPage({ name: '个人中心', key: 'personalCenter' },'headerClick')"
|
||||
@click="
|
||||
jumpPage({ name: '个人中心', key: 'personalCenter' }, 'headerClick')
|
||||
"
|
||||
>
|
||||
{{ user.realName }}
|
||||
</span>
|
||||
</a-tooltip>
|
||||
<span @click="logout" class="out">退出</span>
|
||||
<i
|
||||
@click="jumpPage({ name: '后台管理', key: 'houtaiguanli' },'headerClick')"
|
||||
@click="
|
||||
jumpPage({ name: '后台管理', key: 'houtaiguanli' }, 'headerClick')
|
||||
"
|
||||
class="iconTo"
|
||||
v-show="backFlag"
|
||||
></i>
|
||||
|
@ -203,7 +216,10 @@
|
|||
select.value = item.key
|
||||
switch (item.name) {
|
||||
case '个人中心':
|
||||
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
|
||||
window.sessionStorage.setItem(
|
||||
'type',
|
||||
JSON.stringify('PurchaseVehicle')
|
||||
)
|
||||
router.push({
|
||||
path: '/personalCenter',
|
||||
})
|
||||
|
@ -279,7 +295,10 @@
|
|||
//select.value = item.key
|
||||
switch (item.name) {
|
||||
case '个人中心':
|
||||
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
|
||||
window.sessionStorage.setItem(
|
||||
'type',
|
||||
JSON.stringify('PurchaseVehicle')
|
||||
)
|
||||
router.push({
|
||||
path: '/personalCenter',
|
||||
})
|
||||
|
@ -295,7 +314,7 @@
|
|||
query: {
|
||||
id: targetRouter.value.id,
|
||||
},
|
||||
});
|
||||
})
|
||||
break
|
||||
case '能力云图':
|
||||
router.push({
|
||||
|
@ -321,7 +340,6 @@
|
|||
router.push('/home')
|
||||
break
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
const scrollTop = ref(0)
|
||||
|
@ -403,24 +421,32 @@
|
|||
|
||||
mybus.on('changeMenuStyle', (data) => {
|
||||
debugger
|
||||
targetRouter.value = data;
|
||||
targetRouter.value = data
|
||||
if (data.path == '/algorithmCompare') {
|
||||
jumpPage({
|
||||
"name": "能力集市",
|
||||
"key": "DetailsPageconetent",
|
||||
"innerKey":"algorithmCompare"
|
||||
},'innerClick');
|
||||
jumpPage(
|
||||
{
|
||||
name: '能力集市',
|
||||
key: 'DetailsPageconetent',
|
||||
innerKey: 'algorithmCompare',
|
||||
},
|
||||
'innerClick'
|
||||
)
|
||||
} else if (data.path == '/DetailsPageconetent') {
|
||||
jumpPage({ name: '能力集市', key: 'DetailsPageconetent' },'headerClick')
|
||||
jumpPage(
|
||||
{ name: '能力集市', key: 'DetailsPageconetent' },
|
||||
'headerClick'
|
||||
)
|
||||
} else if (data.path == '/details') {
|
||||
jumpPage({
|
||||
"name": "能力集市",
|
||||
"key": "DetailsPageconetent",
|
||||
"innerKey":"details"
|
||||
},'innerClick');
|
||||
jumpPage(
|
||||
{
|
||||
name: '能力集市',
|
||||
key: 'DetailsPageconetent',
|
||||
innerKey: 'details',
|
||||
},
|
||||
'innerClick'
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
mybus.off('getSgcNum')
|
||||
|
|
Loading…
Reference in New Issue