车辆对接
This commit is contained in:
@ -130,14 +130,14 @@ export class CarAddmodalComponent implements OnInit {
|
||||
initData(flag?: any) {
|
||||
if (this.sf?.value.mobile) {
|
||||
this.flag = flag
|
||||
// this.service.request(this.service.$api_getCarCaptainByMobile, { mobile: this.sf?.value.mobile }).subscribe(res => {
|
||||
// if (res.userId) {
|
||||
// this.tableData = [res];
|
||||
// } else {
|
||||
// this.tableData = []
|
||||
// }
|
||||
// this.st.reload()
|
||||
// })
|
||||
this.service.request(this.service.$api_getCarCaptainByMobile, { mobile: this.sf?.value.mobile }).subscribe(res => {
|
||||
if (res.userId) {
|
||||
this.tableData = [res];
|
||||
} else {
|
||||
this.tableData = []
|
||||
}
|
||||
this.st.reload()
|
||||
})
|
||||
}
|
||||
}
|
||||
/**
|
||||
@ -158,11 +158,11 @@ export class CarAddmodalComponent implements OnInit {
|
||||
appUserId: item.appUserId ? item.appUserId : '',
|
||||
mobile: item.mobile
|
||||
}
|
||||
// this.service.request(this.service.$api_enterpriseVehicleSave, params).subscribe(res => {
|
||||
// if (res.data) {
|
||||
// this.service.msgSrv.success('添加成功')
|
||||
// }
|
||||
// })
|
||||
this.service.request(this.service.$api_enterpriseVehicleSave, params).subscribe(res => {
|
||||
if (res.data) {
|
||||
this.service.msgSrv.success('添加成功')
|
||||
}
|
||||
})
|
||||
}
|
||||
addModal() {
|
||||
this.modalHelper.create(CarAddDriverComponent, {mobile: this.sf?.value.mobile}, { size: 900 }).subscribe((res) => {
|
||||
|
||||
Reference in New Issue
Block a user