个人中心页--企业添加其它选项
This commit is contained in:
@ -56,7 +56,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<el-col :span="10" v-if="ruleForm.addressType!=4">
|
||||
<el-form-item prop="cityId">
|
||||
<el-select
|
||||
v-model="ruleForm.cityId"
|
||||
@ -202,7 +202,11 @@ export default {
|
||||
{
|
||||
value: 3,
|
||||
label: '合肥区县'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 4,
|
||||
label: '其它'
|
||||
},
|
||||
],
|
||||
optionList2: [],
|
||||
dialogVisible: false,
|
||||
@ -318,8 +322,10 @@ export default {
|
||||
// 地级市
|
||||
if (e === 2) {
|
||||
this.getType(false);
|
||||
} else {
|
||||
} else if(e === 3) {
|
||||
this.getCity(false);
|
||||
}else{
|
||||
this.ruleForm.cityId = '';
|
||||
}
|
||||
},
|
||||
// 获取地级市
|
||||
@ -381,6 +387,8 @@ export default {
|
||||
this.getType(true, data);
|
||||
} else if(data.addressType == 3) {
|
||||
this.getCity(true, data);
|
||||
}else if(data.addressType == 4){
|
||||
this.ruleForm = data
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -61,12 +61,20 @@
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="企业地址" align="center" prop="cityType">
|
||||
<el-table-column label="企业地址" align="center" prop="addressType">
|
||||
<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]
|
||||
.label
|
||||
}}——{{ scope.row.cityName }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -140,6 +148,10 @@ export default {
|
||||
{
|
||||
value: '3',
|
||||
label: '合肥区县'
|
||||
},
|
||||
{
|
||||
value: '4',
|
||||
label: '其它'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Reference in New Issue
Block a user