From 0d6ecfb45cf141431566887654dfbe89f3968189 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 2 Apr 2023 23:52:56 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=BB=9F=E4=B8=80=E5=88=A0=E9=99=A4=20dia?= =?UTF-8?q?log-footer=EF=BC=8C=E5=8C=85=E6=8B=AC=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E6=A8=A1=E7=89=88=202.=20=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8F=82=E6=95=B0=E5=88=97=E8=A1=A8=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=8B=203.=20=E7=AE=80=E5=8C=96=20formatDate=204.=20?= =?UTF-8?q?=E7=9C=8B=E7=9C=8B=E6=98=AF=E4=B8=8D=E6=98=AF=E6=9C=89=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=B0=E5=A2=9E=E7=9A=84=20plain=20=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=205.=20modelVisible=20=E6=94=B9=E6=88=90=20dialogVisi?= =?UTF-8?q?ble=EF=BC=9FmodelTitle=20=E6=94=B9=E6=88=90=20dialogTitle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dict/dict.data.ts | 2 +- src/views/bpm/form/editor/index.vue | 10 +++++----- src/views/bpm/form/index.vue | 2 +- src/views/bpm/group/UserGroupForm.vue | 14 +++++++------- src/views/bpm/group/index.vue | 1 + src/views/bpm/model/ModelForm.vue | 14 +++++++------- src/views/bpm/model/ModelImportForm.vue | 8 ++++---- .../detail/TaskUpdateAssigneeForm.vue | 10 +++++----- .../bpm/taskAssignRule/TaskAssignRuleForm.vue | 10 +++++----- .../infra/apiAccessLog/ApiAccessLogDetail.vue | 6 +++--- src/views/infra/apiErrorLog/ApiErrorLogDetail.vue | 6 +++--- src/views/infra/codegen/ImportTable.vue | 8 ++++---- src/views/infra/codegen/PreviewCode.vue | 6 +++--- src/views/infra/config/form.vue | 14 +++++++------- src/views/infra/config/index.vue | 7 ++++++- src/views/infra/dataSourceConfig/form.vue | 14 +++++++------- src/views/infra/dataSourceConfig/index.vue | 1 + src/views/infra/file/form.vue | 14 +++++++------- src/views/infra/fileConfig/form.vue | 14 +++++++------- src/views/infra/fileConfig/index.vue | 1 + src/views/infra/job/JobDetail.vue | 6 +++--- src/views/infra/job/JobForm.vue | 14 +++++++------- src/views/infra/job/logger/JobLogDetail.vue | 6 +++--- src/views/mall/product/category/CategoryForm.vue | 14 +++++++------- src/views/mall/product/property/PropertyForm.vue | 14 +++++++------- src/views/mall/product/property/index.vue | 2 +- .../mall/product/property/value/ValueForm.vue | 14 +++++++------- src/views/mall/product/property/value/index.vue | 2 +- src/views/mp/account/AccountForm.vue | 14 +++++++------- src/views/mp/tag/TagForm.vue | 14 +++++++------- src/views/pay/merchant/MerchantForm.vue | 14 +++++++------- src/views/system/area/form.vue | 8 ++++---- src/views/system/area/index.vue | 2 +- src/views/system/dept/DeptForm.vue | 14 +++++++------- src/views/system/dept/index.vue | 8 +------- src/views/system/dict/data.form.vue | 14 +++++++------- src/views/system/dict/data.vue | 2 +- src/views/system/dict/form.vue | 14 +++++++------- src/views/system/dict/index.vue | 8 ++++++-- src/views/system/errorCode/form.vue | 14 +++++++------- src/views/system/errorCode/index.vue | 1 + src/views/system/loginlog/LoginLogDetail.vue | 6 +++--- src/views/system/mail/account/form.vue | 14 +++++++------- src/views/system/mail/account/index.vue | 1 + src/views/system/mail/log/detail.vue | 6 +++--- src/views/system/mail/template/form.vue | 14 +++++++------- src/views/system/mail/template/index.vue | 1 + src/views/system/mail/template/send.vue | 10 +++++----- src/views/system/menu/MenuForm.vue | 14 +++++++------- src/views/system/notice/form.vue | 14 +++++++------- src/views/system/notice/index.vue | 2 +- .../system/notify/message/NotifyMessageDetail.vue | 6 +++--- .../system/notify/my/MyNotifyMessageDetail.vue | 6 +++--- src/views/system/notify/template/index.vue | 14 +++++++------- src/views/system/oauth2/client/ClientForm.vue | 14 +++++++------- src/views/system/oauth2/client/index.vue | 2 +- src/views/system/operatelog/detail.vue | 6 +++--- src/views/system/post/PostForm.vue | 14 +++++++------- src/views/system/post/index.vue | 1 + src/views/system/role/RoleAssignMenuForm.vue | 10 +++++----- src/views/system/role/RoleDataPermissionForm.vue | 10 +++++----- src/views/system/role/RoleForm.vue | 14 +++++++------- .../system/sensitiveWord/SensitiveWordForm.vue | 14 +++++++------- .../sensitiveWord/SensitiveWordTestForm.vue | 14 ++++++-------- src/views/system/sms/channel/SmsChannelForm.vue | 14 +++++++------- src/views/system/sms/channel/index.vue | 1 + src/views/system/sms/log/SmsLogDetail.vue | 6 +++--- src/views/system/sms/template/SmsTemplateForm.vue | 14 +++++++------- .../system/sms/template/SmsTemplateSendForm.vue | 10 +++++----- src/views/system/tenant/form.vue | 14 +++++++------- src/views/system/tenant/index.vue | 7 ++++++- .../system/tenantPackage/TenantPackageForm.vue | 14 +++++++------- src/views/system/tenantPackage/index.vue | 15 +++++++++------ src/views/system/user/UserAssignRoleForm.vue | 10 +++++----- src/views/system/user/UserForm.vue | 14 +++++++------- src/views/system/user/UserImportForm.vue | 8 ++++---- src/views/system/user/index.vue | 9 +++++++-- 77 files changed, 363 insertions(+), 341 deletions(-) diff --git a/src/api/system/dict/dict.data.ts b/src/api/system/dict/dict.data.ts index 6d981326..87e7dce7 100644 --- a/src/api/system/dict/dict.data.ts +++ b/src/api/system/dict/dict.data.ts @@ -44,6 +44,6 @@ export const deleteDictData = (id: number) => { } // 导出字典类型数据 -export const exportDictDataApi = (params) => { +export const exportDictData = (params) => { return request.get({ url: '/system/dict-data/export', params }) } diff --git a/src/views/bpm/form/editor/index.vue b/src/views/bpm/form/editor/index.vue index cb7d023f..3a28697f 100644 --- a/src/views/bpm/form/editor/index.vue +++ b/src/views/bpm/form/editor/index.vue @@ -11,7 +11,7 @@ - + @@ -33,7 +33,7 @@ @@ -48,7 +48,7 @@ const message = useMessage() // 消息 const { query } = useRoute() // 路由 const designer = ref() // 表单设计器 -const modelVisible = ref(false) // 弹窗是否展示 +const dialogVisible = ref(false) // 弹窗是否展示 const formLoading = ref(false) // 表单的加载中:提交的按钮禁用 const formData = ref({ name: '', @@ -63,7 +63,7 @@ const formRef = ref() // 表单 Ref /** 处理保存按钮 */ const handleSave = () => { - modelVisible.value = true + dialogVisible.value = true } /** 提交表单 */ @@ -85,7 +85,7 @@ const submitForm = async () => { await FormApi.updateForm(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false } finally { formLoading.value = false } diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue index 616e60be..f8d94317 100644 --- a/src/views/bpm/form/index.vue +++ b/src/views/bpm/form/index.vue @@ -20,7 +20,7 @@ 搜索 重置 - + 新增 diff --git a/src/views/bpm/group/UserGroupForm.vue b/src/views/bpm/group/UserGroupForm.vue index 9496ad84..e8011d8c 100644 --- a/src/views/bpm/group/UserGroupForm.vue +++ b/src/views/bpm/group/UserGroupForm.vue @@ -1,5 +1,5 @@ @@ -50,8 +50,8 @@ import * as UserApi from '@/api/system/user' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 -const modelTitle = ref('') // 弹窗的标题 +const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ @@ -72,8 +72,8 @@ const userList = ref([]) // 用户列表 /** 打开弹窗 */ const open = async (type: string, id?: number) => { - modelVisible.value = true - modelTitle.value = t('action.' + type) + dialogVisible.value = true + dialogTitle.value = t('action.' + type) formType.value = type resetForm() // 修改时,设置数据 @@ -108,7 +108,7 @@ const submitForm = async () => { await UserGroupApi.updateUserGroup(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/group/index.vue b/src/views/bpm/group/index.vue index 0b52e9a2..0c731dbe 100644 --- a/src/views/bpm/group/index.vue +++ b/src/views/bpm/group/index.vue @@ -43,6 +43,7 @@ 重置 diff --git a/src/views/bpm/model/ModelForm.vue b/src/views/bpm/model/ModelForm.vue index ac536958..24484ec6 100644 --- a/src/views/bpm/model/ModelForm.vue +++ b/src/views/bpm/model/ModelForm.vue @@ -1,5 +1,5 @@ @@ -129,8 +129,8 @@ import * as FormApi from '@/api/bpm/form' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 -const modelTitle = ref('') // 弹窗的标题 +const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ @@ -154,8 +154,8 @@ const formList = ref([]) // 流程表单的下拉框的数据 /** 打开弹窗 */ const open = async (type: string, id?: number) => { - modelVisible.value = true - modelTitle.value = t('action.' + type) + dialogVisible.value = true + dialogTitle.value = t('action.' + type) formType.value = type resetForm() // 修改时,设置数据 @@ -203,7 +203,7 @@ const submitForm = async () => { await ModelApi.updateModel(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/model/ModelImportForm.vue b/src/views/bpm/model/ModelImportForm.vue index fe542622..76493c95 100644 --- a/src/views/bpm/model/ModelImportForm.vue +++ b/src/views/bpm/model/ModelImportForm.vue @@ -1,5 +1,5 @@ @@ -53,7 +53,7 @@ import { getAccessToken, getTenantId } from '@/utils/auth' const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中 const formData = ref({ key: '', @@ -72,7 +72,7 @@ const fileList = ref([]) // 文件列表 /** 打开弹窗 */ const open = async () => { - modelVisible.value = true + dialogVisible.value = true resetForm() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue b/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue index 7f9cfd48..0f16deeb 100644 --- a/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue +++ b/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue @@ -1,5 +1,5 @@ @@ -28,7 +28,7 @@ import * as TaskApi from '@/api/bpm/task' import * as UserApi from '@/api/system/user' -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中 const formData = ref({ id: '', @@ -43,7 +43,7 @@ const userList = ref([]) // 用户列表 /** 打开弹窗 */ const open = async (id: string) => { - modelVisible.value = true + dialogVisible.value = true resetForm() formData.value.id = id // 获得用户列表 @@ -62,7 +62,7 @@ const submitForm = async () => { formLoading.value = true try { await TaskApi.updateTaskAssignee(formData.value) - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue b/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue index a452cab9..2ddebab1 100644 --- a/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue +++ b/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue @@ -1,5 +1,5 @@ @@ -109,7 +109,7 @@ import * as UserGroupApi from '@/api/bpm/userGroup' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formData = ref({ type: Number(undefined), @@ -171,7 +171,7 @@ const open = async (modelId: string, row: TaskAssignRuleApi.TaskAssignVO) => { formData.value.scripts.push(...row.options) } // 打开弹窗 - modelVisible.value = true + dialogVisible.value = true // 获得角色列表 roleOptions.value = await RoleApi.getSimpleRoleList() @@ -232,7 +232,7 @@ const submitForm = async () => { await TaskAssignRuleApi.updateTaskAssignRule(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue b/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue index d046a521..4746b0c7 100644 --- a/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue +++ b/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue @@ -1,5 +1,5 @@