This commit is contained in:
wangshiming
2022-03-04 15:08:30 +08:00
parent 05b878ddcd
commit 2c46fd77bd
9 changed files with 143 additions and 91 deletions

View File

@ -10,6 +10,16 @@
-->
<nz-alert nzType="info" [nzMessage]="'已选择'+ data?.ids?.length + '条订单'" nzShowIcon></nz-alert>
<sf style="margin-top: 15px" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
<st #st [data]="service.$api_getChangeRecordWholeDetail" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams}"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{}"
>
<ng-template st-row="operator" let-item>
{{item?.operator}}/{{item.telephone}}
</ng-template>
</st>
<div class="modal-footer">
<button nz-button type="button" (click)="close()">关闭</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)">确定</button>

View File

@ -4,12 +4,13 @@
* @Author : Shiming
* @Date : 2021-12-29 14:51:07
* @LastEditors : Shiming
* @LastEditTime : 2022-02-24 11:10:33
* @LastEditTime : 2022-03-04 14:45:58
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { STColumn } from '@delon/abc/st';
import { SFComponent, SFNumberWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalRef } from 'ng-zorro-antd/modal';
@ -24,7 +25,11 @@ export class VehicleModifyRateComponent implements OnInit {
@ViewChild('sf', { static: false }) sf!: SFComponent;
schema: SFSchema = {};
ui: SFUISchema = {};
columns: STColumn[] = [
{ title: '内容', index: 'operationContent' },
{ title: '操作人', index: 'operator' },
{ title: '操作时间', index: 'operatorTimestamp' },
];
aggreechecked = false;
@Input()
@ -36,6 +41,12 @@ export class VehicleModifyRateComponent implements OnInit {
console.log(this.data);
this.initSF();
}
get reqParams() {
return {
// operateObject: this.i?.resourceCode,
// operateType: 4,
};
}
initSF() {
this.schema = {
properties: {