车辆接口更新

This commit is contained in:
wangshiming
2022-01-19 11:25:09 +08:00
parent 90ea64ab85
commit d708aa67b5
3 changed files with 26 additions and 3 deletions

View File

@ -153,7 +153,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
nzClosable: false, nzClosable: false,
nzCancelText: '取消', nzCancelText: '取消',
nzOnOk: () => { nzOnOk: () => {
this.service.request(this.service.$api_deletebatchButton, [item.id]).subscribe(res => { this.service.request(this.service.$api_settlementCustomer_deletebatch, [item.id]).subscribe(res => {
if (res) { if (res) {
this.service.msgSrv.success('删除成功!'); this.service.msgSrv.success('删除成功!');
this.st.reload(1) this.st.reload(1)

View File

@ -41,6 +41,10 @@ export class CloseAccountComponent implements OnInit {
text: '编辑', text: '编辑',
click: item => this.roleAction(item, 2) click: item => this.roleAction(item, 2)
}, },
{
text: '删除',
click: item => this.deleteAction(item)
},
] ]
} }
]; ];
@ -106,6 +110,7 @@ export class CloseAccountComponent implements OnInit {
ui: { ui: {
placeholder: '请选择', placeholder: '请选择',
widget: 'select', widget: 'select',
allowClear: true,
asyncData: () => this.shipperservice.getNetworkFreightForwarder(), asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
} }
}, },
@ -195,7 +200,14 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
nzTitle: '确认删除?', nzTitle: '确认删除?',
nzClosable: false, nzClosable: false,
nzCancelText: '取消', nzCancelText: '取消',
nzOnOk: () => {} nzOnOk: () => {
this.service.request(this.service.$api_deletebatchButton, [item.id]).subscribe(res => {
if (res) {
this.service.msgSrv.success('删除成功!');
this.st.reload(1)
}
})
}
}); });
} }

View File

@ -36,6 +36,10 @@ export class CrmManagementComponent implements OnInit {
text: '编辑', text: '编辑',
click: item => this.roleAction(item, 2) click: item => this.roleAction(item, 2)
}, },
{
text: '删除',
click: item => this.deleteAction(item)
},
] ]
} }
]; ];
@ -151,7 +155,14 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
nzTitle: '确认删除?', nzTitle: '确认删除?',
nzClosable: false, nzClosable: false,
nzCancelText: '取消', nzCancelText: '取消',
nzOnOk: () => {} nzOnOk: () => {
this.service.request(this.service.$api_deletebatch_crmCustomer, [item.id]).subscribe(res => {
if (res) {
this.service.msgSrv.success('删除成功!');
this.st.reload(1)
}
})
}
}); });
} }