edit
This commit is contained in:
@ -30,7 +30,10 @@
|
||||
<ng-container *ngSwitchCase="1">
|
||||
<nz-input-group [nzAddOnAfter]="item.remark?.afterLable" style="width: 155px;"
|
||||
class="ml-md mr-xl">
|
||||
<input type="number" nz-input [(ngModel)]="item.itemValue" placeholder="请输入" />
|
||||
<nz-input-number [(ngModel)]="item.itemValue" [nzMin]="item.remark?.min"
|
||||
[nzPrecision]="item.remark?.precision" [nzMax]="item.remark?.max"
|
||||
nzPlaceHolder="请输入" style="width: 120px;"></nz-input-number>
|
||||
<!-- <input type="number" nz-input [(ngModel)]="item.itemValue" placeholder="请输入"/> -->
|
||||
</nz-input-group>
|
||||
</ng-container>
|
||||
<!-- 0-1单选框 -->
|
||||
|
||||
@ -50,6 +50,11 @@ export class DynamicSettingH5Component implements OnInit {
|
||||
if (this.configList?.length < 0) {
|
||||
return;
|
||||
}
|
||||
// 配置校验
|
||||
if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) {
|
||||
this.service.msgSrv.warning('请填写必填项');
|
||||
return;
|
||||
}
|
||||
let params = [...this.configList];
|
||||
params = params.map((item: any) => {
|
||||
if (item.itemType == 9) {
|
||||
|
||||
Reference in New Issue
Block a user