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