修改菜单

master
夜笙歌 1 week ago
parent 614a9228a3
commit a21dcdb648

@ -30,7 +30,8 @@
<div class="subMenuListTitleSpan">{{ ii.configTypeName }}</div> <div class="subMenuListTitleSpan">{{ ii.configTypeName }}</div>
<i class="el-icon-arrow-down subMenuListTitleIcon1"></i> <i class="el-icon-arrow-down subMenuListTitleIcon1"></i>
</div> </div>
<div class="subMenuListItem" v-for="(iii,kkk) in ii.children" @click="toLink(subMenuPath,iii.configTypeId)"> <div class="subMenuListItem" v-for="(iii,kkk) in ii.children"
@click="toLink(subMenuPath,iii.configTypeId,true)">
<img :src="iii.configTypeIcon" alt="" <img :src="iii.configTypeIcon" alt=""
style="vertical-align: sub;width: 18px;height: 18px;line-height: 30px;object-fit: contain;margin-right: 6px"> style="vertical-align: sub;width: 18px;height: 18px;line-height: 30px;object-fit: contain;margin-right: 6px">
<span> <span>
@ -96,14 +97,17 @@ export default {
console.log(this.$route) console.log(this.$route)
}, },
methods: { methods: {
toLink(e, id) { toLink(e, id, isDetail) {
console.log(e) console.log(e)
if (!e) return if (!e) return
if (id) { let path = e
this.$router.push({path: e + '?id=' + id}) if (isDetail) {
} else { path = path + '/detail'
this.$router.push(e)
} }
if (id) {
path = path + '?id=' + id
}
this.$router.push(path)
}, },
getChildren(e) { getChildren(e) {
if (e.children) { if (e.children) {

@ -22,10 +22,14 @@ export default new Router({
{ {
path: '/productCenter', path: '/productCenter',
component: () => import('@/views/productCenter.vue'), component: () => import('@/views/productCenter.vue'),
}, {
path: '/productCenter/detail', component: () => import('@/views/productInfo.vue'),
}, },
{ {
path: '/industryPlan', path: '/industryPlan',
component: () => import('@/views/industryPlan.vue'), component: () => import('@/views/industryPlan.vue'),
}, {
path: '/industryPlan/detail', component: () => import('@/views/productInfo.vue'),
}, },
{ {
path: '/serviceSupport', path: '/serviceSupport',

Loading…
Cancel
Save