This commit is contained in:
chenjianan
2019-04-16 18:33:21 +08:00
parent 2a38bbb424
commit b88139c0d8

View File

@@ -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() {