| | |
| | | } |
| | | this.treeList = Array.from(new Set(trees)); |
| | | var arr = this.checkSameDataA(this.list.itemList); |
| | | console.log("tag", arr); |
| | | for (var i = 0; i < arr.length; i++) { |
| | | var capB = { |
| | | safetySelfInspectionId: "", |
| | | safetyInspectionItemId: "", |
| | | } |
| | | var cser=[] |
| | | for(var j=0;j<arr[i].child.length;j++){ |
| | | capB.safetySelfInspectionId=arr[i].child[j].safetySelfInspectionId |
| | | capB.safetyInspectionItemId=arr[i].child[j].safetyInspectionItemId |
| | | cser.push(capB) |
| | | } |
| | | arr[i].id=cser |
| | | console.log('tag', capB) |
| | | arr[i].child = this.checkSameData(arr[i].child); |
| | | arr[i].id = { |
| | | safetySelfInspectionId: arr[i].child.safetySelfInspectionId, |
| | | safetyInspectionItemId: arr[i].child.safetyInspectionItemId, |
| | | }; |
| | | } |
| | | this.lists = arr; |
| | | console.log(this.lists); |
| | |
| | | capB.safetySelfInspectionId = this.itemId; |
| | | atte.push(capB); |
| | | } |
| | | console.log("数据", this.lists); |
| | | capA.id = atte; |
| | | capA.child = this.checkSameData(this.list); |
| | | if ( |
| | |
| | | this.TreeB(currentObj.value); |
| | | }, |
| | | handleClick(data) { |
| | | console.log("tag", data.id); |
| | | if (data.safetyInspectionItemId != undefined) { |
| | | this.$router.push({ |
| | | path: "/reviewXG", |
| | |
| | | this.dialogVisible = true; |
| | | this.form.status = type; |
| | | var arr = []; |
| | | console.log("数据", this.lists); |
| | | for (var i = 0; i < this.lists.length; i++) { |
| | | this.lists[i].id; |
| | | for (var j = 0; j < this.lists[i].id.length; j++) { |