| 
					
				 | 
			
			
				@@ -412,7 +412,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-date-picker> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-form-item label="领取红包时间" prop="joinTime" label-width="110px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-form-item v-if="joinTimeSwitch"  label="领取红包时间" prop="joinTime" label-width="110px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-date-picker 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="updateCourse.form.joinTime" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="datetime" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -606,7 +606,7 @@ import RedPacket from './redPacket.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import BatchRedPacket from './batchRedPacket.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import CourseStatistics from './statistics.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import Da from "element-ui/src/locale/lang/da"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getConfigByKey } from '@/api/system/config' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: "Period", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -683,6 +683,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ids: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         form: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      joinTimeSwitch:true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       updateCourse: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         open: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         loading: true, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1413,6 +1414,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleUpdateCourse() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const key = "joinTime.switch.config" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getConfigByKey(key).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const {code,data} = response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (code === 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let value = data?.configValue 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.joinTimeSwitch = value=='0'?true:false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.updateCourse.open = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.updateCourse.form = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ids: this.updateCourse.ids, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1505,7 +1517,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 检查领取红包时间是否正确 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!this.updateCourse.form.joinTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.updateCourse.form.joinTime&&this.joinTimeSwitch) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请选择领取红包时间'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 |