<template>
  <div class="app-container home">
    <div style="font-size: 20px;margin: 10px;">
      <span>👏{{periodOfTime}}好，{{ userStore.nickName }}！</span>
    </div>

    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>概况</span>
            </div>
          </template>
        </el-card>
      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>快捷入口</span>
            </div>
          </template>
          <div class="body">
            
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="16">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>各类型审批数量</span>
            </div>
          </template>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup name="Index">
import useUserStore from '@/store/modules/user'
import { useTime } from '@/utils/useTime.js'
import moment from 'moment'
const userStore = useUserStore()
// const { time, date, weekly } = useTime()
const periodOfTime=ref(moment().format('a'))

// function goTarget(url) {
//   window.open(url, '__blank')
// }
</script>

<style scoped lang="scss">
.home {
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
  .clearfix{
    font-size: 16px;
    font-weight: 600;
  }
}
</style>

