| | |
| | | } |
| | | this.updateRecord(updateInterviewRecord); |
| | | } |
| | | this.updateAppointmentDetail(+this.appointmentId); |
| | | } |
| | | |
| | | private createdRecord(interviewRecordInfo) { |
| | | appointmentService.createInterviewRecord(interviewRecordInfo).then(res => { |
| | | this.confirmTxt = '新增成功' |
| | | this.showPopUp(); |
| | | this.showPopUp('新增成功'); |
| | | }); |
| | | } |
| | | |
| | | private updateRecord(updateInterviewRecord) { |
| | | appointmentService.updateInterviewRecord(updateInterviewRecord).then(res => { |
| | | this.confirmTxt = '編輯成功'; |
| | | this.showPopUp(); |
| | | this.showPopUp('編輯成功'); |
| | | }); |
| | | } |
| | | |
| | | private showPopUp() { |
| | | private showPopUp(confirmTxt) { |
| | | this.confirmTxt = confirmTxt; |
| | | this.updateAppointmentDetail(+this.appointmentId); |
| | | |
| | | if (new Date(this.interviewTime).getTime() >= new Date().getTime()) { |
| | | this.showFutureDateConfirmPopup = true; |
| | | } else { |