|
|
@ -49,6 +49,13 @@ |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
label="图片" |
|
|
|
> |
|
|
|
<div v-if="editData.picUrl" class="d-flex align-end"> |
|
|
|
<img :src="editData.picUrl" style="height:100px;" alt=""> |
|
|
|
<div> |
|
|
|
<a-icon @click="deleteFileList" class="ml-5" type="close-circle" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<a-upload |
|
|
|
:action="upload" |
|
|
|
:before-upload="beforeUpload" |
|
|
@ -136,9 +143,22 @@ export default { |
|
|
|
watch: { |
|
|
|
editData(val) { |
|
|
|
console.log(val); |
|
|
|
this.serviceName = val.name |
|
|
|
this.intro = val.intro |
|
|
|
this.orders = val.orders |
|
|
|
this.fileList.push(val.picUrl) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 删除fileList |
|
|
|
deleteFileList(){ |
|
|
|
console.log("进入事件") |
|
|
|
|
|
|
|
this.fileList = [] |
|
|
|
this.editData.picUrl = '' |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
// 上传图片事件 |
|
|
|
handleChange(info) { |
|
|
|
// this.fileList = fileList; |
|
|
|