【中汽测试】标准体系默认根节点默认展开
This commit is contained in:
@@ -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 = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user