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() { // 选择一个询价单,整成合同明细
if (this.demoRadio) {
await sleep(0) // 处理渲染延迟
if (this.contractNumValue) {
if (this.demoRadio) {
this.$refs.tinymce.destroyTinymce()
document.getElementById('contractName') ? document.getElementById('contractName').innerHTML = this.contractName : ''
document.getElementById('contractNum') ? document.getElementById('contractNum').innerHTML = this.contractNum : ''
@@ -500,10 +499,10 @@ export default {
this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML
this.$refs.tinymce.initTinymce()
} else {
this.$message.warning('请先选择合同,再预览')
this.$message.warning('请先选择合同模板,再预览')
}
} else {
this.$message.warning('请先选择合同模板,再预览')
this.$message.warning('请先选择合同,再预览')
}
},
demo2() {