fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-28 14:42:03
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-13 19:00:48
|
||||
* @LastEditTime : 2022-04-13 19:04:48
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -248,12 +248,12 @@
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="操作日志">
|
||||
<st #logSt [data]="service.$api_get_log_list" [columns]="operateLogColums"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }">
|
||||
<ng-template st-row="operator" let-item>
|
||||
{{item?.operator}}/{{item.telephone}}
|
||||
</ng-template>
|
||||
</st>
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }">
|
||||
<ng-template st-row="operator" let-item>
|
||||
{{item?.operator}}/{{item.telephone}}
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
</nz-card>
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-28 14:42:03
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-13 18:51:46
|
||||
* @LastEditTime : 2022-04-13 19:06:44
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { STColumn } from '@delon/abc/st';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { NzCardComponent } from 'ng-zorro-antd/card';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
@ -23,6 +23,7 @@ import { OrderManagementService } from '../../services/order-management.service'
|
||||
})
|
||||
export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
id = this.route.snapshot.params.id;
|
||||
@ViewChild('logSt') logSt!: STComponent;
|
||||
modalcontent: any;
|
||||
modalTitle: string = '';
|
||||
trajectory = 'car';
|
||||
@ -68,9 +69,7 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
index: 'paymentStatusLabel'
|
||||
}
|
||||
];
|
||||
get logParams() {
|
||||
return { operateObject: this.i?.billCode, operateTypeList: ['3','8'] }
|
||||
}
|
||||
|
||||
constructor(
|
||||
public route: ActivatedRoute,
|
||||
private msgSrv: NzMessageService,
|
||||
@ -83,7 +82,9 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
this.initData();
|
||||
this.getTrajectory();
|
||||
}
|
||||
|
||||
get logParams() {
|
||||
return { operateObject: this.i?.billCode, operateTypeList: ['3','8'] }
|
||||
}
|
||||
initData() {
|
||||
this.service.request(this.service.$api_get_getWholeBillDetail, { id: this.id }).subscribe(res => {
|
||||
if (res) {
|
||||
@ -126,6 +127,9 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
this.warringList = res
|
||||
}
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.logSt.load(1);
|
||||
});
|
||||
}
|
||||
// 取消订单
|
||||
cancellation() {
|
||||
|
||||
Reference in New Issue
Block a user