fix:菜单微调
This commit is contained in:
parent
b5dbf326cb
commit
d456209b2a
@ -5,7 +5,7 @@
|
|||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%" class="htglMenu">
|
<div style="height: 100%" class="htglMenu">
|
||||||
<t-menu style="width: 220px; background: #fff" :defaultValue="defaultValue" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage">
|
<t-menu style="width: 220px; background: #fff" v-model="activeMenuId" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage">
|
||||||
<div class="title">用户中心</div>
|
<div class="title">用户中心</div>
|
||||||
<!-- 循环实现 -->
|
<!-- 循环实现 -->
|
||||||
<template v-for="item in cdList">
|
<template v-for="item in cdList">
|
||||||
@ -116,10 +116,10 @@ export default {
|
|||||||
icon: 'user',
|
icon: 'user',
|
||||||
name: 'lsjy',
|
name: 'lsjy',
|
||||||
}, {
|
}, {
|
||||||
id: 'zzjggl',
|
id: 'zljggl',
|
||||||
title: '质证结果管理',
|
title: '质证结果管理',
|
||||||
icon: 'user',
|
icon: 'user',
|
||||||
name: 'zzjggl',
|
name: 'zljggl',
|
||||||
iframeUrl: "https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify",
|
iframeUrl: "https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -147,7 +147,7 @@ export default {
|
|||||||
zljgglurl: 'https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify',
|
zljgglurl: 'https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify',
|
||||||
|
|
||||||
iframeUrl: "",
|
iframeUrl: "",
|
||||||
|
activeMenuId: "qyrenzheng",
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -164,6 +164,8 @@ export default {
|
|||||||
// this.changeHandler(activeCompo);
|
// this.changeHandler(activeCompo);
|
||||||
cdId = activeCompo;
|
cdId = activeCompo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.activeMenuId = cdId;
|
||||||
this.gotoPage(cdId);
|
this.gotoPage(cdId);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -199,9 +201,12 @@ export default {
|
|||||||
if (iframeUrl) {
|
if (iframeUrl) {
|
||||||
this.iframeUrl = iframeUrl;
|
this.iframeUrl = iframeUrl;
|
||||||
} else {
|
} else {
|
||||||
|
this.iframeUrl = "";
|
||||||
|
this.$nextTick(() => {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/yhzx/" + menu.name
|
path: "/yhzx/" + menu.name
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user