From 9fed0b944275f4be29b94b00ea8ec76c0f254f4f Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Fri, 25 Jul 2025 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=A9=E8=81=94=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=90=8C=E6=AD=A5=E6=9F=A5=E8=AF=A2=E4=B8=8E=E5=88=86?= =?UTF-8?q?=E9=85=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Drawer/src/BasicDrawer.vue | 1 - .../SimpleMenu/src/components/MenuItem.vue | 1 - src/components/registerGlobComp.ts | 2 +- src/hooks/web/useWebSocket.ts | 8 +- src/store/modules/permission.ts | 2 +- src/views/iot/baseIot/BaseIot.data.ts | 75 ++++++++ src/views/iot/baseIot/CheckBaseIotList.vue | 179 ++++++++++++++++++ src/views/iot/baseIot/compoents/SxtForm.vue | 118 ++++++++++++ src/views/iot/baseIot/compoents/SxtModal.vue | 66 +++++++ 9 files changed, 444 insertions(+), 8 deletions(-) create mode 100644 src/views/iot/baseIot/BaseIot.data.ts create mode 100644 src/views/iot/baseIot/CheckBaseIotList.vue create mode 100644 src/views/iot/baseIot/compoents/SxtForm.vue create mode 100644 src/views/iot/baseIot/compoents/SxtModal.vue diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index 498e52e..0381a99 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -89,7 +89,6 @@ opt.getContainer = `.${prefixVar}-layout-content` as any; } } - console.log('getProps:opt',opt); return opt as DrawerProps; }); diff --git a/src/components/SimpleMenu/src/components/MenuItem.vue b/src/components/SimpleMenu/src/components/MenuItem.vue index 0b7afc7..703ae74 100644 --- a/src/components/SimpleMenu/src/components/MenuItem.vue +++ b/src/components/SimpleMenu/src/components/MenuItem.vue @@ -107,7 +107,6 @@ //update-begin-author:taoyan date:2022-6-1 for: VUEN-1144 online 配置成菜单后,打开菜单,显示名称未展示为菜单名称 function storePathTitle(path) { - console.log('storePathTitle', path); let title = ''; if (instance!.attrs) { let item: any = instance!.attrs.item; diff --git a/src/components/registerGlobComp.ts b/src/components/registerGlobComp.ts index a234b1f..0bc85c0 100644 --- a/src/components/registerGlobComp.ts +++ b/src/components/registerGlobComp.ts @@ -131,5 +131,5 @@ export function registerGlobComp(app: App) { .use(Cascader) .use(Rate) .use(Progress); - console.log("---初始化---, 全局注册Antd、仪表盘、流程设计器、online、流程等组件--------------") + // console.log("---初始化---, 全局注册Antd、仪表盘、流程设计器、online、流程等组件--------------") } diff --git a/src/hooks/web/useWebSocket.ts b/src/hooks/web/useWebSocket.ts index 31ee8a2..a0ad07f 100644 --- a/src/hooks/web/useWebSocket.ts +++ b/src/hooks/web/useWebSocket.ts @@ -28,10 +28,10 @@ export function connectWebSocket(url: string) { protocols: [token], // update-begin--author:liaozhiyang---date:20240726---for:[issues/6662] 演示系统socket总断,换一个写法 onConnected: function (ws) { - console.log('[WebSocket] 连接成功', ws); + // console.log('[WebSocket] 连接成功', ws); }, onDisconnected: function (ws, event) { - console.log('[WebSocket] 连接断开:', ws, event); + // console.log('[WebSocket] 连接断开:', ws, event); }, onError: function (ws, event) { console.log('[WebSocket] 连接发生错误: ', ws, event); @@ -78,11 +78,11 @@ export function connectWebSocket(url: string) { } function onOpen() { - console.log('[WebSocket] 连接成功'); + // console.log('[WebSocket] 连接成功'); } function onClose(e) { - console.log('[WebSocket] 连接断开:', e); + // console.log('[WebSocket] 连接断开:', e); } function onError(e) { diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index 8700459..4582c80 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -212,7 +212,7 @@ export const usePermissionStore = defineStore({ // 后台菜单构建 case PermissionModeEnum.BACK: const { createMessage, createWarningModal } = useMessage(); - console.log(" --- 构建后台路由菜单 --- ") + // console.log(" --- 构建后台路由菜单 --- ") // 菜单加载提示 // createMessage.loading({ // content: t('sys.app.menuLoading'), diff --git a/src/views/iot/baseIot/BaseIot.data.ts b/src/views/iot/baseIot/BaseIot.data.ts new file mode 100644 index 0000000..55d0877 --- /dev/null +++ b/src/views/iot/baseIot/BaseIot.data.ts @@ -0,0 +1,75 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const baseSxtColumns: BasicColumn[] = [ + { + title: '设备序号', + align: "center", + dataIndex: 'deviceIndex', + width: 120, + }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName' + }, + { + title: '设备状态', + align: "center", + dataIndex: 'deviceStatus_dictText', + width: 120, + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 220, + }, + { + title: 'NUID', + align: "center", + dataIndex: 'nuId', + width: 120, + }, + { + title: '操作', + align: "center", + dataIndex: 'action', + width: 120, + }, +]; + +export const checkSxtColumns: BasicColumn[] = [ + { + title: '设备序号', + align: "center", + dataIndex: 'deviceIndex', + width: 120, + }, + { + title: '设备名称', + align: "center", + dataIndex: 'deviceName' + }, + { + title: '设备状态', + align: "center", + dataIndex: 'deviceStatus_dictText', + width: 120, + }, + { + title: '设备型号', + align: "center", + dataIndex: 'deviceModel', + width: 220, + }, + { + title: '操作', + align: "center", + dataIndex: 'action', + width: 120, + }, +]; \ No newline at end of file diff --git a/src/views/iot/baseIot/CheckBaseIotList.vue b/src/views/iot/baseIot/CheckBaseIotList.vue new file mode 100644 index 0000000..aec3a83 --- /dev/null +++ b/src/views/iot/baseIot/CheckBaseIotList.vue @@ -0,0 +1,179 @@ + + + + + + + + + + 机构名称 + + + + + + 查询 + 重置 + + + + + + + + + 机构编码:{{item.orgCode}} + 创建时间:{{item.createTime}} + 选择 + + + + + + + + + {{orgInfo.departName}} - 物联设备配置 + 返回上一页 + + + 单元名称:{{item.nuName}} + 创建时间:{{item.createTime}} + 单元类型:{{item.areaFlagText}} + + + 摄像头 + + + 电表 + + + 水表 + + + 温湿度 + + + + + + + + + + + + + diff --git a/src/views/iot/baseIot/compoents/SxtForm.vue b/src/views/iot/baseIot/compoents/SxtForm.vue new file mode 100644 index 0000000..0098306 --- /dev/null +++ b/src/views/iot/baseIot/compoents/SxtForm.vue @@ -0,0 +1,118 @@ + + + + + NUID:{{baseIotInfo.nuId}} + 护理单元名称:{{baseIotInfo.nuName}} + 护理单元类型:{{baseIotInfo.areaFlagText}} + + + + + + + 选择 + + + + + + + + + + 移除 + + + + + + + + + + + diff --git a/src/views/iot/baseIot/compoents/SxtModal.vue b/src/views/iot/baseIot/compoents/SxtModal.vue new file mode 100644 index 0000000..1ab6ab1 --- /dev/null +++ b/src/views/iot/baseIot/compoents/SxtModal.vue @@ -0,0 +1,66 @@ + + + + + + + + + +
机构编码:{{item.orgCode}}
创建时间:{{item.createTime}}
选择
单元名称:{{item.nuName}}
单元类型:{{item.areaFlagText}}