fix bug
This commit is contained in:
@ -72,6 +72,17 @@
|
||||
<nz-option *ngFor="let i of contenCarLength" [nzLabel]="i.label" [nzValue]="i.value"></nz-option>
|
||||
</nz-select>
|
||||
</sv>
|
||||
<sv label="车辆能源类型">
|
||||
<nz-select
|
||||
[(ngModel)]="detailData.carEnergyType"
|
||||
[nzPlaceHolder]="isEdit ? '' : '-'"
|
||||
[nzBorderless]="!isEdit"
|
||||
[nzShowArrow]="isEdit"
|
||||
[nzDisabled]="!isEdit"
|
||||
>
|
||||
<nz-option *ngFor="let i of contenCarEnergy" [nzLabel]="i.label" [nzValue]="i.value"></nz-option>
|
||||
</nz-select>
|
||||
</sv>
|
||||
<sv label="是否挂靠">
|
||||
<nz-select
|
||||
[(ngModel)]="detailData.isSelf"
|
||||
@ -210,7 +221,7 @@
|
||||
</sv-container>
|
||||
|
||||
<sv-container col="3">
|
||||
<sv label="载重(吨)">
|
||||
<sv label="核定载质量(吨)">
|
||||
<input
|
||||
nz-input
|
||||
type="text"
|
||||
@ -230,6 +241,16 @@
|
||||
[placeholder]="isEdit ? '' : '-'"
|
||||
/>
|
||||
</sv>
|
||||
<sv label="总质量">
|
||||
<input
|
||||
nz-input
|
||||
type="text"
|
||||
[(ngModel)]="detailData.carTotalLoad"
|
||||
[readonly]="!isEdit"
|
||||
[nzBorderless]="!isEdit"
|
||||
[placeholder]="isEdit ? '' : '-'"
|
||||
/>
|
||||
</sv>
|
||||
<sv label="所有人">
|
||||
<input
|
||||
style="width: '300px'"
|
||||
@ -241,6 +262,7 @@
|
||||
[placeholder]="isEdit ? '' : '-'"
|
||||
/>
|
||||
</sv>
|
||||
|
||||
</sv-container>
|
||||
<sv-container col="1">
|
||||
<sv label="行驶证照片">
|
||||
|
||||
@ -41,6 +41,7 @@ export class VehicleComponentsListDetailComponent implements OnInit {
|
||||
contenCarNoColor: any;
|
||||
contencarModel: any;
|
||||
contenCarLength: any;
|
||||
contenCarEnergy: any;
|
||||
|
||||
constructor(
|
||||
private http: _HttpClient,
|
||||
@ -158,6 +159,8 @@ export class VehicleComponentsListDetailComponent implements OnInit {
|
||||
this.Serveice('car:color');
|
||||
this.Serveice('car:model');
|
||||
this.Serveice('car:length');
|
||||
this.Serveice('car:energy:type');
|
||||
|
||||
}
|
||||
Serveice(param: any) {
|
||||
let value: any;
|
||||
@ -172,6 +175,8 @@ export class VehicleComponentsListDetailComponent implements OnInit {
|
||||
this.contencarModel = res;
|
||||
} else if (param === 'car:length') {
|
||||
this.contenCarLength = res;
|
||||
} else if (param === 'car:energy:type') {
|
||||
this.contenCarEnergy = res;
|
||||
}
|
||||
});
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user