Browse Source

修改

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

20
src/components/Challenge/ChallengeEdit.vue

@ -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;

2
src/components/innovativeService/innovativeServiceEdit.vue

@ -151,7 +151,7 @@ export default {
},
},
methods: {
// fileList
// fileList
deleteFileList(){
console.log("进入事件")

Loading…
Cancel
Save