|
|
@@ -108,14 +108,14 @@
|
|
|
<el-button size="mini" round @click="selectAllStatus(false)">清空选择</el-button>
|
|
|
</div>
|
|
|
<div class="float-right">
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
icon="el-icon-upload2"
|
|
|
:disabled="hightf"
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
@click="exportPest()"
|
|
|
>导出</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
|
|
|
<!-- <span class="deep-seek margin-left-sm" :class="[changeAI ? 'active' : '']">
|
|
|
<i @click="changeAI = false" class="el-icon-circle-close"></i>
|
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
x: 0,
|
|
|
y: 0,
|
|
|
title: '',
|
|
|
- data: [],
|
|
|
+ data: []
|
|
|
},
|
|
|
showPdf: false,
|
|
|
reportDialog: false,
|
|
|
@@ -348,7 +348,7 @@ export default {
|
|
|
basedata: [], // 设备列表
|
|
|
checkList: [], // 选中的设备列表
|
|
|
checkModal: [], // 设备选择弹窗选中列表
|
|
|
- device_id: '', // 设备ID
|
|
|
+ device_id: '' // 设备ID
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -357,7 +357,7 @@ export default {
|
|
|
imgItem,
|
|
|
pestTable,
|
|
|
DeepComp,
|
|
|
- pdf,
|
|
|
+ pdf
|
|
|
},
|
|
|
// 监听属性 类似于data概念
|
|
|
computed: {
|
|
|
@@ -374,17 +374,17 @@ export default {
|
|
|
// 计算tooltip的样式
|
|
|
return {
|
|
|
left: this.tooltip.x + 'px',
|
|
|
- top: this.tooltip.y + 'px',
|
|
|
+ top: this.tooltip.y + 'px'
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
// 监控data中的数据变化
|
|
|
watch: {
|
|
|
wormValue: {
|
|
|
handler(val) {
|
|
|
this.wormInfoObj = this.wormInfo[val] || {}
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
// 方法集合
|
|
|
methods: {
|
|
|
@@ -405,7 +405,7 @@ export default {
|
|
|
this.$axios({
|
|
|
method: 'post',
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.cbd_lamp_list',
|
|
|
- data: this.qs.stringify({}),
|
|
|
+ data: this.qs.stringify({})
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
|
if (res.data.data) {
|
|
|
@@ -537,8 +537,8 @@ export default {
|
|
|
method: 'post',
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.generate_pest_report',
|
|
|
data: this.qs.stringify({
|
|
|
- report_id: item.report_id,
|
|
|
- }),
|
|
|
+ report_id: item.report_id
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
|
this.$message.success('报告正在生成中,请稍后查看')
|
|
|
@@ -583,8 +583,8 @@ export default {
|
|
|
data: this.qs.stringify({
|
|
|
d_id: this.d_id,
|
|
|
page: this.reportPage,
|
|
|
- page_size: 10,
|
|
|
- }),
|
|
|
+ page_size: 10
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
|
this.reportLoading = false
|
|
|
if (res.data.message == '') {
|
|
|
@@ -635,7 +635,7 @@ export default {
|
|
|
return {
|
|
|
data: data.reverse(),
|
|
|
titlename: titlename.reverse(),
|
|
|
- valdata: valdata.reverse(),
|
|
|
+ valdata: valdata.reverse()
|
|
|
}
|
|
|
},
|
|
|
formatePestMessage(data) {
|
|
|
@@ -662,8 +662,8 @@ export default {
|
|
|
d_ids: this.d_id,
|
|
|
year: this.yearValue,
|
|
|
amend: this.amend,
|
|
|
- identify_model: this.currentDeviceInfo.identify_model || 'B',
|
|
|
- }),
|
|
|
+ identify_model: this.currentDeviceInfo.identify_model || 'B'
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
|
if (res.data.data) {
|
|
|
@@ -700,8 +700,8 @@ export default {
|
|
|
sp_hour_ed: this.sp_hour_ed.split(':')[0],
|
|
|
end_time: this.formatTime(this.end_time * 1000, 'yyyy-MM-dd'),
|
|
|
identify_model: this.currentDeviceInfo.identify_model,
|
|
|
- amend: 1,
|
|
|
- }),
|
|
|
+ amend: 1
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
|
if (res.data.data) {
|
|
|
@@ -724,33 +724,33 @@ export default {
|
|
|
for (var i = 0; i < atah.length; i++) {
|
|
|
arr.push([
|
|
|
this.formatTime(atah[i].addtime * 1000, 'yyyy-MM-dd'),
|
|
|
- atah[i].height ? atah[i].height : 0,
|
|
|
+ atah[i].height ? atah[i].height : 0
|
|
|
])
|
|
|
arr2.push([
|
|
|
this.formatTime(atah[i].addtime * 1000, 'yyyy-MM-dd'),
|
|
|
- atah[i].low ? atah[i].low : 0,
|
|
|
+ atah[i].low ? atah[i].low : 0
|
|
|
])
|
|
|
arr3.push([
|
|
|
this.formatTime(atah[i].addtime * 1000, 'yyyy-MM-dd'),
|
|
|
- atah[i].ah ? atah[i].ah : 0,
|
|
|
+ atah[i].ah ? atah[i].ah : 0
|
|
|
])
|
|
|
}
|
|
|
ChartData = [
|
|
|
{
|
|
|
type: 'line',
|
|
|
name: '高温',
|
|
|
- data: arr,
|
|
|
+ data: arr
|
|
|
},
|
|
|
{
|
|
|
type: 'line',
|
|
|
name: '低温',
|
|
|
- data: arr2,
|
|
|
+ data: arr2
|
|
|
},
|
|
|
{
|
|
|
type: 'line',
|
|
|
name: '湿度',
|
|
|
- data: arr3,
|
|
|
- },
|
|
|
+ data: arr3
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
var data = []
|
|
|
@@ -758,7 +758,7 @@ export default {
|
|
|
for (var key in pest_total) {
|
|
|
var obj = {
|
|
|
name: key,
|
|
|
- value: pest_total[key],
|
|
|
+ value: pest_total[key]
|
|
|
}
|
|
|
|
|
|
data.push(obj)
|
|
|
@@ -783,7 +783,7 @@ export default {
|
|
|
let obj = {
|
|
|
name: item,
|
|
|
type: 'line',
|
|
|
- data: countData,
|
|
|
+ data: countData
|
|
|
}
|
|
|
this.ChartData.push(obj)
|
|
|
})
|
|
|
@@ -799,7 +799,7 @@ export default {
|
|
|
// markArea,
|
|
|
unit: '头',
|
|
|
legend,
|
|
|
- selected,
|
|
|
+ selected
|
|
|
},
|
|
|
temColor
|
|
|
)
|
|
|
@@ -842,7 +842,7 @@ export default {
|
|
|
this.chart.dispatchAction({
|
|
|
type: 'highlight',
|
|
|
seriesIndex: e.seriesIndex,
|
|
|
- dataIndex: e.dataIndex,
|
|
|
+ dataIndex: e.dataIndex
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -855,8 +855,8 @@ export default {
|
|
|
})
|
|
|
this.chart.setOption({
|
|
|
legend: {
|
|
|
- selected: selected,
|
|
|
- },
|
|
|
+ selected: selected
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
exportPest() {
|
|
|
@@ -887,7 +887,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
return true
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
beforeCreate() {}, // 生命周期 - 创建之前
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
@@ -902,8 +902,8 @@ export default {
|
|
|
method: 'post',
|
|
|
url: '/api/api_gateway?method=forecast.prediction.is_prediction',
|
|
|
data: this.qs.stringify({
|
|
|
- device_id: this.d_id,
|
|
|
- }),
|
|
|
+ device_id: this.d_id
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
|
this.isShowPestBtn = res.data.data
|
|
|
})
|
|
|
@@ -923,7 +923,7 @@ export default {
|
|
|
updated() {}, // 生命周期 - 更新之后
|
|
|
beforeDestroy() {}, // 生命周期 - 销毁之前
|
|
|
destroyed() {}, // 生命周期 - 销毁完成
|
|
|
- activated() {}, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+ activated() {} // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less">
|