| 
					
				 | 
			
			
				@@ -20,6 +20,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="newBand" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            v-permission="{parent:'/vipReset',child:'employee/findEducationUsers'}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @click="educationalVisible = true">课程信息</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div class="newBand" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           v-permission="'vipGroupManage/update'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           @click="expireVisible = true">有效期调整</div>  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="tableWrap"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -439,6 +442,34 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    @click="resetEducationalVisible">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-dialog title="有效期调整" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               width="400px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               :visible.sync="expireVisible"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form :model="expireForm" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               ref="expireForm" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               :rules="expireRules" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               label-position="right" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               label-width="80px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               :inline="true"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-form-item label="课程结束时间" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      prop="coursesExpireDate"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-date-picker v-model.trim="expireForm.coursesExpireDate" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          style="width:200px!important;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          type="date" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          :picker-options="bigin" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          value-format="yyyy-MM-dd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          placeholder="选择日期"></el-date-picker> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <!-- <div style="padding-left: 15px; color: red;">课程结束时间不得晚于,{{ expireForm.tempCoursesExpireDate }}</div> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div slot="footer" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button @click="expireVisible = false">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   @click="submitExpireDate">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -446,7 +477,8 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   resetCourse, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   cleanAttendance, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   findEducationUsers, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  getEmployeeOrgan 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  getEmployeeOrgan, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from "@/api/buildTeam"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { queryEmployByOrganId } from '@/api/systemManage' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // import { getSchool } from '@/api/systemManage' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -457,7 +489,8 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   appendVipGroupCourseSchedules, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   vipCourseAdjust, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   updateVipBaseInfo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  batchAppendVipGroupCourses 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  batchAppendVipGroupCourses, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  vipGroupManageUpdate 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from "@/api/vipSeting"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { getTeachSchool } from "@/api/teacherManager"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { diffTimerFormMinute, addTimerFormMinute } from '@/utils/date' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -468,7 +501,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      expireVisible:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       addrVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       adjustmentVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       addCourseVisible: false, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -552,7 +585,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       organList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       name: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       endTime: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      startClassTime: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      startClassTime: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         expireForm: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        coursesExpireDate: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        tempCoursesExpireDate: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      bigin: this.beginDate(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        expireRules: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        coursesExpireDate: [{ required: true, message: "请选择课程结束时间", trigger: "blur" }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created () { }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -571,6 +612,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let addrForm = this.addrForm 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.name = this.$route.query.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.endTime = this.$route.query.endTimeStr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.expireForm.coursesExpireDate = this.endTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.startClassTime = this.$route.query.startTimeStr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (query.educationalTeacherId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         addrForm.educationalTeacherId = Number(query.educationalTeacherId); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1009,6 +1051,51 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return time.getTime() + 86400000 <= new Date().getTime() || time.getTime() > date.getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submitExpireDate () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.expireForm.validate(some => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (some) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          vipGroupManageUpdate({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            id: this.vipid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            coursesExpireDate: this.expireForm.coursesExpireDate 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (res.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$message.success("有效期修改成功") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.expireVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              let str = this.expireForm.coursesExpireDate+ ' 00:00:00' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                query:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   ...this.$route.query, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                endTimeStr: str 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              // this.$route.query.endTimeStr = str; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.endTime = str 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              console.log(str) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$message.error(res.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    beginDate(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let self = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        firstDayOfWeek: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        disabledDate (time) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // if (self.expireForm.tempCoursesExpireDate) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   return new Date(self.expireForm.tempCoursesExpireDate).getTime() > time.getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return time.getTime() <= Date.now() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //开始时间不选时,结束时间最大值小于等于当天 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 |