fix bug
This commit is contained in:
@ -4,14 +4,14 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-29 14:51:07
|
* @Date : 2021-12-29 14:51:07
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-28 21:58:14
|
* @LastEditTime : 2022-04-28 22:11:32
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<nz-alert nzType="info" [nzMessage]="'已选择'+ data?.ids?.length + '条订单'" nzShowIcon></nz-alert>
|
<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>
|
<sf style="margin-top: 15px" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
|
||||||
|
|
||||||
<st #st [data]="modiUrl" [columns]="columns"
|
<st #st [data]="dataList" [columns]="columns"
|
||||||
[req]="{ method: 'POST',params: reqParams}"
|
[req]="{ method: 'POST',params: reqParams}"
|
||||||
[res]="{ reName: { list: 'data' } }"
|
[res]="{ reName: { list: 'data' } }"
|
||||||
[page]="{show: false,showSize: false,front: false}"
|
[page]="{show: false,showSize: false,front: false}"
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { STComponent } from '@delon/abc/st';
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-29 14:51:07
|
* @Date : 2021-12-29 14:51:07
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-28 22:03:03
|
* @LastEditTime : 2022-04-28 22:12:14
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -37,16 +37,17 @@ export class VehicleModifyRateComponent implements OnInit {
|
|||||||
modiUrl: string= this.service.$api_searchAdditionalRateBatch
|
modiUrl: string= this.service.$api_searchAdditionalRateBatch
|
||||||
@Input()
|
@Input()
|
||||||
data: any;
|
data: any;
|
||||||
|
dataList: any;
|
||||||
|
|
||||||
constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService) {}
|
constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.data);
|
console.log(this.data);
|
||||||
this.initSF();
|
this.initSF();
|
||||||
|
this.initData();
|
||||||
console.log(this.data?.ids)
|
console.log(this.data?.ids)
|
||||||
}
|
}
|
||||||
get reqParams() {
|
get reqParams() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// operateObject: this.i?.resourceCode,
|
// operateObject: this.i?.resourceCode,
|
||||||
// operateType: 4,
|
// operateType: 4,
|
||||||
@ -54,6 +55,14 @@ export class VehicleModifyRateComponent implements OnInit {
|
|||||||
additionalRate: this.sf?.value?.additionalRate || 0
|
additionalRate: this.sf?.value?.additionalRate || 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
initData() {
|
||||||
|
console.log(this.reqParams);
|
||||||
|
|
||||||
|
this.service.request(this.service.$api_searchAdditionalRateBatch, this.reqParams).subscribe((res: any) => {
|
||||||
|
console.log(res);
|
||||||
|
this.dataList = res
|
||||||
|
})
|
||||||
|
}
|
||||||
initSF() {
|
initSF() {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
@ -68,9 +77,9 @@ export class VehicleModifyRateComponent implements OnInit {
|
|||||||
precision: 2,
|
precision: 2,
|
||||||
change:(item: any) => {
|
change:(item: any) => {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.modiUrl = this.service.$api_searchAdditionalRateBatch;
|
setTimeout(() => {
|
||||||
this.st.reload()
|
this.initData()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} as SFNumberWidgetSchema
|
} as SFNumberWidgetSchema
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user