| | |
| | | import TimeRange from './components/TimeRange.vue'; |
| | | import List from './components/List.vue'; |
| | | |
| | | const props = defineProps(['otype', 'oname','indexName']); |
| | | const props = defineProps(['otype', 'oname', 'indexName']); |
| | | |
| | | const isShow = defineModel({ |
| | | type: Boolean, |
| | |
| | | ptype: props.otype, |
| | | // 设备名称 |
| | | pname: props.oname, |
| | | otype:props.indexName, |
| | | otype: props.indexName, |
| | | start_time: timeRange[0], |
| | | end_time: timeRange[1], |
| | | step_time: stepTime.value, |
| | | }); |
| | | chartValues.value = res.values; |
| | | chartValues.value.chart = 'single_line' |
| | | nextTick(()=>{ |
| | | recordSetRef.value.drawChart(); |
| | | }) |
| | | chartValues.value.chart = 'single_line'; |
| | | nextTick(() => { |
| | | setTimeout(() => { |
| | | recordSetRef.value.drawChart(); |
| | | }, 0); |
| | | }); |
| | | }; |
| | | |
| | | watch( |