| | |
| | | if (mpdata == null) |
| | | return null; |
| | | var data = { |
| | | "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).nickName : '', |
| | | "prop": mpdata['nickName'], |
| | | "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).oldName : '', |
| | | "prop": mpdata['oldName'], |
| | | "url": mpdata['url']!=null?'https://www.bendudu.com:8080/'+mpdata['url']:tp, |
| | | "purl": mpdata['spouse'] != null ? (mpdata['spouse'].url!=null? 'https://www.bendudu.com:8080/'+mpdata['spouse'].url:tp):tp, |
| | | "id": mpdata['userId'], |
| | | "link": mpdata['nickName'], |
| | | "link": mpdata['oldName'], |
| | | "children": [] |
| | | }; |
| | | |
| | | if (mpdata['childList'] != null) { |
| | | for (var i = 0; i < mpdata['childList'].length; i++) { |
| | | var dt = { |
| | | "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).nickName : "", |
| | | "prop": mpdata['childList'][i]['nickName'], |
| | | "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).oldName : "", |
| | | "prop": mpdata['childList'][i]['oldName'], |
| | | "url": mpdata['childList'][i]['url']!=null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['url']:tp, |
| | | "id": mpdata['childList'][i]['userId'], |
| | | "purl": (mpdata['childList'][i]['spouse'] != null ) ?( mpdata['childList'][i]['spouse'].url!= null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['spouse'].url:tp):tp, |
| | | "link": mpdata['childList'][i]['nickName'], |
| | | "link": mpdata['childList'][i]['oldName'], |
| | | "children": [] |
| | | }; |
| | | if (mpdata['childList'][i]['childList'] != null) { |