diff --git a/README.md b/README.md
index 21dddef..ac91194 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,8 @@
## 开发进度
- axios token刷新 未完成
-- router 增加基础首页 未完成
-- 系统管理 页面适配 进行中
-- 基础设施 页面适配 进行中
+- 系统管理 页面适配 80%
+- 基础设施 页面适配 30%
- 支付管理 页面适配 未完成
- 工作流 页面适配 未完成
diff --git a/src/locales/lang/en/action.ts b/src/locales/lang/en/action.ts
index 4307a74..faa11d5 100644
--- a/src/locales/lang/en/action.ts
+++ b/src/locales/lang/en/action.ts
@@ -1,6 +1,9 @@
export default {
create: 'Create',
edit: 'Edit',
+ test: 'Test',
delete: 'Delete',
- detail: 'Detail'
+ detail: 'Detail',
+ export: 'Export',
+ import: 'Import'
}
diff --git a/src/locales/lang/en/common.ts b/src/locales/lang/en/common.ts
index 12c04a2..fa00a51 100644
--- a/src/locales/lang/en/common.ts
+++ b/src/locales/lang/en/common.ts
@@ -7,7 +7,10 @@ export default {
loadingText: 'Loading...',
saveText: 'Save',
delText: 'Delete',
+ delMessage: 'Do you want to delete data?',
delSuccessText: 'Delete success',
+ exportTitle: 'Export',
+ exportMessage: 'Do you want to export data?',
exportSuccessText: 'Export success',
resetText: 'Reset',
searchText: 'Search',
diff --git a/src/locales/lang/zh-CN/action.ts b/src/locales/lang/zh-CN/action.ts
index a895f4c..62d5a21 100644
--- a/src/locales/lang/zh-CN/action.ts
+++ b/src/locales/lang/zh-CN/action.ts
@@ -1,6 +1,9 @@
export default {
create: '新增',
edit: '修改',
+ test: '测试',
delete: '删除',
- detail: '详情'
+ detail: '详情',
+ export: '导出',
+ import: '导入'
}
diff --git a/src/locales/lang/zh-CN/common.ts b/src/locales/lang/zh-CN/common.ts
index f85de40..01daabd 100644
--- a/src/locales/lang/zh-CN/common.ts
+++ b/src/locales/lang/zh-CN/common.ts
@@ -7,7 +7,10 @@ export default {
loadingText: '加载中...',
saveText: '保存',
delText: '删除',
+ delMessage: '是否要删除数据?',
delSuccessText: '删除成功',
+ exportTitle: '导出',
+ exportMessage: '是否要导出数据?',
exportSuccessText: '导出成功',
resetText: '重置',
searchText: '搜索',
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 68d4dbc..8f77990 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -2,9 +2,9 @@
- 新增
- 展开全部
- 折叠全部
+ {{ t('action.create') }}
+ {{ t('component.tree.expandAll') }}
+ {{ t('component.tree.unExpandAll') }}
{{ userNicknameFormat(text) }}
@@ -15,13 +15,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -35,18 +37,19 @@
diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue
index 45acd72..1cb1314 100644
--- a/src/views/system/errorCode/index.vue
+++ b/src/views/system/errorCode/index.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,15 +11,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -33,13 +33,13 @@
diff --git a/src/views/system/loginlog/index.vue b/src/views/system/loginlog/index.vue
index 06946a1..f2d1297 100644
--- a/src/views/system/loginlog/index.vue
+++ b/src/views/system/loginlog/index.vue
@@ -2,17 +2,17 @@
- 导出
+ {{ t('action.export') }}
diff --git a/src/views/system/mail/template/index.vue b/src/views/system/mail/template/index.vue
index c8baa4b..189592a 100644
--- a/src/views/system/mail/template/index.vue
+++ b/src/views/system/mail/template/index.vue
@@ -2,7 +2,7 @@
- 新增
+ {{ t('action.create') }}
@@ -10,15 +10,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -32,13 +32,15 @@
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index 9ea52a7..9f25028 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -2,9 +2,9 @@
- 新增
- 展开全部
- 折叠全部
+ {{ t('action.create') }}
+ {{ t('component.tree.expandAll') }}
+ {{ t('component.tree.unExpandAll') }}
@@ -12,15 +12,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -34,14 +34,16 @@
diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue
index a15e2ea..bd2d1cb 100644
--- a/src/views/system/notice/index.vue
+++ b/src/views/system/notice/index.vue
@@ -2,7 +2,7 @@
- 新增
+ {{ t('action.create') }}
@@ -10,15 +10,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -32,13 +32,15 @@
diff --git a/src/views/system/oauth2/client/index.vue b/src/views/system/oauth2/client/index.vue
index b1659b7..0c027ee 100644
--- a/src/views/system/oauth2/client/index.vue
+++ b/src/views/system/oauth2/client/index.vue
@@ -2,7 +2,7 @@
- 新增
+ {{ t('action.create') }}
@@ -10,15 +10,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -32,13 +32,15 @@
diff --git a/src/views/system/oauth2/token/index.vue b/src/views/system/oauth2/token/index.vue
index 5d1813c..0574854 100644
--- a/src/views/system/oauth2/token/index.vue
+++ b/src/views/system/oauth2/token/index.vue
@@ -23,11 +23,13 @@
diff --git a/src/views/system/operatelog/index.vue b/src/views/system/operatelog/index.vue
index 088955a..a62ad46 100644
--- a/src/views/system/operatelog/index.vue
+++ b/src/views/system/operatelog/index.vue
@@ -2,7 +2,7 @@
- 导出
+ {{ t('action.export') }}
@@ -31,9 +31,9 @@ const [registerTable, { getForm }] = useTable({
async function handleExport() {
createConfirm({
- title: '导出',
+ title: t('common.exportTitle'),
iconType: 'warning',
- content: '是否要导出数据?',
+ content: t('common.exportMessage'),
async onOk() {
await exportOperateLogApi(getForm().getFieldsValue() as OperateLogPageReqVO)
createMessage.success(t('common.exportSuccessText'))
diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue
index 797cb5e..32a4651 100644
--- a/src/views/system/post/index.vue
+++ b/src/views/system/post/index.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,15 +11,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -33,17 +33,18 @@
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index e553b3b..572c93b 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,7 +11,7 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
}
]"
@@ -28,10 +28,10 @@
},
{
icon: 'ant-design:delete-outlined',
- label: '删除',
color: 'error',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -45,13 +45,13 @@
diff --git a/src/views/system/sensitiveWord/index.vue b/src/views/system/sensitiveWord/index.vue
index b606632..a670333 100644
--- a/src/views/system/sensitiveWord/index.vue
+++ b/src/views/system/sensitiveWord/index.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,15 +11,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -62,7 +62,7 @@ const [registerTable, { getForm, reload }] = useTable({
showIndexColumn: false,
actionColumn: {
width: 160,
- title: '操作',
+ title: t('common.action'),
dataIndex: 'action',
fixed: 'right'
}
@@ -83,9 +83,9 @@ function handleEdit(record: Recordable) {
async function handleExport() {
createConfirm({
- title: '导出',
+ title: t('common.exportTitle'),
iconType: 'warning',
- content: '是否要导出数据?',
+ content: t('common.exportMessage'),
async onOk() {
await exportSensitiveWordApi(getForm().getFieldsValue() as SensitiveWordExportReqVO)
createMessage.success(t('common.exportSuccessText'))
@@ -95,7 +95,7 @@ async function handleExport() {
async function handleDelete(record: Recordable) {
await deleteSensitiveWordApi(record.id)
- createMessage.success('删除成功')
+ createMessage.success(t('common.delSuccessText'))
reload()
}
diff --git a/src/views/system/sms/SmsTemplateModel.vue b/src/views/system/sms/SmsTemplateModel.vue
index d4717d0..0740c04 100644
--- a/src/views/system/sms/SmsTemplateModel.vue
+++ b/src/views/system/sms/SmsTemplateModel.vue
@@ -38,7 +38,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
}
})
-const getTitle = computed(() => (!unref(isUpdate) ? '新增岗位' : '编辑岗位'))
+const getTitle = computed(() => (!unref(isUpdate) ? '新增短信模版' : '编辑短信模版'))
async function handleSubmit() {
try {
diff --git a/src/views/system/sms/smsLog.vue b/src/views/system/sms/smsLog.vue
index e947079..07d9650 100644
--- a/src/views/system/sms/smsLog.vue
+++ b/src/views/system/sms/smsLog.vue
@@ -2,7 +2,7 @@
- 导出
+ {{ t('action.export') }}
@@ -31,9 +31,9 @@ const [registerTable, { getForm }] = useTable({
async function handleExport() {
createConfirm({
- title: '导出',
+ title: t('common.exportTitle'),
iconType: 'warning',
- content: '是否要导出数据?',
+ content: t('common.exportMessage'),
async onOk() {
await exportSmsLogApi(getForm().getFieldsValue() as SmsLogExportReqVO)
createMessage.success(t('common.exportSuccessText'))
diff --git a/src/views/system/sms/smsTemplate.vue b/src/views/system/sms/smsTemplate.vue
index fdf1a72..7342187 100644
--- a/src/views/system/sms/smsTemplate.vue
+++ b/src/views/system/sms/smsTemplate.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,20 +11,20 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '测试',
+ label: t('action.test'),
onClick: handleSendSms.bind(null, record)
},
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -62,7 +62,7 @@ const [registerTable, { getForm, reload }] = useTable({
showIndexColumn: false,
actionColumn: {
width: 240,
- title: '操作',
+ title: t('common.action'),
dataIndex: 'action',
fixed: 'right'
}
@@ -87,9 +87,9 @@ function handleEdit(record: Recordable) {
async function handleExport() {
createConfirm({
- title: '导出',
+ title: t('common.exportTitle'),
iconType: 'warning',
- content: '是否要导出数据?',
+ content: t('common.exportMessage'),
async onOk() {
await exportSmsTemplateApi(getForm().getFieldsValue() as SmsTemplateExportReqVO)
createMessage.success(t('common.exportSuccessText'))
@@ -99,7 +99,7 @@ async function handleExport() {
async function handleDelete(record: Recordable) {
await deleteSmsTemplateApi(record.id)
- createMessage.success('删除成功')
+ createMessage.success(t('common.delSuccessText'))
reload()
}
diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue
index 913c63a..d71d159 100644
--- a/src/views/system/tenant/index.vue
+++ b/src/views/system/tenant/index.vue
@@ -2,8 +2,8 @@
- 新增
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -11,15 +11,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -57,7 +57,7 @@ const [registerTable, { getForm, reload }] = useTable({
showIndexColumn: false,
actionColumn: {
width: 160,
- title: '操作',
+ title: t('common.action'),
dataIndex: 'action',
fixed: 'right'
}
@@ -78,9 +78,9 @@ function handleEdit(record: Recordable) {
async function handleExport() {
createConfirm({
- title: '导出',
+ title: t('common.exportTitle'),
iconType: 'warning',
- content: '是否要导出数据?',
+ content: t('common.exportMessage'),
async onOk() {
await exportTenantApi(getForm().getFieldsValue() as TenantExportReqVO)
createMessage.success(t('common.exportSuccessText'))
@@ -90,7 +90,7 @@ async function handleExport() {
async function handleDelete(record: Recordable) {
await deleteTenantApi(record.id)
- createMessage.success('删除成功')
+ createMessage.success(t('common.delSuccessText'))
reload()
}
diff --git a/src/views/system/tenantPackage/index.vue b/src/views/system/tenantPackage/index.vue
index 0c38e02..952b434 100644
--- a/src/views/system/tenantPackage/index.vue
+++ b/src/views/system/tenantPackage/index.vue
@@ -2,7 +2,7 @@
- 新增
+ {{ t('action.create') }}
@@ -10,15 +10,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '修改',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -32,13 +32,15 @@
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 56b01bf..e44f2e6 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -3,8 +3,8 @@
- 新增账号
- 导出
+ {{ t('action.create') }}
+ {{ t('action.export') }}
@@ -12,15 +12,15 @@
:actions="[
{
icon: 'clarity:note-edit-line',
- label: '编辑',
+ label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
- label: '删除',
+ label: t('action.delete'),
popConfirm: {
- title: '是否确认删除',
+ title: t('common.delMessage'),
placement: 'left',
confirm: handleDelete.bind(null, record)
}
@@ -35,14 +35,14 @@