From 8d1a8a22ff13bab740ff3c427eb531fd6ce97844 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 05 十二月 2023 15:26:12 +0800
Subject: [PATCH] 机器开机率、工单进度统计、设备负荷比接口联调

---
 src/views/cockpitPage/components/MachineStartupRate.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/views/cockpitPage/components/MachineStartupRate.vue b/src/views/cockpitPage/components/MachineStartupRate.vue
index 051f94d..e9eed89 100644
--- a/src/views/cockpitPage/components/MachineStartupRate.vue
+++ b/src/views/cockpitPage/components/MachineStartupRate.vue
@@ -5,7 +5,7 @@
         <img src="/cockpitPage/machine-top.png" alt="" />
         <div class="top-title">
           <span>鏈哄櫒寮�鏈虹巼</span>
-          <span class="top-rate">{{ "60%" }}</span>
+          <span class="top-rate">{{ startupRate + "%" }}</span>
         </div>
       </div>
       <div class="chart" ref="chart"></div>
@@ -18,17 +18,22 @@
 import * as echarts from "echarts";
 export default {
   components: {},
-  props: {},
+  props: {
+    startupRate: {
+      type: String,
+      default: "",
+    },
+  },
   data() {
     return {};
   },
   mounted() {
-    let chartData = [
-      { value: 20, name: "闂茬疆" },
-      { value: 20, name: "缁翠慨" },
-      { value: 60, name: "宸ヤ綔" },
-    ];
-    this.pieChart("chart", chartData);
+    // let chartData = [
+    //   { value: 20, name: "闂茬疆" },
+    //   { value: 20, name: "缁翠慨" },
+    //   { value: 60, name: "宸ヤ綔" },
+    // ];
+    // this.pieChart("chart", chartData);
   },
   watch: {},
   methods: {

--
Gitblit v1.8.0