This commit is contained in:
Taric Xin
2022-01-12 10:47:36 +08:00
parent 9d8da4f37e
commit 75808bbaf5
27 changed files with 330 additions and 395 deletions

View File

@ -1,6 +1,6 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { STChange, STColumn, STComponent, STData } from '@delon/abc/st';
import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal';
import { UsermanageService } from '../../../services/usercenter.service';
@ -34,16 +34,15 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
];
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {}
/**
* 查询参数
*/
get reqParams() {
const params = Object.assign({}, this.sf?.value || {}, {
flag: this.tabType
});
delete params._$expand;
return { ...params, listSource: 2 };
}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
Object.assign(requestOptions.body, {
...this.sf.value
});
}
Object.assign(requestOptions.body, { flag: this.tabType, listSource: 2 });
return requestOptions;
};
/**
* 伸缩查询条件
@ -65,13 +64,6 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
*/
ngOnInit() {}
/**
* 数据列表状态变化事件
*/
change(e: STChange) {
// console.log(e.checkbox);
}
/**
* 查看详情
*/
@ -145,7 +137,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
}
exportList() {
const params = this.reqParams;
const params = { ...this.sf.value, flag: this.tabType, listSource: 2 };
this.service.downloadFile(this.service.$api_export_enterprise, params);
}