fuliqi
2024-03-20 8d15045d3e4afa77b0ca2ab9e0c6ce462fa1c8a4
src/views/screen/components/screen-examine/components/examine-hola.vue
@@ -2,7 +2,9 @@
  <!-- 进度条类型组件 -->
  <div class="progressChart">
    <div class="chart" id="progressChart" ref="chartRef"></div>
    <label class="bottom le-0-font">{{ bottomTitle }}</label>
    <el-link class="bottom le-0-font" :underline="false" @click="handleDetail(routerPath)">
    <label >{{ bottomTitle }}</label>
    </el-link>
  </div>
</template>
<script>
@@ -120,12 +122,22 @@
      type: [Number, String],
      default: 0
    },
    routerPath: {
      type: String,
      default: ''
    },
    bottomTitle: {
      type: String,
      default: ''
    }
  },
  methods: {},
  methods: {
    handleDetail(routerUrl) {
      this.$router.push({
        path: routerUrl,
      })
    }
  },
  created() { },
  mounted() {
    let myChart = echarts.init(this.$refs['chartRef']) // 使用Id无法实现
@@ -154,4 +166,4 @@
    margin-top: 10px;
  }
}
</style>
</style>