yz3456
2024-07-11 bf4cb195c34e79dae5576b21a215118b7ef1357f
ruoyi-ui/src/views/system/user/index.vue
@@ -297,8 +297,8 @@
             <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>
@@ -548,14 +548,14 @@
      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')
        })
@@ -823,10 +823,11 @@
      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)
@@ -837,7 +838,7 @@
     getIndividual(userId).then(response => {
           //  alert(123)
         // console.log('++++++++-----0000((((((9999))))))')
     //          console.log(response.data)
              console.log(response.data,'getIndividualgetIndividualgetIndividual')
            if(response.data!=undefined)
            {
@@ -913,7 +914,7 @@
        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) {