提交代码

pull/1/head
胡锐 2 years ago
parent c8d20ba53d
commit 23423a7d0f
  1. 2
      src/app/admin/discount/discount-edit/discount-edit.component.html
  2. 1
      src/app/admin/discount/discount-edit/discount-edit.component.ts

@ -16,7 +16,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzFor]="'discountName'" nzRequired>平台</nz-form-label> <nz-form-label [nzFor]="'discountName'" nzRequired>平台</nz-form-label>
<nz-form-control nzErrorTip="请选择平台!"> <nz-form-control nzErrorTip="请选择平台!">
<nz-select nzPlaceHolder="请选择优惠券类型" [formControlName]="'discountType'"> <nz-select nzPlaceHolder="请选择优惠券类型" [formControlName]="'platform'">
<nz-option nzValue="HSG" nzLabel="嗨森逛"></nz-option> <nz-option nzValue="HSG" nzLabel="嗨森逛"></nz-option>
<nz-option nzValue="GRATIA_PAY" nzLabel="惠支付"></nz-option> <nz-option nzValue="GRATIA_PAY" nzLabel="惠支付"></nz-option>
</nz-select> </nz-select>

@ -54,6 +54,7 @@ export class DiscountEditComponent implements OnInit {
} }
}); });
this.validateForm = this.fb.group({ this.validateForm = this.fb.group({
platform: [null, [Validators.required]],
discountName: [null, [Validators.required]], discountName: [null, [Validators.required]],
discountCondition: [null], discountCondition: [null],
discountType: [null, [Validators.required]], discountType: [null, [Validators.required]],

Loading…
Cancel
Save