| | |
| | | <el-form-item label="配偶信息" prop="spouseId" > |
| | | <el-select v-model="form.spouseId" placeholder="请选择配偶信息" @change="handleSpouse"> |
| | | <el-option |
| | | v-for="item in allInfo2" |
| | | :key="item.userId" |
| | | v-for="(item, index) in allInfo2" |
| | | :key="index" |
| | | :label="item.nickName" |
| | | :value="item.userId" |
| | | ></el-option> |
| | |
| | | if(this.a == 1){ |
| | | addPO(this.sex).then(response =>{ |
| | | for(let i in response.data[0]){ |
| | | this.allInfo2.push({'nickName':response.data[0][i],'userId':i}) |
| | | this.allInfo2.push({'nickName':response.data[0][i],'userId': parseInt(i)}) |
| | | } |
| | | console.log(this.allInfo2,'新增a=1新增a=1新增a=1') |
| | | }) |
| | | }else{ |
| | | updatePO(tpfid,this.sex).then(response =>{ |
| | | for(let i in response.data[0]){ |
| | | this.allInfo2.push({'nickName':response.data[0][i],'userId':i}) |
| | | this.allInfo2.push({'nickName':response.data[0][i],'userId': parseInt(i)}) |
| | | } |
| | | console.log(this.allInfo2,'修改a=2修改a=2修改a=2') |
| | | }) |
| | |
| | | getUser(userId).then(response => { |
| | | this.form = response.data; |
| | | console.log(response.data,'formformformformform') |
| | | console.log(this.form.spouseId,'伴侣id') |
| | | // console.log(response.data) |
| | | this.postOptions = response.posts; |
| | | this.roleOptions = response.roles; |
| | | console.log(this.roleOptions) |
| | | // console.log(this.roleOptions) |
| | | // this.$set(this.form, "postIds", response.postIds); |
| | | // this.$set(this.form, "roleIds", response.roleIds); |
| | | // alert(response.roleIds.length) |
| | |
| | | getIndividual(userId).then(response => { |
| | | // alert(123) |
| | | // console.log('++++++++-----0000((((((9999))))))') |
| | | // console.log(response.data) |
| | | console.log(response.data,'getIndividualgetIndividualgetIndividual') |
| | | if(response.data!=undefined) |
| | | { |
| | | |
| | |
| | | fm.sysId = this.form.userId |
| | | fm.userName = this.form.userName |
| | | fm.remark = this.form.remark |
| | | alert(fm.remark) |
| | | // alert(fm.remark) |
| | | |
| | | console.log(fm) |
| | | if (valid) { |