From f2d05d19da6fbe61efc6a24bbf35a2fd2db607e9 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Mon, 11 May 2020 14:07:28 +0800 Subject: [PATCH] up pages --- src/pages/fwgl.vue | 65 +---- src/pages/fwglList.vue | 585 +++++++++++++++++++++-------------------- src/store/index.js | 17 +- 3 files changed, 320 insertions(+), 347 deletions(-) diff --git a/src/pages/fwgl.vue b/src/pages/fwgl.vue index bd9d043..f3ae8e8 100644 --- a/src/pages/fwgl.vue +++ b/src/pages/fwgl.vue @@ -14,6 +14,7 @@ diff --git a/src/store/index.js b/src/store/index.js index 1928e04..48e245e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,15 +1,18 @@ -import Vuex from 'vuex' -import Vue from 'vue' +import Vuex from "vuex"; +import Vue from "vue"; Vue.use(Vuex); - const store = new Vuex.Store({ state: { - role: 1,//0:普通用户,1:组织管理员,2:超级管理员 + role: 1, //0:普通用户,1:组织管理员,2:超级管理员 serviceShopMenu: 0, // 服务超市侧边栏 + fwglNav: [ + ["注册发布的服务", "申请的服务", "审批的服务", "云资源服务"], //普通用户 + ["组织服务管理", "服务审批管理", "云资源管理"], //组织管理员 + ["平台服务管理", "服务审批管理", "云资源管理"], //超级管理员 + ], // 服务管理列表,onlyRead }, - modules: { - }, + modules: {}, mutations: { rolefun(state, newValue) { state.role = newValue; @@ -20,4 +23,4 @@ const store = new Vuex.Store({ }, }); -export default store \ No newline at end of file +export default store; -- 2.26.0