车辆对接

This commit is contained in:
wangshiming
2022-01-13 15:57:36 +08:00
parent 772090017b
commit ec9123c805
5 changed files with 11 additions and 8 deletions

View File

@ -34,7 +34,7 @@
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" (click)="st?.load(1)">导出</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" (click)="exportFire()">导出</button>
<button nz-button [disabled]="service.http.loading"(click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}

View File

@ -3,7 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
import { STColumn, STColumnBadge, STComponent, STData } from '@delon/abc/st';
import { SFComponent, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal';
import { of } from 'rxjs';
import { of, Subject } from 'rxjs';
import { map } from 'rxjs/operators';
import { VehicleService } from '../../../vehicle/services/vehicle.service';
@Component({
@ -217,4 +217,8 @@ export class VehicleComponentsAuditComponent implements OnInit {
this.sf.reset();
this._$expand = false;
}
// 导出
exportFire() {
this.service.downloadFile(this.service.$api_carLicense_export, this.reqParams );
}
}

View File

@ -34,7 +34,7 @@
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" (click)="export()">导出</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" (click)="exportFire()">导出</button>
<button nz-button [disabled]="service.http.loading"(click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}

View File

@ -280,9 +280,6 @@ export class VehicleComponentsListComponent implements OnInit {
},
];
}
daoyun(item: any) {
this.router.navigate(['./view', item.id], { relativeTo: this.ar });
}
expandToggle() {
this._$expand = !this._$expand;
this.sf?.setValue('/expand', this._$expand);
@ -298,7 +295,7 @@ export class VehicleComponentsListComponent implements OnInit {
this._$expand = false;
}
// 导出
export() {
exportFire() {
this.service.downloadFile(this.service.$api_carLicense_export, this.reqParams );
}
}

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-11-29 15:22:34
* @LastEditTime: 2022-01-13 15:37:22
* @LastEditTime: 2022-01-13 15:56:57
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\usercenter\services\usercenter.service.ts
@ -52,6 +52,8 @@ export class VehicleService extends BaseService {
// 导出(车辆认证表)
$api_carLicense_export= `/api/mdc/cuc/carLicense/operate/export`;
// 导出(车辆审核认证表)
$api_carLicenseAudit_export= `/api/mdc/cuc/carLicenseAudit/operate/export`;