riku
2024-05-11 e94ea7f723e616a0566ac5c7f9d77435333d9e92
src/views/historymode/component/TrendAnalysis.vue
@@ -3,13 +3,15 @@
    <Transition name="">
      <el-col v-show="show" span="10">
        <FactorCheckbox
          v-model="selectFactorType"
          :device-type="deviceType"
          @change="(e) => (selectFactorType = e)"
        ></FactorCheckbox>
        <LineChart
        <ProgressLineChart
          :locate-index="locateIndex"
          @chart-click="handleChartClick"
          :factor-datas="factorDatas"
          :select-factor-type="selectFactorType"
        ></LineChart>
        ></ProgressLineChart>
      </el-col>
    </Transition>
    <el-col span="2">
@@ -32,13 +34,21 @@
    deviceType: {
      type: String
    },
    factorDatas: FactorDatas
    factorDatas: FactorDatas,
    // 当前选中高亮的数据点索引
    locateIndex: Number
  },
  data() {
    return {
      selectFactorType: ['1'],
      show: true
    };
  },
  emits: ['chartClick'],
  methods: {
    handleChartClick(index) {
      this.$emit('chartClick', index);
    }
  }
};
</script>