From 28c42576bcc0aafd791e9d6625cf7b28037470b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 5 Aug 2025 16:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iotsync/tplink/camera/camera.api.ts | 49 ++ .../iotsync/tplink/camera/camera.data.ts | 280 +++++++++ .../camera/components/BusinessTable.vue | 214 +++++++ .../tplink/camera/components/SelectNuList.vue | 123 ++++ .../camera/components/SelectNuModal.vue | 70 +++ .../camera/components/SelectedTable.vue | 147 +++++ .../tplink/camera/components/SourceTable.vue | 209 +++++++ .../tplink/camera/components/SyncLogList.vue | 125 ++++ src/views/iotsync/tplink/camera/index.vue | 567 ++++++++++++++++++ .../tq/water/components/SelectNuList.vue | 2 +- .../tq/water/components/SyncLogList.vue | 2 +- 11 files changed, 1786 insertions(+), 2 deletions(-) create mode 100644 src/views/iotsync/tplink/camera/camera.api.ts create mode 100644 src/views/iotsync/tplink/camera/camera.data.ts create mode 100644 src/views/iotsync/tplink/camera/components/BusinessTable.vue create mode 100644 src/views/iotsync/tplink/camera/components/SelectNuList.vue create mode 100644 src/views/iotsync/tplink/camera/components/SelectNuModal.vue create mode 100644 src/views/iotsync/tplink/camera/components/SelectedTable.vue create mode 100644 src/views/iotsync/tplink/camera/components/SourceTable.vue create mode 100644 src/views/iotsync/tplink/camera/components/SyncLogList.vue create mode 100644 src/views/iotsync/tplink/camera/index.vue diff --git a/src/views/iotsync/tplink/camera/camera.api.ts b/src/views/iotsync/tplink/camera/camera.api.ts new file mode 100644 index 0000000..9cedaea --- /dev/null +++ b/src/views/iotsync/tplink/camera/camera.api.ts @@ -0,0 +1,49 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + sourceList = '/iot/tplink/cameraInfo/sourceList', + departList = '/iot/tplink/cameraInfo/departList', + nuList = '/iot/tplink/cameraInfo/departNuList', + businessList = '/iot/tplink/cameraInfo/businessList', + nuSyncList = '/iot/tplink/cameraInfo/nuSyncList', + syncDevices = '/iot/tplink/cameraInfo/syncDevices', + syncLogList = '/iot/tplink/cameraInfo/syncLogList', +} + +/** + * 列表接口 + * @param params + */ +export const sourceListApi = (params) => defHttp.get({ url: Api.sourceList, params }); +/** + * 列表接口 + * @param params + */ +export const departListApi = (params) => defHttp.get({ url: Api.departList, params }); +/** + * 列表接口 + * @param params + */ +export const nuListApi = (params) => defHttp.get({ url: Api.nuList, params }); +/** + * 列表接口 + * @param params + */ +export const businessListApi = (params) => defHttp.get({ url: Api.businessList, params }); +/** + * 列表接口 + * @param params + */ +export const nuSyncListApi = (params) => defHttp.get({ url: Api.nuSyncList, params }); +/** + * 同步设备 + * @param params + */ +export const syncDevicesApi = (params) => { + return defHttp.post({ url: Api.syncDevices, params }); +} +/** + * 列表接口 + * @param params + */ +export const syncLogListApi = (params) => defHttp.get({ url: Api.syncLogList, params }); diff --git a/src/views/iotsync/tplink/camera/camera.data.ts b/src/views/iotsync/tplink/camera/camera.data.ts new file mode 100644 index 0000000..c811b79 --- /dev/null +++ b/src/views/iotsync/tplink/camera/camera.data.ts @@ -0,0 +1,280 @@ +import {BasicColumn, FormSchema} from '/@/components/Table'; + +export const businessColumns: BasicColumn[] = [ + { + title: 'SN', + align: 'center', + dataIndex: 'deviceIndex', + width: 60, + }, + { + title: '名称', + align: 'center', + dataIndex: 'deviceName', + width: 140, + }, + { + title: 'MAC', + align: 'center', + dataIndex: 'mac', + width: 140, + }, + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + resizable: true, + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + resizable: true, + }, + { + title: '区域标签', + align: "center", + dataIndex: 'areaFlag_dictText', + resizable: true, + } +]; + +//列表数据 +export const unselectedSourceColumns: BasicColumn[] = [ + { + title: 'SN', + align: 'center', + dataIndex: 'deviceIndex', + width: 60, + }, + { + title: '名称', + align: 'center', + dataIndex: 'deviceName', + width: 140, + }, + { + title: 'MAC', + align: 'center', + dataIndex: 'mac', + width: 140, + }, +]; + +//列表数据 +export const selectedSourceColumns: BasicColumn[] = [ + { + title: 'SN', + align: 'center', + dataIndex: 'deviceIndex', + width: 60, + }, + { + title: '名称', + align: 'center', + dataIndex: 'deviceName', + width: 140, + }, + { + title: 'MAC', + align: 'center', + dataIndex: 'mac', + width: 140, + }, + { + title: '机构', + align: "center", + dataIndex: 'departName', + resizable: true, + }, + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + resizable: true, + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + resizable: true, + }, + { + title: '区域标签', + align: "center", + dataIndex: 'areaFlag_dictText', + resizable: true, + }, +]; + +export const nusColumns: BasicColumn[] = [ + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + resizable: true, + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + resizable: true, + }, + { + title: '区域标签', + align: "center", + dataIndex: 'areaFlag_dictText', + resizable: true, + }, + { + title: '绑定设备数量', + align: "center", + dataIndex: 'deviceNum' + } +]; + +export const nuFormSchema: FormSchema[] = [ + { + label: '区域标签', + field: 'areaFlag', + component: 'JDictSelectTag', + componentProps: { + dictCode: 'nu_type', + }, + colProps: { span: 6 }, + }, +]; + + +export const selectedColumns: BasicColumn[] = [ + { + title: 'SN', + align: 'center', + dataIndex: 'deviceIndex', + width: 60, + }, + { + title: '名称', + align: 'center', + dataIndex: 'deviceName', + width: 140, + }, + { + title: 'MAC', + align: 'center', + dataIndex: 'mac', + width: 140, + }, + { + title: '操作区域', + align: 'center', + dataIndex: 'dataTypeText', + width: 80, + }, + { + title: '操作类型', + align: 'center', + dataIndex: 'actionType', + width: 80, + }, + { + title: '区域编码', + align: "center", + dataIndex: 'nuId', + resizable: true, + }, + { + title: '区域名称', + align: "center", + dataIndex: 'nuName', + resizable: true, + }, + { + title: '区域标签', + align: "center", + dataIndex: 'areaFlag_dictText', + resizable: true, + } +]; + +export const asyncMaincolumns: BasicColumn[] = [ + { + title: 'SN', + align: 'center', + dataIndex: 'sn', + }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName', + }, + { + title: '设备类型', + align: "center", + dataIndex: 'serverType', + }, + { + title: '同步时间', + align: "center", + dataIndex: 'createTime', + } +]; + +export const asyncSeedColumns: BasicColumn[] = [ + { + title: '同步类型', + align: "center", + dataIndex: 'syncType', + }, + { + title: '同步状态', + align: "center", + dataIndex: 'status', + }, + { + title: '同步时间', + align: "center", + dataIndex: 'createTime', + }, + { + title: '现机构', + align: "center", + dataIndex: 'departName', + }, + { + title: '现区域', + align: "center", + dataIndex: 'nuId', + }, + { + title: '原机构', + align: "center", + dataIndex: 'oldDepartName', + }, + { + title: '原区域', + align: "center", + dataIndex: 'oldNuId', + }, +]; + +export const logFormSchema: FormSchema[] = [ + { + label: 'SN', + field: 'sn', + component: 'Input', + componentProps: { + placeholder: '请输入SN', + }, + // colProps: { span: 6 }, + }, + { + label: '名称', + field: 'deviceName', + component: 'Input', + componentProps: { + placeholder: '请输入名称', + }, + // colProps: { span: 6 }, + }, +]; diff --git a/src/views/iotsync/tplink/camera/components/BusinessTable.vue b/src/views/iotsync/tplink/camera/components/BusinessTable.vue new file mode 100644 index 0000000..1e0544f --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/BusinessTable.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/iotsync/tplink/camera/components/SelectNuList.vue b/src/views/iotsync/tplink/camera/components/SelectNuList.vue new file mode 100644 index 0000000..64926e8 --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/SelectNuList.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/src/views/iotsync/tplink/camera/components/SelectNuModal.vue b/src/views/iotsync/tplink/camera/components/SelectNuModal.vue new file mode 100644 index 0000000..ceea225 --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/SelectNuModal.vue @@ -0,0 +1,70 @@ + + + + + + diff --git a/src/views/iotsync/tplink/camera/components/SelectedTable.vue b/src/views/iotsync/tplink/camera/components/SelectedTable.vue new file mode 100644 index 0000000..451aaa1 --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/SelectedTable.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/iotsync/tplink/camera/components/SourceTable.vue b/src/views/iotsync/tplink/camera/components/SourceTable.vue new file mode 100644 index 0000000..c036ba2 --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/SourceTable.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/src/views/iotsync/tplink/camera/components/SyncLogList.vue b/src/views/iotsync/tplink/camera/components/SyncLogList.vue new file mode 100644 index 0000000..f479812 --- /dev/null +++ b/src/views/iotsync/tplink/camera/components/SyncLogList.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/src/views/iotsync/tplink/camera/index.vue b/src/views/iotsync/tplink/camera/index.vue new file mode 100644 index 0000000..320d532 --- /dev/null +++ b/src/views/iotsync/tplink/camera/index.vue @@ -0,0 +1,567 @@ + + + + + diff --git a/src/views/iotsync/tq/water/components/SelectNuList.vue b/src/views/iotsync/tq/water/components/SelectNuList.vue index 3f45332..655a2c7 100644 --- a/src/views/iotsync/tq/water/components/SelectNuList.vue +++ b/src/views/iotsync/tq/water/components/SelectNuList.vue @@ -9,7 +9,7 @@ -