修改自定义报表
This commit is contained in:
@@ -96,6 +96,11 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
loadCallback: () => {
|
loadCallback: () => {
|
||||||
console.log(tableStore.table.data)
|
console.log(tableStore.table.data)
|
||||||
|
tableStore.table.data.forEach((item: any) => {
|
||||||
|
item.celldata.forEach((k: any) => {
|
||||||
|
item.data[k.r][k.c].v = k.v
|
||||||
|
})
|
||||||
|
})
|
||||||
luckysheet.create({
|
luckysheet.create({
|
||||||
container: 'luckysheet',
|
container: 'luckysheet',
|
||||||
title: '', // 表 头名
|
title: '', // 表 头名
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import LuckyExcel from 'luckyexcel'
|
|||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { viewCustomReportTemplateById } from '@/api/harmonic-boot/luckyexcel'
|
import { viewCustomReportTemplateById } from '@/api/harmonic-boot/luckyexcel'
|
||||||
|
|
||||||
const emit = defineEmits(['shutDown'])
|
const emit = defineEmits(['shutDown'])
|
||||||
|
|
||||||
const height = mainHeight(65).height
|
const height = mainHeight(65).height
|
||||||
@@ -84,7 +83,13 @@ const beforeUpload = (file: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const open = async (row: any) => {
|
const open = async (row: any) => {
|
||||||
await viewCustomReportTemplateById({ id: row.id }).then(Response => {
|
|
||||||
|
await viewCustomReportTemplateById({ id: row.id }).then((Response:any) => {
|
||||||
|
Response.forEach((item: any) => {
|
||||||
|
item.celldata.forEach((k: any) => {
|
||||||
|
item.data[k.r][k.c].v = k.v
|
||||||
|
})
|
||||||
|
})
|
||||||
options.value.data = Response
|
options.value.data = Response
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user