设备监控-tab切换内容显示问题修改

This commit is contained in:
zhujiyan
2024-08-02 15:36:43 +08:00
parent 805a2567cc
commit 2d87fa036f
2 changed files with 11 additions and 13 deletions

View File

@@ -73,9 +73,6 @@ defineOptions({
const height = mainHeight(20)
const size = ref(0)
const dictData = useDictData()
console.log(dictData.state.area[0].id, '++++++++')
const deptId = ref('')
deptId.value = dictData.state.area[0].id
const TableHeaderRef = ref()
const dotList: any = ref({})
const Template: any = ref({})
@@ -105,7 +102,6 @@ const tableStore = new TableStore({
tableStore.table.params.lineId = dotList.value.id
},
loadCallback: () => {
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
@@ -131,7 +127,6 @@ onMounted(() => {
}
})
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
@@ -142,7 +137,6 @@ const changetype = (val: any) => {
}
const handleNodeClick = (data: any, node: any) => {
console.log(data.level, '++++++++++155')
if (data.level == 3) {
dotList.value = data
tableStore.index()