|
|
|
@ -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<list.length; i++) { |
|
|
|
|
if(list[i].id == startId) { |
|
|
|
|
findOut = this.cxk(idArr, list[i]) |
|
|
|
|
// item.operationIData.push(findOut) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
item.operationIName = findOut |
|
|
|
|
console.log(findOut) |
|
|
|
|
|
|
|
|
|
for (let a=0;a<this.operationIData.length;a++){ |
|
|
|
|
console.log(a+1) |
|
|
|
|
this.operationIData[a].nub = 'aaa' |
|
|
|
|
} |
|
|
|
|
console.log(this.operationIData) |
|
|
|
|
// console.log(item.operationIData) |
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
// 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) |
|
|
|
|