vue颜色循环(支付首页主题)

<template>
  <el-card class="box-card breadcrumb-header" v-loading="containerLoading" :element-loading-text="$t('common.loading')" shadow="never">
    <div v-if="hasRole('PayAdmin')" style="margin-bottom: 20px">
      <el-select v-model="searchMchId" clearable size="small" filterable :disabled="filterDisabled"
                 placeholder="请选择商户" @change="init">
        <el-option v-for="item in mchList" :key="item.id" :label="item.mchName" :value="item.id" />
      </el-select>
    </div>
    <el-row>
      <el-col :span="24">
        <el-divider direction="vertical" class="blue-divider" />
        <span class="text-middle">今日概况</span>
      </el-col>
    </el-row>
    <el-row :gutter="15">
      <el-col v-for="(item, index) in todayData" :key="index" :span="8"
              style="margin-top: 20px;">
        <div :class="`${item.color}` + ' card-flex'">
          <div class="flex-item">
            <img :src="item.icon">
          </div>
          <div class="flex-item" :lg="8">
            <p class="num">{
   {
    todayOverview[item.prop] || 0 }}</p>
            <p class="desc">{
   {
    item.label }}</p>
          </div>
        </div>
      </el-col>
    </el-row>
    <!-- <div style="background-color: #ecf5ff;color: #409eff;border: 1px solid #409eff; text-align: center;border-radius: 4px;">
      <h3 style="margin: 8px 0px">{
   {
    todayOverview[item.code] || 0 }}</h3>
      <p style="margin: 8px 0px;">{
   {
    item.label }}交易()</p>
    </div> -->
      <!-- <el-col v-for="(item, index) in tagItems" :key="index" :span="4" style="margin-top: 20px;">
        <div style="background-color: #f0f9eb;color: #67c23a;border: 1px solid #67c23a; text-align: center;border-radius: 4px;">
          <h3 style="margin: 8px 0px">{
   {
    todayOverview[item.code] || 0 }}</h3>
          <p style="margin: 8px 0px;">{
   {
    item.label }}交易()</p>
        </div>
      </el-col> -->
    <el-row :gutter="15">
      <el-col v-for="(item, index) in tagItems" :key="index" :span="4" style="margin-bottom: 8px;">
        <div style="margin-top: 20px; border: 1px solid rgb(214, 217, 231); text-align: center;border-radius: 4px; -webkit-box-shadow: 0 2px 12px 0 rgba(0,0,0,.1); box-shadow: 0 2px 12px 0 rgba(0,0,0,.1); ">
          <h3 style="margin: 8px 0px">{
   {
    todayOverviewtheme[item.code] || 0 }}</h3>
          <p style="margin: 8px 0px;">{
   {
    item.name }}交易()</p>
        </div>
      </el-col>
    </el-row>
    <el-row style="margin-top: 20px">
      <el-col :span="24">
        <el-divider direction="vertical" class="blue-divider" />
        <span class="text-middle">最近一周业务实际交易统计</span>
      </el-col>
    </el-row>
    <el-row>
      <div v-if="_.isEmpty(barOption)" style="width: 100%; height: 300px;margin-top: 20px; text-align: center;background: #eee">
        <span style="line-height: 300px">
          数据加载失败
        </span>
      </div>
      <div v-else>
        <v-chart :options="barOption" :theme="theme" autoresize style="width: 100%; height: 300px" />
      </div>
    </el-row>
    <el-row style="margin-top: 20px">
      <el-col :span="24">
        <el-divider direction="vertical" class="blue-divider" />
        <span class="text-middle">月度交易统计 (单位: 元)</span>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <div v-if="_.isEmpty(pieOption)" style="width: 100%; height: 300px;margin-top: 20px; text-align: center;background: #eee">
          <span style="line-height: 300px">
            数据加载失败
          </span>
        </div>
        <v-chart :options="pieOption" :theme="theme" autoresize style=" height: 300px" />
      </el-col>
      <el-col :span="12">
        <div v-if="_.isEmpty(sourceOption)" style=
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值