32bbb6ca by lxs

入表功调整

1 parent 4db663a9
......@@ -926,7 +926,7 @@ const exportDetailsToExcel = async () => {
const row = tableField.value.map(f => {
if (f.field.indexOf('name') == -1) {
// 分类字段
return changeNum(item[f.field])
return changeNum(item[f.field], 2, true)
} else {
// 其他字段
return item[f.field] || ''
......@@ -1097,7 +1097,7 @@ const exportBookToExcel = async () => {
const row = bookHeaders.value.map(f => {
if (f.field.indexOf('title') == -1) {
// 分类字段
return changeNum(item[f.field])
return changeNum(item[f.field], 2, true)
} else {
// 其他字段
return item[f.field] || ''
......@@ -1332,7 +1332,7 @@ onUpdated(() => {
:width="item.width" :align="item.align">
<template #default="scope">
<span v-if="item.field == 'title'">{{ setLabel(scope.row[item.field]) }}</span>
<span v-else>{{ changeNum(scope.row[item.field], 2) }}</span>
<span v-else>{{ changeNum(scope.row[item.field], 2, true) }}</span>
</template>
<!-- <template v-slot:header>
<span v-html="item.label"></span>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!