From c8b5697264cbc6a45ecdf3943c8bff6cea703716 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 21 Jun 2024 20:30:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=8A=9F=E8=83=BD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=EF=BC=8C=E5=8E=9F=E6=9C=89bug=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.js | 4 +- src/pages.json | 126 +++++- src/pages/mine.vue | 5 +- .../accounts/accountDealRecord/addEdit.vue | 2 +- .../work/accounts/accountDealRecord/list.vue | 44 +- .../work/accounts/accounts/commonList.vue | 47 +- src/pages/work/accounts/accounts/list.vue | 42 +- .../accounts/creditTransferRecord/list.vue | 46 +- .../accounts/debitTransferRecord/list.vue | 43 +- .../work/accounts/posTransferRecord/list.vue | 43 +- src/pages/work/base/credit/index.vue | 208 --------- src/pages/work/base/creditCard/addEdit.vue | 288 ++++++++++++ src/pages/work/base/creditCard/details.vue | 104 +++++ src/pages/work/base/creditCard/list.vue | 363 +++++++++++++++ src/pages/work/base/debitCard/addEdit.vue | 224 ++++++++++ src/pages/work/base/debitCard/details.vue | 94 ++++ src/pages/work/base/debitCard/list.vue | 381 ++++++++++++++++ src/pages/work/base/lend/addEdit.vue | 213 +++++++++ src/pages/work/base/lend/details.vue | 92 ++++ src/pages/work/base/lend/list.vue | 367 +++++++++++++++ src/pages/work/base/pos/index.vue | 237 ---------- .../work/bill/creditCardBill/addEdit.vue | 2 +- .../bill/creditInstallmentHistory/addEdit.vue | 6 +- .../detailsAddEdit.vue | 6 +- src/pages/work/bill/futuresBill/addEdit.vue | 204 +++++++++ src/pages/work/bill/futuresBill/details.vue | 404 +++++++++++++++++ src/pages/work/bill/futuresBill/list.vue | 391 ++++++++++++++++ .../work/bill/onlineLendHistory/addEdit.vue | 6 +- .../bill/onlineLendHistory/detailsAddEdit.vue | 6 +- .../work/bill/peopleLendHistory/addEdit.vue | 269 +++++++++++ .../work/bill/peopleLendHistory/list.vue | 419 ++++++++++++++++++ src/pages/work/bill/stocksBill/addEdit.vue | 204 +++++++++ src/pages/work/bill/stocksBill/details.vue | 404 +++++++++++++++++ src/pages/work/bill/stocksBill/list.vue | 384 ++++++++++++++++ src/pages/work/index.vue | 14 +- src/store/modules/user.ts | 2 +- 36 files changed, 5178 insertions(+), 516 deletions(-) delete mode 100644 src/pages/work/base/credit/index.vue create mode 100644 src/pages/work/base/creditCard/addEdit.vue create mode 100644 src/pages/work/base/creditCard/details.vue create mode 100644 src/pages/work/base/creditCard/list.vue create mode 100644 src/pages/work/base/debitCard/addEdit.vue create mode 100644 src/pages/work/base/debitCard/details.vue create mode 100644 src/pages/work/base/debitCard/list.vue create mode 100644 src/pages/work/base/lend/addEdit.vue create mode 100644 src/pages/work/base/lend/details.vue create mode 100644 src/pages/work/base/lend/list.vue delete mode 100644 src/pages/work/base/pos/index.vue create mode 100644 src/pages/work/bill/futuresBill/addEdit.vue create mode 100644 src/pages/work/bill/futuresBill/details.vue create mode 100644 src/pages/work/bill/futuresBill/list.vue create mode 100644 src/pages/work/bill/peopleLendHistory/addEdit.vue create mode 100644 src/pages/work/bill/peopleLendHistory/list.vue create mode 100644 src/pages/work/bill/stocksBill/addEdit.vue create mode 100644 src/pages/work/bill/stocksBill/details.vue create mode 100644 src/pages/work/bill/stocksBill/list.vue diff --git a/src/config.js b/src/config.js index 7562c2e..0cf0f60 100644 --- a/src/config.js +++ b/src/config.js @@ -1,7 +1,7 @@ // 应用全局配置 const config = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', - baseUrl: 'http://203.0.105.106:82/prod-api', + baseUrl: 'http://120.53.89.22:82/prod-api', // baseUrl: 'http://localhost:8080', //cloud后台网关地址 // baseUrl: 'http://192.168.10.3:8080', @@ -12,7 +12,7 @@ const config = { // 应用版本 version: "1.1.0", // 应用logo - logo: "/static/logo.png", + logo: "/static/intc.jpg", // 官方网站 site_url: "http://www.qdintc.com", // 政策协议 diff --git a/src/pages.json b/src/pages.json index 30e9ae8..282b3e9 100644 --- a/src/pages.json +++ b/src/pages.json @@ -55,20 +55,6 @@ } } , - { - "path": "pages/work/base/pos/index", - "style": { - "navigationBarTitleText": "pos机管理" - } - } - , - { - "path": "pages/work/base/credit/index", - "style": { - "navigationBarTitleText": "信用卡管理" - } - } - , { "path": "pages/work/accounts/accountDealRecord/list", "style": { @@ -219,6 +205,66 @@ } } , + { + "path": "pages/work/base/debitCard/list", + "style": { + "navigationBarTitleText": "储蓄卡管理" + } + } , + { + "path": "pages/work/base/debitCard/details", + "style": { + "navigationBarTitleText": "储蓄卡管理详情" + } + } + , + { + "path": "pages/work/base/debitCard/addEdit", + "style": { + "navigationBarTitleText": "储蓄卡管理" + } + } + , + { + "path": "pages/work/base/lend/list", + "style": { + "navigationBarTitleText": "借贷账户管理" + } + } , + { + "path": "pages/work/base/lend/details", + "style": { + "navigationBarTitleText": "借贷账户管理详情" + } + } + , + { + "path": "pages/work/base/lend/addEdit", + "style": { + "navigationBarTitleText": "借贷账户管理" + } + } + , + { + "path": "pages/work/base/creditCard/list", + "style": { + "navigationBarTitleText": "信用卡管理" + } + } , + { + "path": "pages/work/base/creditCard/details", + "style": { + "navigationBarTitleText": "信用卡管理详情" + } + } + , + { + "path": "pages/work/base/creditCard/addEdit", + "style": { + "navigationBarTitleText": "信用卡管理" + } + } + , { "path": "pages/work/bill/creditQueryRecord/list", "style": { @@ -263,6 +309,44 @@ "navigationBarTitleText": "信用卡账单" } }, + { + "path": "pages/work/bill/futuresBill/list", + "style": { + "navigationBarTitleText": "期货账单" + } + } , + { + "path": "pages/work/bill/futuresBill/details", + "style": { + "navigationBarTitleText": "期货账单明细" + } + } + , + { + "path": "pages/work/bill/futuresBill/addEdit", + "style": { + "navigationBarTitleText": "期货账单" + } + }, + { + "path": "pages/work/bill/stocksBill/list", + "style": { + "navigationBarTitleText": "股票账单" + } + } , + { + "path": "pages/work/bill/stocksBill/details", + "style": { + "navigationBarTitleText": "股票账单明细" + } + } + , + { + "path": "pages/work/bill/stocksBill/addEdit", + "style": { + "navigationBarTitleText": "股票账单" + } + }, { "path": "pages/work/bill/onlineLendHistory/list", "style": { @@ -281,6 +365,20 @@ "style": { "navigationBarTitleText": "网贷账单" } + } + , + { + "path": "pages/work/bill/peopleLendHistory/list", + "style": { + "navigationBarTitleText": "人情账单" + } + } + , + { + "path": "pages/work/bill/peopleLendHistory/addEdit", + "style": { + "navigationBarTitleText": "人情账单" + } }, { "path": "pages/work/bill/onlineLendHistory/detailsAddEdit", diff --git a/src/pages/mine.vue b/src/pages/mine.vue index 04b6dd4..1e02b3c 100644 --- a/src/pages/mine.vue +++ b/src/pages/mine.vue @@ -93,14 +93,13 @@ const userStore = useUserStore() const name = userStore.name; const version = config.appInfo.version; -const avatar = ref(userStore.avatar); +const avatar = ref(window.location.protocol + '//' + window.location.hostname + ':' + window.location.port+userStore.avatar); const windowHeight = ref(uni.getSystemInfoSync().windowHeight - 50); const popup = ref(null); uni.$on('refresh', () => { - avatar.value = userStore.avatar; + avatar.value = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port+userStore.avatar; }) - function handleToInfo() { uni.navigateTo({ url: '/pages_mine/pages/info/index' diff --git a/src/pages/work/accounts/accountDealRecord/addEdit.vue b/src/pages/work/accounts/accountDealRecord/addEdit.vue index 93e8eda..cc81cdd 100644 --- a/src/pages/work/accounts/accountDealRecord/addEdit.vue +++ b/src/pages/work/accounts/accountDealRecord/addEdit.vue @@ -114,7 +114,7 @@ const data = reactive({ rules: { typeName: [{ required: true, message: '记账类型不能为空', trigger:['change', 'blur'] }], accountName: [{ required: true, message: '记账账户不能为空', trigger: ['change', 'blur'] }], - amount: [{type: 'string', required: true, message: '交易金额不能为空', trigger: ['change', 'blur'] }], + amount: [{type: 'float', required: true, message: '交易金额不能为空', trigger: ['change', 'blur'] }], dealTypeName: [{ required: true, message: '交易类型不能为空', trigger:['change', 'blur'] }], dealCategoryName: [{ required: true, message: '交易类别不能为空', trigger: ['change', 'blur'] }], createTime: [{ required: true, message: '交易时间不能为空', trigger: ['change', 'blur'] }] diff --git a/src/pages/work/accounts/accountDealRecord/list.vue b/src/pages/work/accounts/accountDealRecord/list.vue index bca9d42..a777b83 100644 --- a/src/pages/work/accounts/accountDealRecord/list.vue +++ b/src/pages/work/accounts/accountDealRecord/list.vue @@ -2,9 +2,9 @@ - - + + + @@ -128,6 +130,7 @@ import { listAccountDealRecord, delAccountDealRecord, } from '@/api/invest/accountDealRecord' +import { listAccounts } from '@/api/invest/accounts' import { getDicts } from '@/api/system/dict/data.js' import { timeHandler } from '@/utils/common.ts' import {onLoad,onShow} from "@dcloudio/uni-app"; @@ -142,11 +145,18 @@ const dealTypeList = ref([]) const dealCategoryList = ref([]) const settingPickShow = ref(false) const settingColumns = ref([]) +const showAccount = ref(false) +const accountList = ref([]) const timeShow= ref(false) const flag= ref(true) const time =ref( Number(new Date())) const data = reactive({ filterPanel: false, + queryAccountParams: { + pageNum: 1, + state: '1', + pageSize: 100 + }, queryParams: { name: null, type: null, @@ -156,7 +166,7 @@ const data = reactive({ dealCategory: null } }) -const { filterPanel, queryParams} = toRefs(data) +const { filterPanel, queryAccountParams, queryParams} = toRefs(data) const windowHeight = computed(() => { uni.getSystemInfoSync().windowHeight - 50 }) @@ -204,6 +214,9 @@ function getList() { timeShow.value = false } function getDict() { + listAccounts(queryAccountParams.value).then((response) => { + accountList.value = [response.rows] + }) // 记账类型类型 getDicts('account_type').then(res => { accountTypeList.value = res.data @@ -234,6 +247,26 @@ function dictStr(val, arr) { }) return str } + function handleAccount() { + if (accountList.value[0].length === 0) { + proxy.$refs['uToast'].show({ + message: '记账账户为空 ', type: 'warning' + }) + } else { + showAccount.value = true + } + } + function handleAccountConfirm(e) { + queryParams.value.accountName = e.value[0].typeNameCodeAvailableLimit + queryParams.value.accountId= e.value[0].id + showAccount.value = false + pageNum.value = 1 + listData.value = [] + getList() + } + function handleAccountCancel() { + showAccount.value = false + } function selectAccountType(item) { queryParams.value.type = item.dictValue accountTypeList.value.map(ele => { @@ -279,7 +312,8 @@ function selectAccountType(item) { getList() } function resetQuery() { - queryParams.value.name = '' + queryParams.value.accountId = '' + queryParams.value.accountName = '' queryParams.value.type = '' queryParams.value.dealType = '' queryParams.value.startTime = '' diff --git a/src/pages/work/accounts/accounts/commonList.vue b/src/pages/work/accounts/accounts/commonList.vue index 503d3a3..d89f9db 100644 --- a/src/pages/work/accounts/accounts/commonList.vue +++ b/src/pages/work/accounts/accounts/commonList.vue @@ -2,9 +2,9 @@ - - + + + 修改 + 删除 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/work/base/debitCard/addEdit.vue b/src/pages/work/base/debitCard/addEdit.vue new file mode 100644 index 0000000..bdbe7c8 --- /dev/null +++ b/src/pages/work/base/debitCard/addEdit.vue @@ -0,0 +1,224 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/debitCard/details.vue b/src/pages/work/base/debitCard/details.vue new file mode 100644 index 0000000..f060bee --- /dev/null +++ b/src/pages/work/base/debitCard/details.vue @@ -0,0 +1,94 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/debitCard/list.vue b/src/pages/work/base/debitCard/list.vue new file mode 100644 index 0000000..d4c099d --- /dev/null +++ b/src/pages/work/base/debitCard/list.vue @@ -0,0 +1,381 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/lend/addEdit.vue b/src/pages/work/base/lend/addEdit.vue new file mode 100644 index 0000000..d0df25f --- /dev/null +++ b/src/pages/work/base/lend/addEdit.vue @@ -0,0 +1,213 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/lend/details.vue b/src/pages/work/base/lend/details.vue new file mode 100644 index 0000000..eb4230a --- /dev/null +++ b/src/pages/work/base/lend/details.vue @@ -0,0 +1,92 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/lend/list.vue b/src/pages/work/base/lend/list.vue new file mode 100644 index 0000000..12b87f0 --- /dev/null +++ b/src/pages/work/base/lend/list.vue @@ -0,0 +1,367 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/base/pos/index.vue b/src/pages/work/base/pos/index.vue deleted file mode 100644 index 0eabdc5..0000000 --- a/src/pages/work/base/pos/index.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - - diff --git a/src/pages/work/bill/creditCardBill/addEdit.vue b/src/pages/work/bill/creditCardBill/addEdit.vue index 1453128..8c5cd2a 100644 --- a/src/pages/work/bill/creditCardBill/addEdit.vue +++ b/src/pages/work/bill/creditCardBill/addEdit.vue @@ -96,7 +96,7 @@ const data = reactive({ creditCardName: [{ type: 'string', required: true, message: '信用卡不能为空', trigger: ['change', 'blur'] }], billDate: [{ type: 'string', required: true, message: '账单日不能为空', trigger: ['change', 'blur'] }], billStateName: [{ type: 'string', required: true, message: '账单状态不能为空', trigger: ['change', 'blur'] }], - billAmount: [{ type: 'string', required: true, message: '账单金额不能为空', trigger: ['change', 'blur'] }], + billAmount: [{ type: 'float', required: true, message: '账单金额不能为空', trigger: ['change', 'blur'] }], } }) const { form, queryBankCardLendParams, rules} = toRefs(data) diff --git a/src/pages/work/bill/creditInstallmentHistory/addEdit.vue b/src/pages/work/bill/creditInstallmentHistory/addEdit.vue index f1ea896..1e6df69 100644 --- a/src/pages/work/bill/creditInstallmentHistory/addEdit.vue +++ b/src/pages/work/bill/creditInstallmentHistory/addEdit.vue @@ -140,9 +140,9 @@ const data = reactive({ onlineLendName: [{ type: 'string', required: true, message: '信用卡不能为空', trigger: ['change', 'blur'] }], billDate: [{ type: 'string', required: true, message: '分期日期不能为空', trigger: ['change', 'blur'] }], settleStateName: [{ type: 'string', required: true, message: '结清状态不能为空', trigger: ['change', 'blur'] }], - billAmount: [{ type: 'string', required: true, message: '分期金额不能为空', trigger: ['change', 'blur'] }], - period: [{ type: 'string', required: true, message: '分期期数不能为空', trigger: ['change', 'blur'] }], - balance: [{ type: 'string', required: true, message: '余额不能为空', trigger: ['change', 'blur'] }], + billAmount: [{ type: 'float', required: true, message: '分期金额不能为空', trigger: ['change', 'blur'] }], + period: [{ type: 'int', required: true, message: '分期期数不能为空', trigger: ['change', 'blur'] }], + balance: [{ type: 'float', required: true, message: '余额不能为空', trigger: ['change', 'blur'] }], } }) const { form, queryBankCardLendParams, rules} = toRefs(data) diff --git a/src/pages/work/bill/creditInstallmentHistory/detailsAddEdit.vue b/src/pages/work/bill/creditInstallmentHistory/detailsAddEdit.vue index e6f9ada..f5c3211 100644 --- a/src/pages/work/bill/creditInstallmentHistory/detailsAddEdit.vue +++ b/src/pages/work/bill/creditInstallmentHistory/detailsAddEdit.vue @@ -81,9 +81,9 @@ const data = reactive({ form: {}, rules: { repaymentDate: [{ type: 'string', required: true, message: '还款日期不能为空', trigger: ['change', 'blur'] }], - // periods: [{ type: 'string', required: true, message: '还款期数不能为空', trigger: ['change', 'blur'] }], - // interest: [{ type: 'string', required: true, message: '利息不能为空', trigger: ['change', 'blur'] }], - // principal: [{ type: 'string', required: true, message: '应还本金不能为空', trigger: ['change', 'blur'] }], + periods: [{ type: 'int', required: true, message: '还款期数不能为空', trigger: ['change', 'blur'] }], + interest: [{ type: 'float', required: true, message: '利息不能为空', trigger: ['change', 'blur'] }], + principal: [{ type: 'float', required: true, message: '应还本金不能为空', trigger: ['change', 'blur'] }], postingStateName: [{ type: 'string', required: true, message: '入账状态不能为空', trigger: ['change', 'blur'] }], } }) diff --git a/src/pages/work/bill/futuresBill/addEdit.vue b/src/pages/work/bill/futuresBill/addEdit.vue new file mode 100644 index 0000000..67e9d59 --- /dev/null +++ b/src/pages/work/bill/futuresBill/addEdit.vue @@ -0,0 +1,204 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/futuresBill/details.vue b/src/pages/work/bill/futuresBill/details.vue new file mode 100644 index 0000000..5f9b3a3 --- /dev/null +++ b/src/pages/work/bill/futuresBill/details.vue @@ -0,0 +1,404 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/futuresBill/list.vue b/src/pages/work/bill/futuresBill/list.vue new file mode 100644 index 0000000..76f3197 --- /dev/null +++ b/src/pages/work/bill/futuresBill/list.vue @@ -0,0 +1,391 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/onlineLendHistory/addEdit.vue b/src/pages/work/bill/onlineLendHistory/addEdit.vue index 2dba108..ba41214 100644 --- a/src/pages/work/bill/onlineLendHistory/addEdit.vue +++ b/src/pages/work/bill/onlineLendHistory/addEdit.vue @@ -140,9 +140,9 @@ const data = reactive({ onlineLendName: [{ type: 'string', required: true, message: '网贷机构不能为空', trigger: ['change', 'blur'] }], billDate: [{ type: 'string', required: true, message: '借款日期不能为空', trigger: ['change', 'blur'] }], settleStateName: [{ type: 'string', required: true, message: '结清状态不能为空', trigger: ['change', 'blur'] }], - billAmount: [{ type: 'string', required: true, message: '借款金额不能为空', trigger: ['change', 'blur'] }], - period: [{ type: 'string', required: true, message: '借款期数不能为空', trigger: ['change', 'blur'] }], - balance: [{ type: 'string', required: true, message: '余额不能为空', trigger: ['change', 'blur'] }], + installmentAmount: [{ type: 'float', required: true, message: '借款金额不能为空', trigger: ['change', 'blur'] }], + period: [{ type: 'int', required: true, message: '借款期数不能为空', trigger: ['change', 'blur'] }], + balance: [{ type: 'float', required: true, message: '余额不能为空', trigger: ['change', 'blur'] }], } }) const { form, queryBankCardLendParams, rules} = toRefs(data) diff --git a/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue b/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue index 9a41781..0710225 100644 --- a/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue +++ b/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue @@ -81,9 +81,9 @@ const data = reactive({ form: {}, rules: { repaymentDate: [{ type: 'string', required: true, message: '还款日期不能为空', trigger: ['change', 'blur'] }], - // periods: [{ type: 'string', required: true, message: '还款期数不能为空', trigger: ['change', 'blur'] }], - // interest: [{ type: 'string', required: true, message: '利息不能为空', trigger: ['change', 'blur'] }], - // principal: [{ type: 'string', required: true, message: '应还本金不能为空', trigger: ['change', 'blur'] }], + periods: [{ type: 'int', required: true, message: '还款期数不能为空', trigger: ['change', 'blur'] }], + interest: [{ type: 'float', required: true, message: '利息不能为空', trigger: ['change', 'blur'] }], + principal: [{ type: 'float', required: true, message: '应还本金不能为空', trigger: ['change', 'blur'] }], postingStateName: [{ type: 'string', required: true, message: '入账状态不能为空', trigger: ['change', 'blur'] }], } }) diff --git a/src/pages/work/bill/peopleLendHistory/addEdit.vue b/src/pages/work/bill/peopleLendHistory/addEdit.vue new file mode 100644 index 0000000..23b9dcc --- /dev/null +++ b/src/pages/work/bill/peopleLendHistory/addEdit.vue @@ -0,0 +1,269 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/peopleLendHistory/list.vue b/src/pages/work/bill/peopleLendHistory/list.vue new file mode 100644 index 0000000..7795c19 --- /dev/null +++ b/src/pages/work/bill/peopleLendHistory/list.vue @@ -0,0 +1,419 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/stocksBill/addEdit.vue b/src/pages/work/bill/stocksBill/addEdit.vue new file mode 100644 index 0000000..46e68b1 --- /dev/null +++ b/src/pages/work/bill/stocksBill/addEdit.vue @@ -0,0 +1,204 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/stocksBill/details.vue b/src/pages/work/bill/stocksBill/details.vue new file mode 100644 index 0000000..52c089d --- /dev/null +++ b/src/pages/work/bill/stocksBill/details.vue @@ -0,0 +1,404 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/bill/stocksBill/list.vue b/src/pages/work/bill/stocksBill/list.vue new file mode 100644 index 0000000..43285f7 --- /dev/null +++ b/src/pages/work/bill/stocksBill/list.vue @@ -0,0 +1,384 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index cbbd94b..e13449f 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -85,20 +85,20 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作 { path: '/pages/work/bill/creditQueryRecord/list', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' } ]) const baseGridList=ref([ - { path: '/pages/work/base/pos/index', text: 'pos机管理', icon: 'shop-filled', permission: 'invest:posmachine:list' }, - { path: '/pages/work/base/credit/index', text: '信用卡管理', icon: 'wallet', permission: 'invest:bankcard:list' }, - { path: '/pages/page1/page1', text: '储蓄卡管理', icon: 'wallet-filled', permission: 'invest:bankcard:list' }, - { path: '/pages/page1/page1', text: '借贷账户管理', icon: 'upload', permission: 'invest:bankcard:list' }, + { path: '/pages/page1/page1', text: 'pos机管理', icon: 'shop-filled', permission: 'invest:posmachine:list' }, + { path: '/pages/work/base/creditCard/list', text: '信用卡管理', icon: 'wallet', permission: 'invest:bankcard:list' }, + { path: '/pages/work/base/debitCard/list', text: '储蓄卡管理', icon: 'wallet-filled', permission: 'invest:bankcard:list' }, + { path: '/pages/work/base/lend/list', text: '借贷账户管理', icon: 'upload', permission: 'invest:bankcard:list' }, { path: '/pages/page1/page1', text: '股票账户管理', icon: 'calendar', permission: 'invest:futureStocks:list' }, { path: '/pages/page1/page1', text: '期货账户管理', icon: 'paperplane-filled', permission: 'invest:futureStocks:list' } ]) const billGridList=ref([ - { path: '/pages/page1/page1', text: '期货账单', icon: 'map', permission: 'invest:futureStocksBill:list' }, - { path: '/pages/page1/page1', text: '股票账单', icon: 'paperplane', permission: 'invest:futureStocksBill:list' }, + { path: '/pages/work/bill/futuresBill/list', text: '期货账单', icon: 'map', permission: 'invest:futureStocksBill:list' }, + { path: '/pages/work/bill/stocksBill/list', text: '股票账单', icon: 'paperplane', permission: 'invest:futureStocksBill:list' }, { path: '/pages/work/bill/onlineLendHistory/list', text: '网贷账单', icon: 'settings', permission: 'invest:installmentHistory:list' }, { path: '/pages/work/bill/creditCardBill/list', text: '信用卡账单', icon: 'list', permission: 'invest:creditCardBill:list' }, { path: '/pages/work/bill/creditInstallmentHistory/list', text: '信用卡分期账单', icon: 'bars', permission: 'invest:installmentHistory:list' }, - { path: '/pages/page1/page1', text: '人情账单', icon: 'staff-filled', permission: 'invest:installmentHistory:list' }, + { path: '/pages/work/bill/peopleLendHistory/list', text: '人情账单', icon: 'staff-filled', permission: 'invest:installmentHistory:list' }, { path: '/pages/work/bill/creditQueryRecord/list', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' } ]) const accountGridList=ref([ diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index e4a1331..1e96fea 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -46,7 +46,7 @@ const useUserStore = defineStore("user", { const avatar = user.avatar == "" || user.avatar == null ? defAva - : import.meta.env.VITE_APP_BASE_API + user.avatar; + : user.avatar; if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组