Commit 241ef835 authored by 罗林杰's avatar 罗林杰

增加字段,修改婚姻状况

parent 137a3ec2
...@@ -13,10 +13,8 @@ export const options = { ...@@ -13,10 +13,8 @@ export const options = {
{ label: '其他', value: 0 } { label: '其他', value: 0 }
], ],
marriage: [ marriage: [
{ label: '其他', value: 0 }, { label: '无婚史', value: 0 },
{ label: '未婚', value: 1 }, { label: '有婚史', value: 1 }
{ label: '已婚', value: 2 },
{ label: '离异', value: 3 }
], ],
constellation: [ constellation: [
{ label: '水瓶座', value: 1 }, // 1月20日 - 2月18日 { label: '水瓶座', value: 1 }, // 1月20日 - 2月18日
......
...@@ -453,6 +453,23 @@ ...@@ -453,6 +453,23 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="头像开发:" prop="avatarOpen">
<el-select
v-model="form.avatarOpen"
placeholder="请选择是否开放"
style="width: 300px"
:disabled="secondFromDisabled"
>
<el-option
v-for="item in avatarOpenOptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
...@@ -661,6 +678,16 @@ export default { ...@@ -661,6 +678,16 @@ export default {
value: 0 value: 0
} }
], ],
avatarOpenOptions: [
{
label: '开放',
value: 1
},
{
label: '不开放',
value: 0
}
],
flagOptions: [ flagOptions: [
{ {
label: '启用', label: '启用',
...@@ -787,6 +814,9 @@ export default { ...@@ -787,6 +814,9 @@ export default {
} }
} }
this.form = response.data this.form = response.data
if (response.data.avatarOpen === null) {
this.form.avatarOpen = 0
}
this.imageUrl = response.data.avatarUrl this.imageUrl = response.data.avatarUrl
this.numberFormatter() this.numberFormatter()
this.residenceFormatter() this.residenceFormatter()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment