From ac05c908e7053520944bdc97f194bf6294ff54aa Mon Sep 17 00:00:00 2001 From: xuyiming Date: Fri, 29 May 2020 16:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=9C=8D=E5=8A=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/apass-dialog.vue | 48 +- src/components/apass-list.vue | 82 ++- src/components/apass-table.vue | 62 ++ src/pages/workbench/fwgl/fwglList.vue | 776 +++++++++++++++++--------- src/store/index.js | 2 +- 5 files changed, 691 insertions(+), 279 deletions(-) create mode 100644 src/components/apass-table.vue diff --git a/src/components/apass-dialog.vue b/src/components/apass-dialog.vue index cc4efd9..b3d9191 100644 --- a/src/components/apass-dialog.vue +++ b/src/components/apass-dialog.vue @@ -7,27 +7,35 @@ top="25vh" >

- +

-
+
-

+

-
- - 取消 +
+ - - 确定 +
@@ -40,16 +48,28 @@ export default { props: { width: { type: String, - default: () => "400px", + default: () => "420px", }, title: { type: String, - default: () => "提示", + default: () => "", }, msg: { type: String, default: () => "", }, + cancelText: { + type: String, + default: () => "", + }, + sunbmitText: { + type: String, + default: () => "", + }, + submit: { + type: Function, + default: () => null, + }, }, data: () => ({ showDialog: false, @@ -62,7 +82,11 @@ export default { this.showDialog = false; }, dialogSubmit() { - this.$emit("submit"); + if (typeof this.submit === "function") { + this.submit(); + } else { + this.$emit("submit"); + } this.hide(); }, }, diff --git a/src/components/apass-list.vue b/src/components/apass-list.vue index 6c73ecd..c7ad310 100644 --- a/src/components/apass-list.vue +++ b/src/components/apass-list.vue @@ -6,6 +6,18 @@
+ + {{ showListFilter ? "收起" : "筛选" }} + +
@@ -13,7 +25,7 @@
+ + +
-
+ +
+
+ +
+ @@ -125,6 +184,9 @@ export default { .header-container .el-button + .el-button { margin-left: 25px; } +.apass_filter { + margin-top: 10px; +} .cross_line { border-top: 1px solid #e3e5ef; margin: 20px -20px 0; diff --git a/src/components/apass-table.vue b/src/components/apass-table.vue new file mode 100644 index 0000000..8e09813 --- /dev/null +++ b/src/components/apass-table.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/pages/workbench/fwgl/fwglList.vue b/src/pages/workbench/fwgl/fwglList.vue index 4428d30..a7bac7b 100644 --- a/src/pages/workbench/fwgl/fwglList.vue +++ b/src/pages/workbench/fwgl/fwglList.vue @@ -1,73 +1,142 @@ diff --git a/src/store/index.js b/src/store/index.js index cf5d245..1cea098 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -7,7 +7,7 @@ const store = new Vuex.Store({ role: 2, // 0:普通用户,1:组织管理员,2:超级管理员 serviceShopMenu: "shopDataList", // 服务超市侧边栏 fwglNav: [ - ["注册发布的服务", "申请的服务", "审批的服务", "云资源服务"], // 普通用户 + ["注册发布的服务", "申请的服务", "云资源服务"], // 普通用户 ["组织服务管理", "服务审批管理", "云资源管理"], // 组织管理员 ["平台服务管理", "服务审批管理", "云资源管理"], // 超级管理员 ], // 服务管理列表,onlyRead -- 2.26.0