【中汽测试】标准体系默认根节点默认展开

This commit is contained in:
赵霄
2023-11-10 17:45:20 +08:00
parent 2797c2b682
commit ad1b05eaee
3 changed files with 53 additions and 12 deletions
@@ -12,6 +12,7 @@
:show-line="true"
:show-icon="true"
:tree-data="treeData"
:expanded-keys="expandedKeys"
:selectedKeys="currentTreeNode"
:default-expand-all="defaultExpandAll">
<template #title="record">
@@ -276,7 +277,8 @@ export default {
downTemplateUrl: '/laws/standard/enterprise/templateDownload' // 下载导入模板
},
showAction: true, // 是否显示操作列
currentShare: {}
currentShare: {},
expandedKeys: [] // 体系展开的节点
}
},
mounted () {
@@ -293,6 +295,7 @@ export default {
this.filters.nodeCode = null
if (res.success) {
this.treeData = res.result || []
this.expandedKeys = [this.treeData[0].key]
} else {
this.treeData = []
}