pull/1/head
yuanye 3 years ago
parent 02b5ff0988
commit c95c854062
  1. 6
      src/app/admin/activate/activate-edit/activate-edit.component.html
  2. 11
      src/app/admin/activate/activate-edit/activate-edit.component.ts

@ -13,7 +13,6 @@
<nz-steps [nzCurrent]="current">
<nz-step nzTitle="配置基本信息"></nz-step>
<nz-step nzTitle="配置奖品"></nz-step>
<nz-step nzTitle="Waiting"></nz-step>
</nz-steps>
<form style="margin-top: 30px;" *ngIf="current === 0" nz-form [formGroup]="validateForm">
<div nz-row>
@ -67,7 +66,10 @@
</nz-form-item>
</div>
</div>
</form>
<form style="margin-top: 30px;" *ngIf="current === 1" nz-form [formGroup]="validateFormAward">
<div nz-row>
</div>
</form>
<div nz-row>
<div nz-col [nzSpan]="24" class="search-area">

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

Loading…
Cancel
Save