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