diff --git a/src/api/menu.js b/src/api/menu.js index 54ca1f4..33b3101 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -8,3 +8,12 @@ export function getPortalConfigTypeList(query) { params: query }) } + +export function selectConfigTypeList(query) { + return request({ + url: '/portal/portal/selectConfigTypeList', + method: 'get', + params: query + }) +} + diff --git a/src/components/menu/index.vue b/src/components/menu/index.vue index f78d530..c4a120d 100644 --- a/src/components/menu/index.vue +++ b/src/components/menu/index.vue @@ -49,7 +49,7 @@ import wlw from "@/assets/icon/wlw.png"; import znzz from "@/assets/icon/znzz.png"; import kdwl from "@/assets/icon/kdwl.png"; import znlt from "@/assets/icon/znlt.png"; -import {getPortalConfigTypeList} from "@/api/menu"; +import {selectConfigTypeList} from "@/api/menu"; export default { name: 'Index', @@ -126,25 +126,25 @@ export default { this.subMenuPath = '' }, getMenu() { - getPortalConfigTypeList({ + selectConfigTypeList({ configTypeClassfication: 3, parentId: 0, }).then(e => { this.menuList[1].children = e.rows }) - getPortalConfigTypeList({ + selectConfigTypeList({ configTypeClassfication: 4, parentId: 0, }).then(e => { this.menuList[2].children = e.rows }) - getPortalConfigTypeList({ + selectConfigTypeList({ configTypeClassfication: 5, parentId: 0, }).then(e => { this.menuList[3].children = e.rows }) - getPortalConfigTypeList({ + selectConfigTypeList({ configTypeClassfication: 6, parentId: 0, }).then(e => { diff --git a/src/router/index.js b/src/router/index.js index 41cc483..460e030 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,20 +22,23 @@ export default new Router({ { path: '/productCenter', component: () => import('@/views/productCenter.vue'), - }, { - path: '/productCenter/detail', component: () => import('@/views/productInfo.vue'), + }, + { + path: '/productCenter/detail', + component: () => import('@/views/productInfo.vue'), }, { path: '/industryPlan', component: () => import('@/views/industryPlan.vue'), - }, { - path: '/industryPlan/detail', component: () => import('@/views/productInfo.vue'), + }, + { + path: '/industryPlan/detail', + component: () => import('@/views/productInfo.vue'), }, { path: '/serviceSupport', component: () => import('@/views/serviceSupport.vue'), }, - { path: '/newsCenter/details', component: () => import('@/views/newsCenter/details.vue'), diff --git a/src/views/index/productCenter.vue b/src/views/index/productCenter.vue index 94f9202..8e1e485 100644 --- a/src/views/index/productCenter.vue +++ b/src/views/index/productCenter.vue @@ -40,9 +40,8 @@ export default { this.getData() }, methods:{ - toLink(e){ - this.$router.push('/productCenter/industrialInternet?portalConfigTypeId='+e.configTypeId) + this.$router.push('/productCenter?id=' + e.configTypeId) console.log(e.configTypeId) }, getData(){ @@ -52,7 +51,6 @@ export default { pageNum:1, pageSize:111 }).then(e=>{ - console.log(e) this.productList = e.rows }) } diff --git a/src/views/productInfo.vue b/src/views/productInfo.vue index a75cf46..c332ae1 100644 --- a/src/views/productInfo.vue +++ b/src/views/productInfo.vue @@ -1,5 +1,10 @@ + + {{ contentList.productInfoEtitle }} + {{ contentList.productInfoCtitle }} + + 技术参数 @@ -29,18 +34,104 @@ style="width: 100%"> + + + +