| | |
| | | data() { |
| | | return { |
| | | // 修改配偶时的用户id和sex |
| | | originRole: undefined, |
| | | sex:'', |
| | | pOID:'', |
| | | a:undefined, |
| | |
| | | } |
| | | |
| | | //alert(this.cuid) |
| | | let clanId = this.$store.state.user.clanId |
| | | |
| | | //alert(fid) |
| | | updateFM(this.cuid, fid).then(response => { |
| | | //alert(response.data) |
| | | if(!response.data) |
| | |
| | | _this.$set(_this.form,'fid',''); |
| | | return; |
| | | } |
| | | |
| | | //alert(fid) |
| | | let clanId = this.$store.state.user.clanId |
| | | alert(fid) |
| | | alert(this.cuid) |
| | | updateFM(this.cuid, fid).then(response => { |
| | | //alert(response.data) |
| | | if(!response.data) |
| | |
| | | console.log("==============_________________000000000") |
| | | _this.$set(_this.form,'spouseId',response.data.spouseId); |
| | | if(response.data.roleId==3) |
| | | { |
| | | _this.originRole = 102 |
| | | |
| | | _this.$set(_this.form,'role',102); |
| | | } |
| | | else |
| | | { |
| | | _this.originRole = 2 |
| | | _this.$set(_this.form,'role',response.data.roleId); |
| | | } |
| | | // alert(_this.form.fid) |
| | | _this.zinfid = response.data.userId |
| | | // alert(78) |
| | |
| | | fm.sex = this.form.sex |
| | | // alert(fm.sex) |
| | | fm.status = this.form.status |
| | | if(this.originRole==102 && fm.roleId==2) |
| | | { |
| | | this.$modal.msgSuccess("家庭用户不能修改为普通用户"); |
| | | return |
| | | } |
| | | fm.fid = this.form.fid |
| | | fm.mid = this.form.mid |
| | | // alert(this.form.isMyFamily) |