Blame view

src/views/home/dataView/index.vue 1.55 KB
任超 committed
1 2
<template>
  <div class="bigScreen">
任超 committed
3 4 5 6 7 8 9 10 11
    <div class="bigScreen-con" ref="appRef">
      <dv-loading v-if="loading">Loading...</dv-loading>
      <div v-else>
        <div class="header">
          <div class="d-flex head">
            <dv-decoration-10 class="dv-dec-10" />
            <div class="d-flex">
              <dv-decoration-8 class="dv-dec-8" :color="decorationColor" />
              <div class="title">
12 13 14
                <dv-decoration-5
                  :dur="1"
                  class="dv-dec-5"
xiaomiao committed
15
                  :color="decorationColor" />
任超 committed
16
              </div>
17 18 19
              <dv-decoration-8
                class="dv-dec-8"
                :reverse="true"
xiaomiao committed
20
                :color="decorationColor" />
任超 committed
21
            </div>
任超 committed
22
            <dv-decoration-10 class="dv-dec-10-s" />
任超 committed
23 24
          </div>
        </div>
xiaomiao committed
25
        <screencontent v-show="isshow" />
任超 committed
26 27 28 29 30
      </div>
    </div>
  </div>
</template>
<script>
xiaomiao committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
  import drawMixin from "@/utils/drawMixin";
  import screencontent from "./screencontent";
  export default {
    mixins: [drawMixin],
    data () {
      return {
        isshow: true,
        loading: true,
        decorationColor: ["#568aea", "#568aea"],
      };
    },
    components: {
      screencontent,
    },
    mounted () {
xiaomiao committed
46

xiaomiao committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60
      // this.timeFn();
      this.cancelLoading();
    },
    beforeDestroy () {
      clearInterval(this.timing);
    },
    methods: {
      cancelLoading () {
        setTimeout(() => {
          this.loading = false;
        }, 500);
      },
    },
  };
任超 committed
61 62
</script>

xiaomiao committed
63
<style scoped lang="scss">
xiaomiao committed
64
  @import "./index.scss";
任超 committed
65
</style>