From 9cd27400dfd3662874b857cb298f0f979ae0e87f Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Wed, 11 Feb 2026 17:33:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E8=B4=A6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moneyManage/financialAccount/cashFlow.vue | 161 ++++++++++----------- .../financialAccount/performanceAttribution.vue | 6 +- 2 files changed, 81 insertions(+), 86 deletions(-) diff --git a/src/views/moneyManage/financialAccount/cashFlow.vue b/src/views/moneyManage/financialAccount/cashFlow.vue index 1fffed7..5e049a1 100644 --- a/src/views/moneyManage/financialAccount/cashFlow.vue +++ b/src/views/moneyManage/financialAccount/cashFlow.vue @@ -108,17 +108,17 @@ const fetchData = async () => { pageSize: queryParams.pageSize, fundsDTO: { jwcode: queryParams.jwcode, - localMarket:queryParams.markets, + localMarket: queryParams.markets, startTime: queryParams.timeRange?.[0] ? dayjs(queryParams.timeRange[0]).format('YYYY-MM-DD HH:mm:ss') : '', endTime: queryParams.timeRange?.[1] ? dayjs(queryParams.timeRange[1]).format('YYYY-MM-DD HH:mm:ss') : '', payType: normalizePayType(queryParams.payType || ''), orderCode: queryParams.orderCode, statuses: formatStatuses(queryParams.statuses), - markets:[], + markets: [], } } - + console.log('查询参数:', params) const res = await Moneyfunds(params) @@ -192,10 +192,10 @@ const refundFormData = ref({}) const resetRefund = () => { - refundFormData.value.refundModel = '' - refundFormData.value.refundReason = '' - refundFormData.value.permanentGold = null - refundFormData.value.freeGold = null + refundFormData.value.refundModel = '' + refundFormData.value.refundReason = '' + refundFormData.value.permanentGold = null + refundFormData.value.freeGold = null } const handleRefund = async () => { @@ -244,35 +244,35 @@ const exportListLoading = ref(false) const handleExport = async () => { const formatStatuses = (statuses) => { - // 情况1:非数组/空值 → 返回空数组 - if (!Array.isArray(statuses)) { - return []; - } - // 情况2:数组中包含 null 或 undefined → 返回空数组 - if (statuses.some(item => item === null || item === undefined)) { - return []; - } - // 情况3:正常数组 → 返回原数组 - return statuses; -}; + // 情况1:非数组/空值 → 返回空数组 + if (!Array.isArray(statuses)) { + return []; + } + // 情况2:数组中包含 null 或 undefined → 返回空数组 + if (statuses.some(item => item === null || item === undefined)) { + return []; + } + // 情况3:正常数组 → 返回原数组 + return statuses; + }; try { - const params = { + const params = { pageNum: queryParams.pageNum, pageSize: queryParams.pageSize, fundsDTO: { jwcode: queryParams.jwcode, - localMarket:queryParams.markets, + localMarket: queryParams.markets, startTime: queryParams.timeRange?.[0] ? dayjs(queryParams.timeRange[0]).format('YYYY-MM-DD HH:mm:ss') : '', endTime: queryParams.timeRange?.[1] ? dayjs(queryParams.timeRange[1]).format('YYYY-MM-DD HH:mm:ss') : '', payType: normalizePayType(queryParams.payType || ''), orderCode: queryParams.orderCode, statuses: formatStatuses(queryParams.statuses), - markets:[], + markets: [], } } // TODO: 确认导出接口 URL - const res = await exportFunds( params ) + const res = await exportFunds(params) if (res.code == 200) { console.log('导出参数', params) @@ -372,7 +372,7 @@ const findValueByLabel = (options, label) => { onMounted(async () => { await getMarket() - + // 处理从工作台跳转过来的地区参数 // 如果出现URL中的?region=a®ion=b 这种重复key,router会解析为['a','b'], 取第一个地区ID const regionName = Array.isArray(route.query.region) ? route.query.region[0] : route.query.region @@ -383,7 +383,7 @@ onMounted(async () => { queryParams.markets = [matchedId] } } - + fetchData() }) @@ -402,16 +402,9 @@ onMounted(async () => {
{{ t('common.market') }}: - +
{{ t('common.payPlatform1') }}: @@ -425,22 +418,16 @@ onMounted(async () => {
-
- {{ t('common.orderNo') }}: - -
+
+ {{ t('common.orderNo') }}: + +
-
+
{{ t('common.payTime2') }}: - +
{{ t('common.search') }} @@ -455,26 +442,34 @@ onMounted(async () => { - - + + + + - + - + - + @@ -483,36 +478,28 @@ onMounted(async () => { @@ -700,6 +687,7 @@ onMounted(async () => { box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); width: 100px; min-width: none; + .el-popper__arrow::before { background-color: #EEF5FE !important; border-color: #EEF5FE !important; @@ -707,32 +695,35 @@ onMounted(async () => { }