diff --git a/src/components/CustomModal/index.vue b/src/components/CustomModal/index.vue
index a463199..7ec8c42 100644
--- a/src/components/CustomModal/index.vue
+++ b/src/components/CustomModal/index.vue
@@ -1,12 +1,22 @@
-
+
@@ -24,24 +34,24 @@
export default {
props: {
value: {
- type: Boolean
+ type: Boolean,
},
okHandler: {
- type: Function
+ type: Function,
},
title: {
- type: String
+ type: String,
},
enableFullScreen: {
type: Boolean,
- default: false
- }
+ default: false,
+ },
},
data() {
return {
visible: this.value,
confirmLoading: false,
- innerFullscreen: false
+ innerFullscreen: false,
}
},
watch: {
@@ -56,7 +66,7 @@ export default {
},
innerFullscreen(val) {
this.$emit('fullscreen', val)
- }
+ },
},
methods: {
async onSave() {
@@ -64,7 +74,7 @@ export default {
try {
this.confirmLoading = true
const success = await this.okHandler()
- if(success !== false) {
+ if (success !== false) {
this.visible = false
}
} catch (error) {
@@ -80,8 +90,8 @@ export default {
this.visible = false
},
handleCancel() {
- this.$emit("cancel")
- }
+ this.$emit('cancel')
+ },
},
computed: {
_attrs() {
@@ -96,8 +106,8 @@ export default {
// 是否有自定义的footer
hasCustomFooter() {
return !!this.$slots['custom-footer']
- }
- }
+ },
+ },
}
\ No newline at end of file
diff --git a/src/views/system/modules/SelectUserModal.vue b/src/views/system/modules/SelectUserModal.vue
index 228498e..4120d5e 100644
--- a/src/views/system/modules/SelectUserModal.vue
+++ b/src/views/system/modules/SelectUserModal.vue
@@ -5,29 +5,27 @@
:title="title"
:width="1000"
:visible="visible"
+ :maskClosable="false"
@ok="handleOk"
@cancel="handleCancel"
:cancelButtonProps="{ props: { type: 'warn' } }"
- cancelText="Cancel">
-
-
+ cancelText="Cancel"
+ >
-
+
-
-
- Search
- Reset
-
+
+ Search
+ Reset
+
-
@@ -42,248 +40,249 @@
:pagination="ipagination"
:loading="loading"
:scroll="{ y: 240 }"
- :rowSelection="{selectedRowKeys: selectedRowKeys,onSelectAll:onSelectAll,onSelect:onSelect,onChange: onSelectChange}"
- @change="handleTableChange">
-
+ :rowSelection="{
+ selectedRowKeys: selectedRowKeys,
+ onSelectAll: onSelectAll,
+ onSelect: onSelect,
+ onChange: onSelectChange,
+ }"
+ @change="handleTableChange"
+ >
-
-
\ No newline at end of file