提交 6d0e68e3 authored 作者: pengxiaohui's avatar pengxiaohui

修复产品分析输入框删除字符强制刷新的问题

上级 2f1e7668
...@@ -90,18 +90,18 @@ export default { ...@@ -90,18 +90,18 @@ export default {
this.data = caseStorageData this.data = caseStorageData
// console.log('casee', this.data) // console.log('casee', this.data)
this.formData.production_detail = caseStorageData.production_detail.map(item => { this.formData.production_detail = caseStorageData.production_detail.map(item => {
item.content = '' this.$set(item, 'content', '')
if (item.show_answer) item.content = item.show_answer if (item.show_answer) item.content = item.show_answer
return item return item
}) })
if (this.formData.production_detail.length > 0) this.tabBtnText.push('产品概括') if (this.formData.production_detail.length > 0) this.tabBtnText.push('产品概括')
this.formData.fund_detail = caseStorageData.fund_detail.map(item => { this.formData.fund_detail = caseStorageData.fund_detail.map(item => {
item.content = '' this.$set(item, 'content', '')
return item return item
}) })
if (this.formData.fund_detail.length > 0) this.tabBtnText.push('基金投资与净值表现') if (this.formData.fund_detail.length > 0) this.tabBtnText.push('基金投资与净值表现')
this.formData.invest_detail = caseStorageData.invest_detail.map(item => { this.formData.invest_detail = caseStorageData.invest_detail.map(item => {
item.content = '' this.$set(item, 'content', '')
return item return item
}) })
if (this.formData.invest_detail.length > 0) this.tabBtnText.push('投资本基金涉及的费用') if (this.formData.invest_detail.length > 0) this.tabBtnText.push('投资本基金涉及的费用')
...@@ -111,13 +111,13 @@ export default { ...@@ -111,13 +111,13 @@ export default {
setTimeout(() => { setTimeout(() => {
this.countDomHeight() this.countDomHeight()
}, 1000) }, 1000)
const _this = this // const _this = this
$(document).keyup(function(event) { // $(document).keyup(function(event) {
_this.$forceUpdate() // _this.$forceUpdate()
}) // })
$(document).keydown(function(event) { // $(document).keydown(function(event) {
_this.$forceUpdate() // _this.$forceUpdate()
}) // })
document.querySelector('#emb').addEventListener('load', () => { document.querySelector('#emb').addEventListener('load', () => {
this.showFullscreenBtn = true this.showFullscreenBtn = true
}, false) }, false)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论