Browse Source

病假确认

zzp 2 years ago
parent
commit
cbdf3f4096
2 changed files with 4 additions and 2 deletions
  1. 1 1
      config/api.js
  2. 3 1
      pagesClass/classDetail.vue

+ 1 - 1
config/api.js

@@ -7,7 +7,7 @@
 // const API_BASE = 'http://192.168.1.109/newApi'
 const API_BASE = 'http://192.168.1.145/newApi'
 // const API_BASE = 'http://192.168.1.126:30000'
-//const API_BASE = 'http://192.168.1.117:8089'
+// const API_BASE = 'http://192.168.1.117:8089'
 
 module.exports = {
 	//  微信授权登录

+ 3 - 1
pagesClass/classDetail.vue

@@ -148,6 +148,7 @@
 				classId: '',
 				studentId: '',
 				studentName: '',
+				recordId: '',
 				classInfo: {
 					name: '',
 					classStartDate: '',
@@ -312,12 +313,13 @@
 			handleOtherClick(item) {
 				this.studentId = item.id
 				this.studentName = item.name
+				this.recordId = item.leaveRecordId
 				this.leaveOtherShow = true
 			},
 			// 病假知晓
 			handleEndClick() {
 				NET.request(API.leaveLessonsEndOk,{
-					classId:parseInt(this.classId), studentId:parseInt(this.studentId)
+					recordId:parseInt(this.recordId), studentId:parseInt(this.studentId)
 				},'POST').then(res=> {
 					if(res.status == 10000) {
 						this.$refs.uTips.show({