diff --git a/src/api/home/index.ts b/src/api/home/index.ts index b6e777a..829e109 100644 --- a/src/api/home/index.ts +++ b/src/api/home/index.ts @@ -1,22 +1,8 @@ import request from '@/config/axios' -// 供应商首页 -// export const getSupplierData = async () => { -// return await request.get({ url: `/wms/index/indexSupplier` }) -// } +// 首页获取设备停机状态/设备总数/月设备保养完成率/月汇总停机时间 +export const getData = async () => { + return await request.get({ url: `http://localhost:12080/admin-api/eam/home-page/select` }) +} -// // 原料管理员首页 -// export const getMaterialData = async () => { -// return await request.get({ url: `/wms/index/indexMaterial` }) -// } - -// // 生产管理员首页 -// export const getProduceData = async () => { -// return await request.get({ url: `/wms/index/indexProduce` }) -// } - -// // 成品管理员首页 -// export const getProductData = async () => { -// return await request.get({ url: `/wms/index/indexProduct` }) -// } diff --git a/src/assets/imgs/icon1.png b/src/assets/imgs/icon1.png index 8fb718a..e9cf7d1 100644 Binary files a/src/assets/imgs/icon1.png and b/src/assets/imgs/icon1.png differ diff --git a/src/assets/imgs/icon2.png b/src/assets/imgs/icon2.png index 9f8ed61..846a540 100644 Binary files a/src/assets/imgs/icon2.png and b/src/assets/imgs/icon2.png differ diff --git a/src/views/home/Index copy.vue b/src/views/home/Index copy.vue deleted file mode 100644 index 121ec6a..0000000 --- a/src/views/home/Index copy.vue +++ /dev/null @@ -1,381 +0,0 @@ - - diff --git a/src/views/home/Index2.vue b/src/views/home/Index2.vue deleted file mode 100644 index c9429ab..0000000 --- a/src/views/home/Index2.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - diff --git a/src/views/home/components/material.vue b/src/views/home/components/material.vue deleted file mode 100644 index 83aadaa..0000000 --- a/src/views/home/components/material.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - diff --git a/src/views/home/components/produce.vue b/src/views/home/components/produce.vue deleted file mode 100644 index c289ec0..0000000 --- a/src/views/home/components/produce.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - - diff --git a/src/views/home/components/product.vue b/src/views/home/components/product.vue deleted file mode 100644 index 5124d9c..0000000 --- a/src/views/home/components/product.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - diff --git a/src/views/home/components/supplierIndex.vue b/src/views/home/components/supplierIndex.vue deleted file mode 100644 index 7610f97..0000000 --- a/src/views/home/components/supplierIndex.vue +++ /dev/null @@ -1,452 +0,0 @@ - - - - diff --git a/src/views/home/echarts-data.ts b/src/views/home/echarts-data.ts index 15c7b4a..ac76978 100644 --- a/src/views/home/echarts-data.ts +++ b/src/views/home/echarts-data.ts @@ -5,7 +5,7 @@ const { t } = useI18n() export const lineOptions: EChartsOption = { xAxis: { - data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12 ], boundaryGap: false, axisTick: { diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 1cc81ac..917adf8 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,14 +1,430 @@ + +