修改bug

This commit is contained in:
‘937886381’
2024-06-07 11:13:59 +08:00
parent 1e8d60696b
commit ef618a4abb
27 changed files with 643 additions and 214 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-05-07 10:25:10
* @LastEditTime: 2024-06-04 14:18:52
* @LastEditTime: 2024-06-06 13:55:10
* @LastEditors: zhp
* @Description:
-->
@@ -39,7 +39,7 @@ export default {
}
},
computed: {
data() {
stdData() {
return this.$store.getters.copilot.efficiency.stdRate
},
cities() {
@@ -65,22 +65,22 @@ export default {
{ name: "凯盛光伏", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
{ name: "蚌埠", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
]
if (this.data?.previous) {
this.data?.previous.forEach(
if (this.stdData?.previous) {
this.stdData?.previous.forEach(
(v, idx) => {
_cities[idx].previous = v ?? 0;
}
);
}
if (this.data?.target) {
this.data?.target.forEach(
if (this.stdData?.target) {
this.stdData?.target.forEach(
(v, idx) => {
_cities[idx].target = v ?? 0;
}
)
}
if (this.data?.current) {
this.data?.current.forEach(
if (this.stdData?.current) {
this.stdData?.current.forEach(
(v, idx) => {
_cities[idx].current = v ?? 0;
}
@@ -123,7 +123,7 @@ export default {
// flex: 1 1 auto;
flex-direction: column;
// display: -webkit-box;
// flex-wrap: wrap;
flex-wrap: wrap;
// align-items: center;
// grid-template-columns: repeat(2, 1fr);
// grid-template-rows: repeat(4, 1fr);
@@ -136,7 +136,7 @@ export default {
// width: 50%;
}
.span-2 {
flex: 1 1 auto;
// flex-basis: 100%;
// flex: 1 1 auto;
flex-basis: 100%;
}
</style>