fix 81550
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<!-- <a-button @click="handleTest">测试</a-button>-->
|
<!-- <a-button @click="handleTest">测试</a-button>-->
|
||||||
<!-- </a-button-group>-->
|
<!-- </a-button-group>-->
|
||||||
|
|
||||||
<a-modal v-model="visible" title="插入图片" @ok="handleOk">
|
<a-modal v-model="visible" title="插入图片" @ok="handleOk" @cancel="handleCancel">
|
||||||
<a-form-model
|
<a-form-model
|
||||||
id="components-form-demo-validate-other"
|
id="components-form-demo-validate-other"
|
||||||
:model="form"
|
:model="form"
|
||||||
@@ -432,6 +432,9 @@ export default {
|
|||||||
handleOk () {
|
handleOk () {
|
||||||
console.log('图片上传和了')
|
console.log('图片上传和了')
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
if (!this.imageIpUrl) {
|
||||||
|
return
|
||||||
|
}
|
||||||
window.Asc.scope.imageUrl = this.imageIpUrl
|
window.Asc.scope.imageUrl = this.imageIpUrl
|
||||||
window.Asc.scope.title = this.form.title
|
window.Asc.scope.title = this.form.title
|
||||||
window.Asc.scope.imgSize = this.form.size
|
window.Asc.scope.imgSize = this.form.size
|
||||||
@@ -523,12 +526,24 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.form = {}
|
this.form = {
|
||||||
|
title: '',
|
||||||
|
size: '中'
|
||||||
|
}
|
||||||
this.imageIpUrl = ''
|
this.imageIpUrl = ''
|
||||||
this.imageUrl = ''
|
this.imageUrl = ''
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
handleCancel () {
|
||||||
|
this.visible = false
|
||||||
|
this.form = {
|
||||||
|
title: '',
|
||||||
|
size: '中'
|
||||||
|
}
|
||||||
|
this.imageIpUrl = ''
|
||||||
|
this.imageUrl = ''
|
||||||
|
},
|
||||||
|
|
||||||
handleChange (info) {
|
handleChange (info) {
|
||||||
if (info.file.status === 'uploading') {
|
if (info.file.status === 'uploading') {
|
||||||
|
|||||||
Reference in New Issue
Block a user