修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-05-07 10:25:10
|
||||
* @LastEditTime: 2024-06-03 16:40:45
|
||||
* @LastEditTime: 2024-06-04 14:18:52
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -33,7 +33,15 @@ export default {
|
||||
default: "同比",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// data: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
data() {
|
||||
return this.$store.getters.copilot.efficiency.stdRate
|
||||
},
|
||||
cities() {
|
||||
console.log('ztl', this.$store.getters.copilot.efficiency.stdRate)
|
||||
// let getterName = "";
|
||||
@@ -57,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.$store.getters.copilot?.efficiency.stdRate?.previous) {
|
||||
this.$store.getters.copilot?.efficiency.stdRate?.previous.forEach(
|
||||
if (this.data?.previous) {
|
||||
this.data?.previous.forEach(
|
||||
(v, idx) => {
|
||||
_cities[idx].previous = v ?? 0;
|
||||
}
|
||||
);
|
||||
}
|
||||
if (this.$store.getters.copilot?.efficiency.stdRate?.target) {
|
||||
this.$store.getters.copilot?.efficiency.stdRate?.target.forEach(
|
||||
if (this.data?.target) {
|
||||
this.data?.target.forEach(
|
||||
(v, idx) => {
|
||||
_cities[idx].target = v ?? 0;
|
||||
}
|
||||
)
|
||||
}
|
||||
if (this.$store.getters.copilot?.efficiency.stdRate?.current) {
|
||||
this.$store.getters.copilot?.efficiency.stdRate?.current.forEach(
|
||||
if (this.data?.current) {
|
||||
this.data?.current.forEach(
|
||||
(v, idx) => {
|
||||
_cities[idx].current = v ?? 0;
|
||||
}
|
||||
@@ -86,19 +94,24 @@ export default {
|
||||
return arr;
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// cities: [
|
||||
// { name: "瑞昌", target: 100, total: 200, current: 20 },
|
||||
// { name: "邯郸", target: 200, total: 300, current: 20 },
|
||||
// { name: "株洲", target: 300, total: 400, current: 20 },
|
||||
// { name: "佳木斯", target: 400, total: 500, current: 20 },
|
||||
// { name: "成都", target: 500, total: 600, current: 20 },
|
||||
// { name: "凯盛光伏", target: 400, total: 500, current: 20 },
|
||||
// { name: "蚌埠", target: 500, total: 600, current: 20 },
|
||||
// ],
|
||||
};
|
||||
watch: {
|
||||
period() {
|
||||
this.data = this.$store.getters.copilot.efficiency.stdRate
|
||||
}
|
||||
},
|
||||
// data() {
|
||||
// return {
|
||||
// // cities: [
|
||||
// // { name: "瑞昌", target: 100, total: 200, current: 20 },
|
||||
// // { name: "邯郸", target: 200, total: 300, current: 20 },
|
||||
// // { name: "株洲", target: 300, total: 400, current: 20 },
|
||||
// // { name: "佳木斯", target: 400, total: 500, current: 20 },
|
||||
// // { name: "成都", target: 500, total: 600, current: 20 },
|
||||
// // { name: "凯盛光伏", target: 400, total: 500, current: 20 },
|
||||
// // { name: "蚌埠", target: 500, total: 600, current: 20 },
|
||||
// // ],
|
||||
// };
|
||||
// },
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-05-07 10:04:53
|
||||
* @LastEditTime: 2024-06-03 16:08:27
|
||||
* @LastEditTime: 2024-06-05 09:45:47
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -12,17 +12,17 @@
|
||||
<Container title="芯片良率" icon="chip2">
|
||||
<ChipRate :period="period" :than="than" />
|
||||
</Container>
|
||||
<Container title="标准组件良率" icon="std">
|
||||
<left-container title="标准组件良率" icon="std">
|
||||
<StdRate :period="period" :than="than" />
|
||||
</Container>
|
||||
</left-container>
|
||||
</section>
|
||||
<section class="bottom flex">
|
||||
<Container title="芯片OEE" icon="chip">
|
||||
<ChipOee :chipOeeRate="chipOeeRate" :period="period" :than="than" />
|
||||
</Container>
|
||||
<Container title="转化效率" icon="cube">
|
||||
<left-container title="转化效率" icon="cube">
|
||||
<TransformRate :transformRate="transformRate" :period="period" :than="than" />
|
||||
</Container>
|
||||
</left-container>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Container from "@/views/copilot/components/Container.vue";
|
||||
import Container from "@/views/copilot/components/rightContainer.vue";
|
||||
import leftContainer from "@/views/copilot/components/leftContainer.vue";
|
||||
import ChipOeeVue from "./components/ChipOee.vue";
|
||||
import ChipRateVue from "./components/ChipRate.vue";
|
||||
import StdRateVue from "./components/StdRate.vue";
|
||||
@@ -40,6 +41,7 @@ export default {
|
||||
name: "efficiencyCopilot",
|
||||
components: {
|
||||
Container,
|
||||
leftContainer,
|
||||
ChipOee: ChipOeeVue,
|
||||
ChipRate: ChipRateVue,
|
||||
StdRate: StdRateVue,
|
||||
|
||||
Reference in New Issue
Block a user