From da4257bc32483409af02a06dd342c6981ec786ec Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 17:14:14 +0800
Subject: [PATCH] 更新大屏幕页面和任务信息页面

---
 项目代码/BigScreen/src/components/echart/bottom/bottomCenterChart/index.vue |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomCenterChart/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomCenterChart/index.vue"
new file mode 100644
index 0000000..7733db7
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomCenterChart/index.vue"
@@ -0,0 +1,58 @@
+<template>
+  <div>
+    <Chart :cdata="cdata" />
+  </div>
+</template>
+
+<script>
+import Chart from "./chart.vue";
+import axios from "@/api/ajax.js"
+export default {
+  data() {
+    return {
+      isActivation: true,
+      datelist: [ "2024-06-06", "2024-06-05", "2024-06-04", "2024-06-03", "2024-06-02", "2024-06-01", "2024-05-31" ],
+      cdata: {
+        category: ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"],
+        actionData: [100, 100, 100, 100, 100, 100, 100],
+      },
+    };
+  },
+  components: {
+    Chart,
+  },
+  mounted() {
+    this.GetUtilization();
+  },
+  methods: {
+    GetUtilization() {
+      axios.post("/api/dt_WorkOrder/getUtilization", null, "").then((x) => {
+        if (x.data.status) {
+          var data = x.data.data;
+          if(data==null){
+            return;
+          }
+          var dateslist=[];
+          data.datelist.forEach(x=>{
+            var date=x.substring(x.indexOf("-")+1,x.length);
+            dateslist.push(date);
+          });
+          this.cdata={
+            category:dateslist.reverse(),
+            actionData: data.perdatalist.reverse()
+          };
+          if(this.isActivation){
+            setInterval(() => {
+              this.GetUtilization();
+            },5000);
+            this.isActivation=false;
+          }
+        }
+      });
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+</style>
\ No newline at end of file

--
Gitblit v1.9.3