|  | @@ -124,7 +124,7 @@ export default {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        searchForm: {
 | 
	
		
			
				|  |  |          order: null,
 | 
	
		
			
				|  |  | -        userId: null,
 | 
	
		
			
				|  |  | +        userId: null
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        downTypeList,
 | 
	
		
			
				|  |  |        tableList: [],
 | 
	
	
		
			
				|  | @@ -133,9 +133,9 @@ export default {
 | 
	
		
			
				|  |  |          limit: 10, // 限制显示条数
 | 
	
		
			
				|  |  |          page: 1, // 当前页
 | 
	
		
			
				|  |  |          total: 0, // 总条数
 | 
	
		
			
				|  |  | -        page_size: [10, 20, 40, 50], // 选择限制显示条数
 | 
	
		
			
				|  |  | +        page_size: [10, 20, 40, 50] // 选择限制显示条数
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      deleteList: [],
 | 
	
		
			
				|  |  | +      deleteList: []
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    //生命周期 - 创建完成(可以访问当前this实例)
 | 
	
	
		
			
				|  | @@ -155,16 +155,16 @@ export default {
 | 
	
		
			
				|  |  |          const res = await managerDownloadList({
 | 
	
		
			
				|  |  |            ...this.searchForm,
 | 
	
		
			
				|  |  |            page: this.rules.page,
 | 
	
		
			
				|  |  | -          rows: this.rules.limit,
 | 
	
		
			
				|  |  | +          rows: this.rules.limit
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          this.tableList = res.data.rows;
 | 
	
		
			
				|  |  |          this.rules.total = res.data.total;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        let idList = this.deleteList.map((course) => {
 | 
	
		
			
				|  |  | +        let idList = this.deleteList.map(course => {
 | 
	
		
			
				|  |  |            return course.id;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          this.$nextTick(() => {
 | 
	
		
			
				|  |  | -          this.tableList.forEach((course) => {
 | 
	
		
			
				|  |  | +          this.tableList.forEach(course => {
 | 
	
		
			
				|  |  |              if (idList.indexOf(course.id) != -1) {
 | 
	
		
			
				|  |  |                console.log(course.id);
 | 
	
		
			
				|  |  |                this.$refs.tableList.toggleRowSelection(course, true);
 | 
	
	
		
			
				|  | @@ -198,12 +198,12 @@ export default {
 | 
	
		
			
				|  |  |          if (this.isDetele) return;
 | 
	
		
			
				|  |  |          // 有2种 1是新页
 | 
	
		
			
				|  |  |          // 2是点击反选
 | 
	
		
			
				|  |  | -        let idList = this.deleteList.map((course) => {
 | 
	
		
			
				|  |  | +        let idList = this.deleteList.map(course => {
 | 
	
		
			
				|  |  |            return course.id;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          this.$nextTick(() => {
 | 
	
		
			
				|  |  |            let tableIdList = [];
 | 
	
		
			
				|  |  | -          this.tableList.forEach((course) => {
 | 
	
		
			
				|  |  | +          this.tableList.forEach(course => {
 | 
	
		
			
				|  |  |              tableIdList.push(course.id);
 | 
	
		
			
				|  |  |              if (idList.indexOf(course.id) != -1) {
 | 
	
		
			
				|  |  |                this.$refs.tableList.toggleRowSelection(course, false);
 | 
	
	
		
			
				|  | @@ -212,7 +212,7 @@ export default {
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  |            this.deleteList = this.$helpers.lodash.remove(
 | 
	
		
			
				|  |  |              this.deleteList,
 | 
	
		
			
				|  |  | -            function (item) {
 | 
	
		
			
				|  |  | +            function(item) {
 | 
	
		
			
				|  |  |                return tableIdList.indexOf(item.id) == -1;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            );
 | 
	
	
		
			
				|  | @@ -223,7 +223,7 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onTableSelect(rows, row) {
 | 
	
		
			
				|  |  | -      let idList = this.deleteList.map((course) => {
 | 
	
		
			
				|  |  | +      let idList = this.deleteList.map(course => {
 | 
	
		
			
				|  |  |          return course.id;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |        if (idList.indexOf(row.id) != -1) {
 | 
	
	
		
			
				|  | @@ -245,7 +245,7 @@ export default {
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  | -        let idList = this.deleteList.map((course) => {
 | 
	
		
			
				|  |  | +        let idList = this.deleteList.map(course => {
 | 
	
		
			
				|  |  |            return course.id;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          const res = await managerDownloadRecord({ ids: idList.join(",") });
 | 
	
	
		
			
				|  | @@ -255,9 +255,8 @@ export default {
 | 
	
		
			
				|  |  |        } catch (e) {
 | 
	
		
			
				|  |  |          console.log(e);
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  | -<style lang='scss' scoped>
 | 
	
		
			
				|  |  | -</style>
 | 
	
		
			
				|  |  | +<style lang="scss" scoped></style>
 |