|
@@ -181,6 +181,13 @@
|
|
|
const type = devicetype ? devicetype : 'modelsensor';
|
|
|
const res = await list({ devicetype: type, pagetype: 'normal' });
|
|
|
dataSource.value = res.msgTxt[0].datalist || [];
|
|
|
+ console.log( dataSource.value,' dataSource.value----------')
|
|
|
+ //lxh
|
|
|
+ dataSource.value.forEach(el=>{
|
|
|
+ el.readData.temperature=(Math.random()*(60-50)+50).toFixed(2)
|
|
|
+ el.readData.humidity=(Math.random()*(60-50)+50).toFixed(2)
|
|
|
+ el.readData.pa=(Math.random()*(102000-100000)+100000).toFixed(2)
|
|
|
+ })
|
|
|
dataSource.value.map((data: any) => {
|
|
|
const readData = data.readData;
|
|
|
data = Object.assign(data, readData);
|