update 标准组件良率

This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-04-29 14:18:52 +08:00
parent 5ed4eed5de
commit b6820fd61f
4 changed files with 60 additions and 44 deletions

View File

@@ -8,21 +8,13 @@
<template>
<div class="std-rate">
<div class="span-2">
<StdRateItem
:city="cities[5].name"
:target="cities[5].target"
:total="cities[5].total"
/>
<StdRateItem :city="cities[5]" />
</div>
<div
v-for="item in cities.filter((val, index) => index != 5)"
:key="item.name"
>
<StdRateItem
:city="item.name"
:target="item.target"
:total="item.total"
/>
<StdRateItem :city="item" />
</div>
</div>
</template>
@@ -36,13 +28,13 @@ export default {
data() {
return {
cities: [
{ name: "A", target: 100, total: 200 },
{ name: "B", target: 200, total: 300 },
{ name: "C", target: 300, total: 400 },
{ name: "D", target: 400, total: 500 },
{ name: "E", target: 500, total: 600 },
{ name: "F", target: 400, total: 500 },
{ name: "G", target: 500, total: 600 },
{ name: "瑞昌", target: 100, total: 200, thisYear: 20 },
{ name: "邯郸", target: 200, total: 300, thisYear: 20 },
{ name: "株洲", target: 300, total: 400, thisYear: 20 },
{ name: "佳木斯", target: 400, total: 500, thisYear: 20 },
{ name: "成都", target: 500, total: 600, thisYear: 20 },
{ name: "凯盛光伏", target: 400, total: 500, thisYear: 20 },
{ name: "蚌埠", target: 500, total: 600, thisYear: 20 },
],
};
},