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 @@