feige
2025-04-20 7eb199649939226c3f11fd6f4cda830a389253b8
ruoyi-ui/src/views/clanManager/ancestor/index.vue
@@ -76,12 +76,12 @@
          <el-table-column label="用户角色" align="center" key="roleName" prop="roleName" width="120" />
      <el-table-column label="性别" align="center" key="sex" prop="sex"  width="120" >
            <template slot-scope="scope">{{scope.row.sex==0? '女': '男'}}</template>
            <template slot-scope="scope">{{scope.row.sex==1? '女': '男'}}</template>
            
          </el-table-column>
      
          <el-table-column
            label="操作"
           fixed="right" label="操作"
            align="center"
            width="160"
            class-name="small-padding fixed-width"
@@ -161,8 +161,8 @@
            </el-form-item>
          </el-col>
   <el-col :span="12">
     <el-form-item label="用户性别">
       <el-select v-model="form.sex" placeholder="请选择性别">
     <el-form-item label="祖先性别">
       <el-select v-model="form.sex" placeholder="请选择祖先性别">
         <el-option
           v-for="dict in dict.type.sys_user_sex"
           :key="dict.value"
@@ -181,7 +181,7 @@
            </el-form-item>
          </el-col>
   <el-col :span="12">
     <el-form-item label="用户性别">
     <el-form-item label="祖先性别">
       <el-select v-model="form.sex" placeholder="请选择性别">
         <el-option
           v-for="dict in dict.type.sys_user_sex"
@@ -484,14 +484,23 @@
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.dateRange = [];
      this.resetForm("queryForm");
      this.queryParams.deptId = undefined;
      this.$refs.tree.setCurrentKey(null);
     this.queryParams = {
       pageNum: 1,
       pageSize: 10,
       name: undefined,
       role: undefined,
       sex: undefined,
     },
     // this.$refs.tree.setCurrentKey(null);
      this.handleQuery();
    },
    // 多选框选中数据
@@ -533,18 +542,21 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.a = 2
      this.pOID = row.userId
     console.log(row)
     console.log("000000000--")
      this.pOID = row.id
      this.sex = row.sex
    //  this.getSex();
      this.reset();
      const userId = row.userId || this.ids;
     this.cuid= row.userId || this.ids;
      const userId = row.id || this.ids;
     this.cuid= row.id || this.ids;
      //  this.fid = response.data.familyId
   // alert(userId)
        //alert(this.fid)
      getUser(userId).then(response => {
        this.form = response.data;
        console.log(response.data,'formformformformform')
        console.log(this.form.spouseId,'伴侣id')
     //   console.log(this.form.spouseId,'伴侣id')
        this.postOptions = response.posts;
        this.roleOptions= []
        this.roleOptions.push(response.roles[1])
@@ -585,7 +597,7 @@
        );
        this.open = true;
        this.title = "修改用户";
        this.title = "添加用户";
        this.form.password = "";
      });
    },