diff --git a/src/views/invest/creditAnalysis/index.vue b/src/views/invest/creditAnalysis/index.vue index 7717544..b4cc0d6 100644 --- a/src/views/invest/creditAnalysis/index.vue +++ b/src/views/invest/creditAnalysis/index.vue @@ -1,124 +1,129 @@ @@ -131,9 +136,7 @@ import { getCreditAnalysis } from '@/api/invest/statisticAnalysis' import { listBankcardLend } from '@/api/invest/bankcardlend' const { proxy } = getCurrentInstance() -const dates = [ - { value: 2, label: '月' } -] +const dates = [{ value: 2, label: '月' }] const loading = ref(true) const total = ref(0) @@ -173,7 +176,7 @@ const data = reactive({ const { queryParams, queryCreditCardParams, rules } = toRefs(data) const today = new Date() -const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) +const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-11, 'months') queryParams.value.time = [start, end] /** 查询信用卡卡管理列表 */ @@ -183,6 +186,11 @@ function getCreditCardList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const disabledDateFun = (time) => { const arr = [0, 30, 365, 365 * 5] const days = arr[queryParams.value.type] diff --git a/src/views/invest/creditCardDealAnalysis/index.vue b/src/views/invest/creditCardDealAnalysis/index.vue index 388a07b..6c72574 100644 --- a/src/views/invest/creditCardDealAnalysis/index.vue +++ b/src/views/invest/creditCardDealAnalysis/index.vue @@ -200,6 +200,11 @@ + + + @@ -317,7 +322,11 @@ const calendarChange = (val) => { firstChooseDate.value = val[0].getTime() if (val[1]) firstChooseDate.value = '' } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const account = ref({ amount: '', income: '', diff --git a/src/views/invest/creditInstallmentAnalysis/index.vue b/src/views/invest/creditInstallmentAnalysis/index.vue index e8efb0c..250c260 100644 --- a/src/views/invest/creditInstallmentAnalysis/index.vue +++ b/src/views/invest/creditInstallmentAnalysis/index.vue @@ -136,6 +136,11 @@
+ + + @@ -220,6 +225,11 @@ function getCreditCardList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const handleTimeChange = (type) => { queryParams.value.time = null if (type === 1) { diff --git a/src/views/invest/creditInstallmentSettledAnalysis/index.vue b/src/views/invest/creditInstallmentSettledAnalysis/index.vue index bbd0821..0bf09ad 100644 --- a/src/views/invest/creditInstallmentSettledAnalysis/index.vue +++ b/src/views/invest/creditInstallmentSettledAnalysis/index.vue @@ -1,131 +1,135 @@ @@ -203,7 +207,11 @@ function getCreditCardList() { creditCardList.value = response.rows }) } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const handleTimeChange = (type) => { queryParams.value.time = null if (type === 2) { diff --git a/src/views/invest/creditRecordAnalysis/index.vue b/src/views/invest/creditRecordAnalysis/index.vue index 50d0cea..7682d49 100644 --- a/src/views/invest/creditRecordAnalysis/index.vue +++ b/src/views/invest/creditRecordAnalysis/index.vue @@ -1,196 +1,206 @@ @@ -273,7 +283,11 @@ const handleTimeChange = (type) => { } getList() } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const disabledDateFun = (time) => { const arr = [0, 30, 365, 365 * 5] const days = arr[queryParams.value.type] diff --git a/src/views/invest/debitDealAnalysis/index.vue b/src/views/invest/debitDealAnalysis/index.vue index 0aa126a..57ac3f7 100644 --- a/src/views/invest/debitDealAnalysis/index.vue +++ b/src/views/invest/debitDealAnalysis/index.vue @@ -200,6 +200,11 @@
+ + + @@ -295,7 +300,11 @@ const handleTimeChange = (type) => { } getList() } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const disabledDateFun = (time) => { const arr = [0, 30, 365, 365 * 5] const days = arr[queryParams.value.type] diff --git a/src/views/invest/futuresAnalysis/index.vue b/src/views/invest/futuresAnalysis/index.vue index 072cc64..8ca5a3a 100644 --- a/src/views/invest/futuresAnalysis/index.vue +++ b/src/views/invest/futuresAnalysis/index.vue @@ -1,132 +1,136 @@ @@ -194,7 +198,7 @@ const data = reactive({ const { queryParams, queryFutureStocksListParams, rules } = toRefs(data) const today = new Date() -const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) +const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] /** 查询期货股票卡管理列表 */ @@ -204,11 +208,16 @@ function getFutureStocksList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const handleTimeChange = (type) => { queryParams.value.time = null if (type === 2) { const today = new Date() - const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) + const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] } else if (type === 3) { diff --git a/src/views/invest/investAnalysis/index.vue b/src/views/invest/investAnalysis/index.vue index d3de100..866e53d 100644 --- a/src/views/invest/investAnalysis/index.vue +++ b/src/views/invest/investAnalysis/index.vue @@ -1,92 +1,91 @@ @@ -203,14 +207,14 @@ const data = reactive({ const { queryParams, rules } = toRefs(data) const today = new Date() -const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) +const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] const handleTimeChange = (type) => { queryParams.value.time = null if (type === 2) { const today = new Date() - const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) + const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] } else if (type === 3) { @@ -221,7 +225,11 @@ const handleTimeChange = (type) => { } getList() } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const disabledDateFun = (time) => { const arr = [0, 30, 365, 365 * 5] const days = arr[queryParams.value.type] diff --git a/src/views/invest/onlineLendAnalysis/index.vue b/src/views/invest/onlineLendAnalysis/index.vue index 0ca4fae..3805bd9 100644 --- a/src/views/invest/onlineLendAnalysis/index.vue +++ b/src/views/invest/onlineLendAnalysis/index.vue @@ -136,6 +136,11 @@
+ + + @@ -221,6 +226,12 @@ function getCreditCardList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} + const handleTimeChange = (type) => { queryParams.value.time = null if (type === 1) { diff --git a/src/views/invest/onlineLendSettledAnalysis/index.vue b/src/views/invest/onlineLendSettledAnalysis/index.vue index 13dc721..1abf6aa 100644 --- a/src/views/invest/onlineLendSettledAnalysis/index.vue +++ b/src/views/invest/onlineLendSettledAnalysis/index.vue @@ -1,131 +1,135 @@ @@ -220,7 +224,11 @@ const handleTimeChange = (type) => { } getList() } - +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const firstChooseDate = ref('') const calendarChange = (val) => { firstChooseDate.value = val[0].getTime() diff --git a/src/views/invest/posAnalysis/index.vue b/src/views/invest/posAnalysis/index.vue index 5f70e5d..fe5efb6 100644 --- a/src/views/invest/posAnalysis/index.vue +++ b/src/views/invest/posAnalysis/index.vue @@ -1,131 +1,135 @@ @@ -255,6 +259,12 @@ function getPosMachineList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} + function getList() { loading.value = true chartData.value = { name: [], value1: [] } diff --git a/src/views/invest/stocksAnalysis/index.vue b/src/views/invest/stocksAnalysis/index.vue index 6ac901d..93e6840 100644 --- a/src/views/invest/stocksAnalysis/index.vue +++ b/src/views/invest/stocksAnalysis/index.vue @@ -1,132 +1,136 @@ @@ -195,7 +199,7 @@ const data = reactive({ const { queryParams, queryFutureStocksListParams, rules } = toRefs(data) const today = new Date() -const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) +const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] /** 查询期货股票卡管理列表 */ @@ -205,11 +209,16 @@ function getFutureStocksList() { }) } +function formatMultiLineData(data) { + if (data != null) { + return data.replace(//g, '
') + } +} const handleTimeChange = (type) => { queryParams.value.time = null if (type === 2) { const today = new Date() - const end = today.getFullYear() + '-' + ('0' + (today.getMonth())).slice(-2) + const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2) const start = dayjs(end).add(-59, 'months') queryParams.value.time = [start, end] } else if (type === 3) {