|
@@ -8,7 +8,7 @@
|
|
|
:placeholder="$t('设备编号')"
|
|
:placeholder="$t('设备编号')"
|
|
|
class="filter-item search-item"
|
|
class="filter-item search-item"
|
|
|
/>
|
|
/>
|
|
|
- <el-select v-model="ids" multiple placeholder="请选择企业" class="filter-item search-item">
|
|
|
|
|
|
|
+ <el-select v-model="ids" multiple placeholder="请选择企业" class="filter-item search-item" style="width:300px">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in options"
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -398,8 +398,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 停止定时器
|
|
// 停止定时器
|
|
|
clear() {
|
|
clear() {
|
|
|
- clearInterval(this.intervalId) //清除计时器
|
|
|
|
|
- this.intervalId = null //设置为null
|
|
|
|
|
|
|
+ clearInterval(this.intervalId)
|
|
|
|
|
+ this.intervalId = null
|
|
|
},
|
|
},
|
|
|
// expandChange(row, expandedRows) {
|
|
// expandChange(row, expandedRows) {
|
|
|
// if (this.expandKeys.indexOf(row.deviceId) >= 0) {
|
|
// if (this.expandKeys.indexOf(row.deviceId) >= 0) {
|
|
@@ -423,6 +423,7 @@ export default {
|
|
|
this.dateValue = null
|
|
this.dateValue = null
|
|
|
this.queryParams = {}
|
|
this.queryParams = {}
|
|
|
this.selectedSensorRow = row
|
|
this.selectedSensorRow = row
|
|
|
|
|
+ // this.deviceId_history = row.deviceId
|
|
|
this.historyDataVisible = true
|
|
this.historyDataVisible = true
|
|
|
},
|
|
},
|
|
|
drawHistoryChart() {
|
|
drawHistoryChart() {
|
|
@@ -431,7 +432,7 @@ export default {
|
|
|
this.queryParams.startTimeFrom = this.dateValue[0]
|
|
this.queryParams.startTimeFrom = this.dateValue[0]
|
|
|
this.queryParams.startTimeTo = this.dateValue[1]
|
|
this.queryParams.startTimeTo = this.dateValue[1]
|
|
|
}
|
|
}
|
|
|
- this.queryParams.deviceId = this.deviceId_history
|
|
|
|
|
|
|
+ this.queryParams.deviceId = this.selectedSensorRow.deviceId
|
|
|
this.queryParams.sensorId = this.selectedSensorRow.sensorId
|
|
this.queryParams.sensorId = this.selectedSensorRow.sensorId
|
|
|
this.queryParams.switchValue = this.switchValue
|
|
this.queryParams.switchValue = this.switchValue
|
|
|
this.$post('/demp/data/exchange/historyData/getHistoryData', {
|
|
this.$post('/demp/data/exchange/historyData/getHistoryData', {
|