fix bug
This commit is contained in:
@ -60,7 +60,7 @@ export class OneCarOrderCancelComponent implements OnInit {
|
||||
this.modal.confirm({
|
||||
nzTitle: '<i>是否确定立即取消运单!</i>',
|
||||
nzOnOk: () =>
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf.value }).subscribe(res => {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf?.value }).subscribe(res => {
|
||||
if (res) {
|
||||
this.modalRef.close(true);
|
||||
}
|
||||
@ -68,7 +68,7 @@ export class OneCarOrderCancelComponent implements OnInit {
|
||||
nzOnCancel: () => this.modalRef.destroy()
|
||||
});
|
||||
} else {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf.value }).subscribe(res => {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf?.value }).subscribe(res => {
|
||||
if (res) {
|
||||
this.modalRef.close(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user