|
@@ -517,26 +517,6 @@
|
|
|
topNode.items.splice(rIdx, 1);
|
|
|
}
|
|
|
}
|
|
|
-// for (let rIdx = topNode.items.length - 1; rIdx >= 0; rIdx--) {
|
|
|
-// if (srcData.indexOf(topNode.items[rIdx].name) < 0) {
|
|
|
-// //topNode.items.splice(rIdx, 1);
|
|
|
-// //支持第二层判断
|
|
|
-// //备注:如果选择了父项,那不用再去判断子项
|
|
|
-// if (topNode.items[rIdx].items && topNode.items[rIdx].items.length > 0) {
|
|
|
-// for (let rIdx2 = topNode.items[rIdx].items.length - 1; rIdx2 >= 0; rIdx2--) {
|
|
|
-// let tName = topNode.items[rIdx].name + FOLDER_SEPERATER + topNode.items[rIdx].items[rIdx2].name;
|
|
|
-// if (srcData.indexOf(tName) < 0) {
|
|
|
-// topNode.items[rIdx].items.splice(rIdx2, 1);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// topNode.items.splice(rIdx, 1);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// if (!topNode.items[rIdx].hasOwnProperty('items') || topNode.items[rIdx].items.length === 0) {
|
|
|
-// topNode.items.splice(rIdx, 1);
|
|
|
-// }
|
|
|
-// }
|
|
|
}
|
|
|
|
|
|
function buildTplTree() {
|