<template>
  <div class="manage-home">
    <!--导航栏-->
    <div class="manage-navigation">
      <div class="navigation-title"><div class="navigation-date">{{date}}</div></div>
      <div class="safe-manage" @click=goto()>安全服务平台</div>
    </div>
    <!--&lt;!&ndash;正文&ndash;&gt;-->
    <div class="manage-text">
      <!--1-->
      <text-user class="text-user" ref="text-user"></text-user>
      <text-shanximap class="text-shanximap" ref="text-shanximap"></text-shanximap>
      <text-sellgas class="text-sellgas" ref="text-sellgas"></text-sellgas>
      <text-totalsellgas class="text-totalsellgas" ref="text-totalsellgas"></text-totalsellgas>
      <text-childsellgas class="text-childsellgas" ref="text-childsellgas"></text-childsellgas>
      <text-profit class="text-profit" ref="text-profit"></text-profit>
      <text-business class="text-business" ref="text-business"></text-business>
    </div>
    <!--<loading v-if="initdatashow"></loading>-->
    <loading v-if="initdatashow"  :backurl="backurl"></loading>
  </div>
</template>

<script>
  import * as Util from '../../../stores/Util'
  import * as DataSql from '../../../stores/DataSql'
  import co from 'co'

  export default {
    title: "经营管控",
    props: {
      homeflag:Boolean,
    },
    data() {
      return {
        backurl:'../../../static/ManageHomePic/加载数据1.gif',
        date:'',   //获取当前时间
        initdatashow:true
      }
    },
    methods: {
      // 定时获取时间
     getdate(){
       var self=this
       setInterval(() => {
         self.date=Util.toStandardTimeString()
       }, 1000)
     },
      goto(){
        this.$parent.homeflag=false
      },
    },
    watch: {

    },
    ready() {
     this.getdate()
      var self=this
      setTimeout(function () {
        self.initdatashow=false
      },3000)
    }
  }
</script>
