|
@ -1,11 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false" :close-on-press-escape="false"> |
|
|
<el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false" :close-on-press-escape="false"> |
|
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" :label-width="$i18n.locale === 'en-US' ? '120px' : '130px'"> |
|
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" :label-width="$i18n.locale === 'en-US' ? '120px' : '130px'"> |
|
|
<el-form-item label="企业名称" prop="companyName"> |
|
|
<el-form-item label="名称" prop="companyName"> |
|
|
<el-input v-model="dataForm.companyName" placeholder="企业名称"></el-input> |
|
|
<el-input v-model="dataForm.companyName" placeholder="名称"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="企业简介" prop="companyIntroduction"> |
|
|
<el-form-item label="简介" prop="companyIntroduction"> |
|
|
<el-input v-model="dataForm.companyIntroduction" placeholder="企业简介"></el-input> |
|
|
<el-input v-model="dataForm.companyIntroduction" placeholder="简介"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="联系人" prop="contactPerson"> |
|
|
<el-form-item label="联系人" prop="contactPerson"> |
|
|
<el-input v-model="dataForm.contactPerson" placeholder="联系人"></el-input> |
|
|
<el-input v-model="dataForm.contactPerson" placeholder="联系人"></el-input> |
|
@ -13,7 +13,7 @@ |
|
|
<el-form-item label="联系电话" prop="mobile"> |
|
|
<el-form-item label="联系电话" prop="mobile"> |
|
|
<el-input v-model="dataForm.mobile" placeholder="联系电话"></el-input> |
|
|
<el-input v-model="dataForm.mobile" placeholder="联系电话"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="企业照片"> |
|
|
<el-form-item label="照片"> |
|
|
<el-upload list-type="picture-card" |
|
|
<el-upload list-type="picture-card" |
|
|
:limit=6 |
|
|
:limit=6 |
|
|
:action="uploadUrl" |
|
|
:action="uploadUrl" |
|
@ -23,8 +23,17 @@ |
|
|
<i slot="default" class="el-icon-plus"></i> |
|
|
<i slot="default" class="el-icon-plus"></i> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="企业地址" prop="companyAddress"> |
|
|
<el-form-item label="地址" prop="companyAddress"> |
|
|
<el-input v-model="dataForm.companyAddress" placeholder="企业地址"></el-input> |
|
|
<el-input v-model="dataForm.companyAddress" placeholder="地址"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="类型" prop="houseType"> |
|
|
|
|
|
<el-select v-model="dataForm.houseType" placeholder="类型" style="width:460px"> |
|
|
|
|
|
<el-option v-for="item in houseTypeDictList" |
|
|
|
|
|
:key="item.dictValue" |
|
|
|
|
|
:label="item.dictName" |
|
|
|
|
|
:value="item.dictValue"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="纬度" prop="latitude"> |
|
|
<el-form-item label="纬度" prop="latitude"> |
|
|
<el-input v-model="dataForm.latitude" placeholder="纬度"></el-input> |
|
|
<el-input v-model="dataForm.latitude" placeholder="纬度"></el-input> |
|
@ -66,6 +75,7 @@ export default { |
|
|
companyIntroduction: '', |
|
|
companyIntroduction: '', |
|
|
contactPerson: '', |
|
|
contactPerson: '', |
|
|
mobile: '', |
|
|
mobile: '', |
|
|
|
|
|
houseType: '', |
|
|
companyAddress: '', |
|
|
companyAddress: '', |
|
|
uniformSocialCreditCode: '', |
|
|
uniformSocialCreditCode: '', |
|
|
registeredCapital: '', |
|
|
registeredCapital: '', |
|
@ -79,7 +89,9 @@ export default { |
|
|
updatedBy: '', |
|
|
updatedBy: '', |
|
|
updatedTime: '', |
|
|
updatedTime: '', |
|
|
images: [] |
|
|
images: [] |
|
|
} |
|
|
}, |
|
|
|
|
|
houseTypeDictList: [], |
|
|
|
|
|
loading: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -100,6 +112,9 @@ export default { |
|
|
companyAddress: [ |
|
|
companyAddress: [ |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
houseType: [ |
|
|
|
|
|
{required: true, message: this.$t('validate.required'), trigger: 'blur'} |
|
|
|
|
|
], |
|
|
longitude: [ |
|
|
longitude: [ |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
], |
|
|
], |
|
@ -120,6 +135,16 @@ export default { |
|
|
this.getInfo() |
|
|
this.getInfo() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.getHouseTypeDicList() |
|
|
|
|
|
}, |
|
|
|
|
|
//获取房屋类型数据 |
|
|
|
|
|
getHouseTypeDicList () { |
|
|
|
|
|
this.$http.get(`/sys/dict/listSimple/houseType`).then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
this.houseTypeDictList = res.data |
|
|
|
|
|
}).catch(() => { }) |
|
|
}, |
|
|
}, |
|
|
// 获取信息 |
|
|
// 获取信息 |
|
|
getInfo () { |
|
|
getInfo () { |
|
|