|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="device-detail">
|
|
|
|
|
|
|
+ <view class="device-detail" v-show="!loading">
|
|
|
<view class="device-detail__header">
|
|
<view class="device-detail__header">
|
|
|
<u-icon
|
|
<u-icon
|
|
|
size="36"
|
|
size="36"
|
|
@@ -143,6 +143,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
isShowTab:false,
|
|
isShowTab:false,
|
|
|
showPicker: false,
|
|
showPicker: false,
|
|
|
|
|
+ loading: false,
|
|
|
disableShow: false,
|
|
disableShow: false,
|
|
|
isShowOperation: false,
|
|
isShowOperation: false,
|
|
|
photoIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/photoIcon.png',
|
|
photoIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/photoIcon.png',
|
|
@@ -411,6 +412,7 @@ export default {
|
|
|
this.pestList = data
|
|
this.pestList = data
|
|
|
},
|
|
},
|
|
|
async getPolylineData(){
|
|
async getPolylineData(){
|
|
|
|
|
+ this.loading = true;
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
@@ -421,6 +423,7 @@ export default {
|
|
|
end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,// 转成毫秒
|
|
end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,// 转成毫秒
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+ this.loading = false;
|
|
|
const data = res || [];
|
|
const data = res || [];
|
|
|
this.polylineList = data
|
|
this.polylineList = data
|
|
|
},
|
|
},
|
|
@@ -447,8 +450,8 @@ export default {
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
data: {
|
|
data: {
|
|
|
d_id: this.deviceInfo.d_id,
|
|
d_id: this.deviceInfo.d_id,
|
|
|
- start: this.startDate + ' 00:00:00',
|
|
|
|
|
- end: this.endDate + ' 23:59:59',
|
|
|
|
|
|
|
+ start: this.startDate,
|
|
|
|
|
+ end: this.endDate,
|
|
|
model: 'B'
|
|
model: 'B'
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|