From 88677dcf950aff5d41a4caee3591ae8cf1c96d55 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Wed, 26 Jan 2022 17:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Transaction.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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)