|
|
|
@ -7,6 +7,7 @@ import {OilCardService} from '../../../services/oil-card.service'; |
|
|
|
|
import {CompanyAccountService} from '../../../services/company-account.service'; |
|
|
|
|
import {OrganizationService} from "../../../services/organization.service"; |
|
|
|
|
import {NavigationComponent} from "../../navigation/navigation.component"; |
|
|
|
|
import {environment} from "../../../../environments/environment"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-oil-card-list', |
|
|
|
@ -14,6 +15,7 @@ import {NavigationComponent} from "../../navigation/navigation.component"; |
|
|
|
|
styleUrls: ['./oil-card-list.component.scss'] |
|
|
|
|
}) |
|
|
|
|
export class OilCardListComponent implements OnInit { |
|
|
|
|
FILE_URL = environment.imageUrl; |
|
|
|
|
roleType; |
|
|
|
|
adminFlag; |
|
|
|
|
loadingObject = { |
|
|
|
@ -390,4 +392,20 @@ export class OilCardListComponent implements OnInit { |
|
|
|
|
this.rechargeBtnLoading = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 导出油卡 |
|
|
|
|
*/ |
|
|
|
|
excelCard() { |
|
|
|
|
this.oilCardService.exportCard(this.whereObject, data => { |
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
window.location.href = this.FILE_URL + 'temporary/' + data['return_data']; |
|
|
|
|
} else { |
|
|
|
|
this.modal.error({ |
|
|
|
|
nzTitle: '提示', |
|
|
|
|
nzContent: data['return_msg'] |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|