diff --git a/Web/src/views/home/notice/index.vue b/Web/src/views/home/notice/index.vue index 822de43d..d3b7437a 100644 --- a/Web/src/views/home/notice/index.vue +++ b/Web/src/views/home/notice/index.vue @@ -4,17 +4,21 @@ - - + + + - - - - + + + + + + + @@ -24,11 +28,12 @@ - 查询 - 重置 + {{$t('message.list.query')}} + {{$t('message.list.reset')}} + @@ -39,18 +44,19 @@ + @@ -58,7 +64,7 @@
@@ -66,7 +72,7 @@
@@ -84,6 +90,9 @@ import { Local } from '/@/utils/storage'; import { getAPI } from '/@/utils/axios-utils'; import { SysNoticeApi } from '/@/api-services/api'; import { SysNoticeUser, PageNoticeInput } from '/@/api-services/models'; +import { useI18n } from 'vue-i18n'; + +const { t } = useI18n(); const xGrid = ref(); const { removeHtml } = commonFunction(); @@ -107,18 +116,24 @@ const localPageParamKey = 'localPageParam:sysNoticeUser'; const options = useVxeTable( { id: 'sysNoticeUser', - name: '消息/站内信', + name: t('message.list.messageInbox'), columns: [ // { type: 'checkbox', width: 40, fixed: 'left' }, - { field: 'seq', type: 'seq', title: '序号', width: 60, fixed: 'left' }, - { field: 'sysNotice.title', title: '标题', minWidth: 200, showOverflow: 'tooltip' }, - { field: 'sysNotice.content', title: '内容', minWidth: 180, showOverflow: 'tooltip', slots: { default: (scope: any) => removeHtml(scope.row.sysNotice.content) } }, - { field: 'sysNotice.type', title: '类型', minWidth: 100, showOverflow: 'tooltip', slots: { default: 'row_type' } }, - { field: 'sysNotice.createTime', title: '创建时间', minWidth: 150, showOverflow: 'tooltip' }, - { field: 'readStatus', title: '阅读状态', minWidth: 100, showOverflow: 'tooltip', slots: { default: 'row_readStatus' } }, - { field: 'sysNotice.publicUserName', title: '发布者', minWidth: 120, showOverflow: 'tooltip' }, - { field: 'sysNotice.publicTime', title: '发布时间', minWidth: 150, showOverflow: 'tooltip' }, - { field: 'buttons', title: '操作', fixed: 'right', width: 100, showOverflow: true, slots: { default: 'row_buttons' } }, + { field: 'seq', type: 'seq', title: t('message.list.seq'), width: 60, fixed: 'left' }, + + + { field: 'sysNotice.title', title: t('message.list.title'), minWidth: 200, showOverflow: 'tooltip' }, + { field: 'sysNotice.content', title: t('message.list.content'), minWidth: 180, showOverflow: 'tooltip', slots: { default: (scope: any) => removeHtml(scope.row.sysNotice.content) } }, + + { field: 'sysNotice.type', title: t('message.list.type'), minWidth: 100, showOverflow: 'tooltip', slots: { default: 'row_type' } }, + { field: 'sysNotice.createTime', title: t('message.list.createTime'), minWidth: 150, showOverflow: 'tooltip' }, + + { field: 'readStatus', title: t('message.list.readStatus'), minWidth: 100, showOverflow: 'tooltip', slots: { default: 'row_readStatus' } }, + { field: 'sysNotice.publicUserName', title: t('message.list.publisher'), minWidth: 120, showOverflow: 'tooltip' }, + { field: 'sysNotice.publicTime', title: t('message.list.publishTime'), minWidth: 150, showOverflow: 'tooltip' }, + + { field: 'buttons', title: t('message.list.operation'), fixed: 'right', width: 100, showOverflow: true, slots: { default: 'row_buttons' } }, + ], }, // vxeGrid配置参数(此处可覆写任何参数),参考vxe-table官方文档