From 53068d846f1bf9242caba0a1b967e84a7c8eb5c5 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 20 May 2020 14:53:55 +0800 Subject: [PATCH] =?UTF-8?q?+=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commodity-list.vue | 2 +- src/components/menu.vue | 103 ++++++++++++++---------------- 2 files changed, 48 insertions(+), 57 deletions(-) diff --git a/src/components/commodity-list.vue b/src/components/commodity-list.vue index 810e378..02525bf 100644 --- a/src/components/commodity-list.vue +++ b/src/components/commodity-list.vue @@ -15,7 +15,7 @@
共 {{ pagination.total }} 个条目
-
每页行数:
+
每页条数:
-
+
99+
@@ -36,24 +28,16 @@ class="shop_img" />
-

- {{ item.name }} -

+

{{ item.name }}

{{ item.type }}

{{ item.creator }}

- +
@@ -68,24 +52,14 @@ :style="{ color: now_menu == index ? '#fff' : '' }" > {{ item.name }} -
+
- {{ v.name }} -
+ >{{ v.name }}
-
+
@@ -100,10 +74,24 @@ export default { { name: "工作台", path: "/workplace", + children: [ + { + name: "服务注册", + path: "/fwzc/fwcs" + }, + { + name: "服务管理", + path: "/fwgl/" + }, + { + name: "应用管理", + path: "/yygl/" + } + ] }, { name: "技术支持", - path: "/xxx", + path: "/xxx" }, { name: "服务超市", @@ -111,34 +99,34 @@ export default { children: [ { name: "数据服务", - path: "/shop/data_service_list", + path: "/shop/data_service_list" }, { name: "时空服务", - path: "/shop/space_time_service_list", + path: "/shop/space_time_service_list" }, { name: "视频服务", - path: "/shop/video_service_list", + path: "/shop/video_service_list" }, { name: "感知服务", - path: "/shop/perception_service_list", + path: "/shop/perception_service_list" }, { name: "综合应用", - path: "/shop/comprehensive_app_list", + path: "/shop/comprehensive_app_list" }, { name: "云资源服务", - path: "/shop/cloud", + path: "/shop/cloud" }, { name: "应用商店", - path: "/shop/app_store_list", - }, - ], - }, + path: "/shop/app_store_list" + } + ] + } ], now_menu: 2, user_arr: [ @@ -146,7 +134,7 @@ export default { "消息通知", "收银中心", "关于BD-aPaaS", - "退出登录", + "退出登录" ], shopping_list: [ { @@ -159,7 +147,7 @@ export default { num: 2, checkedSubscription: false, specification: 1, - specificationApplication: 2, + specificationApplication: 2 }, { id: 1, @@ -170,7 +158,7 @@ export default { num: 2, checkedSubscription: false, specification: 1, - specificationApplication: 2, + specificationApplication: 2 }, { id: 2, @@ -182,9 +170,9 @@ export default { num: 2, checkedSubscription: true, specification: 1, - specificationApplication: 2, - }, - ], + specificationApplication: 2 + } + ] }; }, methods: { @@ -203,12 +191,15 @@ export default { this.now_menu = index; }, gotoChildPage(v) { - console.log(v) if (v.path) { - this.$router.push(v.path); + if (v.path == "/fwgl/" || v.path == "/yygl/") { + this.$router.push(v.path + this.$store.state.role); + } else { + this.$router.push(v.path); + } } - }, - }, + } + } }; -- 2.26.0