radio切换后,表格数据记住之前选中的行
作者:互联网
created() { this.tableData = this.tableList[0]; }, mounted() {}, methods: { handleSelectionChange(val) { this.multipleSelection[this.radio1] = val; }, selectChange(e) { this.radio1 = e; this.tableData = this.tableList[e - 1]; setTimeout(this.toggls,100,this.multipleSelection[e]) }, toggls(row){ if(row && row.length!=0){ row.forEach(element => { this.$refs.multipleTable.toggleRowSelection(element,true); }); } }
标签:toggls,val,表格,tableList,multipleSelection,radio1,选中,radio,row 来源: https://www.cnblogs.com/linliu/p/14744045.html