|
@@ -309,12 +309,20 @@ export default { |
|
|
break |
|
|
break |
|
|
|
|
|
|
|
|
case 'save': |
|
|
case 'save': |
|
|
// console.log(this.current) |
|
|
|
|
|
|
|
|
|
|
|
const verifyResult = this.verifyForm() |
|
|
const verifyResult = this.verifyForm() |
|
|
if (verifyResult.length > 0) { |
|
|
if (verifyResult.length > 0) { |
|
|
this.CONFIRM('表单验证失败', verifyResult.join('\n')) |
|
|
this.CONFIRM('表单验证失败', verifyResult.join('\n')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let StartTime = Date.parse(this.current.StuLeaveManagement.StartTime) |
|
|
|
|
|
let EndTime = Date.parse(this.current.StuLeaveManagement.EndTime) |
|
|
|
|
|
|
|
|
|
|
|
if(StartTime > EndTime){ |
|
|
|
|
|
this.TOAST('结束时间不能早于开始时间') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) { |
|
|
if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) { |
|
|
return |
|
|
return |
|
|