+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ title }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/container.vue b/src/views/copilot/container.vue
index 19c8818..e9a88a6 100644
--- a/src/views/copilot/container.vue
+++ b/src/views/copilot/container.vue
@@ -25,7 +25,7 @@ import YieldCopilot from "./yield/index.vue";
// import EfficiencyCopilot from "./efficiency/index.vue";
export default {
- name: "CopilotContainer",
+ name: "copilotContainer",
components: {
CopilotHeaderVue,
YieldCopilot,
diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue
index cbbfe12..3656eaa 100644
--- a/src/views/copilot/efficiency/components/StdRate.vue
+++ b/src/views/copilot/efficiency/components/StdRate.vue
@@ -1,7 +1,7 @@
@@ -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: {},
};
diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue
index 27af2ff..04fc995 100644
--- a/src/views/copilot/efficiency/index.vue
+++ b/src/views/copilot/efficiency/index.vue
@@ -1,7 +1,7 @@
@@ -12,17 +12,17 @@
-
+
-
+
@@ -30,7 +30,8 @@
+
+
diff --git a/src/views/copilot/factoryData/components/rightContainer.vue b/src/views/copilot/factoryData/components/rightContainer.vue
new file mode 100644
index 0000000..124bcee
--- /dev/null
+++ b/src/views/copilot/factoryData/components/rightContainer.vue
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ title }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/hdIndex.vue b/src/views/copilot/factoryData/hdIndex.vue
index 70fcbf0..ac8432a 100644
--- a/src/views/copilot/factoryData/hdIndex.vue
+++ b/src/views/copilot/factoryData/hdIndex.vue
@@ -8,9 +8,9 @@
-
+
-
+
@@ -26,7 +26,8 @@