<el-table v-loading="loading2" ref="multipleTable" :data="reportList" @sort-change="handleReportSortChange" @selection-change="handleReportSelectionChange">回显代码getReportList(){ //table列表的值this.loading2 = true;listPhyRecord(this.addDateRange(this.queryReportParams, this.dateReportRange)).then(response => {this.reportList = response.rows;this.totalReport = response.total;this.loading2 = false;if(this.queryParams.id){//如果是编辑的状态下 遍历当前数组和回显的数据 如果相同的isSelect设置为true反之falsethis.reportList.forEach(item => {item.isSelect = this.reportLessonIds.includes(item.lessonId);if(item.isSelect){ // 根据后端返回是否勾选的字段判断是否勾选this.$nextTick(() => {this.$refs.multipleTable.toggleRowSelection(item)this.reportLessonIds = this.reportLessonIds})}});}});},//处理的地方handleReportSelectionChange(selection){if(selection.length == 0) return *******处理的地方后面的是你的代码this.reportLessonIds = selection.map(item => item.lessonId)this.singleReport = selection.length !== 1this.multipleReport = !selection.length},