diff --git a/src/views/device/manager/DeviceManagerList.vue b/src/views/device/manager/DeviceManagerList.vue new file mode 100644 index 0000000..ba4bbff --- /dev/null +++ b/src/views/device/manager/DeviceManagerList.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/src/views/device/manager/components/AddDepartPreviewForm.vue b/src/views/device/manager/components/AddDepartPreviewForm.vue new file mode 100644 index 0000000..0bf6c2b --- /dev/null +++ b/src/views/device/manager/components/AddDepartPreviewForm.vue @@ -0,0 +1,200 @@ + + + + + diff --git a/src/views/device/manager/components/AddDepartPreviewModal.vue b/src/views/device/manager/components/AddDepartPreviewModal.vue new file mode 100644 index 0000000..3bcb5a6 --- /dev/null +++ b/src/views/device/manager/components/AddDepartPreviewModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager/components/AddNuPreviewForm.vue b/src/views/device/manager/components/AddNuPreviewForm.vue new file mode 100644 index 0000000..2dfec1f --- /dev/null +++ b/src/views/device/manager/components/AddNuPreviewForm.vue @@ -0,0 +1,220 @@ + + + + + diff --git a/src/views/device/manager/components/AddNuPreviewModal.vue b/src/views/device/manager/components/AddNuPreviewModal.vue new file mode 100644 index 0000000..f73db82 --- /dev/null +++ b/src/views/device/manager/components/AddNuPreviewModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager/components/CameraList.vue b/src/views/device/manager/components/CameraList.vue new file mode 100644 index 0000000..6737535 --- /dev/null +++ b/src/views/device/manager/components/CameraList.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/views/device/manager/components/DepartPreviewList.vue b/src/views/device/manager/components/DepartPreviewList.vue new file mode 100644 index 0000000..8b45699 --- /dev/null +++ b/src/views/device/manager/components/DepartPreviewList.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/src/views/device/manager/components/DepartPreviewModal.vue b/src/views/device/manager/components/DepartPreviewModal.vue new file mode 100644 index 0000000..d7f34e8 --- /dev/null +++ b/src/views/device/manager/components/DepartPreviewModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/device/manager/components/DeviceIntegrationModal.vue b/src/views/device/manager/components/DeviceIntegrationModal.vue new file mode 100644 index 0000000..ae9a3af --- /dev/null +++ b/src/views/device/manager/components/DeviceIntegrationModal.vue @@ -0,0 +1,116 @@ + + + + + + diff --git a/src/views/device/manager/components/ElectricityList.vue b/src/views/device/manager/components/ElectricityList.vue new file mode 100644 index 0000000..e4ebc7d --- /dev/null +++ b/src/views/device/manager/components/ElectricityList.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/device/manager/components/HumidList.vue b/src/views/device/manager/components/HumidList.vue new file mode 100644 index 0000000..00c1007 --- /dev/null +++ b/src/views/device/manager/components/HumidList.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/device/manager/components/NetworkList.vue b/src/views/device/manager/components/NetworkList.vue new file mode 100644 index 0000000..79da17f --- /dev/null +++ b/src/views/device/manager/components/NetworkList.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/device/manager/components/NuPreviewList.vue b/src/views/device/manager/components/NuPreviewList.vue new file mode 100644 index 0000000..35459dc --- /dev/null +++ b/src/views/device/manager/components/NuPreviewList.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/src/views/device/manager/components/NuPreviewModal.vue b/src/views/device/manager/components/NuPreviewModal.vue new file mode 100644 index 0000000..8147f76 --- /dev/null +++ b/src/views/device/manager/components/NuPreviewModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/device/manager/components/WaterList.vue b/src/views/device/manager/components/WaterList.vue new file mode 100644 index 0000000..bb8aae5 --- /dev/null +++ b/src/views/device/manager/components/WaterList.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/device/manager/components/integration.api.ts b/src/views/device/manager/components/integration.api.ts new file mode 100644 index 0000000..e957796 --- /dev/null +++ b/src/views/device/manager/components/integration.api.ts @@ -0,0 +1,21 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + cameraList = '/iot/device/manager/cameraList', + networkList = '/iot/device/manager/networkList', + electricityList = '/iot/device/manager/electricityList', + waterList = '/iot/device/manager/waterList', + humidList = '/iot/device/manager/humidList', +} + +/** + * 列表 + * @param params + */ +export const cameraList = (params) => defHttp.get({ url: Api.cameraList, params }); +export const networkList = (params) => defHttp.get({ url: Api.networkList, params }); +export const electricityList = (params) => defHttp.get({ url: Api.electricityList, params }); +export const waterList = (params) => defHttp.get({ url: Api.waterList, params }); +export const humidList = (params) => defHttp.get({ url: Api.humidList, params }); + + diff --git a/src/views/device/manager/components/integration.data.ts b/src/views/device/manager/components/integration.data.ts new file mode 100644 index 0000000..2cb61fe --- /dev/null +++ b/src/views/device/manager/components/integration.data.ts @@ -0,0 +1,51 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const deviceColumns: BasicColumn[] = [ + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 150 + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText' + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 200 + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + width: 200 + }, + { + title: '在线状态', + align: "center", + dataIndex: 'deviceStatus', + width: 100 + }, + { + title: '设备状态', + align: "center", + dataIndex: 'maintainStatus', + customRender:({record})=>{ + if(record.maintainStatus=='0'){ + return "正常"; + } + if(record.maintainStatus=='1'){ + return "损坏"; + } + }, + width: 200 + }, +]; + +export const searchFormSchema: FormSchema[] = []; diff --git a/src/views/device/manager/components/preview.api.ts b/src/views/device/manager/components/preview.api.ts new file mode 100644 index 0000000..82bbbea --- /dev/null +++ b/src/views/device/manager/components/preview.api.ts @@ -0,0 +1,31 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + departPreview = '/iot/device/manager/departPreview', + nuPreview = '/iot/device/manager/nuPreview', + configList = '/iot/device/config/queryList', + nuList = '/iot/device/manager/nuList', + savePreview = '/iot/device/manager/savePreview', + deletePreview = '/iot/device/manager/deletePreview', +} + +/** + * 列表 + * @param params + */ +export const departPreview = (params) => defHttp.get({ url: Api.departPreview, params }); +export const nuPreview = (params) => defHttp.get({ url: Api.nuPreview, params }); +export const configList = (params) => defHttp.get({ url: Api.configList, params }); +export const nuList = (params) => defHttp.get({ url: Api.nuList, params }); +/** + * 新增机构 + * @param id + */ +export const savePreview = (params) => defHttp.post({ url: Api.savePreview, params }); +/** + * 删除 + * @param id + */ +export const deletePreview = (params) => defHttp.post({ url: Api.deletePreview, params }); + + diff --git a/src/views/device/manager/components/preview.data.ts b/src/views/device/manager/components/preview.data.ts new file mode 100644 index 0000000..e6427a6 --- /dev/null +++ b/src/views/device/manager/components/preview.data.ts @@ -0,0 +1,118 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const departColumns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 150 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'departName', + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText', + width: 150 + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 150 + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + width: 150 + }, + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 150 + }, + { + title: '采购数量', + align: "center", + dataIndex: 'purchaseQuantity', + width: 150 + }, +]; + +export const nuColumns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 100 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'departName', + }, + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + customRender:({record})=>{ + if(record.nuId==null || record.nuId==''){ + return "-"; + }else{ + return record.nuId; + } + }, + width: 120 + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + customRender:({record})=>{ + if(record.nuName==null || record.nuName==''){ + return "-"; + }else{ + return record.nuName; + } + }, + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText', + width: 150 + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 150 + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + width: 150 + }, + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 100 + }, + { + title: '采购数量', + align: "center", + dataIndex: 'purchaseQuantity', + width: 100 + }, +]; + +export const searchFormSchema: FormSchema[] = []; diff --git a/src/views/device/manager/manager.api.ts b/src/views/device/manager/manager.api.ts new file mode 100644 index 0000000..bc4ba07 --- /dev/null +++ b/src/views/device/manager/manager.api.ts @@ -0,0 +1,20 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/device/manager/list', + save = '/iot/device/manager/add', + delete = '/iot/device/manager/delete' +} + +/** + * 列表 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 添加 + * @param params + */ +export const save = (params) => defHttp.post({ url: Api.save, params }, { joinParamsToUrl: true }); + diff --git a/src/views/device/manager/manager.data.ts b/src/views/device/manager/manager.data.ts new file mode 100644 index 0000000..71fb343 --- /dev/null +++ b/src/views/device/manager/manager.data.ts @@ -0,0 +1,37 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 150 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'departName' + }, + { + title: '机构负责人', + align: "center", + dataIndex: 'orgLeader', + width: 200 + }, + { + title: '审核状态', + align: "center", + dataIndex: 'auditStatus', + width: 200 + }, + { + title: '审核日期', + align: "center", + dataIndex: 'auditTime', + width: 200 + }, +]; + +export const searchFormSchema: FormSchema[] = [];