123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <template>
- <a-row class="prod-total">
- <template v-for="(item, index) in wokbProd" :key="item.type">
- <a-col :xs="12" :sm="6" class="prod-total__item" :class="`prod-total__item-${index}`">
- <div class="img" :class="`prod-total__item-${index}-img`"></div>
- <div>{{ item.amount }}</div>
- <span>{{ item.type }}</span>
- </a-col>
- </template>
- </a-row>
- </template>
- <script lang="ts">
- import { defineComponent } from 'vue';
- import { Row, Col } from 'ant-design-vue';
- import { wokbProd } from '../data';
- // import {ProdTypeEnum} from '@/api/dashboard/model/wokbModel'
- export default defineComponent({
- components: { [Row.name]: Row, [Col.name]: Col },
- setup() {
- return { wokbProd };
- },
- });
- </script>
- <style lang="less" scoped>
- .prod-total {
- padding: 12px 4px 12px 12px;
- background: #fff;
- &__item {
- display: inline-block;
- flex: 0 0 calc(25% - 8px);
- padding: 20px 10px;
- margin-right: 8px;
- border-radius: 4px;
- span {
- font-size: 14px;
- line-height: 28px;
- }
- div {
- font-size: 26px;
- }
- .img {
- float: left;
- width: 62px;
- height: 62px;
- }
- &-0 {
- background: rgba(254, 97, 178, 0.1);
- &-img {
- background: url(../../../../assets/images/dashboard/wokb/datashow1.png) no-repeat;
- }
- div {
- color: #fe61b2;
- }
- }
- &-1 {
- background: rgba(254, 163, 64, 0.1);
- &-img {
- background: url(../../../..//assets/images/dashboard/wokb/datashow2.png) no-repeat;
- }
- div {
- color: #fea340;
- }
- }
- &-2 {
- background: rgba(172, 70, 255, 0.1);
- &-img {
- background: url(../../../..//assets/images/dashboard/wokb/datashow3.png) no-repeat;
- }
- div {
- color: #9e55ff;
- }
- }
- &-3 {
- background: rgba(0, 196, 186, 0.1);
- &-img {
- background: url(../../../..//assets/images/dashboard/wokb/datashow4.png) no-repeat;
- }
- div {
- color: #00c4ba;
- }
- }
- }
- }
- </style>
|