| | |
| | | this.reset(); |
| | | }, |
| | | //拿到配偶的姓名 |
| | | // getPerson(id) |
| | | // { |
| | | // // alert(id) |
| | | // // alert(typeof(id)) |
| | | // // this.listRoot.forEach(function(item, index) { |
| | | // // //item 就是当日按循环到的对象 |
| | | // // //index是循环的索引,从0开始 |
| | | // // //alert(typeof(item.userId)) |
| | | // // if(item.userId==id){ |
| | | // // // alert(89) |
| | | // // alert(item.nickName) |
| | | // // return item.nickName |
| | | // // } |
| | | // |
| | | // // }) |
| | | // let username = "" |
| | | // for(let i = 0; i < this.listRoot.length;i++) |
| | | // { |
| | | // if(this.listRoot[i].userId==id) |
| | | // username = this.listRoot[i].nickName |
| | | getPerson(id) |
| | | { |
| | | // alert(id) |
| | | // alert(typeof(id)) |
| | | // this.listRoot.forEach(function(item, index) { |
| | | // //item 就是当日按循环到的对象 |
| | | // //index是循环的索引,从0开始 |
| | | // //alert(typeof(item.userId)) |
| | | // if(item.userId==id){ |
| | | // // alert(89) |
| | | // alert(item.nickName) |
| | | // return item.nickName |
| | | // } |
| | | // return username; |
| | | // // return "12ddd" |
| | | // }, |
| | | |
| | | // }) |
| | | let username = "" |
| | | for(let i = 0; i < this.listRoot.length;i++) |
| | | { |
| | | if(this.listRoot[i].userId==id) |
| | | username = this.listRoot[i].nickName |
| | | } |
| | | return username; |
| | | // return "12ddd" |
| | | }, |
| | | //隔行变色 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if (rowIndex % 2 == 0) { |
| | |
| | | ...this.queryParams |
| | | }, `zGenealogy_${new Date().getTime()}.xlsx`) |
| | | }else{ |
| | | this.download('/self/user/export/genealogy/'+Ids, { |
| | | this.download('/self/user/export/genealogy1/'+Ids, { |
| | | |
| | | }, `zGenealogy_${new Date().getTime()}.xlsx`) |
| | | } |