更新
This commit is contained in:
@@ -34,9 +34,9 @@ defineExpose({ getRef });
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="sex">
|
||||
<el-radio-group v-model="newFormInline.sex">
|
||||
<el-radio label="保密" :value="null" />
|
||||
<el-radio label="保密" :value="0" />
|
||||
<el-radio label="男" :value="1" />
|
||||
<el-radio label="女" :value="0" />
|
||||
<el-radio label="女" :value="2" />
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="生日" prop="birthday">
|
||||
|
||||
@@ -136,7 +136,7 @@ export function useData() {
|
||||
label: "性别",
|
||||
prop: "sex",
|
||||
cellRenderer: ({ row }) => (
|
||||
<div>{row.sex === 1 ? '男' : row.sex === 0 ? '未知' : '女'}</div>
|
||||
<div>{row.sex === 1 ? '男' : row.sex === 2 ? '女' : '未知'}</div>
|
||||
)
|
||||
},
|
||||
{
|
||||
@@ -235,7 +235,7 @@ export function useData() {
|
||||
profile: user_info?.profile ?? "",
|
||||
init_code: user_info?.init_code ?? "",
|
||||
red_status: user_info?.red_status ?? "",
|
||||
sex: user_info?.sex ?? user_info.sex === '男' ? 1 : user_info.sex === '女' ? 2 : '',
|
||||
sex: user_info?.sex ?? '',
|
||||
is_real: follow_num.is_real === '已实名' ? 1 : 0
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user