|
|
@ -75,17 +75,17 @@ |
|
|
|
<script> |
|
|
|
import req from '@/api/lpk/banner.js' |
|
|
|
import Editor from '@/components/Editor' |
|
|
|
import upload from '@/components/uploadFile/upload_yanchejianchaTuBiao.vue' |
|
|
|
import upload from '@/components/uploadFile/upload_yanchejianchaTuBiao.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
upload, |
|
|
|
upload, |
|
|
|
Editor |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
imgList: [], |
|
|
|
hideUploadBtn: false, |
|
|
|
imgList: [], |
|
|
|
hideUploadBtn: false, |
|
|
|
submitdisabled: false, |
|
|
|
formobj: { |
|
|
|
title: '', |
|
|
@ -132,6 +132,7 @@ |
|
|
|
bannerUrl: '', |
|
|
|
bannerPath: '' |
|
|
|
} |
|
|
|
this.imgList = [] |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
|
showAdd() {}, |
|
|
@ -146,19 +147,19 @@ |
|
|
|
this.formobj = row |
|
|
|
}) |
|
|
|
}, |
|
|
|
backData(value) { |
|
|
|
console.log('backData》》》》', value) |
|
|
|
console.log('imgList', this.imgList) |
|
|
|
|
|
|
|
if (this.imgList.length > 0) { |
|
|
|
this.formobj.bannerUrl = this.imgList[0].url |
|
|
|
} else { |
|
|
|
this.formobj.bannerUrl = '' |
|
|
|
} |
|
|
|
|
|
|
|
this.hideUploadBtn = this.imgList.length !== 0 |
|
|
|
console.log('this.hideUploadBtn', this.hideUploadBtn) |
|
|
|
} |
|
|
|
backData(value) { |
|
|
|
console.log('backData》》》》', value) |
|
|
|
console.log('imgList', this.imgList) |
|
|
|
|
|
|
|
if (this.imgList.length > 0) { |
|
|
|
this.formobj.bannerUrl = this.imgList[0].url |
|
|
|
} else { |
|
|
|
this.formobj.bannerUrl = '' |
|
|
|
} |
|
|
|
|
|
|
|
this.hideUploadBtn = this.imgList.length !== 0 |
|
|
|
console.log('this.hideUploadBtn', this.hideUploadBtn) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|