个人中心页--企业添加其它选项

This commit is contained in:
熊丽君
2021-09-15 11:53:44 +08:00
parent 8436f302b3
commit 69ce2a8be1
2 changed files with 25 additions and 5 deletions

View File

@ -56,7 +56,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10" v-if="ruleForm.addressType!=4">
<el-form-item prop="cityId"> <el-form-item prop="cityId">
<el-select <el-select
v-model="ruleForm.cityId" v-model="ruleForm.cityId"
@ -202,7 +202,11 @@ export default {
{ {
value: 3, value: 3,
label: '合肥区县' label: '合肥区县'
} },
{
value: 4,
label: '其它'
},
], ],
optionList2: [], optionList2: [],
dialogVisible: false, dialogVisible: false,
@ -318,8 +322,10 @@ export default {
// 地级市 // 地级市
if (e === 2) { if (e === 2) {
this.getType(false); this.getType(false);
} else { } else if(e === 3) {
this.getCity(false); this.getCity(false);
}else{
this.ruleForm.cityId = '';
} }
}, },
// 获取地级市 // 获取地级市
@ -381,6 +387,8 @@ export default {
this.getType(true, data); this.getType(true, data);
} else if(data.addressType == 3) { } else if(data.addressType == 3) {
this.getCity(true, data); this.getCity(true, data);
}else if(data.addressType == 4){
this.ruleForm = data
} }
}); });
}); });

View File

@ -61,12 +61,20 @@
</el-image> </el-image>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业地址" align="center" prop="cityType"> <el-table-column label="企业地址" align="center" prop="addressType">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.addressType==4">
{{
optionList1.filter(item => item.value == scope.row.addressType)[0]
.label
}}
</div>
<div v-else>
{{ {{
optionList1.filter(item => item.value == scope.row.addressType)[0] optionList1.filter(item => item.value == scope.row.addressType)[0]
.label .label
}}{{ scope.row.cityName }} }}{{ scope.row.cityName }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -140,6 +148,10 @@ export default {
{ {
value: '3', value: '3',
label: '合肥区县' label: '合肥区县'
},
{
value: '4',
label: '其它'
} }
] ]
}; };