diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 676d303..454f314 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -416,8 +416,10 @@ export default { this.tableData.forEach(async (item, index) => { // 勾选树节点 if (item.operationIds) { + this.operationIData = [] let list = this.treeData let idstr = item.operationIds + item.operationIData = [] let idArr = idstr.split(',') idArr.shift() let startId = idArr.shift() @@ -426,10 +428,16 @@ export default { for(let i=0; i { // this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); // }) @@ -450,9 +458,7 @@ export default { if(arr.length === 0) { return obj } - let nameArr = [] - nameArr.push(obj) - console.log(nameArr) + this.operationIData.push(obj) let findIt = arr.shift() let tmp = obj.children.find(item => item.id == findIt) return this.cxk(arr, tmp)