diff --git a/src/views/farm/area/index.vue b/src/views/farm/area/index.vue index f624e0c..80c70ab 100644 --- a/src/views/farm/area/index.vue +++ b/src/views/farm/area/index.vue @@ -157,17 +157,17 @@ export default { if(filterList.length == 0){ //没有上级 this.list.forEach(t => { - oneList.push({id:one.id, name:one.name, occupied:one.occupied, createTime:one.createTime, children:twoList}); + oneList.push({id:one.id, name:one.name, occupied:one.occupied, area:one.area, createTime:one.createTime, children:twoList}); }) }else{ filterList.forEach((one) => { let twoList = []; this.list.forEach((two) => { if(one.id == two.parentId){ - twoList.push({id:two.id, name:two.name, occupied:two.occupied, createTime:two.createTime}) + twoList.push({id:two.id, name:two.name, occupied:two.occupied, area:two.area, createTime:two.createTime}) } }) - oneList.push({id:one.id, name:one.name, occupied:one.occupied, createTime:one.createTime, children:twoList}); + oneList.push({id:one.id, name:one.name, occupied:one.occupied, area:one.area, createTime:one.createTime, children:twoList}); }) } this.list = oneList;