From adcc23c5c255964a0132414bb0b782a3176a2707 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 17 Dec 2019 16:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A0=91=E9=80=89=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/tree/ztree/asynctree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/tree/ztree/asynctree.js b/src/base/tree/ztree/asynctree.js index 8ed74b820..7a4ffb112 100644 --- a/src/base/tree/ztree/asynctree.js +++ b/src/base/tree/ztree/asynctree.js @@ -115,6 +115,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, { var name = this._getNodeValue(treeNode); // var values = parentValues.concat([name]); if (treeNode.checked === true) { + this._addTreeNode(this.options.paras.selectedValues, parentValues, name, {}); } else { var tNode = treeNode; var pNode = this._getTree(this.options.paras.selectedValues, parentValues); @@ -185,7 +186,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, { if (BI.isNull(compare[n])) { self._addTreeNode(map, parent, n, item); } else if (BI.isEmpty(compare[n])) { - self._addTreeNode(map, parent, n, {}); + self._addTreeNode(map, parent, n, item); } else { track(parent.concat([n]), node[n], compare[n]); }