diff --git a/src/api/basic/home.js b/src/api/basic/home.js new file mode 100644 index 00000000..17f55566 --- /dev/null +++ b/src/api/basic/home.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 数据总览 +// /getDeviceNum +export function getDeviceNumAll(query) { + return request({ + url: '/material-mall/index/getDeviceNum', + method: 'get', + params: query, + }) +} + +// 使用情况 +export function getUseDeviceNum(query) { + return request({ + url: '/material-mall/index/getUseDeviceNum', + method: 'get', + params: query, + }) +} + +// 实时事件 +export function getReal(query) { + return request({ + url: '/material-mall/index/getReal', + method: 'get', + params: query, + }) +} + +// 装备对比 +export function getDeviceByDept(query) { + return request({ + url: '/material-mall/index/getDeviceByDept', + method: 'get', + params: query, + }) +} + +// 数量 +export function getDeviceNumByMonth(query) { + return request({ + url: '/material-mall/index/getDeviceNumByMonth', + method: 'get', + params: query, + }) +} + +// 告警 +export function getMaQc(query) { + return request({ + url: '/material-mall/index/getMaQc', + method: 'get', + params: query, + }) +} + +// 待办 +export function getApprover(query) { + return request({ + url: '/material-mall/index/getApprover', + method: 'get', + params: query, + }) +} + +// 共享 +export function getShare(query) { + return request({ + url: '/material-mall/index/getShare', + method: 'get', + params: query, + }) +} diff --git a/src/router/index.js b/src/router/index.js index a6214d93..4b461aad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -68,7 +68,7 @@ export const constantRoutes = [ children: [ { path: 'index', - component: () => import('@/views/index_2'), + component: () => import('@/views/home/index'), name: 'Index', meta: { title: '首页', icon: 'dashboard', affix: true } }, diff --git a/src/views/home/components/MunicipalCompany.vue b/src/views/home/components/MunicipalCompany.vue new file mode 100644 index 00000000..887fc356 --- /dev/null +++ b/src/views/home/components/MunicipalCompany.vue @@ -0,0 +1,598 @@ + + + + + + + + 数据总览 + + + + + + + 平台设备总数:{{ dataAll.totalSum }} + 装备总数:{{ dataAll.maNum }} + 工具总数:{{ dataAll.toolNum }} + + + + + + + + + 告警 + + + + + {{ errData.maintainExpireMonthNum }} + 一个月内维保到期数量 + + + + + {{ errData.maintainOverdueNum }} + 维保已超期数量 + + + + + + + {{ errData.useYearExpireMonthNum }} + 一年内使用年限到期 + + + + + {{ errData.useYearOverdueNum }} + 已超最大使用年限 + + + + + + + + + + + 待办 + + + + + + + + {{ index + 1 }}. + 您有一个单号为{{ item.code }}的"{{ item.businessName }}"单据待审核 + + + {{ item.createTime }} + + + + + + + + + + + + + + 当月出库数量 + + + + + {{ numData.selfUseApplyNum }} + 本月自用申请数量 + + + + + {{ numData.selfUseAuditNum }} + 本月自用审核数量 + + + + + {{ numData.selfUseOutNum }} + 本月自用出库数量 + + + + + + + {{ shareData.buyerNum }} + 本月申请共享数量 + + + + + {{ shareData.sellerNum }} + 本月共享订单数量 + + + + + {{ shareData.toolNum }} + 本月共享出库数量 + + + + + + + + + + + 当月退库数量 + + + + + {{ numData.returnApplyNum }} + 本月退库申请数量 + + + + + {{ numData.returnAuditApplyNum }} + 本月退库审核数量 + + + + + + + {{ numData.returnAuditStoreNum }} + 本月退库入库数量 + + + + + {{ numData.returnAuditRepairNum }} + 本月退库维修数量 + + + + + + + + + + + 当月维修数量 + + + + + {{ numData.repairPendingNum }} + 本月待维修数量 + + + + + {{ numData.repairQualifiedNum }} + 本月维修合格数量 + + + + + + + {{ numData.repairRetireNum }} + 本月维修退役数量 + + + + + + + + + + + + + diff --git a/src/views/home/components/ProvincialCompany.vue b/src/views/home/components/ProvincialCompany.vue new file mode 100644 index 00000000..e9a5f915 --- /dev/null +++ b/src/views/home/components/ProvincialCompany.vue @@ -0,0 +1,496 @@ + + + + + + + + 数据总览 + + + + + + + 平台设备总数:{{ dataAll.totalSum }} + 装备总数:{{ dataAll.maNum }} + 工具总数:{{ dataAll.toolNum }} + + + + + + + + + + 使用情况 + + + + + + 在库数量 + {{ useData.availableNum }} + + + + + + 自用数量 + {{ useData.inNum }} + + + + + + 共享数量 + {{ useData.shareNum }} + + + + + + + + 维修数量 + {{ useData.repairNum }} + + + + + + 退役数量 + {{ useData.scrapNum }} + + + + + + + + + + + + 实时事件 + + + + + + + + {{ index + 1 }}. + {{ item.deptAbbreviation }} + {{ item.applyUser }} + {{ item.businessName }} + + {{ item.applyTime }} + + + + + + + + + + + + + + 装备对比 + + + 图表分析 + + + + + + + + + + + + + + + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue new file mode 100644 index 00000000..ee2fa682 --- /dev/null +++ b/src/views/home/index.vue @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index 865b17e4..c50ac5e2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,9 +38,9 @@ module.exports = { // target: `http://localhost:18080`, // target: `http://192.168.0.96:28080`,//马 // target: `http://192.168.0.110:18080`,//洪 - target: `http://127.0.0.1:28080`,//阮 + // target: `http://192.168.0.41:28080`,//蒋 // target: `http://36.33.26.201:17788/proxyApi`, //测试 - // target: `http://192.168.0.14:19190/prod-api`, //测试 + target: `http://36.33.26.201:21999/prod-api`, //测试 // target: `http://192.168.137.1:18080`,// changeOrigin: true, pathRewrite: {