From f81f998478725ff9cb2e77e7ca7e7fc6461d52d8 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 26 Mar 2024 08:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/index.ts | 2 +- src/views/home/echarts-data.ts | 6 +++--- src/views/home/index.vue | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/api/home/index.ts b/src/api/home/index.ts index 829e109..b02f396 100644 --- a/src/api/home/index.ts +++ b/src/api/home/index.ts @@ -2,7 +2,7 @@ import request from '@/config/axios' // 首页获取设备停机状态/设备总数/月设备保养完成率/月汇总停机时间 export const getData = async () => { - return await request.get({ url: `http://localhost:12080/admin-api/eam/home-page/select` }) + return await request.get({ url: `/eam/home-page/select` }) } diff --git a/src/views/home/echarts-data.ts b/src/views/home/echarts-data.ts index ac76978..5dd398a 100644 --- a/src/views/home/echarts-data.ts +++ b/src/views/home/echarts-data.ts @@ -32,12 +32,12 @@ export const lineOptions: EChartsOption = { } }, legend: { - data: ['销售','哈哈'], + data: ['目标','实际'], top: 20 }, series: [ { - name: '销售', + name: '目标', smooth: true, type: 'line', data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], @@ -45,7 +45,7 @@ export const lineOptions: EChartsOption = { animationEasing: 'cubicInOut' }, { - name: '哈哈', + name: '实际', smooth: true, type: 'line', itemStyle: {}, diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 917adf8..9216753 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -201,29 +201,29 @@
-
注塑设备停机率
+
注塑平均故障恢复时间(MTTR/min)
-
装配设备停机率
+
装配平均故障恢复时间(MTTR/min)
-
涂装设备停机率
+
涂装平均故障恢复时间(MTTR/min)
-
注塑设备停机率
+
注塑平均故障间隔时间MTBF(H)
-
装配设备停机率
+
装配平均故障间隔时间MTBF(H)
-
涂装设备停机率
+
涂装平均故障间隔时间MTBF(H)
@@ -245,7 +245,7 @@ const getInvoiceCharts = async () => { // 'xAxis.data', // supplierData.value.supplierdeliverMonthCount.map((v) => v.date) // ) - set(lineOptionsData, 'legend.data',['销售','哈哈']) + set(lineOptionsData, 'legend.data',['目标','实际']) set(lineOptionsData, 'series', [ { name: '注塑设备停机率',