From e0919d59e7cb30262e72b5e577adf2cf84b6efc5 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Thu, 28 May 2020 18:25:30 +0800 Subject: [PATCH] =?UTF-8?q?apassDialog=E5=BC=B9=E7=AA=97=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=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 | 33 ++++++++++++++++++++++++++-- src/components/dialog-action.vue | 15 +++++++------ src/components/dialog-remove.vue | 13 ++++++----- src/pages/authority/organization.vue | 23 +++++-------------- src/pages/authority/users.vue | 24 ++++++-------------- 5 files changed, 59 insertions(+), 49 deletions(-) diff --git a/src/components/apass-dialog.vue b/src/components/apass-dialog.vue index 53e7d8c..b138390 100644 --- a/src/components/apass-dialog.vue +++ b/src/components/apass-dialog.vue @@ -9,12 +9,27 @@

-
+ +
-
+

+ +
+
+ + 取消 + + + 确定 + +
@@ -31,6 +46,10 @@ export default { type: String, default: () => "", }, + msg: { + type: String, + default: () => "", + }, }, data: () => ({ showDialog: false, @@ -42,6 +61,10 @@ export default { hide() { this.showDialog = false; }, + dialogSubmit() { + this.$emit("submit"); + this.hide(); + }, }, }; @@ -64,6 +87,12 @@ export default { font-weight: bold; color: #1d1e20; } +.dialog_msg { + font-size: 18px; + line-height: 34px; + color: #58617a; + margin: 30px 0 10px; +} diff --git a/src/components/dialog-remove.vue b/src/components/dialog-remove.vue index bf05ea5..2cd1ecd 100644 --- a/src/components/dialog-remove.vue +++ b/src/components/dialog-remove.vue @@ -4,6 +4,7 @@ :visible.sync="show" width="400px" top="25vh" + class="dialog_action" :class="this.confirmModalOptions.className ? this.confirmModalOptions.className : 'user-dialog'" > @@ -109,7 +110,7 @@ export default { }; \ No newline at end of file diff --git a/src/pages/authority/organization.vue b/src/pages/authority/organization.vue index 03092c6..cc2d496 100644 --- a/src/pages/authority/organization.vue +++ b/src/pages/authority/organization.vue @@ -30,16 +30,12 @@ > - -

确认删除该组织吗?

- +
@@ -170,17 +166,10 @@ export default { console.log(value); }, deleteAction(item) { - this.dialogShow(); - }, - dialogShow() { this.$refs.dialog.show(); }, - dialogHide() { - this.$refs.dialog.hide(); - }, dialogSubmit() { console.log("dialog submit"); - this.dialogHide(); }, }, }; diff --git a/src/pages/authority/users.vue b/src/pages/authority/users.vue index c958944..90691f6 100644 --- a/src/pages/authority/users.vue +++ b/src/pages/authority/users.vue @@ -76,7 +76,12 @@ - + -
@@ -189,7 +186,7 @@ export default { }, setRole(item) { console.log("setRole " + item.name); - this.dialogShow(); + this.$refs.dialog.show(); }, setState(item) { console.log("setState " + item.name); @@ -197,15 +194,8 @@ export default { dialogSelectionChange(values) { console.log(values); }, - dialogShow() { - this.$refs.dialog.show(); - }, - dialogHide() { - this.$refs.dialog.hide(); - }, dialogSubmit() { console.log("dialog submit"); - this.dialogHide(); }, }, }; -- 2.26.0