提交 3e127ad1 编写于 作者: KK's avatar KK

优化逻辑

上级 909ebdbf
...@@ -106,6 +106,7 @@ import { Util } from '@ibiz-core/utils' ...@@ -106,6 +106,7 @@ import { Util } from '@ibiz-core/utils'
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public click_node(data:any){ public click_node(data:any){
this.treeNav.push(data);
this.load({data:data}); this.load({data:data});
} }
...@@ -471,7 +472,6 @@ import { Util } from '@ibiz-core/utils' ...@@ -471,7 +472,6 @@ import { Util } from '@ibiz-core/utils'
this.nodes = response.data; --> this.nodes = response.data; -->
this.nodes = [..._items]; this.nodes = [..._items];
this.parsNodes(this.nodes); this.parsNodes(this.nodes);
this.treeNav.push(node.data);
let isRoot = Object.is(node.level,0); let isRoot = Object.is(node.level,0);
let isSelectedAll = node.checked; let isSelectedAll = node.checked;
this.setDefaultSelection(_items, isRoot, isSelectedAll); this.setDefaultSelection(_items, isRoot, isSelectedAll);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册