| | |
| | | <template> |
| | | <div class="tree"> |
| | | <el-tree :data="nodeOptions" :props="{ label: 'label', children: 'children' }" :expand-on-click-node="false" |
| | | :filter-node-method="filterNode" ref="nodeTreeRef" node-key="id" highlight-current |
| | | :filter-node-method="filterNode" ref="nodeTreeRef" node-key="id" highlight-current default-expand-all |
| | | :default-expanded-keys="defaultExpandedKeys" @node-click="nodeClick" accordion> |
| | | <template #default="{ node, data }"> |
| | | <span class="item" style="" :title="node.label"> |
| | |
| | | query.value.modelCode = useRoute().query.modelCode; |
| | | } else { |
| | | // 最后使用默认值 |
| | | query.value.modelCode = 'JCZBK_CODE'; |
| | | query.value.modelCode = 'LBJT'; |
| | | } |
| | | |
| | | console.log('LeftTree getTree modelCode:', query.value.modelCode); |