fix: 统计分析自测问题修复。

This commit is contained in:
tianyongbao
2024-05-11 17:09:58 +08:00
parent da87ad433d
commit 412a6ac093
12 changed files with 1155 additions and 1042 deletions

View File

@@ -200,6 +200,11 @@
</el-table-column>
<el-table-column label="交易日期" align="center" prop="time" />
<el-table-column label="交易金额" align="center" prop="value" />
<el-table-column prop="detail" label="交易明细" width="700" v-if="queryParams.type === 1">
<template #default="scope">
<span v-html="formatMultiLineData(scope.row.detail)"></span>
</template>
</el-table-column>
</el-table>
</div>
</div>
@@ -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(/<br\/>/g, '<br/>')
}
}
const account = ref({
amount: '',
income: '',