修改测试bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user