|
@ -68,9 +68,8 @@ |
|
|
:accept="'.jpg,.png,.jpeg,.bmp'" :with-credentials="true" :show-file-list="false" |
|
|
:accept="'.jpg,.png,.jpeg,.bmp'" :with-credentials="true" :show-file-list="false" |
|
|
:auto-upload="true" :on-success="handleExcelSuccess" :before-upload="beforeUpload" |
|
|
:auto-upload="true" :on-success="handleExcelSuccess" :before-upload="beforeUpload" |
|
|
> |
|
|
> |
|
|
<img style="width: 180px;height: 180px;" |
|
|
<img style="width: 180px;height: 180px;" |
|
|
:src="formData.headImg"></img> |
|
|
:src="formData.headImg" /> |
|
|
|
|
|
|
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -603,6 +602,8 @@ |
|
|
}, |
|
|
}, |
|
|
async initForm(row, type) { |
|
|
async initForm(row, type) { |
|
|
// this.startLoading() |
|
|
// this.startLoading() |
|
|
|
|
|
console.log(row,"dsldsflk;"); |
|
|
|
|
|
|
|
|
this.formType = type |
|
|
this.formType = type |
|
|
if (type === 'edit') { |
|
|
if (type === 'edit') { |
|
|
this.formData = row |
|
|
this.formData = row |
|
@ -663,6 +664,9 @@ |
|
|
let combinedString = this.typefatherId + "," + this.childrenId; |
|
|
let combinedString = this.typefatherId + "," + this.childrenId; |
|
|
this.formData.serviceDemand=combinedString |
|
|
this.formData.serviceDemand=combinedString |
|
|
this.formData.statusCategory=this.formData.statusCategory?this.formData.statusCategory.join(","):this.formData.statusCategory |
|
|
this.formData.statusCategory=this.formData.statusCategory?this.formData.statusCategory.join(","):this.formData.statusCategory |
|
|
|
|
|
if(this.formData.headImg=="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet-saas/prod/internal/20250429/6cbeb1fb92a14f8688264d17f9d4046b.png"){ |
|
|
|
|
|
this.formData.headImg="" |
|
|
|
|
|
} |
|
|
const { data, code, msg } = await requestPost(url, this.formData) |
|
|
const { data, code, msg } = await requestPost(url, this.formData) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|