This commit is contained in:
Taric Xin
2022-05-16 17:00:05 +08:00
parent 8a282a4bfc
commit d9c5e08449
4 changed files with 23 additions and 14 deletions

View File

@ -116,7 +116,7 @@
.text-truncate {
white-space: normal;
}
// 强制头部居中
.ant-table-container table>thead>tr>.options {
text-align: center !important;
@ -143,4 +143,11 @@
}
}
.height_box {}
.height_box {}
.filter-box {
.com-input {
width : 150px;
height: 32PX;
}
}

View File

@ -27,10 +27,9 @@
<div class="header_box">
<label class="page_title"> <label class="driver">|</label> 企业列表</label>
<div class="d-flex align-items-center mr-sm">
<div class="mr-md d-flex align-items-center">
<input nz-input placeholder="请输入企业名称" [(ngModel)]="sfValue.enterpriseName" class=" mr-sm"
style="width: 150px;height: 32PX;" />
<input nz-input placeholder="请输入管理员" [(ngModel)]="sfValue.contactName" style="width: 150px;height: 32PX;" />
<div class="mr-md d-flex align-items-center filter-box">
<input nz-input placeholder="请输入企业名称" [(ngModel)]="sfValue.enterpriseName" class="com-input mr-sm" />
<input nz-input placeholder="请输入管理员" [(ngModel)]="sfValue.contactName" class="com-input" />
</div>
<button nz-button nzDanger [nzLoading]="loadingList" (click)="search()" acl
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button>
@ -92,7 +91,7 @@
<p nz-tooltip [nzTooltipTitle]="item.partnerName+'/'+item.partnerMobile" style="cursor: pointer;width: 120px;margin: 0; white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;">
{{ item.partnerName ? item.partnerName: '--'}}/{{item.partnerMobile ? item.partnerMobile :'--'}}
{{ item.partnerName ? item.partnerName: '--'}}/{{item.partnerMobile ? item.partnerMobile :'--'}}
</p>
</ng-template>
<ng-template st-row="promotersTelephone" let-item let-index="index">
@ -102,7 +101,7 @@
<p nz-tooltip [nzTooltipTitle]="item.channelName+'/'+item.channelMobile" style="cursor: pointer;width: 120px;margin: 0; white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;">
{{ item.channelName ? item.channelName: '--'}}/{{item.channelMobile ? item.channelMobile :'--'}}
{{ item.channelName ? item.channelName: '--'}}/{{item.channelMobile ? item.channelMobile :'--'}}
</p>
</ng-template>
</st>

View File

@ -39,12 +39,14 @@
</div>
<!-- 数据列表 -->
<st #st [bordered]="true" [scroll]="{ x: '1200px',y:scrollY }" [columns]="columns" [data]="service.$api_get_operate_list"
<st #st [bordered]="true" [scroll]="{ x: '1200px',y:scrollY }" [columns]="columns"
[data]="service.$api_get_operate_list"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false">
<ng-template st-row="carLength" let-item let-index="index">
<div>{{ item?.carModel ? item?.carModel + '-' : ''}}{{ item?.carLengthLabel ? item?.carLengthLabel + '米' : '' }}-{{
<div>{{ item?.carModel ? item?.carModel + '-' : ''}}{{ item?.carLengthLabel ? item?.carLengthLabel + '米' : ''
}}-{{
item?.carLoad ? item?.carLoad + '吨' : ''
}}</div>
</ng-template>

View File

@ -23,6 +23,7 @@ export class VehicleComponentsListComponent extends BasicTableComponent implemen
public searchDrawerService: SearchDrawerService
) {
super(searchDrawerService);
this.sfValue = { enterpriseName: '', contactName: '' };
}
/**
@ -30,11 +31,11 @@ export class VehicleComponentsListComponent extends BasicTableComponent implemen
*/
get reqParams() {
const params: any = {
...(this.sf && this.sf?.value)
...(this.sfValue)
};
if (this.sf?.value.effectiveDate) {
params.effectiveDateStart = this.sf?.value.effectiveDate[0];
params.effectiveDateEnd = this.sf?.value.effectiveDate[1];
if (this.sfValue?.effectiveDate) {
params.effectiveDateStart =this.sfValue?.effectiveDate[0];
params.effectiveDateEnd = this.sfValue?.effectiveDate[1];
}
delete params.effectiveDate;
delete params.expand;