修改测试bug

This commit is contained in:
GGJ
2024-10-17 15:42:07 +08:00
parent 244ceaf114
commit e0c93573a4
4 changed files with 130 additions and 75 deletions

View File

@@ -2,7 +2,8 @@
<div class="default-main" :style="height">
<splitpanes style="height: 100%" class="default-theme" id="navigation-splitpanes">
<pane :size="size">
<PointTree :default-expand-all="false" @node-click="handleNodeClick" @init="handleNodeClick">
<PointTree :default-expand-all="false" template @node-click="handleNodeClick" @init="handleNodeClick"
@Policy="stencil">
</PointTree>
</pane>
<pane style="background: #fff" :style="height">
@@ -104,13 +105,20 @@ onMounted(() => {
size.value = Math.round((180 / dom.offsetHeight) * 100)
}
})
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
})
// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
// templatePolicy.value = res.data
// })
const stencil=(val: any) => {
console.log("🚀 ~ Policy ~ val:", val)
templatePolicy.value =val
Template.value =val[0]
reportForm.value =val[0]?.reportForm
}
const changetype = (val: any) => {
reportForm.value = val.reportForm
@@ -122,7 +130,7 @@ const handleNodeClick = (data: any, node: any) => {
dotList.value = data
setTimeout(() => {
tableStore.index()
},500)
}, 500)
}
}