feat: 报表html样式

This commit is contained in:
caiyuchao
2025-09-19 18:55:39 +08:00
parent c1020dc5ff
commit 5e4dca001b
3 changed files with 12 additions and 7 deletions

View File

@@ -148,12 +148,10 @@ export function useStaffGridColumns(): VxeTableGridOptions<ProgressApi.Progress>
{ {
field: 'content', field: 'content',
title: '进展记录', title: '进展记录',
type: 'html',
showOverflow: false, showOverflow: false,
align: 'left', align: 'left',
className: 'rich-text-comment-content-table',
// headerAlign: 'center',
minWidth: 600, minWidth: 600,
slots: { default: 'contentDefault' },
}, },
{ {
field: 'updateTime', field: 'updateTime',

View File

@@ -7,6 +7,7 @@ import dayjs from 'dayjs';
import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { exportStaff, getProgressByStaffPage } from '#/api/report/progress'; import { exportStaff, getProgressByStaffPage } from '#/api/report/progress';
import { ShadowContainer } from '#/components/shadow-container';
import { useStaffGridColumns, useStaffGridFormSchema } from '../data'; import { useStaffGridColumns, useStaffGridFormSchema } from '../data';
@@ -149,5 +150,13 @@ const [Grid, gridApi] = useVbenVxeGrid({
</script> </script>
<template> <template>
<Grid table-title="成员进展" /> <Grid table-title="成员进展">
<template #contentDefault="{ row }">
<!-- <div v-html="row.content" style="white-space: pre-wrap"></div> -->
<ShadowContainer
:content="row.content"
styles="font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; color: #323639;"
/>
</template>
</Grid>
</template> </template>

View File

@@ -155,9 +155,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<!-- <div v-html="row.content" style="white-space: pre-wrap"></div> --> <!-- <div v-html="row.content" style="white-space: pre-wrap"></div> -->
<ShadowContainer <ShadowContainer
:content="row.content" :content="row.content"
styles="font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', styles="font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; color: #323639;"
arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';"
/> />
</template> </template>
</Grid> </Grid>