fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-28 14:42:03
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-13 19:52:15
|
||||
* @LastEditTime : 2022-04-28 19:49:17
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -112,8 +112,6 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
.request(this.service.$api_get_log_list, { operateObject: this.i?.billCode, operateTypeList: ['3', '8'] })
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
console.log('操作日志');
|
||||
console.log(res);
|
||||
let a: any = [];
|
||||
res.records.forEach((item: any) => {
|
||||
a.push({
|
||||
@ -122,7 +120,6 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
color: 'green'
|
||||
});
|
||||
});
|
||||
console.log(a);
|
||||
this.operationList = a;
|
||||
}
|
||||
});
|
||||
@ -133,15 +130,11 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
});
|
||||
this.service.request(this.service.$api_listBillComplianceAbnormalByBillId, { id: this.id }).subscribe(res => {
|
||||
if (res) {
|
||||
console.log('风险详情');
|
||||
console.log(res);
|
||||
this.abnormalList = res;
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getAbnormalWarningByBillId, { id: this.id }).subscribe(res => {
|
||||
if (res) {
|
||||
console.log('异常预警');
|
||||
console.log(res);
|
||||
this.warringList = res;
|
||||
}
|
||||
});
|
||||
|
||||
@ -189,21 +189,11 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
|
||||
if(res) {
|
||||
const List: any = [];
|
||||
List.push({ label: value.enterpriseName, value: res.enterpriseId });
|
||||
// this.sfFre.getProperty('/enterpriseId')!.schema.enum = List;
|
||||
// console.log(List);
|
||||
|
||||
// this.sfFre.getProperty('/enterpriseId')!.widget.reset(List);
|
||||
// if(res.enterpriseId) {
|
||||
// this.sfFre.setValue('/enterpriseId', res.enterpriseId);
|
||||
// }
|
||||
console.log(this.sfFre.getProperty('/enterpriseId'));
|
||||
this.formData = res;
|
||||
setTimeout(() => {
|
||||
this.sfFre.getProperty('/enterpriseId')!.schema.enum = List;
|
||||
this.sfFre.getProperty('/enterpriseId')!.widget.reset(List);
|
||||
if (res?.enterpriseId) {
|
||||
console.log(res?.enterpriseId);
|
||||
console.log(res?.enterpriseId);
|
||||
this.sfFre.setValue('/enterpriseId', res.enterpriseId);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user