el-input 反显数据后再次修改数据没反应

发布时间 2023-03-22 21:17:09作者: 我是木木呀

前提:根据excel已有排序,导入到界面,可以再次进行修改

 

导入已经实现了,但是每次修改输入框没反应

原因:界面没刷新 

网上搜素的方法都试了,不行!!!!!!!!比如:

一: 把  :value换成 v-model      不行

 

 

二:使用   

this.$forceUpdate()   
会显示    不行
Unresolved function or method $forceUpdate()

以上都不行,也不知为何。。。。。。。。


最后我使用的方式是:

获取整个的列表数据 ---> 在末尾插入一行 ---> 将最后一行删除
let templateListDataLenth = this.templateListData.length
this.templateListData.push({reloadView:true})
this.templateListData.splice(templateListDataLenth,1)