From 0c5411b3aa04a9b7f4bb50bad440eac7610a0116 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Thu, 19 Dec 2024 20:43:10 +0800 Subject: [PATCH] =?UTF-8?q?fixbug:=20=F0=9F=90=9B=20=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/v1/financial/user/billUser.ts | 5 ++ src/store/financialUser/billUser.ts | 8 +++ .../account-settings/account-management.vue | 6 +- src/views/scheduler/schedulers/index.vue | 56 ++++++++++++++++--- .../schedulers/schedulers-dialog.vue | 32 +++++++++-- src/views/scheduler/schedulers/utils/hooks.ts | 1 + src/views/scheduler/schedulers/utils/types.ts | 2 + 7 files changed, 94 insertions(+), 16 deletions(-) diff --git a/src/api/v1/financial/user/billUser.ts b/src/api/v1/financial/user/billUser.ts index 687c901..e5c4037 100644 --- a/src/api/v1/financial/user/billUser.ts +++ b/src/api/v1/financial/user/billUser.ts @@ -23,6 +23,11 @@ export const fetchGetExpendOrIncome = (data: any) => { }); }; +/** 账单信息---发送账单提醒 */ +export const fetchSendBillReport = (data: any) => { + return http.request>('get', 'bill/noManage/sendBillReport', { params: data }); +}; + /** 账单信息---导出用户账单信息 */ export const fetchImportBill = (data: any) => { return http.request>('post', 'bill/noManage/importBill', { diff --git a/src/store/financialUser/billUser.ts b/src/store/financialUser/billUser.ts index 49152c8..3175ada 100644 --- a/src/store/financialUser/billUser.ts +++ b/src/store/financialUser/billUser.ts @@ -5,6 +5,7 @@ import { fetchExportBill, fetchGetUserBillList, fetchImportBill, + fetchSendBillReport, fetchUpdateUserBill, } from '@/api/v1/financial/user/billUser'; import { pageSizes } from '@/enums/baseConstant'; @@ -73,6 +74,13 @@ export const useBillUserStore = defineStore('billUserStore', { return pagination(result); }, + /** 发送账单提醒*/ + async sendBillReport(data: any) { + data = { type: data }; + const result = await fetchSendBillReport(data); + return storeMessage(result); + }, + /** 导入账单*/ async importBill(data: any) { const result = await fetchImportBill(data); diff --git a/src/views/account-settings/account-management.vue b/src/views/account-settings/account-management.vue index 75d0504..13404bd 100644 --- a/src/views/account-settings/account-management.vue +++ b/src/views/account-settings/account-management.vue @@ -9,9 +9,11 @@ import { removeToken } from '@/utils/auth'; import { useRouter } from 'vue-router'; import { usePublicHooks } from '@/views/hooks'; import { switchLoadMap, updateUserReportStatusByMouth, updateUserReportStatusByWeek, userInfos } from '@/views/account-settings/utils/hooks'; +import { useBillUserStore } from '@/store/financialUser/billUser'; const router = useRouter(); const adminUserStore = useAdminUserStore(); +const billUserStore = useBillUserStore(); const { switchStyle } = usePublicHooks(); const ruleFormByRestPasswordRef = ref(); const restPasswordForm = reactive({ @@ -79,7 +81,7 @@ const onResetPassword = () => { @click="updateUserReportStatusByWeek(0)" /> - 接受测试 + 接受测试 @@ -101,7 +103,7 @@ const onResetPassword = () => { @click="updateUserReportStatusByMouth(1)" /> - 接受测试 + 接受测试 diff --git a/src/views/scheduler/schedulers/index.vue b/src/views/scheduler/schedulers/index.vue index 533e9a6..b951156 100644 --- a/src/views/scheduler/schedulers/index.vue +++ b/src/views/scheduler/schedulers/index.vue @@ -55,19 +55,41 @@ onMounted(() => { - + - + - + - + - {{ $t('search') }} + + {{ $t('search') }} + {{ $t('buttons.reset') }} @@ -113,18 +135,36 @@ onMounted(() => { diff --git a/src/views/scheduler/schedulers/utils/hooks.ts b/src/views/scheduler/schedulers/utils/hooks.ts index a957c45..f80aba4 100644 --- a/src/views/scheduler/schedulers/utils/hooks.ts +++ b/src/views/scheduler/schedulers/utils/hooks.ts @@ -63,6 +63,7 @@ export function onUpdate(row: any) { description: row.description, jobClassName: row.jobClassName, cronExpression: row.cronExpression, + isUpdate: true, }, }, draggable: true, diff --git a/src/views/scheduler/schedulers/utils/types.ts b/src/views/scheduler/schedulers/utils/types.ts index 423558d..5be66c2 100644 --- a/src/views/scheduler/schedulers/utils/types.ts +++ b/src/views/scheduler/schedulers/utils/types.ts @@ -10,6 +10,8 @@ export interface FormItemProps { jobClassName: string; // corn表达式 cronExpression: string; + // 是否是更新 + isUpdate: boolean; } // 添加或修改表单Props