2024-05-08 16:38:05 +08:00
|
|
|
<!--
|
|
|
|
* @Author: zhp
|
|
|
|
* @Date: 2024-05-07 10:25:10
|
2024-05-10 11:10:42 +08:00
|
|
|
* @LastEditTime: 2024-05-09 08:44:21
|
2024-05-08 16:38:05 +08:00
|
|
|
* @LastEditors: zhp
|
|
|
|
* @Description:
|
2024-04-29 13:26:38 +08:00
|
|
|
-->
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="std-rate">
|
|
|
|
<div class="span-2">
|
2024-05-08 16:38:05 +08:00
|
|
|
<StdRateItem :period="period" :city="cities[5]" />
|
2024-04-29 13:26:38 +08:00
|
|
|
</div>
|
2024-05-08 16:38:05 +08:00
|
|
|
<div v-for="item in cities.filter((val, index) => index != 5)" :key="item.name">
|
|
|
|
<StdRateItem :period="period" :city="item" />
|
2024-04-29 13:26:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-04-29 16:00:07 +08:00
|
|
|
import StdRateItem from "./sub/std/StdRateItem.vue";
|
2024-04-29 13:26:38 +08:00
|
|
|
export default {
|
|
|
|
name: "StdRate",
|
|
|
|
components: { StdRateItem },
|
2024-05-08 16:38:05 +08:00
|
|
|
props: {
|
|
|
|
period: {
|
|
|
|
type: String,
|
|
|
|
default: "日",
|
|
|
|
},
|
|
|
|
},
|
2024-04-29 13:26:38 +08:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
cities: [
|
2024-04-29 14:18:52 +08:00
|
|
|
{ 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 },
|
2024-04-29 13:26:38 +08:00
|
|
|
],
|
|
|
|
};
|
|
|
|
},
|
2024-05-08 16:38:05 +08:00
|
|
|
computed: {
|
|
|
|
|
|
|
|
},
|
2024-04-29 13:26:38 +08:00
|
|
|
methods: {},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.std-rate {
|
|
|
|
display: grid;
|
|
|
|
gap: 8px;
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
2024-05-10 11:10:42 +08:00
|
|
|
grid-template-rows: repeat(4, 1fr);
|
2024-04-29 13:26:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.span-2 {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
</style>
|