sensor setup ing
This commit is contained in:
parent
7cc5082a50
commit
772bc4ca24
|
@ -120,25 +120,18 @@ export class SensorConfigStepper extends React.Component<SensorConfigStepperProp
|
||||||
sensor.status = { id: MetaSensorStatus_ID.RUNNING };
|
sensor.status = { id: MetaSensorStatus_ID.RUNNING };
|
||||||
sensor.description = sensorData.infra.infraType.name + '-' + sensorData.crawler.name;
|
sensor.description = sensorData.infra.infraType.name + '-' + sensorData.crawler.name;
|
||||||
|
|
||||||
let msiList: Array<MetaSensorItem> = new Array;
|
let siList: Array<SensorItem> = new Array;
|
||||||
|
|
||||||
// let msiArray: MetaSensorItem[];
|
|
||||||
// let msi: MetaSensorItem;
|
|
||||||
// for (let key of Array.from(sensorData.sensorItemMap.keys())) {
|
|
||||||
// msiArray = sensorData.sensorItemMap[key];
|
|
||||||
// for (let msi of msiArray) {
|
|
||||||
// msiList.push(msi);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
sensorData.sensorItemMap.forEach( (value: MetaSensorItem[], key: number) => {
|
sensorData.sensorItemMap.forEach( (value: MetaSensorItem[], key: number) => {
|
||||||
for(let msi of value) {
|
for(let msi of value) {
|
||||||
msiList.push(msi);
|
siList.push({
|
||||||
|
item: {id: msi.id},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(sensor);
|
console.log(sensor);
|
||||||
console.log(msiList);
|
console.log(siList);
|
||||||
}
|
}
|
||||||
|
|
||||||
public showContent(): any {
|
public showContent(): any {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user