fix bug
This commit is contained in:
@@ -433,9 +433,8 @@ export default {
|
|||||||
`
|
`
|
||||||
},
|
},
|
||||||
async editContract() { // 选择一个询价单,整成合同明细
|
async editContract() { // 选择一个询价单,整成合同明细
|
||||||
if (this.demoRadio) {
|
if (this.contractNumValue) {
|
||||||
await sleep(0) // 处理渲染延迟
|
if (this.demoRadio) {
|
||||||
if (this.contractNumValue) {
|
|
||||||
this.$refs.tinymce.destroyTinymce()
|
this.$refs.tinymce.destroyTinymce()
|
||||||
document.getElementById('contractName') ? document.getElementById('contractName').innerHTML = this.contractName : ''
|
document.getElementById('contractName') ? document.getElementById('contractName').innerHTML = this.contractName : ''
|
||||||
document.getElementById('contractNum') ? document.getElementById('contractNum').innerHTML = this.contractNum : ''
|
document.getElementById('contractNum') ? document.getElementById('contractNum').innerHTML = this.contractNum : ''
|
||||||
@@ -500,10 +499,10 @@ export default {
|
|||||||
this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML
|
this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML
|
||||||
this.$refs.tinymce.initTinymce()
|
this.$refs.tinymce.initTinymce()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请先选择合同,再预览')
|
this.$message.warning('请先选择合同模板,再预览')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请先选择合同模板,再预览')
|
this.$message.warning('请先选择合同,再预览')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
demo2() {
|
demo2() {
|
||||||
|
|||||||
Reference in New Issue
Block a user