From 6320e28f2039a0df79572ff450935d8f9b8e5970 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Tue, 28 Apr 2026 10:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87-=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=AE=A1=E7=90=86-=E6=96=B0=E5=A2=9E=E6=89=B9?= =?UTF-8?q?=E6=AC=A1/=E8=AE=BE=E5=A4=87=E6=B8=85=E5=8D=95/=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4=EF=BC=9A=E6=9C=80?= =?UTF-8?q?=E4=B8=8A=E6=96=B9=E5=B1=95=E7=A4=BA=E6=89=B9=E6=AC=A1=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E7=9B=B8=E5=85=B3=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=B8=8B?= =?UTF-8?q?=E6=96=B9=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E5=8E=9F=EF=BC=88?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=EF=BC=89=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E4=B8=BB=E7=95=8C=E9=9D=A2=E7=82=B9=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=90=8E=E7=BB=9F=E4=B8=80=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=EF=BC=8C=E5=85=B6=E4=BD=99=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=9D=87=E4=B8=BA=E7=95=8C=E9=9D=A2=E4=B8=B4=E6=97=B6=E5=AD=98?= =?UTF-8?q?=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/manager copy/DeviceManagerList.vue | 215 +++ .../components/batch/DeviceBatchForm.vue | 210 +++ .../components/batch/DeviceBatchFormModal.vue | 84 + .../components/batch/DeviceBatchList.vue | 263 +++ .../components/batch/DeviceBatchListModal.vue | 83 + .../components/batch/batch.api.ts | 34 + .../components/batch/batch.data.ts | 55 + .../components/integration/CameraList.vue | 198 +++ .../integration/DeviceIntegrationModal.vue | 114 ++ .../integration/ElectricityList.vue | 171 ++ .../components/integration/HumidList.vue | 187 +++ .../components/integration/NetworkList.vue | 170 ++ .../components/integration/WaterList.vue | 170 ++ .../integration/components/HumidForm.vue | 310 ++++ .../integration/components/HumidFormModal.vue | 84 + .../components/integration/integration.api.ts | 34 + .../integration/integration.data.ts | 58 + .../components/log/DeviceLogList.vue | 171 ++ .../components/log/DeviceLogModal.vue | 82 + .../manager copy/components/log/log.api.ts | 13 + .../manager copy/components/log/log.data.ts | 84 + .../preview/AddDepartPreviewForm.vue | 214 +++ .../preview/AddDepartPreviewModal.vue | 84 + .../preview/AddNuPreviewForm copy.vue | 234 +++ .../components/preview/AddNuPreviewForm.vue | 624 +++++++ .../components/preview/AddNuPreviewModal.vue | 84 + .../components/preview/DepartPreviewList.vue | 226 +++ .../components/preview/DepartPreviewModal.vue | 83 + .../components/preview/NuPreviewList copy.vue | 222 +++ .../components/preview/NuPreviewList.vue | 256 +++ .../components/preview/NuPreviewModal.vue | 83 + .../components/preview/preview.api.ts | 54 + .../components/preview/preview.data.ts | 123 ++ src/views/device/manager copy/manager.api.ts | 12 + src/views/device/manager copy/manager.data.ts | 37 + .../components/batch/DeviceBatchForm.vue | 128 +- .../components/batch/DeviceBatchFormModal.vue | 4 +- .../components/batch/DeviceBatchList.vue | 63 +- .../manager/components/batch/batch.api.ts | 2 +- .../components/preview/NuPreviewList copy.vue | 222 +++ .../components/preview/NuPreviewList.vue | 1432 ++++++++++++++++- .../manager/components/preview/preview.api.ts | 9 +- .../components/preview/preview.data.ts | 22 +- 43 files changed, 6867 insertions(+), 141 deletions(-) create mode 100644 src/views/device/manager copy/DeviceManagerList.vue create mode 100644 src/views/device/manager copy/components/batch/DeviceBatchForm.vue create mode 100644 src/views/device/manager copy/components/batch/DeviceBatchFormModal.vue create mode 100644 src/views/device/manager copy/components/batch/DeviceBatchList.vue create mode 100644 src/views/device/manager copy/components/batch/DeviceBatchListModal.vue create mode 100644 src/views/device/manager copy/components/batch/batch.api.ts create mode 100644 src/views/device/manager copy/components/batch/batch.data.ts create mode 100644 src/views/device/manager copy/components/integration/CameraList.vue create mode 100644 src/views/device/manager copy/components/integration/DeviceIntegrationModal.vue create mode 100644 src/views/device/manager copy/components/integration/ElectricityList.vue create mode 100644 src/views/device/manager copy/components/integration/HumidList.vue create mode 100644 src/views/device/manager copy/components/integration/NetworkList.vue create mode 100644 src/views/device/manager copy/components/integration/WaterList.vue create mode 100644 src/views/device/manager copy/components/integration/components/HumidForm.vue create mode 100644 src/views/device/manager copy/components/integration/components/HumidFormModal.vue create mode 100644 src/views/device/manager copy/components/integration/integration.api.ts create mode 100644 src/views/device/manager copy/components/integration/integration.data.ts create mode 100644 src/views/device/manager copy/components/log/DeviceLogList.vue create mode 100644 src/views/device/manager copy/components/log/DeviceLogModal.vue create mode 100644 src/views/device/manager copy/components/log/log.api.ts create mode 100644 src/views/device/manager copy/components/log/log.data.ts create mode 100644 src/views/device/manager copy/components/preview/AddDepartPreviewForm.vue create mode 100644 src/views/device/manager copy/components/preview/AddDepartPreviewModal.vue create mode 100644 src/views/device/manager copy/components/preview/AddNuPreviewForm copy.vue create mode 100644 src/views/device/manager copy/components/preview/AddNuPreviewForm.vue create mode 100644 src/views/device/manager copy/components/preview/AddNuPreviewModal.vue create mode 100644 src/views/device/manager copy/components/preview/DepartPreviewList.vue create mode 100644 src/views/device/manager copy/components/preview/DepartPreviewModal.vue create mode 100644 src/views/device/manager copy/components/preview/NuPreviewList copy.vue create mode 100644 src/views/device/manager copy/components/preview/NuPreviewList.vue create mode 100644 src/views/device/manager copy/components/preview/NuPreviewModal.vue create mode 100644 src/views/device/manager copy/components/preview/preview.api.ts create mode 100644 src/views/device/manager copy/components/preview/preview.data.ts create mode 100644 src/views/device/manager copy/manager.api.ts create mode 100644 src/views/device/manager copy/manager.data.ts create mode 100644 src/views/device/manager/components/preview/NuPreviewList copy.vue diff --git a/src/views/device/manager copy/DeviceManagerList.vue b/src/views/device/manager copy/DeviceManagerList.vue new file mode 100644 index 0000000..a9adc48 --- /dev/null +++ b/src/views/device/manager copy/DeviceManagerList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/device/manager copy/components/batch/DeviceBatchForm.vue b/src/views/device/manager copy/components/batch/DeviceBatchForm.vue new file mode 100644 index 0000000..6ddd8ec --- /dev/null +++ b/src/views/device/manager copy/components/batch/DeviceBatchForm.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/src/views/device/manager copy/components/batch/DeviceBatchFormModal.vue b/src/views/device/manager copy/components/batch/DeviceBatchFormModal.vue new file mode 100644 index 0000000..df294a3 --- /dev/null +++ b/src/views/device/manager copy/components/batch/DeviceBatchFormModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager copy/components/batch/DeviceBatchList.vue b/src/views/device/manager copy/components/batch/DeviceBatchList.vue new file mode 100644 index 0000000..2203706 --- /dev/null +++ b/src/views/device/manager copy/components/batch/DeviceBatchList.vue @@ -0,0 +1,263 @@ + + + + + diff --git a/src/views/device/manager copy/components/batch/DeviceBatchListModal.vue b/src/views/device/manager copy/components/batch/DeviceBatchListModal.vue new file mode 100644 index 0000000..98ec625 --- /dev/null +++ b/src/views/device/manager copy/components/batch/DeviceBatchListModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/device/manager copy/components/batch/batch.api.ts b/src/views/device/manager copy/components/batch/batch.api.ts new file mode 100644 index 0000000..7592287 --- /dev/null +++ b/src/views/device/manager copy/components/batch/batch.api.ts @@ -0,0 +1,34 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + batchList = '/iot/device/manager/batchList', + getBatchNo = '/iot/device/manager/getBatchNo', + addBatch = '/iot/device/manager/addBatch', + editBatch = '/iot/device/manager/editBatch', + deleteBatch = '/iot/device/manager/deleteBatch', + sendBatch = '/iot/device/manager/sendBatch', +} + +/** + * 列表 + * @param params + */ +export const batchList = (params) => defHttp.get({ url: Api.batchList, params }); +export const getBatchNo = (params) => defHttp.get({ url: Api.getBatchNo, params }); +/** + * 保存 + * @param id + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.editBatch : Api.addBatch; + return defHttp.post({url: url, params}); +} +/** + * 删除 + * @param id + */ +export const deleteBatch = (params) => defHttp.post({ url: Api.deleteBatch, params }); + +export const sendBatch = (params) => defHttp.post({ url: Api.sendBatch, params }); + + diff --git a/src/views/device/manager copy/components/batch/batch.data.ts b/src/views/device/manager copy/components/batch/batch.data.ts new file mode 100644 index 0000000..b6fc63a --- /dev/null +++ b/src/views/device/manager copy/components/batch/batch.data.ts @@ -0,0 +1,55 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 80 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'departName', + }, + { + title: '批次号', + align: "center", + dataIndex: 'batchNo', + width: 150 + }, + { + title: '是否推送', + align: "center", + dataIndex: 'izPush', + customRender:({record})=>{ + if(record.izPush=='Y'){ + return "已推送"; + }else{ + return "未推送"; + } + }, + width: 100, + }, + { + title: '创建日期', + align: "center", + dataIndex: 'createTime', + width: 100 + }, + { + title: '创建人', + align: "center", + dataIndex: 'createBy', + width: 100 + }, + { + title: '备注', + align: "center", + dataIndex: 'remarks' + }, +]; + +export const searchFormSchema: FormSchema[] = []; diff --git a/src/views/device/manager copy/components/integration/CameraList.vue b/src/views/device/manager copy/components/integration/CameraList.vue new file mode 100644 index 0000000..29159c0 --- /dev/null +++ b/src/views/device/manager copy/components/integration/CameraList.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/DeviceIntegrationModal.vue b/src/views/device/manager copy/components/integration/DeviceIntegrationModal.vue new file mode 100644 index 0000000..a4d12d9 --- /dev/null +++ b/src/views/device/manager copy/components/integration/DeviceIntegrationModal.vue @@ -0,0 +1,114 @@ + + + + + + diff --git a/src/views/device/manager copy/components/integration/ElectricityList.vue b/src/views/device/manager copy/components/integration/ElectricityList.vue new file mode 100644 index 0000000..3059d80 --- /dev/null +++ b/src/views/device/manager copy/components/integration/ElectricityList.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/HumidList.vue b/src/views/device/manager copy/components/integration/HumidList.vue new file mode 100644 index 0000000..cac5efb --- /dev/null +++ b/src/views/device/manager copy/components/integration/HumidList.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/NetworkList.vue b/src/views/device/manager copy/components/integration/NetworkList.vue new file mode 100644 index 0000000..2a4d12f --- /dev/null +++ b/src/views/device/manager copy/components/integration/NetworkList.vue @@ -0,0 +1,170 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/WaterList.vue b/src/views/device/manager copy/components/integration/WaterList.vue new file mode 100644 index 0000000..5a56913 --- /dev/null +++ b/src/views/device/manager copy/components/integration/WaterList.vue @@ -0,0 +1,170 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/components/HumidForm.vue b/src/views/device/manager copy/components/integration/components/HumidForm.vue new file mode 100644 index 0000000..cb75a6f --- /dev/null +++ b/src/views/device/manager copy/components/integration/components/HumidForm.vue @@ -0,0 +1,310 @@ + + + + + diff --git a/src/views/device/manager copy/components/integration/components/HumidFormModal.vue b/src/views/device/manager copy/components/integration/components/HumidFormModal.vue new file mode 100644 index 0000000..defcddc --- /dev/null +++ b/src/views/device/manager copy/components/integration/components/HumidFormModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager copy/components/integration/integration.api.ts b/src/views/device/manager copy/components/integration/integration.api.ts new file mode 100644 index 0000000..b36950d --- /dev/null +++ b/src/views/device/manager copy/components/integration/integration.api.ts @@ -0,0 +1,34 @@ +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', + + pullRecorder = '/iot/device/manager/pullRecorder', + pullCamera = '/iot/device/manager/pullCamera', + pullNetwork = '/iot/device/manager/pullNetwork', + pullElectricity = '/iot/device/manager/pullElectricity', + pullWater = '/iot/device/manager/pullWater', + pullHumid = '/iot/device/manager/pullHumid', + +} + +/** + * 列表 + * @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 }); + +export const pullRecorder = (params) => defHttp.post({ url: Api.pullRecorder, params }); +export const pullCamera = (params) => defHttp.post({ url: Api.pullCamera, params }); +export const pullNetwork = (params) => defHttp.post({ url: Api.pullNetwork, params }); +export const pullElectricity = (params) => defHttp.post({ url: Api.pullElectricity, params }); +export const pullWater = (params) => defHttp.post({ url: Api.pullWater, params }); +export const pullHumid = (params) => defHttp.post({ url: Api.pullHumid, params }); diff --git a/src/views/device/manager copy/components/integration/integration.data.ts b/src/views/device/manager copy/components/integration/integration.data.ts new file mode 100644 index 0000000..07c43c7 --- /dev/null +++ b/src/views/device/manager copy/components/integration/integration.data.ts @@ -0,0 +1,58 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const deviceColumns: BasicColumn[] = [ + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 100 + }, + { + title: '设备标识', + align: "center", + dataIndex: 'sn', + width: 150 + }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName', + width: 150 + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText', + width: 100 + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 150 + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + width: 200 + }, + { + title: '在线状态', + align: "center", + dataIndex: 'deviceStatus', + slots: { customRender: 'deviceStatus' }, + width: 80 + }, + { + title: '设备状态', + align: "center", + dataIndex: 'maintainStatus', + slots: { customRender: 'maintainStatus' }, + width: 80 + }, +]; + +export const searchFormSchema: FormSchema[] = []; diff --git a/src/views/device/manager copy/components/log/DeviceLogList.vue b/src/views/device/manager copy/components/log/DeviceLogList.vue new file mode 100644 index 0000000..499cc9b --- /dev/null +++ b/src/views/device/manager copy/components/log/DeviceLogList.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/views/device/manager copy/components/log/DeviceLogModal.vue b/src/views/device/manager copy/components/log/DeviceLogModal.vue new file mode 100644 index 0000000..1097a1c --- /dev/null +++ b/src/views/device/manager copy/components/log/DeviceLogModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/device/manager copy/components/log/log.api.ts b/src/views/device/manager copy/components/log/log.api.ts new file mode 100644 index 0000000..fe11b59 --- /dev/null +++ b/src/views/device/manager copy/components/log/log.api.ts @@ -0,0 +1,13 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/device/manager/bingLogList', +} + +/** + * 列表 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + + diff --git a/src/views/device/manager copy/components/log/log.data.ts b/src/views/device/manager copy/components/log/log.data.ts new file mode 100644 index 0000000..e9949d6 --- /dev/null +++ b/src/views/device/manager copy/components/log/log.data.ts @@ -0,0 +1,84 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + customRender:({record})=>{ + if(record.nuId==null || record.nuId==''){ + return "-"; + }else{ + return record.nuId; + } + }, + width: 100 + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + customRender:({record})=>{ + if(record.nuName==null || record.nuName==''){ + return "-"; + }else{ + return record.nuName; + } + }, + }, + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 100 + }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName', + width: 100 + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText', + width: 100 + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + }, + { + title: '设备标识', + align: "center", + dataIndex: 'sn', + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + }, + { + title: '操作时间', + align: "center", + dataIndex: 'optDate', + width: 150 + }, + { + title: '操作类型', + align: "center", + dataIndex: 'optType', + width: 100 + }, + { + title: '备注', + align: "center", + dataIndex: 'remarks', + width: 200 + }, +]; + +export const searchFormSchema: FormSchema[] = []; diff --git a/src/views/device/manager copy/components/preview/AddDepartPreviewForm.vue b/src/views/device/manager copy/components/preview/AddDepartPreviewForm.vue new file mode 100644 index 0000000..1e88109 --- /dev/null +++ b/src/views/device/manager copy/components/preview/AddDepartPreviewForm.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/device/manager copy/components/preview/AddDepartPreviewModal.vue b/src/views/device/manager copy/components/preview/AddDepartPreviewModal.vue new file mode 100644 index 0000000..3bcb5a6 --- /dev/null +++ b/src/views/device/manager copy/components/preview/AddDepartPreviewModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager copy/components/preview/AddNuPreviewForm copy.vue b/src/views/device/manager copy/components/preview/AddNuPreviewForm copy.vue new file mode 100644 index 0000000..191a4c8 --- /dev/null +++ b/src/views/device/manager copy/components/preview/AddNuPreviewForm copy.vue @@ -0,0 +1,234 @@ + + + + + diff --git a/src/views/device/manager copy/components/preview/AddNuPreviewForm.vue b/src/views/device/manager copy/components/preview/AddNuPreviewForm.vue new file mode 100644 index 0000000..3422b6e --- /dev/null +++ b/src/views/device/manager copy/components/preview/AddNuPreviewForm.vue @@ -0,0 +1,624 @@ + + + + + \ No newline at end of file diff --git a/src/views/device/manager copy/components/preview/AddNuPreviewModal.vue b/src/views/device/manager copy/components/preview/AddNuPreviewModal.vue new file mode 100644 index 0000000..f73db82 --- /dev/null +++ b/src/views/device/manager copy/components/preview/AddNuPreviewModal.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/src/views/device/manager copy/components/preview/DepartPreviewList.vue b/src/views/device/manager copy/components/preview/DepartPreviewList.vue new file mode 100644 index 0000000..9ac0cef --- /dev/null +++ b/src/views/device/manager copy/components/preview/DepartPreviewList.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/src/views/device/manager copy/components/preview/DepartPreviewModal.vue b/src/views/device/manager copy/components/preview/DepartPreviewModal.vue new file mode 100644 index 0000000..d09d455 --- /dev/null +++ b/src/views/device/manager copy/components/preview/DepartPreviewModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/device/manager copy/components/preview/NuPreviewList copy.vue b/src/views/device/manager copy/components/preview/NuPreviewList copy.vue new file mode 100644 index 0000000..673dfc5 --- /dev/null +++ b/src/views/device/manager copy/components/preview/NuPreviewList copy.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/device/manager copy/components/preview/NuPreviewList.vue b/src/views/device/manager copy/components/preview/NuPreviewList.vue new file mode 100644 index 0000000..1b74b9e --- /dev/null +++ b/src/views/device/manager copy/components/preview/NuPreviewList.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/src/views/device/manager copy/components/preview/NuPreviewModal.vue b/src/views/device/manager copy/components/preview/NuPreviewModal.vue new file mode 100644 index 0000000..7a44679 --- /dev/null +++ b/src/views/device/manager copy/components/preview/NuPreviewModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/device/manager copy/components/preview/preview.api.ts b/src/views/device/manager copy/components/preview/preview.api.ts new file mode 100644 index 0000000..16af8ed --- /dev/null +++ b/src/views/device/manager copy/components/preview/preview.api.ts @@ -0,0 +1,54 @@ +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', + updatePreview = '/iot/device/manager/updatePreview', + deletePreview = '/iot/device/manager/deletePreview', + batchSave = '/iot/device/manager/batchSave', + queryQuantityByOrgCode = '/iot/device/manager/queryQuantityByOrgCode', + getNuListByOrgCode = '/iot/device/manager/getNuListByOrgCode', +} + +/** + * 列表 + * @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, isUpdate) => { + let url = isUpdate ? Api.updatePreview : Api.savePreview; + return defHttp.post({ url: url, params }); +}; + +/** + * 批量保存 + * @param params + * @returns + */ +export const batchSave = (params) => { + return defHttp.post({ url: Api.batchSave, params }); +}; + +/** + * 删除 + * @param id + */ +export const deletePreview = (params) => defHttp.post({ url: Api.deletePreview, params }); + +export const queryQuantityByOrgCode = (params) => { + return defHttp.get({ url: Api.queryQuantityByOrgCode, params }); +}; + +export const getNuListByOrgCode = (params) => { + return defHttp.get({ url: Api.getNuListByOrgCode, params }); +}; \ No newline at end of file diff --git a/src/views/device/manager copy/components/preview/preview.data.ts b/src/views/device/manager copy/components/preview/preview.data.ts new file mode 100644 index 0000000..eabda23 --- /dev/null +++ b/src/views/device/manager copy/components/preview/preview.data.ts @@ -0,0 +1,123 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const departColumns: BasicColumn[] = [ + { + title: '机构编码', + align: "center", + dataIndex: 'orgCode', + width: 80 + }, + { + title: '机构名称', + align: "center", + dataIndex: 'departName', + }, + { + title: '批次编号', + align: "center", + dataIndex: 'batchNo', + }, + { + title: '设备类型', + align: "center", + dataIndex: 'deviceType_dictText', + width: 100 + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 150 + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'factory', + width: 150 + }, + { + title: '设备维度', + align: "center", + dataIndex: 'dimension', + width: 80 + }, + { + title: '采购数量', + align: "center", + dataIndex: 'purchaseQuantity', + width: 80 + }, +]; + +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 copy/manager.api.ts b/src/views/device/manager copy/manager.api.ts new file mode 100644 index 0000000..f8a8dac --- /dev/null +++ b/src/views/device/manager copy/manager.api.ts @@ -0,0 +1,12 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/device/manager/list', +} + +/** + * 列表 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + diff --git a/src/views/device/manager copy/manager.data.ts b/src/views/device/manager copy/manager.data.ts new file mode 100644 index 0000000..71fb343 --- /dev/null +++ b/src/views/device/manager copy/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[] = []; diff --git a/src/views/device/manager/components/batch/DeviceBatchForm.vue b/src/views/device/manager/components/batch/DeviceBatchForm.vue index d81bc6e..37f1299 100644 --- a/src/views/device/manager/components/batch/DeviceBatchForm.vue +++ b/src/views/device/manager/components/batch/DeviceBatchForm.vue @@ -1,44 +1,79 @@