| | |
| | | |
| | | <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" |
| | |
| | | </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" |
| | |
| | | </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" |
| | |
| | | /** 搜索按钮操作 */ |
| | | 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(); |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | /** 修改按钮操作 */ |
| | | 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]) |
| | |
| | | ); |
| | | |
| | | this.open = true; |
| | | this.title = "修改用户"; |
| | | this.title = "添加用户"; |
| | | this.form.password = ""; |
| | | }); |
| | | }, |