| 
					
				 | 
			
			
				@@ -496,6 +496,17 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-hasPermi="['course:period:updateCourseTime']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >修改看课时间</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-col :span="1.5"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :disabled="updateCourse.ids.length <= 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                @click="handleDeleteCourse" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-hasPermi="['course:period:dayRemove']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              >删除课程</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table ref="courseTable" v-loading="course.loading" :data="course.list" @selection-change="handleSelectionCourseChange" border> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-table-column type="selection" width="55" align="center" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -540,6 +551,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 icon="el-icon-edit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 @click="handleUpdateDate(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >修改营期时间</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  @click="handleDeleteCourse(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  v-hasPermi="['course:period:dayRemove']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                >删除课程</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -580,7 +598,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import {addPeriod, delPeriod, exportPeriod, getPeriod, pagePeriod, updatePeriod, getDays, addCourse, updateCourseTime, updateCourseDate, updateListCourseData, periodCourseMove, closePeriod} from "@/api/course/userCoursePeriod"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {addPeriod, delPeriod, exportPeriod, getPeriod, pagePeriod, updatePeriod,delPeriodDay, getDays, addCourse, updateCourseTime, updateCourseDate, updateListCourseData, periodCourseMove, closePeriod} from "@/api/course/userCoursePeriod"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import {getCompanyList} from "@/api/company/company"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { listCamp, addCamp, editCamp, delCamp, copyCamp } from "@/api/course/userCourseCamp"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { courseList,videoList } from '@/api/course/courseRedPacketLog' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -984,7 +1002,28 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 删除按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    async handleDeleteCourse(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const periodDayIds = row.id || this.updateCourse.ids; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        await this.$confirm('是否确认删除该课程?', "提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const res = await delPeriodDay(periodDayIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res && res.code === 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getCourseList();// 刷新列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.success('删除成功'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.error(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 导出按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleExport() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const queryParams = this.queryParams; 
			 |