解决服务指令-点击树任何节点会刷新树
This commit is contained in:
parent
fed6aa8c72
commit
a6ac0475e0
|
@ -478,17 +478,19 @@ function expandTreeNodeToLevel4(directiveData: any) {
|
|||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
function searchQuery(reloadTree = true) {
|
||||
if (!!queryParam.directiveName || !!queryParam.bodyTags || !!queryParam.emotionTags || !!queryParam.izEnabled) {
|
||||
queryParam.instructionTagId = '';
|
||||
queryParam.categoryId = '';
|
||||
queryParam.typeId = '';
|
||||
}
|
||||
reload().then(() => {
|
||||
initTree();
|
||||
});
|
||||
}
|
||||
if (reloadTree) {
|
||||
initTree();
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
|
@ -944,7 +946,7 @@ function handleTreeSelect(selectedKeys: string[], { node }: any) {
|
|||
}
|
||||
if (level == 5) return
|
||||
// 触发查询
|
||||
searchQuery();
|
||||
searchQuery(false);
|
||||
}
|
||||
|
||||
function initTree() {
|
||||
|
|
Loading…
Reference in New Issue