update 接口结构
This commit is contained in:
@@ -7,23 +7,41 @@
|
||||
|
||||
<template>
|
||||
<div class="efficiency-copilot">
|
||||
<db-container title="芯片良率" icon="chip2"></db-container>
|
||||
<db-container title="标准组件良率" icon="std"></db-container>
|
||||
<db-container title="芯片OEE" icon="chip"></db-container>
|
||||
<db-container title="转化效率" icon="cube"></db-container>
|
||||
<Container title="芯片良率" icon="chip2"></Container>
|
||||
<Container title="标准组件良率" icon="std"></Container>
|
||||
<Container title="芯片OEE" icon="chip"></Container>
|
||||
<Container title="转化效率" icon="cube"></Container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Container from "../../dashboard/components/Container.vue";
|
||||
import Container from "@/views/copilot/components/Container.vue";
|
||||
export default {
|
||||
name: "EfficiencyCopilot",
|
||||
components: { DbContainer: Container },
|
||||
components: { Container },
|
||||
props: {
|
||||
period: {
|
||||
type: String,
|
||||
default: "日",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {},
|
||||
watch: {
|
||||
period: {
|
||||
handler(val) {
|
||||
val && this.fetchData(val);
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
fetchData(period = "日") {
|
||||
console.log(`效率驾驶舱,获取${period}数据`);
|
||||
this.$store.dispatch("copilot/initCopilot", { period, source: "efficiency" });
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user