|
|
@ -3,7 +3,7 @@
|
|
|
|
<div v-for="(item, index) in data" :key="index" class="header_item">
|
|
|
|
<div v-for="(item, index) in data" :key="index" class="header_item">
|
|
|
|
<img :src="item.link" />
|
|
|
|
<img :src="item.link" />
|
|
|
|
<div class="data_wrap">
|
|
|
|
<div class="data_wrap">
|
|
|
|
<div class="data_title">{{ item.count }}</div>
|
|
|
|
<div class="data_title" :style="hasColor?`color:${item.color || ''}`:''">{{ item.count }}</div>
|
|
|
|
<div class="data_content">{{ item.title }}</div>
|
|
|
|
<div class="data_content">{{ item.title }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -12,36 +12,55 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
|
|
import { defineProps, onMounted } from "vue";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
|
|
|
|
hasColor: {
|
|
|
|
|
|
|
|
type: Boolean,
|
|
|
|
|
|
|
|
default: () => false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
const initRem = () => {
|
|
|
|
|
|
|
|
const designWidth = 1440;
|
|
|
|
|
|
|
|
const rempPx = 16;
|
|
|
|
|
|
|
|
const scale = window.innerWidth / designWidth;
|
|
|
|
|
|
|
|
document.documentElement.style.fontSize = scale * rempPx + "px";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
onMounted(()=>{
|
|
|
|
|
|
|
|
initRem();
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const data = [
|
|
|
|
const data = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/taskCount.png",
|
|
|
|
link: "/src/assets/images/taskCount.png",
|
|
|
|
title: "任务包总数",
|
|
|
|
title: "任务总数",
|
|
|
|
count: 6399,
|
|
|
|
count: 6399,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/nocheck.png",
|
|
|
|
link: "/src/assets/images/nocheck.png",
|
|
|
|
title: "未标记",
|
|
|
|
title: "待审批",
|
|
|
|
count: 6290,
|
|
|
|
count: 6290,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/check.png",
|
|
|
|
link: "/src/assets/images/check.png",
|
|
|
|
title: "已标记",
|
|
|
|
title: "已审批",
|
|
|
|
count: 109,
|
|
|
|
count: 109,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/status.png",
|
|
|
|
link: "/src/assets/images/status.png",
|
|
|
|
title: "真",
|
|
|
|
title: "通过",
|
|
|
|
count: 3290,
|
|
|
|
count: 3290,
|
|
|
|
|
|
|
|
color: "#03c984",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/status.png",
|
|
|
|
link: "/src/assets/images/status.png",
|
|
|
|
title: "假",
|
|
|
|
title: "不通过",
|
|
|
|
count: 3000,
|
|
|
|
count: 3000,
|
|
|
|
|
|
|
|
color: "#ff8b8b",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
link: "/src/assets/images/pic.png",
|
|
|
|
link: "/src/assets/images/pic.png",
|
|
|
|
title: "相似度100%图",
|
|
|
|
title: "图片重复数",
|
|
|
|
count: 230,
|
|
|
|
count: 230,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -58,8 +77,10 @@ const data = [
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 20px 30px;
|
|
|
|
padding: 1rem 3.125rem;
|
|
|
|
background: #fff;
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
.header_item {
|
|
|
|
.header_item {
|
|
|
|
width: 10%;
|
|
|
|
width: 10%;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
@ -67,28 +88,28 @@ const data = [
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
img {
|
|
|
|
img {
|
|
|
|
width: 50px;
|
|
|
|
width: 3.125rem;
|
|
|
|
height: 50px
|
|
|
|
height: 3.125rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.data_wrap {
|
|
|
|
.data_wrap {
|
|
|
|
.data_title {
|
|
|
|
.data_title {
|
|
|
|
font-size: 20px;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
|
|
|
|
font-weight: Bold;
|
|
|
|
font-weight: Bold;
|
|
|
|
text-align: left;
|
|
|
|
text-align: left;
|
|
|
|
color: #202020;
|
|
|
|
color: #202020;
|
|
|
|
line-height: 23px;
|
|
|
|
line-height: 1.4375rem;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.data_content {
|
|
|
|
.data_content {
|
|
|
|
opacity: 0.6;
|
|
|
|
opacity: 0.6;
|
|
|
|
font-size: 14px;
|
|
|
|
font-size: .875rem;
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
font-weight: Regular;
|
|
|
|
font-weight: Regular;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
color: #202020;
|
|
|
|
color: #202020;
|
|
|
|
line-height: 16px;
|
|
|
|
line-height: 1rem;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|