Sfoglia il codice sorgente

bugfix:正确显示首页的个人信息-余额未正常显示

bing 1 settimana fa
parent
commit
29f03b4519

+ 13 - 0
src/api/cardCenter/report/xfCreditaccount/index.ts

@@ -15,6 +15,19 @@ export const listXfCreditaccount = (query?: XfCreditaccountQuery): AxiosPromise<
15 15
   });
16 16
 };
17 17
 
18
+/**
19
+ * 查询资金收支明细列表
20
+ * @param query
21
+ * @returns {*}
22
+ */
23
+export const selfListXfCreditaccount = (query?: XfCreditaccountQuery): AxiosPromise<XfCreditaccountVO[]> => {
24
+  return request({
25
+    url: '/backstage/consumption/xfCreditaccount/selfList',
26
+    method: 'get',
27
+    params: query
28
+  });
29
+};
30
+
18 31
 /**
19 32
  * 查询资金收支明细详细
20 33
  * @param creditId

+ 13 - 0
src/api/consumption/report/xfConsumedetail/index.ts

@@ -14,6 +14,19 @@ export const listXfConsumedetail = (query?: monthAnalyzeQuery): AxiosPromise<XfC
14 14
   });
15 15
 };
16 16
 
17
+/**
18
+ * 查询消费明细列表
19
+ * @param query
20
+ * @returns {*}
21
+ */
22
+export const selfListXfConsumedetail = (query?: monthAnalyzeQuery): AxiosPromise<XfConsumedetailVO[]> => {
23
+  return request({
24
+    url: '/backstage/consumption/xfConsumeDetail/selfList',
25
+    method: 'get',
26
+    params: query
27
+  });
28
+};
29
+
17 30
 /**
18 31
  * 查询营业分析数据
19 32
  * @param query

+ 3 - 4
src/api/payment/bag/index.ts

@@ -3,11 +3,10 @@ import { AxiosPromise } from 'axios';
3 3
 import { PtBagVO, PtBagForm, PtBagQuery } from '@/api/payment/bag/types';
4 4
 
5 5
 
6
-export const selectAccountBalanceByIds = (userIds: any): AxiosPromise<string> => {
6
+export const selectSelfAccountBalance = (): AxiosPromise<string> => {
7 7
   return request({
8
-    url: '/backstage/payment/ptBag/selectAccountBalanceByIds',
9
-    method: 'get',
10
-    params: userIds
8
+    url: '/backstage/payment/ptBag/selectSelfAccountBalance',
9
+    method: 'get'
11 10
   });
12 11
 };
13 12
 

+ 6 - 6
src/views/index.vue

@@ -137,9 +137,9 @@ import { monitorServer } from '@/api/monitor/server';
137 137
 import Decimal from 'decimal.js';
138 138
 import { getDept } from '@/api/system/dept';
139 139
 import { getPost } from '@/api/system/params/post';
140
-import { selectAccountBalanceByIds } from '@/api/payment/bag';
141
-import { listXfConsumedetail } from '@/api/consumption/report/xfConsumedetail';
142
-import { listXfCreditaccount } from '@/api/cardCenter/report/xfCreditaccount';
140
+import { selectSelfAccountBalance } from '@/api/payment/bag';
141
+import { selfListXfConsumedetail } from '@/api/consumption/report/xfConsumedetail';
142
+import { selfListXfCreditaccount } from '@/api/cardCenter/report/xfCreditaccount';
143 143
 import { getSelectedMenu } from '@/api/system/menu';
144 144
 import { MenuVO } from '@/api/system/menu/types';
145 145
 import router from '@/router';
@@ -211,20 +211,20 @@ onMounted(() => {
211 211
     deptName.value = res.data.deptName;
212 212
   });
213 213
   // 余额
214
-  selectAccountBalanceByIds({ userIds: userStore.userId }).then((res) => {
214
+  selectSelfAccountBalance().then((res) => {
215 215
     if (res.data) {
216 216
       accountBalance.value = res.data;
217 217
     }
218 218
   });
219 219
 
220 220
   // 消费列表
221
-  listXfConsumedetail({ userId: userStore.userId, pageNum: 1, pageSize: 10 }).then((res) => {
221
+  selfListXfConsumedetail().then((res) => {
222 222
     if (res.rows) {
223 223
       consumptionList.value = res.rows;
224 224
     }
225 225
   });
226 226
   // 充值列表
227
-  listXfCreditaccount({ userId: userStore.userId, pageNum: 1, pageSize: 10 }).then((res) => {
227
+  selfListXfCreditaccount().then((res) => {
228 228
     if (res.rows) {
229 229
       rechargeList.value = res.rows;
230 230
     }