|  | @@ -94,13 +94,12 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      queryBookList() {
 | 
	
		
			
				|  |  | -      let data = {
 | 
	
		
			
				|  |  | +      PageQueryBookList_SelectBookForCourse({
 | 
	
		
			
				|  |  |          name: this.search,
 | 
	
		
			
				|  |  |          course_id: this.id,
 | 
	
		
			
				|  |  |          page_capacity: this.page_capacity,
 | 
	
		
			
				|  |  |          cur_page: this.cur_page
 | 
	
		
			
				|  |  | -      };
 | 
	
		
			
				|  |  | -      PageQueryBookList_SelectBookForCourse(data).then(({ book_list, cur_page, total_count }) => {
 | 
	
		
			
				|  |  | +      }).then(({ book_list, cur_page, total_count }) => {
 | 
	
		
			
				|  |  |          this.cur_page = cur_page;
 | 
	
		
			
				|  |  |          this.total_count = total_count;
 | 
	
		
			
				|  |  |          this.book_list = book_list;
 | 
	
	
		
			
				|  | @@ -112,14 +111,13 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      addOrRemoveBookToCourse(e, book_id) {
 | 
	
		
			
				|  |  |        let classList = e.target.parentElement.parentElement.classList;
 | 
	
		
			
				|  |  | -      let isSelected = classList.contains('selected');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        let data = {
 | 
	
		
			
				|  |  |          course_id: this.id,
 | 
	
		
			
				|  |  |          book_id
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      if (isSelected) {
 | 
	
		
			
				|  |  | +      if (classList.contains('selected')) {
 | 
	
		
			
				|  |  |          RemoveBookFromCourse(data).then(() => {
 | 
	
		
			
				|  |  |            this.$message.success(this.$i18n.t('Key350'));
 | 
	
		
			
				|  |  |            classList.remove('selected');
 |