|
|
@ -13,6 +13,7 @@ import {ActivateService} from '../../../services/activate.service'; |
|
|
|
export class ActivateEditComponent implements OnInit { |
|
|
|
export class ActivateEditComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
validateForm!: FormGroup; |
|
|
|
validateForm!: FormGroup; |
|
|
|
|
|
|
|
validateFormAward!: FormGroup; |
|
|
|
data: any; |
|
|
|
data: any; |
|
|
|
editFlag = false; |
|
|
|
editFlag = false; |
|
|
|
id: number; |
|
|
|
id: number; |
|
|
@ -40,7 +41,13 @@ export class ActivateEditComponent implements OnInit { |
|
|
|
type: [null, [Validators.required]], |
|
|
|
type: [null, [Validators.required]], |
|
|
|
content: [null, [Validators.required]], |
|
|
|
content: [null, [Validators.required]], |
|
|
|
time: [null, [Validators.required]], |
|
|
|
time: [null, [Validators.required]], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.validateFormAward = this.fb.group({ |
|
|
|
|
|
|
|
activityInfoId: [null, [Validators.required]], |
|
|
|
|
|
|
|
img: [null, [Validators.required]], |
|
|
|
|
|
|
|
name: [null, [Validators.required]], |
|
|
|
|
|
|
|
num: [null, [Validators.required]], |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const whereObject = { |
|
|
|
const whereObject = { |
|
|
@ -121,10 +128,12 @@ export class ActivateEditComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
// 下一步
|
|
|
|
// 下一步
|
|
|
|
getNest(): void { |
|
|
|
getNest(): void { |
|
|
|
|
|
|
|
if (this.current === 1) { |
|
|
|
this.editActivityInfo(); |
|
|
|
this.editActivityInfo(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 完成
|
|
|
|
// 完成
|
|
|
|
done(): void { |
|
|
|
done(): void { |
|
|
|
|
|
|
|
|
|
|
|