|
|
|
|
@ -345,7 +345,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
const { createApp, ref, onMounted, unref, watch, reactive, computed, nextTick, onUnmounted, components, provide, inject } = Vue;
|
|
|
|
|
const { message } = antd;
|
|
|
|
|
axios.defaults.baseURL = 'http://192.168.1.198:9501'; // 临时服务地址
|
|
|
|
|
axios.defaults.baseURL = 'http://192.168.1.243:9501'; // 临时服务地址
|
|
|
|
|
axios.defaults.timeout = 10000;
|
|
|
|
|
const HISTORY_TREND_LEGEND = [
|
|
|
|
|
{ id: 'plusAvg', name: '脉冲平均值' },
|
|
|
|
|
@ -670,6 +670,11 @@
|
|
|
|
|
this.lastBrushSelected = { minX: xAxisData[0], maxX: xAxisData[index] };
|
|
|
|
|
this.$emit('getEventList', { startTime: xAxisData[0], endTime: xAxisData[index] })
|
|
|
|
|
},
|
|
|
|
|
// 筛选时候触发
|
|
|
|
|
loadDragData() {
|
|
|
|
|
const { minX, maxX } = this.lastBrushSelected;
|
|
|
|
|
this.$emit('getEventList', { startTime: minX, endTime: maxX })
|
|
|
|
|
},
|
|
|
|
|
// 双击跳转
|
|
|
|
|
onDblclickGraph() {
|
|
|
|
|
if (this.usedTab !== 'historyTrend') return
|
|
|
|
|
@ -1957,7 +1962,8 @@
|
|
|
|
|
}
|
|
|
|
|
// 筛选
|
|
|
|
|
const onFilterEventList = () => {
|
|
|
|
|
trendRef.value.loadInitTimeData()
|
|
|
|
|
// trendRef.value.loadInitTimeData()
|
|
|
|
|
trendRef.value.loadDragData()
|
|
|
|
|
everntFilterVisible.value = false
|
|
|
|
|
}
|
|
|
|
|
// 重置筛选框
|
|
|
|
|
|