From 482e411f061a6306c0ff5c013ce1de73304f7f03 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 25 Apr 2023 18:24:09 +0800 Subject: [PATCH] feat: add success text --- src/components/Excel/src/ExportExcelModal.vue | 2 +- src/layouts/default/header/components/lock/LockModal.vue | 2 +- src/locales/lang/en/common.ts | 1 + src/locales/lang/zh-CN/common.ts | 1 + src/views/base/profile/PasswordModal.vue | 7 ++++++- src/views/bpm/group/GroupModal.vue | 9 +++++++-- src/views/bpm/model/ModelModal.vue | 9 +++++++-- src/views/infra/config/ConfigModal.vue | 9 +++++++-- .../infra/dataSourceConfig/DataSourceConfigModal.vue | 9 +++++++-- src/views/infra/fileConfig/FileConfigModal.vue | 9 +++++++-- src/views/infra/job/JobModal.vue | 9 +++++++-- src/views/infra/redis/components/RedisModal.vue | 2 +- src/views/mp/account/AccountModal.vue | 9 +++++++-- src/views/mp/message/MessageModal.vue | 7 ++++++- src/views/mp/tag/TagModal.vue | 9 +++++++-- src/views/mp/user/MpUserModal.vue | 7 ++++++- src/views/pay/app/AppModal.vue | 9 +++++++-- src/views/pay/merchant/MerchantModal.vue | 9 +++++++-- src/views/system/area/AreaModal.vue | 2 +- src/views/system/dept/DeptModal.vue | 9 +++++++-- src/views/system/dict/DictDataModal.vue | 9 +++++++-- src/views/system/dict/DictTypeModal.vue | 9 +++++++-- src/views/system/errorCode/ErrorCodeModal.vue | 9 +++++++-- src/views/system/mail/account/AccountModal.vue | 9 +++++++-- src/views/system/mail/template/TemplateModal.vue | 9 +++++++-- src/views/system/menu/MenuModal.vue | 9 +++++++-- src/views/system/notice/NoticeModal.vue | 9 +++++++-- src/views/system/notify/template/TemplateModal.vue | 9 +++++++-- src/views/system/oauth2/client/ClientModal.vue | 9 +++++++-- src/views/system/post/PostModal.vue | 9 +++++++-- src/views/system/role/RoleMenuModal.vue | 7 ++++++- src/views/system/role/RoleModal.vue | 9 +++++++-- src/views/system/role/RoleScopeModal.vue | 7 ++++++- src/views/system/sensitiveWord/SensitiveWordModal.vue | 9 +++++++-- src/views/system/sms/channel/SmsChannelModal.vue | 9 +++++++-- src/views/system/sms/template/SmsTemplateModal.vue | 9 +++++++-- src/views/system/tenant/TenantModal.vue | 9 +++++++-- src/views/system/tenantPackage/TenantPackageModal.vue | 5 ++++- src/views/system/user/ResetPwdModal.vue | 7 ++++++- src/views/system/user/UserModal.vue | 9 +++++++-- src/views/system/user/UserRoleModal.vue | 7 ++++++- 41 files changed, 241 insertions(+), 66 deletions(-) diff --git a/src/components/Excel/src/ExportExcelModal.vue b/src/components/Excel/src/ExportExcelModal.vue index 3023fb48..ace790ba 100644 --- a/src/components/Excel/src/ExportExcelModal.vue +++ b/src/components/Excel/src/ExportExcelModal.vue @@ -9,8 +9,8 @@ import { BasicModal, useModalInner } from '@/components/Modal' import { BasicForm, FormSchema, useForm } from '@/components/Form' import { useI18n } from '@/hooks/web/useI18n' -const emit = defineEmits(['success', 'register']) const { t } = useI18n() +const emit = defineEmits(['success', 'register']) const schemas: FormSchema[] = [ { field: 'filename', diff --git a/src/layouts/default/header/components/lock/LockModal.vue b/src/layouts/default/header/components/lock/LockModal.vue index 6c0ca2b9..1ddac75b 100644 --- a/src/layouts/default/header/components/lock/LockModal.vue +++ b/src/layouts/default/header/components/lock/LockModal.vue @@ -22,8 +22,8 @@ import { computed } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import { useDesign } from '@/hooks/web/useDesign' -import { BasicModal, useModalInner } from '@/components/Modal' import { BasicForm, useForm } from '@/components/Form' +import { BasicModal, useModalInner } from '@/components/Modal' import { useUserStore } from '@/store/modules/user' import { useLockStore } from '@/store/modules/lock' import headerImg from '@/assets/images/header.jpg' diff --git a/src/locales/lang/en/common.ts b/src/locales/lang/en/common.ts index 8c4ba423..d6ef8707 100644 --- a/src/locales/lang/en/common.ts +++ b/src/locales/lang/en/common.ts @@ -6,6 +6,7 @@ export default { cancelText: 'Cancel', loadingText: 'Loading...', saveText: 'Save', + saveSuccessText: 'Save success', delText: 'Delete', delMessage: 'Do you want to delete data?', delSuccessText: 'Delete success', diff --git a/src/locales/lang/zh-CN/common.ts b/src/locales/lang/zh-CN/common.ts index cfa0109b..44f9b6c0 100644 --- a/src/locales/lang/zh-CN/common.ts +++ b/src/locales/lang/zh-CN/common.ts @@ -6,6 +6,7 @@ export default { cancelText: '取消', loadingText: '加载中...', saveText: '保存', + saveSuccessText: '保存成功', delText: '删除', delMessage: '是否要删除数据?', delSuccessText: '删除成功', diff --git a/src/views/base/profile/PasswordModal.vue b/src/views/base/profile/PasswordModal.vue index 64293fae..a8867b73 100644 --- a/src/views/base/profile/PasswordModal.vue +++ b/src/views/base/profile/PasswordModal.vue @@ -5,11 +5,15 @@