+
+
+
+
@@ -31,9 +49,55 @@ export default {
type: Object,
required: true,
},
+ period: {
+ type: String,
+ default: "日",
+ }
},
data() {
- return {};
+ return {
+ showDay:true,
+ };
+ },
+ computed: {
+ title() {
+ switch (this.period) {
+ case "日":
+ return "今日"
+ case "周":
+ return "本周"
+ case "月":
+ const year = new Date().getFullYear();
+ const month = new Date().getMonth() + 1;
+ return `${year - 1}年${month}月累计`
+ case "年": {
+ const year = new Date().getFullYear();
+ // return [
+ return `${year - 1}年累计`
+ // ];
+ }
+ default:
+ return "今日"
+ }
+ },
+ titleEnd() {
+ switch (this.period) {
+ // case "日":
+ // return "今日"
+ // case "周":
+ // return "本周"
+ case "月":
+ const year = new Date().getFullYear();
+ const month = new Date().getMonth() + 1;
+ return `${year}年${month}月目标`
+ case "年": {
+ const year = new Date().getFullYear();
+ // return [
+ return `${year}年目标`
+ // ];
+ }
+ }
+ }
},
};
diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue
index f8f0571..c2c4687 100644
--- a/src/views/copilot/efficiency/index.vue
+++ b/src/views/copilot/efficiency/index.vue
@@ -1,7 +1,7 @@
@@ -74,7 +74,7 @@ export default {
display: grid;
gap: 16px;
grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
+ grid-template-rows: .5fr .5fr;
}
.efficiency-copilot > div {
diff --git a/src/views/copilot/energy/components/StockMonitor.vue b/src/views/copilot/energy/components/StockMonitor.vue
index d5ada52..6b6d364 100644
--- a/src/views/copilot/energy/components/StockMonitor.vue
+++ b/src/views/copilot/energy/components/StockMonitor.vue
@@ -1,8 +1,9 @@
-
@@ -25,15 +26,15 @@ export default {
data() {
return {
dhgList: [
- { name: "总库存", value: "1000" },
- { name: "已用库存", value: "500" },
- { name: "剩余库存", value: "500" },
+ { name: "总库存", value: 1000 },
+ { name: "已用库存", value: 500 },
+ { name: "剩余库存", value: 500 },
],
otherList: [
- { name: "分类1", value: "1000" },
- { name: "分类2", value: "1000" },
- { name: "分类3", value: "1000" },
- { name: "分类4", value: "1000" },
+ { name: "分类1", value: 1000 },
+ { name: "分类2", value: 1000 },
+ { name: "分类3", value: 1000 },
+ { name: "分类4", value: 1000 },
],
};
},
diff --git a/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue b/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue
index 10df11b..4b231b4 100644
--- a/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue
+++ b/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue
@@ -1,8 +1,8 @@
-
@@ -12,9 +12,12 @@