diff --git a/src/api/v1/financial/user/billUser.ts b/src/api/v1/financial/user/billUser.ts index e5c4037..c9197d6 100644 --- a/src/api/v1/financial/user/billUser.ts +++ b/src/api/v1/financial/user/billUser.ts @@ -5,6 +5,7 @@ import type { BaseResult, ResultTable } from '@/api/service/types'; export const fetchGetUserBillList = (data: any) => { data = { amount: data.amount, + categoryIds: data.categoryIds, type: data.type, description: data.description, startDate: data.startDate, diff --git a/src/store/financialUser/billUser.ts b/src/store/financialUser/billUser.ts index 3175ada..a57d02d 100644 --- a/src/store/financialUser/billUser.ts +++ b/src/store/financialUser/billUser.ts @@ -29,6 +29,8 @@ export const useBillUserStore = defineStore('billUserStore', { form: { // 类型:1 - 收入,-1 - 支出 type: undefined, + // 类别id + categoryIds: undefined, // 金额 amount: undefined, // 描述 diff --git a/src/views/configuration/emailTemplate/utils/columns.tsx b/src/views/configuration/emailTemplate/utils/columns.tsx index 598a79d..5ae5566 100644 --- a/src/views/configuration/emailTemplate/utils/columns.tsx +++ b/src/views/configuration/emailTemplate/utils/columns.tsx @@ -7,15 +7,15 @@ export const columns: TableColumnList = [ { type: 'selection', align: 'left' }, { type: 'index', index: (index: number) => index + 1, label: '序号', width: 60 }, // 模板名称 - { label: $t('emailTemplate_templateName'), prop: 'templateName' }, + { label: $t('emailTemplate_templateName'), prop: 'templateName', minWidth: 150 }, // 模板名称 - { label: $t('emailTemplate_emailUser'), prop: 'emailUser', slot: 'emailUser' }, + { label: $t('emailTemplate_emailUser'), prop: 'emailUser', slot: 'emailUser', minWidth: 200 }, // 主题 - { label: $t('emailTemplate_subject'), prop: 'subject' }, + { label: $t('emailTemplate_subject'), prop: 'subject', minWidth: 150 }, // 邮件内容 { label: $t('emailTemplate_body'), prop: 'body' }, // 邮件类型 - { label: $t('emailTemplate_type'), prop: 'summary' }, + { label: $t('emailTemplate_type'), prop: 'summary', minWidth: 150 }, // 是否默认 { label: $t('isDefault'), @@ -29,6 +29,7 @@ export const columns: TableColumnList = [ ); }, + minWidth: 100, }, { label: $t('table.updateTime'), prop: 'updateTime', sortable: true, width: 160 }, { label: $t('table.createTime'), prop: 'createTime', sortable: true, width: 160 }, diff --git a/src/views/configuration/emailUsers/utils/columns.ts b/src/views/configuration/emailUsers/utils/columns.ts index 08446a4..3780642 100644 --- a/src/views/configuration/emailUsers/utils/columns.ts +++ b/src/views/configuration/emailUsers/utils/columns.ts @@ -6,11 +6,11 @@ export const columns: TableColumnList = [ { type: 'selection', align: 'left' }, { type: 'index', index: (index: number) => index + 1, label: '序号', width: 60 }, // 邮箱 - { label: $t('emailUsers_email'), prop: 'email' }, + { label: $t('emailUsers_email'), prop: 'email', minWidth: 150 }, // 密码 - { label: $t('emailUsers_password'), prop: 'password' }, + { label: $t('emailUsers_password'), prop: 'password', minWidth: 150 }, // Host地址 - { label: $t('emailUsers_host'), prop: 'host' }, + { label: $t('emailUsers_host'), prop: 'host', minWidth: 100 }, // 端口号 { label: $t('emailUsers_port'), prop: 'port', width: 90 }, // 邮箱协议 diff --git a/src/views/financial-user/account-bill/bill/index.vue b/src/views/financial-user/account-bill/bill/index.vue index bdfa409..cdc42d0 100644 --- a/src/views/financial-user/account-bill/bill/index.vue +++ b/src/views/financial-user/account-bill/bill/index.vue @@ -16,10 +16,13 @@ import { FormInstance } from 'element-plus'; import { incomeOrExpend } from '@/enums/baseConstant'; import { getCurrentMouthDate } from '@/utils/date'; import { currentMouth, currentWeek, currentYear, shortcutsAllMouth } from '@/enums/dateEnums'; +import { useCategoryUserStore } from '@/store/financialUser/categoryUser'; const tableRef = ref(); const formRef = ref(); const billStore = useBillUserStore(); +const categoryUserStore = useCategoryUserStore(); + // 日期范围选择 const shortcuts = [ { text: $t('thisWeek'), value: currentWeek }, @@ -57,6 +60,7 @@ const resetForm = async (formEl: FormInstance | undefined) => { onMounted(() => { onSearch(); + categoryUserStore.getCategoryUserAllList(); }); @@ -70,6 +74,13 @@ onMounted(() => { + + + + + + + diff --git a/src/views/message-management/message-received/utils/columns.tsx b/src/views/message-management/message-received/utils/columns.tsx index 7ffe907..f904bef 100644 --- a/src/views/message-management/message-received/utils/columns.tsx +++ b/src/views/message-management/message-received/utils/columns.tsx @@ -8,15 +8,15 @@ export const columns: TableColumnList = [ // 消息标题 { label: $t('title'), prop: 'title' }, // 消息简介 - { label: $t('summary'), prop: 'summary' }, + { label: $t('summary'), prop: 'summary', minWidth: 150 }, // 发送人昵称 - { label: $t('sendNickname'), prop: 'sendNickname', slot: 'sendNickname' }, + { label: $t('sendNickname'), prop: 'sendNickname', minWidth: 150, slot: 'sendNickname' }, // 接受人昵称 - { label: $t('receivedUserNickname'), prop: 'receivedUserNickname', slot: 'receivedUserNickname' }, + { label: $t('receivedUserNickname'), prop: 'receivedUserNickname', minWidth: 150, slot: 'receivedUserNickname' }, // 消息类型 - { label: $t('messageType'), prop: 'messageType', slot: 'messageType' }, + { label: $t('messageType'), prop: 'messageType', minWidth: 120, slot: 'messageType' }, // 编辑器类型 - { label: $t('editorType'), prop: 'editorType' }, + { label: $t('editorType'), prop: 'editorType', minWidth: 150 }, // 封面 { label: $t('cover'), prop: 'cover', slot: 'cover', width: 80 }, // 消息等级 diff --git a/src/views/message-management/message-send/utils/columns.tsx b/src/views/message-management/message-send/utils/columns.tsx index f657820..49d1a8e 100644 --- a/src/views/message-management/message-send/utils/columns.tsx +++ b/src/views/message-management/message-send/utils/columns.tsx @@ -7,17 +7,17 @@ export const columns: TableColumnList = [ { type: 'selection', align: 'left' }, { type: 'index', index: (index: number) => index + 1, label: '序号', width: 60 }, // 消息标题 - { label: $t('title'), prop: 'title' }, + { label: $t('title'), prop: 'title', minWidth: 150 }, // 消息简介 - { label: $t('summary'), prop: 'summary' }, + { label: $t('summary'), prop: 'summary', minWidth: 200 }, // 发送人昵称 - { label: $t('sendNickname'), prop: 'sendNickname', slot: 'sendNickname' }, + { label: $t('sendNickname'), prop: 'sendNickname', slot: 'sendNickname', minWidth: 150 }, // 接受人昵称 - { label: $t('receivedUserNickname'), prop: 'receivedUserNickname' }, + { label: $t('receivedUserNickname'), prop: 'receivedUserNickname', minWidth: 150 }, // 消息类型 - { label: $t('messageType'), prop: 'messageType', slot: 'messageType' }, + { label: $t('messageType'), prop: 'messageType', slot: 'messageType', minWidth: 150 }, // 编辑器类型 - { label: $t('editorType'), prop: 'editorType' }, + { label: $t('editorType'), prop: 'editorType', minWidth: 120 }, // 封面 { label: $t('cover'), prop: 'cover', slot: 'cover', width: 80 }, // 消息等级 @@ -34,7 +34,7 @@ export const columns: TableColumnList = [ width: 100, }, // 消息等级详情 - { label: $t('extra'), prop: 'extra', slot: 'extra' }, + { label: $t('extra'), prop: 'extra', slot: 'extra', minWidth: 150 }, { label: $t('table.updateTime'), prop: 'updateTime', sortable: true, width: 160 }, { label: $t('table.createTime'), prop: 'createTime', sortable: true, width: 160 }, { label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 }, diff --git a/src/views/monitor/schedulerExecuteLog/utils/columns.ts b/src/views/monitor/schedulerExecuteLog/utils/columns.ts index 7fee62f..8728bee 100644 --- a/src/views/monitor/schedulerExecuteLog/utils/columns.ts +++ b/src/views/monitor/schedulerExecuteLog/utils/columns.ts @@ -6,17 +6,17 @@ export const columns: TableColumnList = [ { type: 'selection', align: 'left' }, { type: 'index', index: (index: number) => index + 1, label: '序号', width: 60 }, // 任务名称 - { label: $t('quartzExecuteLog_jobName'), prop: 'jobName' }, + { label: $t('quartzExecuteLog_jobName'), prop: 'jobName', minWidth: 150 }, // 任务分组 - { label: $t('quartzExecuteLog_jobGroup'), prop: 'jobGroup' }, + { label: $t('quartzExecuteLog_jobGroup'), prop: 'jobGroup', minWidth: 120 }, // 执行任务类名 - { label: $t('quartzExecuteLog_jobClassName'), prop: 'jobClassName' }, + { label: $t('quartzExecuteLog_jobClassName'), prop: 'jobClassName', minWidth: 150 }, // 执行任务core表达式 - { label: $t('quartzExecuteLog_cronExpression'), prop: 'cronExpression' }, + { label: $t('quartzExecuteLog_cronExpression'), prop: 'cronExpression', minWidth: 100 }, // 触发器名称 - { label: $t('quartzExecuteLog_triggerName'), prop: 'triggerName' }, + { label: $t('quartzExecuteLog_triggerName'), prop: 'triggerName', minWidth: 150 }, // 执行结果 - { label: $t('quartzExecuteLog_executeResult'), prop: 'executeResult', width: 410, slot: 'executeResult' }, + { label: $t('quartzExecuteLog_executeResult'), prop: 'executeResult', minWidth: 410, slot: 'executeResult' }, // 执行时间 { label: $t('quartzExecuteLog_duration'), prop: 'duration' }, { label: $t('table.updateTime'), prop: 'updateTime', sortable: true, width: 160 }, diff --git a/src/views/monitor/userLoginLog/utils/columns.ts b/src/views/monitor/userLoginLog/utils/columns.ts index 0473eb9..a5d7083 100644 --- a/src/views/monitor/userLoginLog/utils/columns.ts +++ b/src/views/monitor/userLoginLog/utils/columns.ts @@ -4,19 +4,19 @@ import { $t } from '@/plugins/i18n'; // 表格列 export const columns: TableColumnList = [ { type: 'selection', align: 'left' }, - { type: 'index', index: (index: number) => index + 1, label: '序号', width: 60 }, + { type: 'index', index: (index: number) => index + 1, label: '序号', minWidth: 60 }, // 用户名 - { label: $t('userLoginLog_username'), prop: 'username', width: 180 }, + { label: $t('userLoginLog_username'), prop: 'username', minWidth: 180 }, // 登录Ip - { label: $t('userLoginLog_ipAddress'), prop: 'ipAddress', width: 130 }, + { label: $t('userLoginLog_ipAddress'), prop: 'ipAddress', minWidth: 130 }, // 登录Ip归属地 - { label: $t('userLoginLog_ipRegion'), prop: 'ipRegion', width: 160 }, + { label: $t('userLoginLog_ipRegion'), prop: 'ipRegion', minWidth: 160 }, // 登录时代理 - { label: $t('userLoginLog_userAgent'), prop: 'userAgent' }, + { label: $t('userLoginLog_userAgent'), prop: 'userAgent', minWidth: 200 }, // 操作类型 - { label: $t('userLoginLog_type'), prop: 'type', width: 130 }, + { label: $t('userLoginLog_type'), prop: 'type', minWidth: 130 }, // 标识客户端是否是通过Ajax发送请求的 - { label: $t('userLoginLog_xRequestedWith'), prop: 'xRequestedWith', width: 150 }, + { label: $t('userLoginLog_xRequestedWith'), prop: 'xRequestedWith', minWidth: 150 }, // 登录token { label: $t('userLoginLog_token'), prop: 'token', width: 200 }, { label: $t('table.updateTime'), prop: 'updateTime', sortable: true, width: 160 },