This commit is contained in:
Taric Xin
2022-03-01 19:35:30 +08:00
parent b98ab6cebe
commit dfda671a33
3 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@
class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" acl
<button nz-button nzType="primary" [disabled]="service.http.loading" acl (click)="exportList()"
[acl-ability]="['USERCENTER-FREIGHT-LIST-export']">导出</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">

View File

@ -38,8 +38,6 @@ export class FreightConfigComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => {
Object.assign(requestOptions.body, { listSource: 1 });
console.log(1);
if (this.sf?.value) {
Object.assign(requestOptions.body, {
...this.sf.value
@ -168,13 +166,13 @@ export class FreightConfigComponent implements OnInit {
}
exportList() {
const params = {};
const params = { listSource: 1, pageIndex: this.st.pi, pageSize: this.st.ps };
if (this.sf) {
Object.assign(params, {
...this.sf.value
});
}
this.service.downloadFile(this.service.$api_export_enterprise, params);
this.service.downloadFile(this.service.$api_export_freight_config, params);
}
loadltdId() {
this.service.getNetworkFreightForwarder().subscribe(res => {

View File

@ -39,6 +39,8 @@ export class UsermanageService extends ShipperBaseService {
// 查询货主配置列表
$api_freight_config_page = '/api/mdc/cuc/enterpriseInfo/operate/list/configPage';
// 导出货主配置列表
$api_export_freight_config = '/api/mdc/cuc/enterpriseInfo/operate/exportConfig';
// 更新企业超级管理员权限
$api_update_enter_role_batch = '/api/mdc/cuc/enterpriseInfo/operate/updateRole';
// 批量更新企业网络货运人