doum
15 小时以前 4936ba718f4ec2d069a9c28d07215573ed8548aa
admin/src/views/index.vue
@@ -4,7 +4,7 @@
    <div class="home_header">
      <div class="mb10 fs17">{{timeInfo}}好,{{ userInfo.realname }}</div>
      <div class="fs13">
        今天是 {{ nowDate }} {{ nowWeek }},欢迎访问智慧物流园区安消一体化系统
        今天是 {{ nowDate }} {{ nowWeek }},欢迎访问{{sysConfig.subtitle || title}}
      </div>
    </div>
    <div class="main">
@@ -218,6 +218,7 @@
import OperaCarUseBookWindow from '@/components/business/OperaCarUseBookWindow'
import OperaHiddenDangerWindow from '@/components/business/OperaHiddenDangerWindow'
import OperaVisitsDesWindow from '@/components/business/OperaVisitsDesWindow'
import {mapState} from "vuex";
const colors = ['#52a4f7', '#7678f7', '#5fc6d5']
export default {
  components: {
@@ -231,12 +232,14 @@
  },
  data () {
    return {
      title: process.env.VUE_APP_TITLE,
      tabPosition: 'right',
      colors,
      timeInfo: '上午',
      nowDate: '',
      nowWeek: '',
      headerData: {},
      timeInfo:'上午',
      staticData: {},
      manningRatio: [],
      taskList: [],
@@ -258,6 +261,7 @@
    }
  },
  computed: {
    ...mapState(['sysConfig']),
    userInfo () {
      return this.$store.state.userInfo
    }
@@ -374,6 +378,7 @@
      this.$router.push(item.path)
    },
    updateDate () {
      this.timeInfo = new Date().getHours()<12?'上午':'下午'
      this.nowDate = dayjs().format('YYYY年M月D日')
      this.nowWeek = weeks[new Date().getDay()]
      this.timeInfo = new Date().getHours() < 12 ? '上午' : '下午'
@@ -413,7 +418,7 @@
        arr.push({ name: '访客', value: this.headerData.inParkVisitUserNum })
        arr.push({ name: '内部员工', value: this.headerData.todayInParkUserNum - this.headerData.inParkLwUserNum - this.headerData.inParkVisitUserNum - this.headerData.inParkDriverUserNum })
        arr.push({ name: '长期相关方', value: this.headerData.inParkLwUserNum })
        arr.push({ name: '货运司机', value: this.headerData.inParkDriverUserNum })
        // arr.push({ name: '货运司机', value: this.headerData.inParkDriverUserNum })
        arr.sort((a, b) => b.value - a.value)
        this.manningRatio = arr
        this.initEchart1()