diff --git a/src/api/eam/item/itemAccounts/index.ts b/src/api/eam/item/itemAccounts/index.ts index e3e5524..88fb3d1 100644 --- a/src/api/eam/item/itemAccounts/index.ts +++ b/src/api/eam/item/itemAccounts/index.ts @@ -55,3 +55,9 @@ export const importTemplate = () => { export const replaceLocation = async (data: Array) => { return await request.post({url: `/eam/item-accounts/replaceLocation `, data }); }; + +// 备件不分页 + +export const getItemAccountsNoPage = async (params) => { + return await request.get({ url: `/eam/item-accounts/noPage`, params }) +} 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/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index fb2146c..2ffaf68 100644 --- a/src/views/eam/basic/item/index.vue +++ b/src/views/eam/basic/item/index.vue @@ -122,13 +122,6 @@ } } - /** 添加设备操作 */ - // const searchTableRef = ref() - // const openItem = (number : String) => { - // itemNumber.value = number; - // searchTableRef.value.open('设备列表', DeviceAccounts.allSchemas, DeviceAccountsApi.getDeviceAccountsPage(), null, Item.allSchemas.searchSchema, true, null, null, null, null); - // } - const searchTableRef = ref() /** 绑定备件操作 */ const openItem = async (number : String) => { diff --git a/src/views/eam/device/deviceAccounts/index.vue b/src/views/eam/device/deviceAccounts/index.vue index 6e3c831..0f44217 100644 --- a/src/views/eam/device/deviceAccounts/index.vue +++ b/src/views/eam/device/deviceAccounts/index.vue @@ -1,36 +1,20 @@