diff --git a/src/components/commodity-list.vue b/src/components/commodity-list.vue index 810e37845db0833ce388a0555257aa30e8f9fa57..02525bf13bad3aeb6be648386fc5d7a69ed3075d 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); + } } - }, - }, + } + } };