|
@ -5,7 +5,7 @@ |
|
|
:model="formData" |
|
|
:model="formData" |
|
|
:rules="dataRule" |
|
|
:rules="dataRule" |
|
|
label-width="100px"> |
|
|
label-width="100px"> |
|
|
<el-form-item label="事件分类" |
|
|
<!-- <el-form-item label="事件分类" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
prop="categoryId"> |
|
|
prop="categoryId"> |
|
|
<el-cascader class="cell-width-2" |
|
|
<el-cascader class="cell-width-2" |
|
@ -16,7 +16,7 @@ |
|
|
:props="optionProps" |
|
|
:props="optionProps" |
|
|
:show-all-levels="false" |
|
|
:show-all-levels="false" |
|
|
@change="handleChangeCate"></el-cascader> |
|
|
@change="handleChangeCate"></el-cascader> |
|
|
</el-form-item> |
|
|
</el-form-item> --> |
|
|
<el-form-item label="服务内容" |
|
|
<el-form-item label="服务内容" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
prop="content"> |
|
|
prop="content"> |
|
@ -197,7 +197,7 @@ function iniFmData () { |
|
|
serviceLocation: '',//事件地址 |
|
|
serviceLocation: '',//事件地址 |
|
|
latitude: '',// 经度 |
|
|
latitude: '',// 经度 |
|
|
longitude: '',//维度 |
|
|
longitude: '',//维度 |
|
|
categoryId: '' |
|
|
// categoryId: '' |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
export default { |
|
|
export default { |
|
@ -236,9 +236,9 @@ export default { |
|
|
dataRule () { |
|
|
dataRule () { |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
categoryId: [ |
|
|
// categoryId: [ |
|
|
{ required: true, message: "请填写事件分类", trigger: "blur" }, |
|
|
// { required: true, message: "请填写事件分类", trigger: "blur" }, |
|
|
], |
|
|
// ], |
|
|
content: [ |
|
|
content: [ |
|
|
{ required: true, message: "服务内容不能为空", trigger: "blur" }, |
|
|
{ required: true, message: "服务内容不能为空", trigger: "blur" }, |
|
|
], |
|
|
], |
|
@ -330,15 +330,15 @@ export default { |
|
|
this.formData.demandUserMobile = this.eventDetailCopy.mobile |
|
|
this.formData.demandUserMobile = this.eventDetailCopy.mobile |
|
|
|
|
|
|
|
|
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
|
|
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
|
|
this.selCategoryArray = [] |
|
|
// this.selCategoryArray = [] |
|
|
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) |
|
|
// this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) |
|
|
this.selCategoryArray.push(this.eventDetailCopy.categoryId) |
|
|
// this.selCategoryArray.push(this.eventDetailCopy.categoryId) |
|
|
this.formData.categoryId = this.eventDetailCopy.categoryId |
|
|
// this.formData.categoryId = this.eventDetailCopy.categoryId |
|
|
|
|
|
|
|
|
this.selCateObj = { |
|
|
// this.selCateObj = { |
|
|
name: this.eventDetailCopy.categoryName, |
|
|
// name: this.eventDetailCopy.categoryName, |
|
|
id: this.eventDetailCopy.categoryId |
|
|
// id: this.eventDetailCopy.categoryId |
|
|
} |
|
|
// } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|