|
@@ -189,9 +189,13 @@ export class ProcessCreateComponent implements OnInit {
|
|
|
if (this.validateForm.valid) {
|
|
|
this.save.emit({ isLoadling: true, save: false });
|
|
|
let params = this.validateForm.value;
|
|
|
+ if(params.num < 0){
|
|
|
+ this.msg.warning('申报限额不能为负数');
|
|
|
+ return
|
|
|
+ }
|
|
|
this.saveEduCollection(params);
|
|
|
} else {
|
|
|
- this.msg.warning('请填写完整信息');
|
|
|
+ this.msg.warning('填写信息不完整或不正确');
|
|
|
Object.values(this.validateForm.controls).forEach((control) => {
|
|
|
if (control.invalid) {
|
|
|
control.markAsDirty();
|
|
@@ -360,6 +364,7 @@ export class ProcessCreateComponent implements OnInit {
|
|
|
this.isVisible = false;
|
|
|
}
|
|
|
async handleOk(): Promise<void> {
|
|
|
+ this.save.emit({ isLoadling: true});
|
|
|
let query = new Parse.Query('EduProcess');
|
|
|
query.equalTo('department', this.department);
|
|
|
query.notEqualTo('isDeleted', true);
|
|
@@ -385,5 +390,6 @@ export class ProcessCreateComponent implements OnInit {
|
|
|
this.ngOnInit();
|
|
|
this.msg.success('申报单位设置成功');
|
|
|
this.isVisible = false;
|
|
|
+ this.save.emit({ isLoadling: true, save: true });
|
|
|
}
|
|
|
}
|