el-table中input框不可修改的bug


this.ThreePartyInfo.tzj2146AbapResDtoList.forEach((item, index) => {
              item.gcname =
                this.ThreePartyInfo.tzj2142AbapResDtoList[index].gcname;
              item.gjhjl = item.hjl;
              this.$set(item, "sddw", item.sdpcdw);
              item.gjpcl = item.pcl;
              item.gjnote = item.note;
            });

這樣拿值,沒有用$set的可能會出現在input框不可更改的情況,要都換成$set

this.ThreePartyInfo.tzj2146AbapResDtoList.forEach((item, index) => {
              this.$set(item,'gcname',this.ThreePartyInfo.tzj2142AbapResDtoList[index].gcname)
              this.$set(item,'gjhjl',item.hjl)
              this.$set(item, "sddw", item.sdpcdw);
              this.$set(item,'gjpcl',item.pcl)
              this.$set(item,'gjnote',item.note)
            });

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM