Browse Source

修改

master
rose 4 years ago
parent
commit
9148edc7d6
  1. 20
      src/components/Challenge/ChallengeEdit.vue

20
src/components/Challenge/ChallengeEdit.vue

@ -49,6 +49,13 @@
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="formItemLayout.wrapperCol"
label="图片" 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 <a-upload
:action="upload" :action="upload"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@ -136,9 +143,22 @@ export default {
watch: { watch: {
editData(val) { editData(val) {
console.log(val); console.log(val);
this.serviceName = val.name
this.intro = val.intro
this.orders = val.orders
this.fileList.push(val.picUrl)
}, },
}, },
methods: { methods: {
// fileList
deleteFileList(){
console.log("进入事件")
this.fileList = []
this.editData.picUrl = ''
},
// //
handleChange(info) { handleChange(info) {
// this.fileList = fileList; // this.fileList = fileList;

Loading…
Cancel
Save