Blame view

frontend/mobile/src/views/worker/previewChart.vue 791 Bytes
8ea9c133   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
  <div class="preview-chart">
    <van-sticky>
      <nav-bar
        :title="chartName"
        :is-custom="true"
        @go-back="handleGoBack"
      ></nav-bar>
    </van-sticky>
    <ht-chart
      :id="chartId"
      :chart-key="chartId"
      :isMoreUrl="true"
      :name="chartName"
    ></ht-chart>
  </div>
</template>

<script>
  export default {
    name: 'previewChart',
    data() {
      return {}
    },
    computed: {
      chartName() {
        return this.$route.query.name
      },
      chartId() {
        return this.$route.query.chartId
      },
    },
    methods: {
      handleGoBack() {
        this.$router.go(-1)
      },
    },
  }
</script>

<style lang="scss" scoped>
  .preview-chart {
    background-color: #fff;
    height: $vh;
  }
</style>