edit
This commit is contained in:
@ -116,7 +116,7 @@
|
|||||||
.text-truncate {
|
.text-truncate {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 强制头部居中
|
// 强制头部居中
|
||||||
.ant-table-container table>thead>tr>.options {
|
.ant-table-container table>thead>tr>.options {
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
@ -143,4 +143,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.height_box {}
|
.height_box {}
|
||||||
|
|
||||||
|
.filter-box {
|
||||||
|
.com-input {
|
||||||
|
width : 150px;
|
||||||
|
height: 32PX;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -27,10 +27,9 @@
|
|||||||
<div class="header_box">
|
<div class="header_box">
|
||||||
<label class="page_title"> <label class="driver">|</label> 企业列表</label>
|
<label class="page_title"> <label class="driver">|</label> 企业列表</label>
|
||||||
<div class="d-flex align-items-center mr-sm">
|
<div class="d-flex align-items-center mr-sm">
|
||||||
<div class="mr-md d-flex align-items-center">
|
<div class="mr-md d-flex align-items-center filter-box">
|
||||||
<input nz-input placeholder="请输入企业名称" [(ngModel)]="sfValue.enterpriseName" class=" mr-sm"
|
<input nz-input placeholder="请输入企业名称" [(ngModel)]="sfValue.enterpriseName" class="com-input mr-sm" />
|
||||||
style="width: 150px;height: 32PX;" />
|
<input nz-input placeholder="请输入管理员" [(ngModel)]="sfValue.contactName" class="com-input" />
|
||||||
<input nz-input placeholder="请输入管理员" [(ngModel)]="sfValue.contactName" style="width: 150px;height: 32PX;" />
|
|
||||||
</div>
|
</div>
|
||||||
<button nz-button nzDanger [nzLoading]="loadingList" (click)="search()" acl
|
<button nz-button nzDanger [nzLoading]="loadingList" (click)="search()" acl
|
||||||
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button>
|
[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;
|
<p nz-tooltip [nzTooltipTitle]="item.partnerName+'/'+item.partnerMobile" style="cursor: pointer;width: 120px;margin: 0; white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;">
|
overflow: hidden;">
|
||||||
{{ item.partnerName ? item.partnerName: '--'}}/{{item.partnerMobile ? item.partnerMobile :'--'}}
|
{{ item.partnerName ? item.partnerName: '--'}}/{{item.partnerMobile ? item.partnerMobile :'--'}}
|
||||||
</p>
|
</p>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
<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;
|
<p nz-tooltip [nzTooltipTitle]="item.channelName+'/'+item.channelMobile" style="cursor: pointer;width: 120px;margin: 0; white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;">
|
overflow: hidden;">
|
||||||
{{ item.channelName ? item.channelName: '--'}}/{{item.channelMobile ? item.channelMobile :'--'}}
|
{{ item.channelName ? item.channelName: '--'}}/{{item.channelMobile ? item.channelMobile :'--'}}
|
||||||
</p>
|
</p>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</st>
|
</st>
|
||||||
|
|||||||
@ -39,12 +39,14 @@
|
|||||||
</div>
|
</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 }"
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
|
[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">
|
[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">
|
<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 + '吨' : ''
|
item?.carLoad ? item?.carLoad + '吨' : ''
|
||||||
}}</div>
|
}}</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@ -23,6 +23,7 @@ export class VehicleComponentsListComponent extends BasicTableComponent implemen
|
|||||||
public searchDrawerService: SearchDrawerService
|
public searchDrawerService: SearchDrawerService
|
||||||
) {
|
) {
|
||||||
super(searchDrawerService);
|
super(searchDrawerService);
|
||||||
|
this.sfValue = { enterpriseName: '', contactName: '' };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,11 +31,11 @@ export class VehicleComponentsListComponent extends BasicTableComponent implemen
|
|||||||
*/
|
*/
|
||||||
get reqParams() {
|
get reqParams() {
|
||||||
const params: any = {
|
const params: any = {
|
||||||
...(this.sf && this.sf?.value)
|
...(this.sfValue)
|
||||||
};
|
};
|
||||||
if (this.sf?.value.effectiveDate) {
|
if (this.sfValue?.effectiveDate) {
|
||||||
params.effectiveDateStart = this.sf?.value.effectiveDate[0];
|
params.effectiveDateStart =this.sfValue?.effectiveDate[0];
|
||||||
params.effectiveDateEnd = this.sf?.value.effectiveDate[1];
|
params.effectiveDateEnd = this.sfValue?.effectiveDate[1];
|
||||||
}
|
}
|
||||||
delete params.effectiveDate;
|
delete params.effectiveDate;
|
||||||
delete params.expand;
|
delete params.expand;
|
||||||
|
|||||||
Reference in New Issue
Block a user