addToRight() { const selectList = this.$refs.tableLeft.$refs.table.getCheckboxRecords(true) if (selectList && selectList.length > 0) { const unselectList = this.leftList.filter(item => { return !selectList.some(record => record.lngwageitemid === item.lngwageitemid) }) this.leftList = unselectList this.rightList = [...this.rightList, ...selectList] } this.selectLeft = 0 this.$refs.tableLeft.selectLength = 0 },
this.multipleSelection.map(item => { this.tableData.list = this.tableData.list.filter(el => { return item.lngdepartmentid !== el.lngdepartmentid }) }) 标签:el,lngwageitemid,leftList,静态,selectList,item,过滤,两项,refs From: https://www.cnblogs.com/hellofangfang/p/18218518