|
|
|
@ -65,7 +65,7 @@
|
|
|
|
|
>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="5" style="line-height:130px;margin-top:-20px"
|
|
|
|
|
><a-button shape="round" size="default" @click="edit()"
|
|
|
|
|
><a-button shape="round" size="default" @click="editCompany()"
|
|
|
|
|
>修改公司信息</a-button
|
|
|
|
|
></a-col
|
|
|
|
|
>
|
|
|
|
@ -187,7 +187,7 @@
|
|
|
|
|
<a-input v-model="form.name" style="60%"></a-input>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
<a-form-model-item label="小区地址" prop='address'>
|
|
|
|
|
<allCity></allCity>
|
|
|
|
|
<allCity @onchange='onchange'></allCity>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
<a-form-model-item label="小区详细地址" prop='addressDetails'>
|
|
|
|
|
<a-input v-model="form.addressDetails" style="60%"></a-input>
|
|
|
|
@ -254,13 +254,14 @@ export default {
|
|
|
|
|
addVillage() {
|
|
|
|
|
this.visible = true;
|
|
|
|
|
},
|
|
|
|
|
edit(){},
|
|
|
|
|
editCompany() {},
|
|
|
|
|
handleOk() {
|
|
|
|
|
this.$refs.ruleForm.validate(async (valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let res = await communityInsert(this.form);
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.msg);
|
|
|
|
|
this.getData();
|
|
|
|
|
this.handleCancel()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.msg);
|
|
|
|
@ -276,7 +277,10 @@ export default {
|
|
|
|
|
this.$router.push({ name: "newOrder" });
|
|
|
|
|
},
|
|
|
|
|
handleChange(data){
|
|
|
|
|
this.form.communityUrls = data[0].response.data
|
|
|
|
|
this.form.communityUrls[0] = data[0].response.data
|
|
|
|
|
},
|
|
|
|
|
onchange(data){
|
|
|
|
|
this.form.address = data[2]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|