CNCEC_APP/pages/index/board/qms/qmsInspect.vue

83 lines
1.7 KiB
Vue
Raw Normal View History

2026-03-25 14:54:15 +08:00
<template>
<ChartCard margin="30rpx 0 0 0" title="领导级质量检查数">
2026-03-25 14:54:15 +08:00
<view class="defect">
<!-- <u-subsection :list="list" :current="current" @change="handleChange"></u-subsection> -->
<view class="defect-main u-flex u-row-between">
2026-03-25 14:54:15 +08:00
<view class="defect-box gb-all">
<text class="defect-box-lab">集团检查数</text>
<text class="defect-box-num u-margin-top-20">4567</text>
2026-03-25 14:54:15 +08:00
</view>
<view class="defect-box gb-rectified">
<text class="defect-box-lab">企业检查数</text>
<text class="defect-box-num u-margin-top-20">20</text>
2026-03-25 14:54:15 +08:00
</view>
<view class="defect-box gb-not-rectified">
<text class="defect-box-lab">分支机构检查数</text>
<text class="defect-box-num u-margin-top-20">6</text>
2026-03-25 14:54:15 +08:00
</view>
</view>
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
2026-03-25 14:54:15 +08:00
const current = ref(0);
const list = ref([
{
name: '集团级'
},
{
name: '企业级'
},
{
name: '分支机构'
},
{
name: '项目级'
2026-03-25 14:54:15 +08:00
}
]);
const handleChange = () => {};
2026-03-25 14:54:15 +08:00
</script>
<style lang="scss">
.defect {
&-main {
height: 120rpx;
}
2026-03-25 14:54:15 +08:00
&-box {
width: calc((100% - 40rpx) / 3);
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2026-03-25 14:54:15 +08:00
&-lab {
font-size: 24rpx;
color: #ffffff;
2026-03-25 14:54:15 +08:00
}
&-num {
font-size: 28rpx;
font-weight: 600;
color: #ffffff;
}
2026-03-25 14:54:15 +08:00
}
}
2026-03-25 14:54:15 +08:00
.gb-all {
background: linear-gradient(to top right, #9e9e9e, #dcdcdc);
}
2026-03-25 14:54:15 +08:00
.gb-not-rectified {
background: linear-gradient(to top right, #ffd626, #ff9f7d);
}
2026-03-25 14:54:15 +08:00
.gb-rectified {
background: linear-gradient(to top right, #2488fa, #79baff);
}
</style>