Commit c4240747 authored by mahui's avatar mahui

init

parent c4faabd1
......@@ -327,7 +327,7 @@
{
name:'液位',
prop:'液位',
value:0.7,
value:0,
unit:'m',
color:'#09a8ae',
CreatedAt:'',
......@@ -492,6 +492,16 @@
if(res.code==0){
if(res.data.value){
state.detail.yewei = Number(res.data.value);
state.typeList.forEach((item)=>{
item.show = false;
item.value = 0;
item.unit = '';
item.CreatedAt = '';
if(item.name=="液位"){
item.value = Number(res.data.value);
item.unit = res.data.unit;
}
});
}
}
});
......@@ -609,12 +619,6 @@
}
state.list.page = page;
api.getHistoryDataList(p).then((res)=>{
state.typeList.forEach((item)=>{
item.show = false;
item.value = 0;
item.unit = '';
item.CreatedAt = '';
});
if(res.code==0){
if(Array.isArray(res.data.list)){
res.data.list.forEach((item)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment