| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <template>
- <div id="index" ref="appRef">
- <div class="bg">
- <dv-loading v-if="loading">Loading...</dv-loading>
- <div v-else class="host-body">
- <div class="d-flex jc-center">
- <dv-decoration-10 class="dv-dec-10" />
- <div class="d-flex jc-center">
- <dv-decoration-8 class="dv-dec-8" :color="decorationColor" />
- <div class="title">
- <span class="title-text">UAS-MES可视化平台</span>
- <dv-decoration-6
- class="dv-dec-6"
- :reverse="true"
- :color="['#50e3c2', '#67a1e5']"
- />
- </div>
- <dv-decoration-8
- class="dv-dec-8"
- :reverse="true"
- :color="decorationColor"
- />
- </div>
- <dv-decoration-10 class="dv-dec-10-s" />
- </div>
- <!-- 第二行 -->
- <div class="d-flex jc-between px-2">
- <div class="d-flex aside-width">
- <div class="react-left ml-4 react-l-s bg-color-blue">
- <span class="react-left"></span>
- <span class="text fw-b" style="font-size:24px;">江西联淦电子科技有限公司</span>
- </div>
- <div class="react-left ml-3">
- <span class="text">生产实况分析</span>
- </div>
- </div>
- <div class="d-flex aside-width">
- <div class="react-right bg-color-r mr-3">
- <span class="text ">品质趋势分析</span>
- </div>
- <div class="react-right mr-4 react-l-s">
- <span class="react-after"></span>
- <span class="text"
- >{{ dateYear }} {{ dateWeek }} {{ dateDay }}</span
- >
- </div>
- </div>
- </div>
- <div class="body-box">
- <!-- 上面 -->
- <div class="content-box">
- <div>
- <dv-border-box-12>
- <up1 />
- </dv-border-box-12>
- </div>
- <div>
- <dv-border-box-12>
- <up2 />
- </dv-border-box-12>
- </div>
- </div>
- <!-- 下面 -->
- <div class="bottom-box">
- <dv-border-box-13>
- <bottom1 />
- </dv-border-box-13>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import drawMixin from "../../utils/drawMixin";
- import { formatTime } from '../../utils/index.js'
- import up1 from './up1'
- import up2 from './up2'
- import bottom1 from './bottom1'
- export default {
- mixins: [ drawMixin ],
- data() {
- return {
- timing: null,
- loading: true,
- dateDay: null,
- dateYear: null,
- dateWeek: null,
- weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
- decorationColor: ['#568aea', '#000000']
- }
- },
- components: {
- up1,
- up2,
- bottom1
- },
- mounted() {
- this.timeFn()
- this.cancelLoading()
- },
- beforeDestroy () {
- clearInterval(this.timing)
- clearInterval(this.intervalId)
- },
- methods: {
- timeFn() {
- this.timing = setInterval(() => {
- this.dateDay = formatTime(new Date(), 'HH: mm: ss')
- this.dateYear = formatTime(new Date(), 'yyyy-MM-dd')
- this.dateWeek = this.weekday[new Date().getDay()]
- }, 1000)
- },
- cancelLoading() {
- setTimeout(() => {
- this.loading = false
- }, 5000)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '../../assets/scss/indexsmt.scss';
- </style>
|