File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
src/views/system/mail/account Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const rules = reactive({
23
23
sslEnable : [ required ]
24
24
} )
25
25
26
- // CrudSchema
26
+ // CrudSchema:https://kailong110120130.gitee.io/vue-element-plus-admin-doc/hooks/useCrudSchemas.html
27
27
const crudSchemas = reactive < CrudSchema [ ] > ( [
28
28
{
29
29
label : '邮箱' ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Dialog :title =" modelTitle" v-model =" modelVisible" >
3
- <!-- TODO 芋艿:loading -->
4
- <Form ref =" formRef" :schema =" allSchemas.formSchema" :rules =" rules" :isCol =" false" />
3
+ <Form ref =" formRef" :schema =" allSchemas.formSchema" :rules =" rules" v-loading =" formLoading" />
5
4
<template #footer >
6
5
<el-button @click =" submitForm" type =" primary" :disabled =" formLoading" >确 定</el-button >
7
6
<el-button @click =" modelVisible = false" >取 消</el-button >
12
11
import * as MailAccountApi from ' @/api/system/mail/account'
13
12
import { rules , allSchemas } from ' ./account.data'
14
13
15
- const formRef = ref () // 表单 Ref
16
14
const { t } = useI18n () // 国际化
17
15
const message = useMessage () // 消息弹窗
18
16
19
17
const modelVisible = ref (false ) // 弹窗的是否展示
20
18
const modelTitle = ref (' ' ) // 弹窗的标题
21
19
const formLoading = ref (false ) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
22
20
const formType = ref (' ' ) // 表单的类型:create - 新增;update - 修改
21
+ const formRef = ref () // 表单 Ref
23
22
24
23
/** 打开弹窗 */
25
24
const openModal = async (type : string , id ? : number ) => {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<!-- 搜索工作栏 -->
3
- <ContentWrap >
3
+ <content-wrap >
4
4
<Search :schema =" allSchemas.searchSchema" @search =" setSearchParams" @reset =" setSearchParams" >
5
5
<!-- 新增等操作按钮 -->
6
6
<template #actionMore >
13
13
</el-button >
14
14
</template >
15
15
</Search >
16
- </ContentWrap >
16
+ </content-wrap >
17
17
18
18
<!-- 列表 -->
19
- <ContentWrap >
19
+ <content-wrap >
20
20
<Table
21
21
:columns =" allSchemas.tableColumns"
22
22
:data =" tableObject.tableList"
46
46
</el-button >
47
47
</template >
48
48
</Table >
49
- </ContentWrap >
49
+ </content-wrap >
50
50
51
51
<!-- 表单弹窗:添加/修改 -->
52
- <MailAccountForm ref =" modalRef" @success =" getList" />
52
+ <mail-account-form ref =" modalRef" @success =" getList" />
53
53
</template >
54
54
<script setup lang="ts" name="MailAccount">
55
55
import { allSchemas } from ' ./account.data'
You can’t perform that action at this time.
0 commit comments