| | |
| | | if(value != undefined){ |
| | | this.sex = value |
| | | } |
| | | alert(this.sex) |
| | | // alert(this.sex) |
| | | const tpfid = this.pOID |
| | | let clanId = this.$store.state.user.clanId |
| | | // 新增a=1,修改a=2 |
| | |
| | | else{ |
| | | let clanId = this.$store.state.user.clanId |
| | | this.allInfo2 = [] |
| | | alert(this.form.sex) |
| | | //alert(this.form.sex) |
| | | addPO(this.form.sex, clanId).then(response =>{ |
| | | for(let i in response.data[0]){ |
| | | this.allInfo2.push({'nickName':response.data[0][i],'userId': parseInt(i)}) |
| | |
| | | }) |
| | | if(this.form.isMyFamily=="0") |
| | | this.isshowMri = true |
| | | this.getAllIn() |
| | | } |
| | | }, |
| | | getAllIn(){ |
| | |
| | | console.log(response) |
| | | console.log('-------00000000000000000-----------') |
| | | this.allInfo = response.data; |
| | | this.fathorInfo = [] |
| | | this.motherInfo = [] |
| | | console.log(response.data,'allInfoallInfoallInfoallInfo') |
| | | for(var i = 0; i < this.allInfo.length; i++) |
| | | { |
| | |
| | | this.motherInfo.push(this.allInfo[i]) |
| | | } |
| | | // alert(98) |
| | | //console.log(this.fathorInfo) |
| | | //console.log('----sdfdsfds') |
| | | console.log(this.fathorInfo) |
| | | console.log('----sdfdsfds') |
| | | |
| | | console.log(this.motherInfo) |
| | | }) |
| | | }, |
| | | getRole(value){ |