稳态报表页面接口调整
This commit is contained in:
@@ -60,19 +60,22 @@ import { onMounted, ref, provide } from 'vue'
|
|||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import PointTree from '@/components/tree/govern/pointTree.vue'
|
import PointTree from '@/components/tree/govern/pointTree.vue'
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import { useDictData } from '@/stores/dictData'
|
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
|
import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
|
||||||
import { exportExcel } from '@/views/system/reportForms/export.js'
|
import { exportExcel } from '@/views/system/reportForms/export.js'
|
||||||
import 'splitpanes/dist/splitpanes.css'
|
import 'splitpanes/dist/splitpanes.css'
|
||||||
import { Splitpanes, Pane } from 'splitpanes'
|
import { Splitpanes, Pane } from 'splitpanes'
|
||||||
import data from './123.json'
|
import data from './123.json'
|
||||||
|
import { useDictData } from '@/stores/dictData'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'reportCore/statistics'
|
name: 'reportCore/statistics'
|
||||||
})
|
})
|
||||||
const height = mainHeight(20)
|
const height = mainHeight(20)
|
||||||
const size = ref(0)
|
const size = ref(0)
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
|
console.log(dictData.state.area[0].id, '++++++++')
|
||||||
|
const deptId = ref('')
|
||||||
|
deptId.value = dictData.state.area[0].id
|
||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
const dotList: any = ref({})
|
const dotList: any = ref({})
|
||||||
const Template: any = ref({})
|
const Template: any = ref({})
|
||||||
@@ -126,30 +129,21 @@ onMounted(() => {
|
|||||||
if (dom) {
|
if (dom) {
|
||||||
size.value = Math.round((180 / dom.offsetHeight) * 100)
|
size.value = Math.round((180 / dom.offsetHeight) * 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
luckysheet.create({
|
|
||||||
container: 'luckysheet',
|
|
||||||
title: '', // 表 头名
|
|
||||||
lang: 'zh', // 中文
|
|
||||||
showtoolbar: false, // 是否显示工具栏
|
|
||||||
showinfobar: false, // 是否显示顶部信息栏
|
|
||||||
showsheetbar: true, // 是否显示底部sheet按钮
|
|
||||||
data: data
|
|
||||||
// tableStore.table.data
|
|
||||||
})
|
})
|
||||||
tableStore.index()
|
getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
|
||||||
|
console.log(res.data[0], '77777666666666')
|
||||||
|
templatePolicy.value = res.data
|
||||||
|
Template.value = res.data[0]
|
||||||
|
reportForm.value = res.data[0]?.reportForm
|
||||||
|
// tableStore.index()
|
||||||
})
|
})
|
||||||
// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
|
|
||||||
// templatePolicy.value = res.data
|
|
||||||
// Template.value = res.data[0]
|
|
||||||
// reportForm.value = res.data[0]?.reportForm
|
|
||||||
// })
|
|
||||||
const changetype = (val: any) => {
|
const changetype = (val: any) => {
|
||||||
reportForm.value = val.reportForm
|
reportForm.value = val.reportForm
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleNodeClick = (data: any, node: any) => {
|
const handleNodeClick = (data: any, node: any) => {
|
||||||
if (data.level == 6) {
|
console.log(data.level, '++++++++++155')
|
||||||
|
if (data.level == 3) {
|
||||||
dotList.value = data
|
dotList.value = data
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user