From 287dc9262b3bd45826c11d9f53dd386c1d8c54d1 Mon Sep 17 00:00:00 2001 From: fks-yangshouda Date: Mon, 8 Jul 2024 10:03:22 +0800 Subject: [PATCH] =?UTF-8?q?*=20add:=20=E6=B7=BB=E5=8A=A0=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E4=B8=AD=E5=BF=83-=E8=AE=BE=E5=A4=87=E7=9B=91=E6=B5=8B?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/icon/biaoge.svg | 1 + hx-ai-intelligent/src/icon/bingtu.svg | 1 + hx-ai-intelligent/src/icon/huanjingjiance.svg | 1 + hx-ai-intelligent/src/icon/jiankongzhongxin.svg | 1 + hx-ai-intelligent/src/router/monitor.ts | 67 ++++++ .../src/view/monitor/deviceMonitor/config.ts | 180 +++++++++++++++++ .../src/view/monitor/deviceMonitor/graph/index.vue | 210 +++++++++++++++++++ .../src/view/monitor/deviceMonitor/index.vue | 76 +++++++ .../src/view/monitor/deviceMonitor/table/index.vue | 186 +++++++++++++++++ .../src/view/monitor/deviceMonitor/tree/index.vue | 225 +++++++++++++++++++++ 10 files changed, 948 insertions(+) create mode 100644 hx-ai-intelligent/src/icon/biaoge.svg create mode 100644 hx-ai-intelligent/src/icon/bingtu.svg create mode 100644 hx-ai-intelligent/src/icon/huanjingjiance.svg create mode 100644 hx-ai-intelligent/src/icon/jiankongzhongxin.svg create mode 100644 hx-ai-intelligent/src/router/monitor.ts create mode 100644 hx-ai-intelligent/src/view/monitor/deviceMonitor/config.ts create mode 100644 hx-ai-intelligent/src/view/monitor/deviceMonitor/graph/index.vue create mode 100644 hx-ai-intelligent/src/view/monitor/deviceMonitor/index.vue create mode 100644 hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue create mode 100644 hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue diff --git a/hx-ai-intelligent/src/icon/biaoge.svg b/hx-ai-intelligent/src/icon/biaoge.svg new file mode 100644 index 0000000..75845a1 --- /dev/null +++ b/hx-ai-intelligent/src/icon/biaoge.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hx-ai-intelligent/src/icon/bingtu.svg b/hx-ai-intelligent/src/icon/bingtu.svg new file mode 100644 index 0000000..56c8ecd --- /dev/null +++ b/hx-ai-intelligent/src/icon/bingtu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hx-ai-intelligent/src/icon/huanjingjiance.svg b/hx-ai-intelligent/src/icon/huanjingjiance.svg new file mode 100644 index 0000000..503b264 --- /dev/null +++ b/hx-ai-intelligent/src/icon/huanjingjiance.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hx-ai-intelligent/src/icon/jiankongzhongxin.svg b/hx-ai-intelligent/src/icon/jiankongzhongxin.svg new file mode 100644 index 0000000..b9cb5fa --- /dev/null +++ b/hx-ai-intelligent/src/icon/jiankongzhongxin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hx-ai-intelligent/src/router/monitor.ts b/hx-ai-intelligent/src/router/monitor.ts new file mode 100644 index 0000000..b565c1c --- /dev/null +++ b/hx-ai-intelligent/src/router/monitor.ts @@ -0,0 +1,67 @@ +const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue'); +const equipment = { + path: '/monitor', + name: 'Monitor', + meta: { title: '监控中心', icon: 'jiankongzhongxin', index: 1 }, + redirect: { name: 'EnvironmentMonitor' }, + children: [ + { + path: 'environmentMonitor', + name: 'EnvironmentMonitor', + meta: { title: '环境监测', hideChildren: true, icon: 'huanjingjiance' }, + component: Base, + redirect: { name: 'EnvironmentMonitorIndex' }, + children: [ + { + path: 'index', + name: 'EnvironmentMonitorIndex', + component: () => import('/@/view/monitor/environmentMonitor/index.vue'), + meta: { + title: '环境监测', + keepAlive: true, + // backApi: [], + }, + }, + ], + }, + { + path: 'deviceMonitor', + name: 'DeviceMonitor', + meta: { title: '设备监测', hideChildren: true, icon: 'huanjingjiance' }, + component: Base, + redirect: { name: 'DeviceMonitorIndex' }, + children: [ + { + path: 'index', + name: 'DeviceMonitorIndex', + component: () => import('/@/view/monitor/deviceMonitor/index.vue'), + meta: { + title: '设备监测', + keepAlive: true, + // backApi: [], + }, + }, + ], + }, + // { + // path: 'group', + // name: 'Group', + // meta: { title: '分组管理', hideChildren: true, icon: 'shebeiguanli' }, + // component: Base, + // redirect: { name: 'GroupIndex' }, + // children: [ + // { + // path: 'index', + // name: 'GroupIndex', + // component: () => import('/@/view/monitor/group/index.vue'), + // meta: { + // title: '分组管理', + // keepAlive: true, + // // backApi: [], + // }, + // }, + // ], + // }, + ], +}; +export default equipment; diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/config.ts b/hx-ai-intelligent/src/view/monitor/deviceMonitor/config.ts new file mode 100644 index 0000000..2e0c824 --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/config.ts @@ -0,0 +1,180 @@ +import { dateUtil } from '/nerv-lib/util/date-util'; +import data from './mock.json'; +export const tableConfig = { + title: '设备台账', + // api: '/carbon_emission/device/getDeviceList', + value: data.dataSource, + treeConfig: { + header: { + icon: 'orgLink', + title: '设备类别', + }, + defaultExpandAll: true, + api: () => { + return new Promise((resolve) => { + setTimeout(() => { + resolve(data); + }, 100); + }); + }, + formConfig: { + schemas: [ + { + field: 'name', + label: '设备名称', + component: 'NsInput', + autoSubmit: true, + componentProps: { + placeholder: '请输入', + }, + }, + ], + }, + }, + params: { + page: 0, + pageSize: 10, + }, + rowSelection: null, + columns: [ + { + title: '设备名称', + dataIndex: 'id', + }, + { + title: '设备型号', + dataIndex: 'deviceCode', + }, + { + title: 'SN码', + dataIndex: 'deviceName', + textNumber: 8, + textEllipsis: true, + }, + { + title: '设备一级区域', + dataIndex: 'position', + }, + { + title: '设备二级区域', + dataIndex: 'position', + }, + { + title: '设备详细位置', + dataIndex: 'position', + }, + { + title: '设备规格', + dataIndex: 'position', + }, + { + title: '设备厂商纳税人识别号', + dataIndex: 'position', + }, + { + title: '厂商联系人', + dataIndex: 'position', + }, + { + title: '设备描述', + dataIndex: 'position', + }, + { + title: 'IP地址', + dataIndex: 'position', + }, + { + title: '生产日期', + dataIndex: 'position', + }, + { + title: '采购日期', + dataIndex: 'position', + }, + { + title: '启用日期', + dataIndex: 'position', + }, + { + title: '设备成本(元)', + dataIndex: 'position', + }, + { + title: '使用期限', + dataIndex: 'position', + }, + { + title: '额定功率', + dataIndex: 'position', + }, + { + title: '特殊参数', + dataIndex: 'position', + }, + ], + + formConfig: { + schemas: [ + { + field: 'name', + label: '设备名称', + component: 'NsInput', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'provider', + label: '设备厂商', + component: 'NsInput', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'payWay', + label: '设备区域', + component: 'NsSelect', + componentProps: { + placeholder: '请选择', + options: [ + { + label: '全部', + value: '', + }, + ], + }, + }, + { + field: 'createTime', + label: '生产日期', + component: 'NsRangePicker', + fieldMap: ['queryStartDate', 'queryEndDate'], + componentProps: { + valueFormat: 'YYYY-MM-DD', + }, + }, + { + field: 'createTime1', + label: '采购日期', + component: 'NsRangePicker', + fieldMap: ['queryStartDate', 'queryEndDate'], + componentProps: { + valueFormat: 'YYYY-MM-DD', + }, + }, + { + field: 'createTime2', + label: '启用日期', + component: 'NsRangePicker', + fieldMap: ['queryStartDate', 'queryEndDate'], + componentProps: { + valueFormat: 'YYYY-MM-DD', + }, + }, + ], + params: {}, + }, + // pagination: { pageSizeOptions: false }, + rowKey: 'uuid', +}; diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/graph/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/graph/index.vue new file mode 100644 index 0000000..f2562fe --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/graph/index.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/index.vue new file mode 100644 index 0000000..b3a735b --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/index.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue new file mode 100644 index 0000000..c775cc9 --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue new file mode 100644 index 0000000..a5b4740 --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue @@ -0,0 +1,225 @@ + + + + +