index.vue 2.82 KB
<template>
  <div class="home-container">
    <!-- <div class="home-text">name: {{ name }}</div> -->
    <el-row :gutter="12" class="panel-group">
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card shadow="hover">
          <div>0</div>
          <p>今日库存交易量</p>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top:30px;">
      <el-col :span="12">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>历史每日收发货量</span>

          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ '列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>库位利用率</span>

          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ '列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top:30px;">
      <el-col :span="12">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>在线库存状态</span>

          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ '列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>库存概况</span>

          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ '列表内容 ' + o }}
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Home',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.home {
  &-container {
   padding: 32px;
    background-color: #f0f2f5;
    position: relative;
    min-height: calc(100vh - 50px);
    .panel-group {
      margin-top: 18px;
    }

  }
}
</style>