Blame view

src/views/dataView/screencontent.vue 904 Bytes
xiaomiao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<template>
  <div class="content">
    <leftcard />
    <centercard />
    <rightcard />
  </div>
</template>
<script>
import drawMixin from "../../utils/drawMixin";
import leftcard from "./leftcard";
import centercard from "./centercard";
import rightcard from "./rightcard";
export default {
  mixins: [drawMixin],
任超 committed
15
  data () {
xiaomiao committed
16 17 18 19 20 21 22 23 24
    return {
      decorationColor: ["#568aea", "#568aea"],
    };
  },
  components: {
    leftcard,
    centercard,
    rightcard,
  },
任超 committed
25
  mounted () {
xiaomiao committed
26 27 28
    // this.timeFn();
    this.cancelLoading();
  },
任超 committed
29
  beforeDestroy () {
xiaomiao committed
30 31 32
    clearInterval(this.timing);
  },
  methods: {
任超 committed
33
    cancelLoading () {
xiaomiao committed
34 35 36 37 38 39 40 41 42
      setTimeout(() => {
        this.loading = false;
      }, 500);
    },
  },
};
</script>

<style scoped lang="scss">
任超 committed
43
.content {
任超 committed
44
  width: 100%;
任超 committed
45
  height: calc(100% -94px);
任超 committed
46 47
  margin: auto;
  display: flex;
任超 committed
48
  justify-content: space-between;
任超 committed
49
  margin-top: 15px;
任超 committed
50
}
xiaomiao committed
51
</style>