gerson
2024-07-27 ed1170014712737986ddcb4d760907c4b1d5f686
setTimeout
已修改1个文件
14 ■■■■■ 文件已修改
src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSetDialog.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSetDialog.vue
@@ -17,7 +17,7 @@
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,
@@ -55,16 +55,18 @@
        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(