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