inl-ui 0.0.37 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +3 -3
- package/README.md +27 -27
- package/conf/cp1.js +85 -85
- package/conf/rollup.config.ts +37 -37
- package/dist/index.js +1803 -2849
- package/dist/index.js.map +1 -1
- package/dist/src/api/alarm/alarmRecord.d.ts +95 -95
- package/dist/src/api/alarm/warningConfigure.d.ts +61 -61
- package/dist/src/api/auth/menuManager.d.ts +36 -36
- package/dist/src/api/auth/roleManager.d.ts +31 -31
- package/dist/src/api/auth/userManager.d.ts +48 -48
- package/dist/src/api/axios.d.ts +10 -10
- package/dist/src/api/boardScreen/powersupply.d.ts +8 -8
- package/dist/src/api/cardCenter.d.ts +43 -43
- package/dist/src/api/dataAnalysis.d.ts +4 -4
- package/dist/src/api/dataCenter.d.ts +32 -32
- package/dist/src/api/enumList.d.ts +7 -7
- package/dist/src/api/event.d.ts +4 -4
- package/dist/src/api/faceName.d.ts +7 -7
- package/dist/src/api/factory.d.ts +36 -36
- package/dist/src/api/fileManager.d.ts +4 -4
- package/dist/src/api/index.d.ts +2 -2
- package/dist/src/api/linkage.d.ts +30 -30
- package/dist/src/api/logManager.d.ts +15 -15
- package/dist/src/api/noticeCenter.d.ts +27 -27
- package/dist/src/api/noticeManager.d.ts +39 -39
- package/dist/src/api/org/depManager.d.ts +93 -93
- package/dist/src/api/org/postManager.d.ts +43 -43
- package/dist/src/api/org/teamManager.d.ts +51 -51
- package/dist/src/api/param.d.ts +36 -36
- package/dist/src/api/personalSetting.d.ts +20 -20
- package/dist/src/api/pressureFiltration/filterPressConfiguration.d.ts +23 -23
- package/dist/src/api/pressureFiltration/flowChart.d.ts +11 -11
- package/dist/src/api/pressureFiltration/pressureFiltrationHome.d.ts +31 -31
- package/dist/src/api/pressureFiltration/pressureFiltrationRecord.d.ts +23 -23
- package/dist/src/api/processDrawing.d.ts +35 -35
- package/dist/src/api/product.d.ts +29 -29
- package/dist/src/api/productionPlan.d.ts +4 -4
- package/dist/src/api/productionPlan_old.d.ts +4 -4
- package/dist/src/api/project.d.ts +21 -21
- package/dist/src/api/pss.d.ts +4 -4
- package/dist/src/api/rotation.d.ts +4 -4
- package/dist/src/api/setting.d.ts +4 -4
- package/dist/src/api/systemSetting.d.ts +24 -24
- package/dist/src/api/thingInstance.d.ts +42 -42
- package/dist/src/api/thingModel.d.ts +38 -38
- package/dist/src/api/tupu.d.ts +6 -6
- package/dist/src/api/video.d.ts +4 -4
- package/dist/src/api/workforceManager.d.ts +4 -4
- package/dist/src/components/changeTheme/index.d.ts +4 -4
- package/dist/src/components/headerMenu/index.d.ts +2 -2
- package/dist/src/components/headerMenuItem/index.d.ts +2 -2
- package/dist/src/components/headerMenuTitle/index.d.ts +2 -2
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/components/inputText.d.ts +22 -22
- package/dist/src/components/layoutContent/index.d.ts +10 -10
- package/dist/src/components/layoutNav/index.d.ts +2 -2
- package/dist/src/components/layoutSidebar/index.d.ts +2 -2
- package/dist/src/components/videoPlayer/index.d.ts +2 -2
- package/dist/src/components/videoPlayer/util/interface.d.ts +3 -3
- package/dist/src/components/videoPlayer/util/video.d.ts +64 -64
- package/dist/src/directives/focus.d.ts +6 -6
- package/dist/src/hooks/global.d.ts +5 -5
- package/dist/src/hooks/useMenuCode.d.ts +4 -4
- package/dist/src/hooks/userVModel.d.ts +1 -1
- package/dist/src/index.d.ts +27 -27
- package/dist/src/pageComponent/components/CommonTree.d.ts +73 -73
- package/dist/src/pageComponent/components/DynamicIcon.d.ts +14 -14
- package/dist/src/pageComponent/components/EditPasswordForm.d.ts +20 -20
- package/dist/src/pageComponent/components/IconSelect.d.ts +12 -12
- package/dist/src/pageComponent/components/Navbar.d.ts +14 -14
- package/dist/src/pageComponent/components/ProFormItem.d.ts +21 -21
- package/dist/src/pageComponent/components/SearchSelect.d.ts +62 -62
- package/dist/src/pageComponent/components/Sidebar.d.ts +23 -23
- package/dist/src/pageComponent/components/boardScreen/Card1Outer.d.ts +8 -8
- package/dist/src/pageComponent/components/boardScreen/Card2Outer.d.ts +8 -8
- package/dist/src/pageComponent/components/boardScreen/PopBox.d.ts +33 -33
- package/dist/src/pageComponent/components/boardScreen/PowerCut.d.ts +15 -15
- package/dist/src/pageComponent/components/boardScreen/PowerSupply.d.ts +15 -15
- package/dist/src/pageComponent/components/boardScreen/card2OuterTable.d.ts +6 -6
- package/dist/src/pageComponent/components/check-people.d.ts +31 -31
- package/dist/src/pageComponent/components/elcRoomHt/index.d.ts +8 -8
- package/dist/src/pageComponent/components/htModal/control.d.ts +8 -8
- package/dist/src/pageComponent/components/htModal/index.d.ts +14 -14
- package/dist/src/pageComponent/components/htModal/task.d.ts +2 -2
- package/dist/src/pageComponent/components/loginBox/index.d.ts +45 -45
- package/dist/src/pageComponent/components/noticeManager/addChannel.d.ts +8 -8
- package/dist/src/pageComponent/components/noticeManager/addNotice.d.ts +8 -8
- package/dist/src/pageComponent/components/noticeManager/addTemplate.d.ts +19 -19
- package/dist/src/pageComponent/components/noticeManager/noticeGrade.d.ts +6 -6
- package/dist/src/pageComponent/components/noticeManager/noticeMaintain.d.ts +6 -6
- package/dist/src/pageComponent/components/noticeManager/noticeTemplate.d.ts +6 -6
- package/dist/src/pageComponent/components/noticeManager/notificationDetails.d.ts +6 -6
- package/dist/src/pageComponent/components/noticeManager/sendDetails.d.ts +23 -23
- package/dist/src/pageComponent/components/pressureFiltration/alarmList.d.ts +21 -21
- package/dist/src/pageComponent/components/pressureFiltration/configuration.d.ts +31 -31
- package/dist/src/pageComponent/components/pressureFiltration/numberOfPlates.d.ts +21 -21
- package/dist/src/pageComponent/components/pressureFiltration/shiftChange.d.ts +23 -23
- package/dist/src/pageComponent/components/pss-cabinet/cabinetRender.d.ts +61 -61
- package/dist/src/pageComponent/components/user/userTable.d.ts +13 -13
- package/dist/src/pageComponent/components/user/userTree.d.ts +21 -21
- package/dist/src/pageComponent/components/video-play.d.ts +34 -34
- package/dist/src/pageComponent/config/systemConfig.d.ts +32 -32
- package/dist/src/pageComponent/hooks/cardTable.d.ts +26 -26
- package/dist/src/pageComponent/hooks/filters.d.ts +18 -18
- package/dist/src/pageComponent/hooks/global.d.ts +5 -5
- package/dist/src/pageComponent/hooks/manage-module/useModalForm.d.ts +5 -5
- package/dist/src/pageComponent/hooks/manage-module/useModalTitle.d.ts +6 -6
- package/dist/src/pageComponent/hooks/manage-module/useModalVisibleControl.d.ts +5 -5
- package/dist/src/pageComponent/hooks/screen.d.ts +5 -5
- package/dist/src/pageComponent/hooks/tabListConfig.d.ts +2 -2
- package/dist/src/pageComponent/hooks/toPreviewData.d.ts +4 -4
- package/dist/src/pageComponent/hooks/treeSearch.d.ts +2 -2
- package/dist/src/pageComponent/hooks/useBus.d.ts +6 -6
- package/dist/src/pageComponent/hooks/useMouse.d.ts +7 -7
- package/dist/src/pageComponent/hooks/useProxy.d.ts +4 -4
- package/dist/src/pageComponent/hooks/useTableList.d.ts +26 -26
- package/dist/src/pageComponent/hooks/useVModel.d.ts +1 -1
- package/dist/src/pageComponent/hooks/useWatchOnce.d.ts +2 -2
- package/dist/src/pageComponent/index.d.ts +2 -2
- package/dist/src/pageComponent/store/index.d.ts +32 -32
- package/dist/src/pageComponent/utils/base64.d.ts +14 -14
- package/dist/src/pageComponent/utils/filter.d.ts +18 -18
- package/dist/src/pageComponent/utils/format.d.ts +21 -21
- package/dist/src/pageComponent/utils/index.d.ts +5 -5
- package/dist/src/pageComponent/utils/is.d.ts +10 -10
- package/dist/src/pageComponent/utils/transform.d.ts +10 -10
- package/dist/src/pageComponent/utils/tree.d.ts +17 -17
- package/dist/src/pageComponent/utils/upload.d.ts +1 -1
- package/dist/src/pageComponent/utils/validation.d.ts +20 -20
- package/dist/src/pageComponent/views/alarms/add-warning-configure/form/basic-form.d.ts +18 -18
- package/dist/src/pageComponent/views/alarms/add-warning-configure/form/linkage-form.d.ts +18 -18
- package/dist/src/pageComponent/views/alarms/add-warning-configure/form/rule-form.d.ts +28 -28
- package/dist/src/pageComponent/views/alarms/add-warning-configure/index.d.ts +16 -16
- package/dist/src/pageComponent/views/alarms/alarmDetail/index.d.ts +2 -2
- package/dist/src/pageComponent/views/alarms/index.d.ts +2 -2
- package/dist/src/pageComponent/views/alarms/warning-configure/batch-import-dialog.d.ts +22 -22
- package/dist/src/pageComponent/views/alarms/warning-configure/configure-table.d.ts +12 -12
- package/dist/src/pageComponent/views/alarms/warning-configure/index.d.ts +15 -15
- package/dist/src/pageComponent/views/alarms/warning-configure/table-tool.d.ts +26 -26
- package/dist/src/pageComponent/views/alarms/warning-record/index.d.ts +15 -15
- package/dist/src/pageComponent/views/alarms/warning-record/query-filter.d.ts +24 -24
- package/dist/src/pageComponent/views/alarms/warning-record/record-table.d.ts +13 -13
- package/dist/src/pageComponent/views/boardScreen/index.d.ts +2 -2
- package/dist/src/pageComponent/views/boardScreen/room.d.ts +21 -21
- package/dist/src/pageComponent/views/boardScreen/tupu.d.ts +17 -17
- package/dist/src/pageComponent/views/card-center/cardWarehouse.d.ts +23 -23
- package/dist/src/pageComponent/views/card-center/components/cardDetail.d.ts +49 -49
- package/dist/src/pageComponent/views/card-center/components/editPage.d.ts +20 -20
- package/dist/src/pageComponent/views/card-center/components/pageDetail.d.ts +49 -49
- package/dist/src/pageComponent/views/card-center/components/selectCard.d.ts +3 -3
- package/dist/src/pageComponent/views/card-center/pageConfiguration.d.ts +25 -25
- package/dist/src/pageComponent/views/data-center/cardModal.d.ts +22 -22
- package/dist/src/pageComponent/views/data-center/cardSubscription.d.ts +14 -14
- package/dist/src/pageComponent/views/data-center/components/chart.d.ts +4 -4
- package/dist/src/pageComponent/views/data-center/components/groupModal.d.ts +53 -53
- package/dist/src/pageComponent/views/data-center/components/leftTree.d.ts +27 -27
- package/dist/src/pageComponent/views/data-center/components/searchHeader.d.ts +11 -11
- package/dist/src/pageComponent/views/data-center/components/table.d.ts +31 -31
- package/dist/src/pageComponent/views/data-center/dataAnalysis.d.ts +6 -6
- package/dist/src/pageComponent/views/data-center/userModal.d.ts +28 -28
- package/dist/src/pageComponent/views/elcRoom/index.d.ts +2 -2
- package/dist/src/pageComponent/views/factoryManage/index.d.ts +20 -20
- package/dist/src/pageComponent/views/fileManager/components/CreateFolder.d.ts +26 -26
- package/dist/src/pageComponent/views/fileManager/components/MoveToFolder.d.ts +37 -37
- package/dist/src/pageComponent/views/fileManager/components/Rename.d.ts +26 -26
- package/dist/src/pageComponent/views/fileManager/components/UploadFiles.d.ts +35 -35
- package/dist/src/pageComponent/views/fileManager/fileManager.d.ts +2 -2
- package/dist/src/pageComponent/views/fileManager/index.d.ts +3 -3
- package/dist/src/pageComponent/views/index.d.ts +2 -2
- package/dist/src/pageComponent/views/login/box.d.ts +72 -72
- package/dist/src/pageComponent/views/login/index.d.ts +2 -2
- package/dist/src/pageComponent/views/login/leftImg.d.ts +10 -10
- package/dist/src/pageComponent/views/login/top-title.d.ts +2 -2
- package/dist/src/pageComponent/views/pressureFiltration/feeding.d.ts +2 -2
- package/dist/src/pageComponent/views/pressureFiltration/pressureFiltrationHome.d.ts +2 -2
- package/dist/src/pageComponent/views/pressureFiltration/productionShiftReport.d.ts +2 -2
- package/dist/src/pageComponent/views/pressureFiltration/record.d.ts +2 -2
- package/dist/src/pageComponent/views/pressureFiltration/unloading.d.ts +2 -2
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/EventForm.d.ts +20 -20
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/addonAfter.d.ts +18 -18
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/cardItem.d.ts +29 -29
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/colorPicker.d.ts +16 -16
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/flowList.d.ts +32 -32
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/propertyForm.d.ts +30 -30
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/propertyModal.d.ts +60 -60
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/state.d.ts +50 -50
- package/dist/src/pageComponent/views/processDrawingConfiguration/components/styleForm.d.ts +26 -26
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/components/data.d.ts +15 -15
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/components/textarea.d.ts +10 -10
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/config.d.ts +38 -38
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/index.d.ts +27 -27
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/instanceSelector.d.ts +27 -27
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/mainContent.d.ts +25 -25
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/operationArea.d.ts +7 -7
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/previewModal.d.ts +25 -25
- package/dist/src/pageComponent/views/processDrawingConfiguration/editor/utils.d.ts +11 -11
- package/dist/src/pageComponent/views/processDrawingConfiguration/hooks/index.d.ts +3 -3
- package/dist/src/pageComponent/views/processDrawingConfiguration/hooks/useActiveWidget.d.ts +5367 -5367
- package/dist/src/pageComponent/views/processDrawingConfiguration/index.d.ts +14 -14
- package/dist/src/pageComponent/views/processDrawingConfiguration/previewModal.d.ts +2 -2
- package/dist/src/pageComponent/views/productManager/index.d.ts +18 -18
- package/dist/src/pageComponent/views/productManager/update.d.ts +20 -20
- package/dist/src/pageComponent/views/productManager/utils/emuns.d.ts +31 -31
- package/dist/src/pageComponent/views/productManager/utils/formRules.d.ts +5 -5
- package/dist/src/pageComponent/views/productManager/versionEdit/index.d.ts +12 -12
- package/dist/src/pageComponent/views/productManager/versionEdit/param.d.ts +10 -10
- package/dist/src/pageComponent/views/productionPlanManager/components/Plan.d.ts +46 -46
- package/dist/src/pageComponent/views/productionPlanManager/components/Plan_back.d.ts +27 -27
- package/dist/src/pageComponent/views/productionPlanManager/dayPCPlan.d.ts +3 -3
- package/dist/src/pageComponent/views/productionPlanManager/daySCPlan.d.ts +3 -3
- package/dist/src/pageComponent/views/productionPlanManager/dayWYPlan.d.ts +2 -2
- package/dist/src/pageComponent/views/productionPlanManager/monthPCPlan.d.ts +3 -3
- package/dist/src/pageComponent/views/productionPlanManager/productionPlanConfig.d.ts +3 -3
- package/dist/src/pageComponent/views/productionPlanManager/productionPlan_old.d.ts +3 -3
- package/dist/src/pageComponent/views/productionPlanManager/yearPCPlan.d.ts +3 -3
- package/dist/src/pageComponent/views/projectManager/components/commonForm.d.ts +99 -99
- package/dist/src/pageComponent/views/projectManager/detail.d.ts +16 -16
- package/dist/src/pageComponent/views/projectManager/hooks/useTable.d.ts +27 -27
- package/dist/src/pageComponent/views/projectManager/index.d.ts +28 -28
- package/dist/src/pageComponent/views/projectManager/utils/emuns.d.ts +31 -31
- package/dist/src/pageComponent/views/projectManager/utils/formRules.d.ts +20 -20
- package/dist/src/pageComponent/views/projectManager/utils/index.d.ts +11 -11
- package/dist/src/pageComponent/views/pss/components/ApproveOpinion.d.ts +57 -57
- package/dist/src/pageComponent/views/pss/components/Info.d.ts +52 -52
- package/dist/src/pageComponent/views/pss/components/NewOrder.d.ts +17 -17
- package/dist/src/pageComponent/views/pss/components/PerformOperation.d.ts +27 -27
- package/dist/src/pageComponent/views/pss/components/table.d.ts +14 -14
- package/dist/src/pageComponent/views/pss/index.d.ts +3 -3
- package/dist/src/pageComponent/views/pss/list.d.ts +3 -3
- package/dist/src/pageComponent/views/pss/utils/index.d.ts +4 -4
- package/dist/src/pageComponent/views/pssRecord/components/Info.d.ts +25 -25
- package/dist/src/pageComponent/views/pssRecord/index.d.ts +3 -3
- package/dist/src/pageComponent/views/systemManager/about/index.d.ts +6 -6
- package/dist/src/pageComponent/views/systemManager/aboutNew/index.d.ts +2 -2
- package/dist/src/pageComponent/views/systemManager/authManager/RoleManager/index.d.ts +10 -10
- package/dist/src/pageComponent/views/systemManager/authManager/RoleManager/updateRoleDialog.d.ts +38 -38
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/index.d.ts +14 -14
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/menuDetail.d.ts +10 -10
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/menuForm.d.ts +19 -19
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/menuSelectTree.d.ts +19 -19
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/updateMenuDialog.d.ts +30 -30
- package/dist/src/pageComponent/views/systemManager/authManager/menuManager/uploadJSONDialog.d.ts +27 -27
- package/dist/src/pageComponent/views/systemManager/authManager/userManager/index.d.ts +13 -13
- package/dist/src/pageComponent/views/systemManager/authManager/userManager/updateUserDialog.d.ts +41 -41
- package/dist/src/pageComponent/views/systemManager/authManager/userManager/userProfileDialog.d.ts +24 -24
- package/dist/src/pageComponent/views/systemManager/logManager/index.d.ts +6 -6
- package/dist/src/pageComponent/views/systemManager/noticeManager/noticeCenter.d.ts +3 -3
- package/dist/src/pageComponent/views/systemManager/noticeManager/noticeManager.d.ts +2 -2
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/batchImportModal.d.ts +20 -20
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/depTree.d.ts +10 -10
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/employeeTable.d.ts +20 -20
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/index.d.ts +18 -18
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/updateDepDialog.d.ts +49 -49
- package/dist/src/pageComponent/views/systemManager/orgManager/depManager/updateEmployeeDialog.d.ts +46 -46
- package/dist/src/pageComponent/views/systemManager/orgManager/depManagerCorp/depTree.d.ts +10 -10
- package/dist/src/pageComponent/views/systemManager/orgManager/depManagerCorp/employeeTable.d.ts +20 -20
- package/dist/src/pageComponent/views/systemManager/orgManager/depManagerCorp/index.d.ts +18 -18
- package/dist/src/pageComponent/views/systemManager/orgManager/depManagerCorp/updateDepDialog.d.ts +49 -49
- package/dist/src/pageComponent/views/systemManager/orgManager/depManagerCorp/updateEmployeeDialog.d.ts +46 -46
- package/dist/src/pageComponent/views/systemManager/orgManager/empManager.d.ts +2 -2
- package/dist/src/pageComponent/views/systemManager/orgManager/postManager/index.d.ts +10 -10
- package/dist/src/pageComponent/views/systemManager/orgManager/postManager/updatePostDialog.d.ts +49 -49
- package/dist/src/pageComponent/views/systemManager/orgManager/teamManager/index.d.ts +11 -11
- package/dist/src/pageComponent/views/systemManager/orgManager/teamManager/updateTeamDialog.d.ts +49 -49
- package/dist/src/pageComponent/views/systemManager/paramManager/collapseContainer.d.ts +23 -23
- package/dist/src/pageComponent/views/systemManager/paramManager/dynamicForm.d.ts +20 -20
- package/dist/src/pageComponent/views/systemManager/paramManager/index.d.ts +7 -7
- package/dist/src/pageComponent/views/systemManager/paramManager/tabItem.d.ts +20 -20
- package/dist/src/pageComponent/views/systemManager/personalSetting/index.d.ts +7 -7
- package/dist/src/pageComponent/views/systemManager/systemSetting/data.d.ts +87 -87
- package/dist/src/pageComponent/views/systemManager/systemSetting/index.d.ts +2 -2
- package/dist/src/pageComponent/views/thingInstance/component/addThing.d.ts +24 -24
- package/dist/src/pageComponent/views/thingInstance/component/baseItem.d.ts +2 -2
- package/dist/src/pageComponent/views/thingInstance/component/dynamicForm.d.ts +36 -36
- package/dist/src/pageComponent/views/thingInstance/component/editRelation.d.ts +6 -6
- package/dist/src/pageComponent/views/thingInstance/component/editThing.d.ts +33 -24
- package/dist/src/pageComponent/views/thingInstance/component/logicForm.d.ts +54 -54
- package/dist/src/pageComponent/views/thingInstance/component/thingDetail.d.ts +37 -28
- package/dist/src/pageComponent/views/thingInstance/data.d.ts +7 -7
- package/dist/src/pageComponent/views/thingInstance/hooks/filters.d.ts +17 -17
- package/dist/src/pageComponent/views/thingInstance/hooks/useTableList.d.ts +27 -27
- package/dist/src/pageComponent/views/thingInstance/hooks/useTreeSearch.d.ts +20 -20
- package/dist/src/pageComponent/views/thingInstance/index.d.ts +3 -3
- package/dist/src/pageComponent/views/thingInstance/modal.d.ts +2 -2
- package/dist/src/pageComponent/views/thingModel/component/detail.d.ts +15 -15
- package/dist/src/pageComponent/views/thingModel/component/tabAttr/index.d.ts +12 -12
- package/dist/src/pageComponent/views/thingModel/component/tabAttr/update.d.ts +3 -3
- package/dist/src/pageComponent/views/thingModel/component/tabRelation/index.d.ts +12 -12
- package/dist/src/pageComponent/views/thingModel/component/tabRelation/update.d.ts +22 -22
- package/dist/src/pageComponent/views/thingModel/component/update.d.ts +6 -6
- package/dist/src/pageComponent/views/thingModel/config.d.ts +104 -104
- package/dist/src/pageComponent/views/thingModel/hooks/useTableList.d.ts +27 -27
- package/dist/src/pageComponent/views/thingModel/hooks/useTreeSearch.d.ts +20 -20
- package/dist/src/pageComponent/views/thingModel/index.d.ts +3 -3
- package/dist/src/pageComponent/views/video/components/checkCamera.d.ts +40 -40
- package/dist/src/pageComponent/views/video/components/transfer.d.ts +22 -22
- package/dist/src/pageComponent/views/video/components/videoPlayer/index.d.ts +14 -14
- package/dist/src/pageComponent/views/video/components/videoPlayer/util/axios.d.ts +4 -4
- package/dist/src/pageComponent/views/video/components/videoPlayer/util/byUuid.d.ts +66 -66
- package/dist/src/pageComponent/views/video/components/videoPlayer/util/video.d.ts +64 -64
- package/dist/src/pageComponent/views/video/event/algorithmType.d.ts +3 -3
- package/dist/src/pageComponent/views/video/event/eventConfig.d.ts +3 -3
- package/dist/src/pageComponent/views/video/event/eventType.d.ts +3 -3
- package/dist/src/pageComponent/views/video/event/events.d.ts +3 -3
- package/dist/src/pageComponent/views/video/linkage/linkage.d.ts +3 -3
- package/dist/src/pageComponent/views/video/linkage/updateMode.d.ts +43 -43
- package/dist/src/pageComponent/views/video/play.d.ts +3 -3
- package/dist/src/pageComponent/views/video/preview/components/alarmLinkageModal.d.ts +26 -26
- package/dist/src/pageComponent/views/video/preview/components/followItem.d.ts +17 -17
- package/dist/src/pageComponent/views/video/preview/components/fullScreen.d.ts +4 -4
- package/dist/src/pageComponent/views/video/preview/components/treeItem.d.ts +20 -20
- package/dist/src/pageComponent/views/video/preview/preview.d.ts +3 -3
- package/dist/src/pageComponent/views/video/rotation/PlayVideos.d.ts +12 -12
- package/dist/src/pageComponent/views/video/rotation/rotation.d.ts +3 -3
- package/dist/src/pageComponent/views/video/sbgl/components/CheckDialog.d.ts +3 -3
- package/dist/src/pageComponent/views/video/sbgl/components/addGrouping.d.ts +17 -17
- package/dist/src/pageComponent/views/video/sbgl/group.d.ts +3 -3
- package/dist/src/pageComponent/views/video/sbgl/index.d.ts +2 -2
- package/dist/src/pageComponent/views/video/sbgl/nvr.d.ts +3 -3
- package/dist/src/pageComponent/views/video/sbgl/photo.d.ts +3 -3
- package/dist/src/pageComponent/views/video/setting/cameraPermission.d.ts +2 -2
- package/dist/src/pageComponent/views/video/setting/index.d.ts +2 -2
- package/dist/src/pageComponent/views/video/setting/system.d.ts +3 -3
- package/dist/src/pageComponent/views/video/utils/index.d.ts +3 -3
- package/dist/src/pageComponent/views/video/utils/validation.d.ts +3 -3
- package/dist/src/pageComponent/views/video/utils/video.d.ts +64 -64
- package/dist/src/pageComponent/views/video/utils/webSocket.d.ts +5 -5
- package/dist/src/pageComponent/views/workforceManager/workforcePlan/dayContent.d.ts +24 -24
- package/dist/src/pageComponent/views/workforceManager/workforcePlan/index.d.ts +3 -3
- package/dist/src/pageComponent/views/workforceManager/workforcePlan/mainTable.d.ts +38 -38
- package/dist/src/pageComponent/views/workforceManager/workforceRule/components/classManager.d.ts +3 -3
- package/dist/src/pageComponent/views/workforceManager/workforceRule/components/rule.d.ts +35 -35
- package/dist/src/pageComponent/views/workforceManager/workforceRule/components/{workforceRule.d.ts → workforceRuleComp.d.ts} +3 -2
- package/dist/src/pageComponent/views/workforceManager/workforceRule/index.d.ts +3 -2
- package/dist/src/tpInit/index.d.ts +7 -7
- package/dist/src/utils/className.d.ts +2 -2
- package/dist/src/utils/config.d.ts +4 -4
- package/dist/src/utils/getSlots.d.ts +3 -3
- package/dist/src/utils/index.d.ts +11 -11
- package/dist/src/utils/installComponent.d.ts +3 -3
- package/dist/src/utils/publicUtil/changeTheme.d.ts +5 -5
- package/dist/src/utils/publicUtil/index.d.ts +34 -34
- package/dist/src/utils/publicUtil/login/index.d.ts +21 -21
- package/dist/src/utils/publicUtil/message.d.ts +2 -2
- package/dist/src/utils/publicUtil/systemConfig.d.ts +5 -5
- package/dist/src/utils/route.d.ts +31 -31
- package/dist/style.css +10 -9
- package/dist/theme/index.js +70 -70
- package/dist/theme/scripts/dark-vars.js +21 -21
- package/dist/theme/scripts/default-vars.js +25 -25
- package/dist/theme/scripts/light-vars.js +22 -22
- package/dist/theme/style/color/bezierEasing.less +110 -110
- package/dist/theme/style/color/colorPalette.less +81 -81
- package/dist/theme/style/color/colors.less +162 -162
- package/dist/theme/style/color/tinyColor.less +1184 -1184
- package/dist/theme/style/compact.less +4 -4
- package/dist/theme/style/dark.less +4 -4
- package/dist/theme/style/default.less +4 -4
- package/dist/theme/style/index.less +2 -2
- package/dist/theme/style/index.tsx +2 -2
- package/dist/theme/style/themes/compact.less +295 -295
- package/dist/theme/style/themes/dark.less +790 -790
- package/dist/theme/style/themes/default.less +1067 -1067
- package/dist/theme/style/themes/index.less +7 -7
- package/dist/theme/style/themes/var-dark.less +313 -313
- package/dist/theme/style/themes/var-default.less +148 -148
- package/dist/theme/style/themes/variable.less +1122 -1122
- package/dist/theme/style/variable.less +4 -4
- package/package.json +54 -54
- package/src/api/alarm/alarmRecord.ts +138 -138
- package/src/api/alarm/warningConfigure.ts +146 -146
- package/src/api/auth/menuManager.ts +71 -71
- package/src/api/auth/roleManager.ts +58 -58
- package/src/api/auth/userManager.ts +78 -78
- package/src/api/axios.ts +112 -112
- package/src/api/boardScreen/powersupply.ts +28 -28
- package/src/api/cardCenter.ts +74 -74
- package/src/api/dataAnalysis.ts +64 -64
- package/src/api/dataCenter.ts +66 -66
- package/src/api/enumList.ts +23 -23
- package/src/api/event.ts +143 -143
- package/src/api/faceName.ts +6 -6
- package/src/api/factory.ts +129 -129
- package/src/api/fileManager.ts +120 -120
- package/src/api/index.ts +1 -1
- package/src/api/linkage.ts +54 -54
- package/src/api/logManager.ts +28 -28
- package/src/api/noticeCenter.ts +55 -55
- package/src/api/noticeManager.ts +76 -76
- package/src/api/org/depManager.ts +167 -167
- package/src/api/org/postManager.ts +76 -76
- package/src/api/org/teamManager.ts +90 -90
- package/src/api/param.ts +46 -46
- package/src/api/personalSetting.ts +33 -33
- package/src/api/pressureFiltration/filterPressConfiguration.ts +36 -36
- package/src/api/pressureFiltration/flowChart.ts +27 -27
- package/src/api/pressureFiltration/pressureFiltrationHome.ts +62 -62
- package/src/api/pressureFiltration/pressureFiltrationRecord.ts +54 -54
- package/src/api/processDrawing.ts +77 -77
- package/src/api/product.ts +109 -109
- package/src/api/productionPlan.ts +230 -230
- package/src/api/productionPlan_old.ts +134 -134
- package/src/api/project.ts +87 -87
- package/src/api/pss.ts +144 -144
- package/src/api/rotation.ts +47 -47
- package/src/api/setting.ts +40 -40
- package/src/api/systemSetting.ts +91 -91
- package/src/api/thingInstance.ts +132 -132
- package/src/api/thingModel.ts +135 -135
- package/src/api/tupu.ts +23 -23
- package/src/api/video.ts +168 -168
- package/src/api/workforceManager.ts +163 -163
- package/src/components/changeTheme/README.md +20 -20
- package/src/components/changeTheme/index.less +25 -25
- package/src/components/changeTheme/index.tsx +57 -57
- package/src/components/headerMenu/README.md +67 -67
- package/src/components/headerMenu/index.tsx +130 -130
- package/src/components/headerMenuItem/index.tsx +50 -50
- package/src/components/headerMenuTitle/index.tsx +32 -32
- package/src/components/index.ts +21 -21
- package/src/components/inputText.tsx +49 -49
- package/src/components/layoutContent/README.md +36 -36
- package/src/components/layoutContent/index.tsx +271 -271
- package/src/components/layoutContent/style.less +82 -80
- package/src/components/layoutNav/README.md +35 -35
- package/src/components/layoutNav/index.tsx +129 -129
- package/src/components/layoutNav/style.less +27 -27
- package/src/components/layoutSidebar/README.md +23 -23
- package/src/components/layoutSidebar/index.tsx +181 -181
- package/src/components/layoutSidebar/style.less +31 -31
- package/src/components/styles/index.less +119 -119
- package/src/components/videoPlayer/README.md +35 -35
- package/src/components/videoPlayer/index.tsx +128 -128
- package/src/components/videoPlayer/util/ZLMRTCClient.js +6839 -6839
- package/src/components/videoPlayer/util/interface.ts +3 -3
- package/src/components/videoPlayer/util/video.ts +250 -250
- package/src/directives/focus.ts +14 -14
- package/src/hooks/global.ts +11 -11
- package/src/hooks/useMenuCode.ts +26 -26
- package/src/hooks/userVModel.ts +19 -19
- package/src/index.ts +31 -31
- package/src/pageComponent/assets/img.d.ts +1 -1
- package/src/pageComponent/assets/styles/alarm/add-warning-configure.less +29 -29
- package/src/pageComponent/assets/styles/alarm/alarmDetail.less +18 -18
- package/src/pageComponent/assets/styles/alarm/check-people.less +52 -52
- package/src/pageComponent/assets/styles/alarm/index.less +6 -6
- package/src/pageComponent/assets/styles/alarm/video-play.less +22 -22
- package/src/pageComponent/assets/styles/alarm/warning-configure.less +7 -7
- package/src/pageComponent/assets/styles/alarm/warning-record.less +17 -17
- package/src/pageComponent/assets/styles/boardScreen/components/Card1Outer.less +76 -76
- package/src/pageComponent/assets/styles/boardScreen/components/Card2Outer.less +139 -139
- package/src/pageComponent/assets/styles/boardScreen/components/PopBox.less +83 -83
- package/src/pageComponent/assets/styles/boardScreen/index.less +57 -57
- package/src/pageComponent/assets/styles/boardScreen/room/index.less +205 -205
- package/src/pageComponent/assets/styles/boardScreen/room/mixin.less +19 -19
- package/src/pageComponent/assets/styles/boardScreen/tupu/index.less +19 -19
- package/src/pageComponent/assets/styles/card/index.less +196 -196
- package/src/pageComponent/assets/styles/constant/antd.less +1 -1
- package/src/pageComponent/assets/styles/data/index.less +58 -58
- package/src/pageComponent/assets/styles/htModal/control.less +20 -20
- package/src/pageComponent/assets/styles/htModal/index.less +8 -8
- package/src/pageComponent/assets/styles/htModal/task.less +24 -24
- package/src/pageComponent/assets/styles/index.less +90 -90
- package/src/pageComponent/assets/styles/login/login.less +190 -190
- package/src/pageComponent/assets/styles/login/loginBox.less +233 -233
- package/src/pageComponent/assets/styles/pressureFiltration/filterPressConfiguration.less +13 -13
- package/src/pageComponent/assets/styles/pressureFiltration/index.less +4 -4
- package/src/pageComponent/assets/styles/pressureFiltration/pressureFiltrationHome.less +112 -112
- package/src/pageComponent/assets/styles/pressureFiltration/pressureFiltrationRecord.less +15 -15
- package/src/pageComponent/assets/styles/pressureFiltration/shiftChange.less +13 -13
- package/src/pageComponent/assets/styles/processFlow/addonAfter.less +2 -2
- package/src/pageComponent/assets/styles/processFlow/colorPicker.less +24 -24
- package/src/pageComponent/assets/styles/processFlow/editor.less +198 -198
- package/src/pageComponent/assets/styles/processFlow/index.less +151 -151
- package/src/pageComponent/assets/styles/processFlow/operationArea.less +58 -58
- package/src/pageComponent/assets/styles/processFlow/preview.less +70 -70
- package/src/pageComponent/assets/styles/processFlow/processDrawingPreviewModal.less +10 -10
- package/src/pageComponent/assets/styles/systemManager/about.less +57 -57
- package/src/pageComponent/assets/styles/systemManager/aboutNew.less +98 -98
- package/src/pageComponent/assets/styles/systemManager/index.less +111 -103
- package/src/pageComponent/assets/styles/systemManager/menu-manager.less +69 -69
- package/src/pageComponent/assets/styles/systemManager/noticeManager/noticeCenter.less +6 -6
- package/src/pageComponent/assets/styles/systemManager/noticeManager/noticeMaintain.less +13 -13
- package/src/pageComponent/assets/styles/systemManager/noticeManager/noticeManager.less +13 -13
- package/src/pageComponent/assets/styles/systemManager/param-manager.less +47 -47
- package/src/pageComponent/assets/styles/systemManager/systemSetting.less +131 -131
- package/src/pageComponent/assets/styles/thingModel/factory.less +125 -125
- package/src/pageComponent/assets/zh-cn.js +134 -134
- package/src/pageComponent/components/CommonTree.tsx +402 -402
- package/src/pageComponent/components/DynamicIcon.tsx +27 -27
- package/src/pageComponent/components/EditPasswordForm.tsx +110 -110
- package/src/pageComponent/components/IconSelect.tsx +50 -50
- package/src/pageComponent/components/ProFormItem.tsx +197 -197
- package/src/pageComponent/components/SearchSelect.tsx +142 -142
- package/src/pageComponent/components/boardScreen/Card1Outer.tsx +29 -29
- package/src/pageComponent/components/boardScreen/Card2Outer.tsx +24 -24
- package/src/pageComponent/components/boardScreen/PopBox.tsx +141 -141
- package/src/pageComponent/components/boardScreen/PowerCut.tsx +104 -104
- package/src/pageComponent/components/boardScreen/PowerSupply.tsx +98 -98
- package/src/pageComponent/components/boardScreen/card2OuterTable.tsx +96 -96
- package/src/pageComponent/components/check-people.tsx +256 -256
- package/src/pageComponent/components/elcRoomHt/index.tsx +115 -115
- package/src/pageComponent/components/htModal/control.tsx +190 -190
- package/src/pageComponent/components/htModal/index.tsx +41 -41
- package/src/pageComponent/components/htModal/task.tsx +42 -42
- package/src/pageComponent/components/loginBox/README.md +21 -21
- package/src/pageComponent/components/loginBox/index.tsx +174 -174
- package/src/pageComponent/components/noticeManager/addChannel.tsx +103 -103
- package/src/pageComponent/components/noticeManager/addNotice.tsx +398 -398
- package/src/pageComponent/components/noticeManager/addTemplate.tsx +116 -116
- package/src/pageComponent/components/noticeManager/noticeGrade.tsx +150 -150
- package/src/pageComponent/components/noticeManager/noticeMaintain.tsx +32 -32
- package/src/pageComponent/components/noticeManager/noticeTemplate.tsx +268 -268
- package/src/pageComponent/components/noticeManager/notificationDetails.tsx +133 -133
- package/src/pageComponent/components/noticeManager/sendDetails.tsx +207 -207
- package/src/pageComponent/components/pressureFiltration/alarmList.tsx +35 -35
- package/src/pageComponent/components/pressureFiltration/configuration.tsx +155 -155
- package/src/pageComponent/components/pressureFiltration/numberOfPlates.tsx +32 -32
- package/src/pageComponent/components/pressureFiltration/shiftChange.tsx +91 -91
- package/src/pageComponent/components/pss-cabinet/README.md +1 -1
- package/src/pageComponent/components/pss-cabinet/cabinet.d.ts +43 -43
- package/src/pageComponent/components/pss-cabinet/cabinetRender.ts +540 -540
- package/src/pageComponent/components/user/userTable.tsx +157 -157
- package/src/pageComponent/components/user/userTree.tsx +266 -266
- package/src/pageComponent/components/video-play.tsx +83 -83
- package/src/pageComponent/config/htconfig.ts +32 -32
- package/src/pageComponent/config/systemConfig.ts +159 -159
- package/src/pageComponent/hooks/cardTable.ts +88 -88
- package/src/pageComponent/hooks/filters.ts +81 -81
- package/src/pageComponent/hooks/global.ts +11 -11
- package/src/pageComponent/hooks/manage-module/useModalForm.ts +44 -44
- package/src/pageComponent/hooks/manage-module/useModalTitle.ts +34 -34
- package/src/pageComponent/hooks/manage-module/useModalVisibleControl.ts +31 -31
- package/src/pageComponent/hooks/screen.ts +43 -43
- package/src/pageComponent/hooks/tabListConfig.ts +60 -60
- package/src/pageComponent/hooks/toPreviewData.ts +38 -38
- package/src/pageComponent/hooks/treeSearch.ts +151 -151
- package/src/pageComponent/hooks/useBus.ts +26 -26
- package/src/pageComponent/hooks/useMouse.ts +26 -26
- package/src/pageComponent/hooks/useProxy.ts +8 -8
- package/src/pageComponent/hooks/useTableList.ts +92 -92
- package/src/pageComponent/hooks/useVModel.ts +17 -17
- package/src/pageComponent/hooks/useWatchOnce.ts +12 -12
- package/src/pageComponent/index.ts +125 -125
- package/src/pageComponent/store/index.ts +86 -86
- package/src/pageComponent/utils/base64.ts +27 -27
- package/src/pageComponent/utils/filter.ts +152 -152
- package/src/pageComponent/utils/format.ts +95 -95
- package/src/pageComponent/utils/index.ts +71 -71
- package/src/pageComponent/utils/is.ts +30 -30
- package/src/pageComponent/utils/transform.ts +27 -27
- package/src/pageComponent/utils/tree.ts +83 -83
- package/src/pageComponent/utils/upload.ts +24 -24
- package/src/pageComponent/utils/validation.ts +26 -26
- package/src/pageComponent/views/alarms/add-warning-configure/form/basic-form.tsx +281 -281
- package/src/pageComponent/views/alarms/add-warning-configure/form/linkage-form.tsx +130 -130
- package/src/pageComponent/views/alarms/add-warning-configure/form/rule-form.tsx +347 -347
- package/src/pageComponent/views/alarms/add-warning-configure/index.tsx +221 -221
- package/src/pageComponent/views/alarms/alarmDetail/index.tsx +250 -250
- package/src/pageComponent/views/alarms/index.tsx +7 -7
- package/src/pageComponent/views/alarms/warning-configure/README.md +53 -53
- package/src/pageComponent/views/alarms/warning-configure/batch-import-dialog.tsx +123 -123
- package/src/pageComponent/views/alarms/warning-configure/configure-table.tsx +186 -186
- package/src/pageComponent/views/alarms/warning-configure/index.tsx +75 -75
- package/src/pageComponent/views/alarms/warning-configure/table-tool.tsx +57 -57
- package/src/pageComponent/views/alarms/warning-record/README.md +49 -49
- package/src/pageComponent/views/alarms/warning-record/index.tsx +80 -80
- package/src/pageComponent/views/alarms/warning-record/query-filter.tsx +129 -129
- package/src/pageComponent/views/alarms/warning-record/record-table.tsx +449 -449
- package/src/pageComponent/views/boardScreen/index.tsx +261 -261
- package/src/pageComponent/views/boardScreen/room.tsx +180 -180
- package/src/pageComponent/views/boardScreen/tupu.tsx +143 -143
- package/src/pageComponent/views/card-center/README.md +32 -32
- package/src/pageComponent/views/card-center/cardWarehouse.tsx +679 -679
- package/src/pageComponent/views/card-center/components/cardDetail.tsx +259 -259
- package/src/pageComponent/views/card-center/components/editPage.tsx +158 -158
- package/src/pageComponent/views/card-center/components/pageDetail.tsx +172 -172
- package/src/pageComponent/views/card-center/components/selectCard.tsx +101 -101
- package/src/pageComponent/views/card-center/less/editPage.less +119 -119
- package/src/pageComponent/views/card-center/less/selectCard.less +23 -23
- package/src/pageComponent/views/card-center/pageConfiguration.tsx +573 -573
- package/src/pageComponent/views/data-center/README.md +32 -32
- package/src/pageComponent/views/data-center/assets/less/dataAnalysis.less +175 -175
- package/src/pageComponent/views/data-center/cardModal.tsx +199 -199
- package/src/pageComponent/views/data-center/cardSubscription.tsx +322 -322
- package/src/pageComponent/views/data-center/components/chart.ts +81 -81
- package/src/pageComponent/views/data-center/components/groupModal.tsx +317 -317
- package/src/pageComponent/views/data-center/components/leftTree.tsx +171 -171
- package/src/pageComponent/views/data-center/components/searchHeader.tsx +173 -173
- package/src/pageComponent/views/data-center/components/table.tsx +51 -51
- package/src/pageComponent/views/data-center/dataAnalysis.tsx +532 -532
- package/src/pageComponent/views/data-center/userModal.tsx +120 -120
- package/src/pageComponent/views/elcRoom/index.tsx +106 -106
- package/src/pageComponent/views/factoryManage/index.tsx +675 -675
- package/src/pageComponent/views/fileManager/assets/less/components.less +50 -50
- package/src/pageComponent/views/fileManager/assets/less/index.less +281 -281
- package/src/pageComponent/views/fileManager/components/CreateFolder.tsx +111 -111
- package/src/pageComponent/views/fileManager/components/MoveToFolder.tsx +212 -212
- package/src/pageComponent/views/fileManager/components/Rename.tsx +115 -115
- package/src/pageComponent/views/fileManager/components/UploadFiles.tsx +148 -148
- package/src/pageComponent/views/fileManager/fileManager.tsx +769 -769
- package/src/pageComponent/views/fileManager/index.tsx +12 -12
- package/src/pageComponent/views/index.tsx +20 -20
- package/src/pageComponent/views/login/README.md +57 -57
- package/src/pageComponent/views/login/box.tsx +300 -300
- package/src/pageComponent/views/login/index.tsx +120 -120
- package/src/pageComponent/views/login/leftImg.tsx +23 -23
- package/src/pageComponent/views/login/top-title.tsx +12 -12
- package/src/pageComponent/views/pressureFiltration/feeding.tsx +69 -69
- package/src/pageComponent/views/pressureFiltration/pressureFiltrationHome.tsx +265 -265
- package/src/pageComponent/views/pressureFiltration/productionShiftReport.tsx +163 -163
- package/src/pageComponent/views/pressureFiltration/record.tsx +262 -262
- package/src/pageComponent/views/pressureFiltration/unloading.tsx +79 -79
- package/src/pageComponent/views/processDrawingConfiguration/README.md +30 -30
- package/src/pageComponent/views/processDrawingConfiguration/components/addonAfter.tsx +20 -20
- package/src/pageComponent/views/processDrawingConfiguration/components/cardItem.tsx +81 -81
- package/src/pageComponent/views/processDrawingConfiguration/components/colorPicker.tsx +59 -59
- package/src/pageComponent/views/processDrawingConfiguration/components/eventForm.tsx +43 -43
- package/src/pageComponent/views/processDrawingConfiguration/components/flowList.tsx +56 -56
- package/src/pageComponent/views/processDrawingConfiguration/components/propertyForm.tsx +94 -94
- package/src/pageComponent/views/processDrawingConfiguration/components/propertyModal.tsx +71 -71
- package/src/pageComponent/views/processDrawingConfiguration/components/state.tsx +139 -139
- package/src/pageComponent/views/processDrawingConfiguration/components/styleForm.tsx +199 -199
- package/src/pageComponent/views/processDrawingConfiguration/editor/components/data.tsx +192 -192
- package/src/pageComponent/views/processDrawingConfiguration/editor/components/textarea.tsx +9 -9
- package/src/pageComponent/views/processDrawingConfiguration/editor/config.ts +310 -310
- package/src/pageComponent/views/processDrawingConfiguration/editor/index.tsx +116 -116
- package/src/pageComponent/views/processDrawingConfiguration/editor/instanceSelector.tsx +190 -190
- package/src/pageComponent/views/processDrawingConfiguration/editor/mainContent.tsx +319 -319
- package/src/pageComponent/views/processDrawingConfiguration/editor/operationArea.tsx +449 -449
- package/src/pageComponent/views/processDrawingConfiguration/editor/previewModal.tsx +121 -121
- package/src/pageComponent/views/processDrawingConfiguration/editor/utils.ts +76 -76
- package/src/pageComponent/views/processDrawingConfiguration/editor-util/index.d.ts +98 -98
- package/src/pageComponent/views/processDrawingConfiguration/editor-util/index.js +2055 -2055
- package/src/pageComponent/views/processDrawingConfiguration/hooks/index.ts +152 -152
- package/src/pageComponent/views/processDrawingConfiguration/hooks/useActiveWidget.ts +34 -34
- package/src/pageComponent/views/processDrawingConfiguration/index.tsx +163 -163
- package/src/pageComponent/views/processDrawingConfiguration/previewModal.tsx +123 -123
- package/src/pageComponent/views/productManager/index.tsx +349 -349
- package/src/pageComponent/views/productManager/update.tsx +448 -448
- package/src/pageComponent/views/productManager/utils/emuns.ts +111 -111
- package/src/pageComponent/views/productManager/utils/formRules.ts +109 -109
- package/src/pageComponent/views/productManager/versionEdit/index.tsx +104 -104
- package/src/pageComponent/views/productManager/versionEdit/param.tsx +236 -236
- package/src/pageComponent/views/productionPlanManager/assets/components/Plan.less +140 -140
- package/src/pageComponent/views/productionPlanManager/assets/dayPCPlan.less +20 -20
- package/src/pageComponent/views/productionPlanManager/assets/daySCPlan.less +14 -14
- package/src/pageComponent/views/productionPlanManager/assets/monthPCPlan.less +22 -22
- package/src/pageComponent/views/productionPlanManager/assets/productionPlan.less +119 -111
- package/src/pageComponent/views/productionPlanManager/assets/yearPCPlan.less +86 -86
- package/src/pageComponent/views/productionPlanManager/components/Plan.tsx +802 -802
- package/src/pageComponent/views/productionPlanManager/components/Plan_back.tsx +353 -353
- package/src/pageComponent/views/productionPlanManager/dayPCPlan.tsx +175 -175
- package/src/pageComponent/views/productionPlanManager/daySCPlan.tsx +156 -156
- package/src/pageComponent/views/productionPlanManager/dayWYPlan.tsx +19 -19
- package/src/pageComponent/views/productionPlanManager/monthPCPlan.tsx +242 -242
- package/src/pageComponent/views/productionPlanManager/productionPlanConfig.tsx +559 -559
- package/src/pageComponent/views/productionPlanManager/productionPlan_old.tsx +434 -434
- package/src/pageComponent/views/productionPlanManager/yearPCPlan.tsx +536 -536
- package/src/pageComponent/views/projectManager/components/commonForm.tsx +207 -207
- package/src/pageComponent/views/projectManager/detail.tsx +463 -463
- package/src/pageComponent/views/projectManager/hooks/useTable.ts +96 -96
- package/src/pageComponent/views/projectManager/hooks/useTreeSearch.ts +231 -231
- package/src/pageComponent/views/projectManager/index.tsx +464 -464
- package/src/pageComponent/views/projectManager/less/index.less +19 -19
- package/src/pageComponent/views/projectManager/utils/emuns.ts +86 -86
- package/src/pageComponent/views/projectManager/utils/formRules.ts +342 -342
- package/src/pageComponent/views/projectManager/utils/index.ts +213 -213
- package/src/pageComponent/views/pss/assets/less/ApproveOpinion.less +18 -18
- package/src/pageComponent/views/pss/assets/less/NewOrder.less +95 -95
- package/src/pageComponent/views/pss/assets/less/PerformOperation.less +42 -42
- package/src/pageComponent/views/pss/assets/less/cus-table.less +330 -330
- package/src/pageComponent/views/pss/assets/less/index.less +476 -475
- package/src/pageComponent/views/pss/components/ApproveOpinion.tsx +171 -171
- package/src/pageComponent/views/pss/components/Info.tsx +506 -506
- package/src/pageComponent/views/pss/components/NewOrder.tsx +618 -618
- package/src/pageComponent/views/pss/components/PerformOperation.tsx +102 -102
- package/src/pageComponent/views/pss/components/table.tsx +840 -840
- package/src/pageComponent/views/pss/index.tsx +18 -18
- package/src/pageComponent/views/pss/list.tsx +65 -65
- package/src/pageComponent/views/pss/utils/index.ts +9 -9
- package/src/pageComponent/views/pssRecord/assets/index.less +258 -255
- package/src/pageComponent/views/pssRecord/components/Info.tsx +223 -223
- package/src/pageComponent/views/pssRecord/index.tsx +334 -334
- package/src/pageComponent/views/systemManager/about/README.md +37 -37
- package/src/pageComponent/views/systemManager/about/index.tsx +176 -176
- package/src/pageComponent/views/systemManager/aboutNew/README.md +26 -26
- package/src/pageComponent/views/systemManager/aboutNew/index.tsx +86 -86
- package/src/pageComponent/views/systemManager/authManager/menuManager/README.md +45 -45
- package/src/pageComponent/views/systemManager/authManager/menuManager/index.tsx +106 -106
- package/src/pageComponent/views/systemManager/authManager/menuManager/menuDetail.tsx +185 -185
- package/src/pageComponent/views/systemManager/authManager/menuManager/menuForm.tsx +284 -284
- package/src/pageComponent/views/systemManager/authManager/menuManager/menuSelectTree.tsx +129 -129
- package/src/pageComponent/views/systemManager/authManager/menuManager/updateMenuDialog.tsx +87 -87
- package/src/pageComponent/views/systemManager/authManager/menuManager/uploadJSONDialog.tsx +79 -79
- package/src/pageComponent/views/systemManager/authManager/roleManager/README.md +43 -43
- package/src/pageComponent/views/systemManager/authManager/roleManager/index.tsx +272 -272
- package/src/pageComponent/views/systemManager/authManager/roleManager/updateRoleDialog.tsx +192 -192
- package/src/pageComponent/views/systemManager/authManager/userManager/README.md +49 -49
- package/src/pageComponent/views/systemManager/authManager/userManager/index.tsx +308 -308
- package/src/pageComponent/views/systemManager/authManager/userManager/updateUserDialog.tsx +332 -332
- package/src/pageComponent/views/systemManager/authManager/userManager/userProfileDialog.tsx +107 -107
- package/src/pageComponent/views/systemManager/logManager/README.md +37 -37
- package/src/pageComponent/views/systemManager/noticeManager/noticeCenter.tsx +339 -339
- package/src/pageComponent/views/systemManager/noticeManager/noticeManager.tsx +177 -177
- package/src/pageComponent/views/systemManager/orgManager/depManager/README.md +60 -60
- package/src/pageComponent/views/systemManager/orgManager/depManager/batchImportModal.tsx +129 -129
- package/src/pageComponent/views/systemManager/orgManager/depManager/depTree.tsx +129 -129
- package/src/pageComponent/views/systemManager/orgManager/depManager/employeeTable.tsx +264 -264
- package/src/pageComponent/views/systemManager/orgManager/depManager/updateDepDialog.tsx +246 -246
- package/src/pageComponent/views/systemManager/orgManager/depManager/updateEmployeeDialog.tsx +327 -327
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/README.md +60 -60
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/depTree.tsx +188 -188
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/employeeTable.tsx +253 -253
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/updateDepDialog.tsx +362 -362
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/updateEmployeeDialog.tsx +377 -377
- package/src/pageComponent/views/systemManager/orgManager/empManager.tsx +7 -7
- package/src/pageComponent/views/systemManager/orgManager/postManager/README.md +43 -43
- package/src/pageComponent/views/systemManager/orgManager/postManager/index.tsx +248 -248
- package/src/pageComponent/views/systemManager/orgManager/postManager/updatePostDialog.tsx +184 -184
- package/src/pageComponent/views/systemManager/orgManager/teamManager/README.md +47 -47
- package/src/pageComponent/views/systemManager/orgManager/teamManager/index.tsx +256 -256
- package/src/pageComponent/views/systemManager/orgManager/teamManager/updateTeamDialog.tsx +287 -287
- package/src/pageComponent/views/systemManager/paramManager/README.md +37 -37
- package/src/pageComponent/views/systemManager/paramManager/collapseContainer.tsx +54 -54
- package/src/pageComponent/views/systemManager/paramManager/dynamicForm.tsx +138 -138
- package/src/pageComponent/views/systemManager/paramManager/index.tsx +127 -127
- package/src/pageComponent/views/systemManager/paramManager/tabItem.tsx +175 -175
- package/src/pageComponent/views/systemManager/personalSetting/README.md +37 -37
- package/src/pageComponent/views/systemManager/systemSetting/README.md +39 -39
- package/src/pageComponent/views/systemManager/systemSetting/data.ts +133 -133
- package/src/pageComponent/views/systemManager/systemSetting/index.tsx +575 -575
- package/src/pageComponent/views/thingInstance/component/addThing.tsx +737 -732
- package/src/pageComponent/views/thingInstance/component/baseItem.tsx +7 -7
- package/src/pageComponent/views/thingInstance/component/dynamicForm.tsx +265 -265
- package/src/pageComponent/views/thingInstance/component/editRelation.tsx +415 -415
- package/src/pageComponent/views/thingInstance/component/editThing.tsx +985 -978
- package/src/pageComponent/views/thingInstance/component/logicForm.tsx +166 -166
- package/src/pageComponent/views/thingInstance/component/thingDetail.tsx +445 -437
- package/src/pageComponent/views/thingInstance/data.ts +63 -63
- package/src/pageComponent/views/thingInstance/hooks/filters.ts +110 -110
- package/src/pageComponent/views/thingInstance/hooks/useTableList.ts +92 -92
- package/src/pageComponent/views/thingInstance/hooks/useTreeSearch.ts +93 -93
- package/src/pageComponent/views/thingInstance/index.tsx +1174 -1169
- package/src/pageComponent/views/thingInstance/less/editThing.less +150 -150
- package/src/pageComponent/views/thingInstance/less/thingInstance.less +142 -142
- package/src/pageComponent/views/thingInstance/modal.tsx +121 -121
- package/src/pageComponent/views/thingModel/component/detail.tsx +286 -286
- package/src/pageComponent/views/thingModel/component/tabAttr/index.tsx +127 -127
- package/src/pageComponent/views/thingModel/component/tabAttr/update.tsx +408 -408
- package/src/pageComponent/views/thingModel/component/tabRelation/index.tsx +203 -203
- package/src/pageComponent/views/thingModel/component/tabRelation/update.tsx +278 -278
- package/src/pageComponent/views/thingModel/component/update.tsx +216 -216
- package/src/pageComponent/views/thingModel/config.ts +192 -192
- package/src/pageComponent/views/thingModel/hooks/useTableList.ts +91 -91
- package/src/pageComponent/views/thingModel/hooks/useTreeSearch.ts +93 -93
- package/src/pageComponent/views/thingModel/index.tsx +363 -363
- package/src/pageComponent/views/thingModel/less/thingModel.less +105 -105
- package/src/pageComponent/views/thingModel/less/thingModelDetail.less +142 -142
- package/src/pageComponent/views/video/README.md +81 -81
- package/src/pageComponent/views/video/assets/iconfont/demo.css +539 -539
- package/src/pageComponent/views/video/assets/iconfont/demo_index.html +487 -487
- package/src/pageComponent/views/video/assets/iconfont/iconfont.css +67 -67
- package/src/pageComponent/views/video/assets/iconfont/iconfont.json +100 -100
- package/src/pageComponent/views/video/assets/styles/const.less +1 -1
- package/src/pageComponent/views/video/assets/styles/constant/antd.less +1 -1
- package/src/pageComponent/views/video/assets/styles/home.less +96 -96
- package/src/pageComponent/views/video/assets/styles/index.less +27 -27
- package/src/pageComponent/views/video/assets/styles/lightColour.less +108 -108
- package/src/pageComponent/views/video/assets/styles/login.less +56 -56
- package/src/pageComponent/views/video/assets/styles/loginBox.less +51 -51
- package/src/pageComponent/views/video/assets/styles/play.less +66 -66
- package/src/pageComponent/views/video/assets/styles/reset.less +17 -17
- package/src/pageComponent/views/video/assets/styles/video/event.less +121 -121
- package/src/pageComponent/views/video/assets/styles/video/group.less +179 -179
- package/src/pageComponent/views/video/assets/styles/video/linkage.less +79 -79
- package/src/pageComponent/views/video/assets/styles/video/photo.less +119 -115
- package/src/pageComponent/views/video/assets/styles/video/preview.less +503 -483
- package/src/pageComponent/views/video/assets/styles/video/replay.less +84 -84
- package/src/pageComponent/views/video/assets/styles/video/rotation.less +155 -144
- package/src/pageComponent/views/video/assets/styles/video/setting.less +48 -48
- package/src/pageComponent/views/video/assets/zh-cn.js +133 -133
- package/src/pageComponent/views/video/components/checkCamera.tsx +130 -130
- package/src/pageComponent/views/video/components/transfer.tsx +474 -474
- package/src/pageComponent/views/video/components/videoPlayer/index.tsx +93 -93
- package/src/pageComponent/views/video/components/videoPlayer/util/ZLMRTCClient.js +6839 -6839
- package/src/pageComponent/views/video/components/videoPlayer/util/axios.ts +53 -53
- package/src/pageComponent/views/video/components/videoPlayer/util/byUuid.ts +77 -77
- package/src/pageComponent/views/video/components/videoPlayer/util/video.ts +252 -252
- package/src/pageComponent/views/video/event/algorithmType.tsx +257 -257
- package/src/pageComponent/views/video/event/eventConfig.tsx +399 -399
- package/src/pageComponent/views/video/event/eventType.tsx +304 -304
- package/src/pageComponent/views/video/event/events.tsx +562 -562
- package/src/pageComponent/views/video/linkage/linkage.tsx +220 -220
- package/src/pageComponent/views/video/linkage/updateMode.tsx +179 -179
- package/src/pageComponent/views/video/play.tsx +107 -107
- package/src/pageComponent/views/video/preview/components/alarmLinkageModal.tsx +62 -62
- package/src/pageComponent/views/video/preview/components/followItem.tsx +198 -194
- package/src/pageComponent/views/video/preview/components/fullScreen.tsx +63 -63
- package/src/pageComponent/views/video/preview/components/treeItem.tsx +333 -333
- package/src/pageComponent/views/video/preview/preview.tsx +816 -816
- package/src/pageComponent/views/video/rotation/PlayVideos.tsx +178 -178
- package/src/pageComponent/views/video/rotation/rotation.tsx +562 -555
- package/src/pageComponent/views/video/sbgl/components/CheckDialog.tsx +128 -128
- package/src/pageComponent/views/video/sbgl/components/addGrouping.tsx +71 -71
- package/src/pageComponent/views/video/sbgl/group.tsx +532 -532
- package/src/pageComponent/views/video/sbgl/index.tsx +8 -8
- package/src/pageComponent/views/video/sbgl/nvr.tsx +275 -275
- package/src/pageComponent/views/video/sbgl/photo.tsx +696 -696
- package/src/pageComponent/views/video/setting/cameraPermission.tsx +123 -123
- package/src/pageComponent/views/video/setting/index.tsx +9 -9
- package/src/pageComponent/views/video/setting/system.tsx +146 -146
- package/src/pageComponent/views/video/utils/ZLMRTCClient.js +6839 -6839
- package/src/pageComponent/views/video/utils/index.ts +22 -22
- package/src/pageComponent/views/video/utils/validation.ts +2 -2
- package/src/pageComponent/views/video/utils/video.ts +254 -254
- package/src/pageComponent/views/video/utils/webSocket.ts +115 -115
- package/src/pageComponent/views/workforceManager/workforcePlan/assets/workforcePlan.less +118 -113
- package/src/pageComponent/views/workforceManager/workforcePlan/dayContent.tsx +171 -171
- package/src/pageComponent/views/workforceManager/workforcePlan/index.tsx +241 -241
- package/src/pageComponent/views/workforceManager/workforcePlan/mainTable.tsx +333 -333
- package/src/pageComponent/views/workforceManager/workforceRule/assets/classManagerAndWorkforceRuleComp.less +23 -0
- package/src/pageComponent/views/workforceManager/workforceRule/assets/index.less +10 -0
- package/src/pageComponent/views/workforceManager/workforceRule/assets/rule.less +34 -34
- package/src/pageComponent/views/workforceManager/workforceRule/components/classManager.tsx +380 -380
- package/src/pageComponent/views/workforceManager/workforceRule/components/rule.tsx +706 -706
- package/src/pageComponent/views/workforceManager/workforceRule/components/{workforceRule.tsx → workforceRuleComp.tsx} +236 -234
- package/src/pageComponent/views/workforceManager/workforceRule/index.tsx +33 -30
- package/src/styles/index.less +1 -1
- package/src/tpInit/utils.ts +1 -1
- package/src/types/gl.d.ts +25 -25
- package/src/types/global.d.ts +41 -41
- package/src/types/ht/ht-widget.d.ts +11327 -11327
- package/src/types/ht/ht.d.ts +11410 -11410
- package/src/types/ht/index.d.ts +4 -4
- package/src/types/shims-vue.d.ts +1 -1
- package/src/utils/README.md +3 -3
- package/src/utils/className.ts +16 -16
- package/src/utils/config.ts +5 -5
- package/src/utils/getSlots.ts +18 -18
- package/src/utils/index.ts +8 -8
- package/src/utils/installComponent.ts +12 -12
- package/src/utils/publicUtil/README.md +41 -41
- package/src/utils/publicUtil/changeTheme.ts +32 -32
- package/src/utils/publicUtil/index.ts +25 -25
- package/src/utils/publicUtil/login/index.ts +108 -108
- package/src/utils/publicUtil/message.tsx +14 -14
- package/src/utils/publicUtil/systemConfig.ts +6 -6
- package/src/utils/route.ts +123 -123
- package/tsconfig.json +27 -27
- package/src/pageComponent/views/workforceManager/workforceRule/assets/classManager.less +0 -14
|
@@ -1,978 +1,985 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineComponent,
|
|
3
|
-
onMounted,
|
|
4
|
-
reactive,
|
|
5
|
-
ref,
|
|
6
|
-
watch,
|
|
7
|
-
PropType,
|
|
8
|
-
} from "vue";
|
|
9
|
-
import { message } from "ant-design-vue";
|
|
10
|
-
import * as thingApis from "@/api/thingInstance";
|
|
11
|
-
import {
|
|
12
|
-
CaretUpOutlined,
|
|
13
|
-
CaretRightOutlined,
|
|
14
|
-
UploadOutlined,
|
|
15
|
-
DeleteOutlined,
|
|
16
|
-
} from "@ant-design/icons-vue";
|
|
17
|
-
import { filter } from "@/pageComponent/hooks/filters";
|
|
18
|
-
import dynamicFormDom from "./dynamicForm";
|
|
19
|
-
import logicFormDom from "./logicForm";
|
|
20
|
-
import editRelation from "./editRelation";
|
|
21
|
-
import "../less/editThing.less";
|
|
22
|
-
import { SHOW_ALL } from "ant-design-vue/lib/vc-tree-select/utils/strategyUtil";
|
|
23
|
-
import { cloneDeep } from "lodash";
|
|
24
|
-
import { customRequest } from "@/pageComponent/utils/upload";
|
|
25
|
-
|
|
26
|
-
const dataTypeList = [
|
|
27
|
-
{ id: 201, name: "BOOL" },
|
|
28
|
-
{ id: 202, name: "CHAR" },
|
|
29
|
-
{ id: 203, name: "I_8" },
|
|
30
|
-
{ id: 204, name: "I_16" },
|
|
31
|
-
{ id: 205, name: "I_32" },
|
|
32
|
-
{ id: 206, name: "I_64" },
|
|
33
|
-
{ id: 207, name: "F_32" },
|
|
34
|
-
{ id: 208, name: "F_64" },
|
|
35
|
-
{ id: 209, name: "STRING" },
|
|
36
|
-
{ id: 210, name: "U_8" },
|
|
37
|
-
{ id: 211, name: "U_16" },
|
|
38
|
-
{ id: 212, name: "U_32" },
|
|
39
|
-
{ id: 240, name: "DWORD" },
|
|
40
|
-
{ id: 241, name: "BIT_BOOL" },
|
|
41
|
-
];
|
|
42
|
-
const outputTypeList = [
|
|
43
|
-
{ id: 351, name: "BOO" },
|
|
44
|
-
{ id: 352, name: "INT" },
|
|
45
|
-
{ id: 353, name: "FLT" },
|
|
46
|
-
{ id: 354, name: "STR" },
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
export default defineComponent({
|
|
50
|
-
components: { editRelation, logicFormDom, dynamicFormDom },
|
|
51
|
-
props: {
|
|
52
|
-
data: Object,
|
|
53
|
-
triggerModeList: {
|
|
54
|
-
type: Array as PropType<Array<{ [key: string]: string }>>,
|
|
55
|
-
default: [],
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//
|
|
67
|
-
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
|
|
79
|
-
//
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
//
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
{
|
|
107
|
-
title: "
|
|
108
|
-
dataIndex: "
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
title: "
|
|
112
|
-
dataIndex: "
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
title: "
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
title: "
|
|
135
|
-
key: "
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
title: "",
|
|
139
|
-
key: "
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
{
|
|
151
|
-
title: "
|
|
152
|
-
dataIndex: "
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
title: "
|
|
156
|
-
dataIndex: "
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
title: "
|
|
160
|
-
dataIndex: "
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
title: "",
|
|
164
|
-
dataIndex: "
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
value.staticMap.map[ele.code] || ele.defaultValue
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
ele.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
element.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
element.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
for (const key in selectInfo) {
|
|
373
|
-
arr.push({ key: key
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
//
|
|
392
|
-
//
|
|
393
|
-
//
|
|
394
|
-
//
|
|
395
|
-
//
|
|
396
|
-
//
|
|
397
|
-
//
|
|
398
|
-
//
|
|
399
|
-
//
|
|
400
|
-
//
|
|
401
|
-
//
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
//
|
|
435
|
-
//
|
|
436
|
-
//
|
|
437
|
-
//
|
|
438
|
-
//
|
|
439
|
-
//
|
|
440
|
-
//
|
|
441
|
-
// }
|
|
442
|
-
//
|
|
443
|
-
//
|
|
444
|
-
// }
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
onClick={() => {
|
|
469
|
-
|
|
470
|
-
}}
|
|
471
|
-
>
|
|
472
|
-
|
|
473
|
-
</a-button>
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
{ele.
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
>
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
>
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
logicIndex.value =
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
);
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
>
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
>
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
>
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
defineComponent,
|
|
3
|
+
onMounted,
|
|
4
|
+
reactive,
|
|
5
|
+
ref,
|
|
6
|
+
watch,
|
|
7
|
+
PropType,
|
|
8
|
+
} from "vue";
|
|
9
|
+
import { message } from "ant-design-vue";
|
|
10
|
+
import * as thingApis from "@/api/thingInstance";
|
|
11
|
+
import {
|
|
12
|
+
CaretUpOutlined,
|
|
13
|
+
CaretRightOutlined,
|
|
14
|
+
UploadOutlined,
|
|
15
|
+
DeleteOutlined,
|
|
16
|
+
} from "@ant-design/icons-vue";
|
|
17
|
+
import { filter } from "@/pageComponent/hooks/filters";
|
|
18
|
+
import dynamicFormDom from "./dynamicForm";
|
|
19
|
+
import logicFormDom from "./logicForm";
|
|
20
|
+
import editRelation from "./editRelation";
|
|
21
|
+
import "../less/editThing.less";
|
|
22
|
+
import { SHOW_ALL } from "ant-design-vue/lib/vc-tree-select/utils/strategyUtil";
|
|
23
|
+
import { cloneDeep } from "lodash";
|
|
24
|
+
import { customRequest } from "@/pageComponent/utils/upload";
|
|
25
|
+
|
|
26
|
+
const dataTypeList = [
|
|
27
|
+
{ id: 201, name: "BOOL" },
|
|
28
|
+
{ id: 202, name: "CHAR" },
|
|
29
|
+
{ id: 203, name: "I_8" },
|
|
30
|
+
{ id: 204, name: "I_16" },
|
|
31
|
+
{ id: 205, name: "I_32" },
|
|
32
|
+
{ id: 206, name: "I_64" },
|
|
33
|
+
{ id: 207, name: "F_32" },
|
|
34
|
+
{ id: 208, name: "F_64" },
|
|
35
|
+
{ id: 209, name: "STRING" },
|
|
36
|
+
{ id: 210, name: "U_8" },
|
|
37
|
+
{ id: 211, name: "U_16" },
|
|
38
|
+
{ id: 212, name: "U_32" },
|
|
39
|
+
{ id: 240, name: "DWORD" },
|
|
40
|
+
{ id: 241, name: "BIT_BOOL" },
|
|
41
|
+
];
|
|
42
|
+
const outputTypeList = [
|
|
43
|
+
{ id: 351, name: "BOO" },
|
|
44
|
+
{ id: 352, name: "INT" },
|
|
45
|
+
{ id: 353, name: "FLT" },
|
|
46
|
+
{ id: 354, name: "STR" },
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
export default defineComponent({
|
|
50
|
+
components: { editRelation, logicFormDom, dynamicFormDom },
|
|
51
|
+
props: {
|
|
52
|
+
data: Object,
|
|
53
|
+
triggerModeList: {
|
|
54
|
+
type: Array as PropType<Array<{ [key: string]: string }>>,
|
|
55
|
+
default: [],
|
|
56
|
+
},
|
|
57
|
+
hideBackBtn: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
setup(_props, _context) {
|
|
63
|
+
const headers = {
|
|
64
|
+
"Content-Type": "multipart/form-data",
|
|
65
|
+
};
|
|
66
|
+
// 动态高级配置表单
|
|
67
|
+
const dynamicForm = ref<any>();
|
|
68
|
+
// const dynamicForm = ref<{
|
|
69
|
+
// triggerMode: string;
|
|
70
|
+
// ruleMode: string;
|
|
71
|
+
// rule: string | null;
|
|
72
|
+
// timeInterval: string | null;
|
|
73
|
+
// listenProperty: string | null;
|
|
74
|
+
// }>({
|
|
75
|
+
// triggerMode: "",
|
|
76
|
+
// ruleMode: "",
|
|
77
|
+
// rule: null,
|
|
78
|
+
// timeInterval: null,
|
|
79
|
+
// listenProperty: null,
|
|
80
|
+
// });
|
|
81
|
+
// 动态列表点击索引
|
|
82
|
+
const dynamicIndex = ref<string | null>(null);
|
|
83
|
+
// 逻辑高级配置表单
|
|
84
|
+
const logicForm = ref<{
|
|
85
|
+
triggerMode: string;
|
|
86
|
+
ruleMode: string;
|
|
87
|
+
rule: string | null;
|
|
88
|
+
timeInterval: string | null;
|
|
89
|
+
listenProperty: string | null;
|
|
90
|
+
}>({
|
|
91
|
+
triggerMode: "",
|
|
92
|
+
ruleMode: "",
|
|
93
|
+
rule: null,
|
|
94
|
+
timeInterval: null,
|
|
95
|
+
listenProperty: null,
|
|
96
|
+
});
|
|
97
|
+
// 逻辑列表点击索引
|
|
98
|
+
const logicIndex = ref<string | null>(null);
|
|
99
|
+
const modalType = ref("");
|
|
100
|
+
// 基础属性
|
|
101
|
+
const basicForm = ref<any[]>([]);
|
|
102
|
+
// 全部属性
|
|
103
|
+
const colArr = ref([]);
|
|
104
|
+
// 动态表格
|
|
105
|
+
const dynamicColumns = ref([
|
|
106
|
+
{
|
|
107
|
+
title: "id",
|
|
108
|
+
dataIndex: "id",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: "属性名称",
|
|
112
|
+
dataIndex: "displayLabel",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: "属性编码",
|
|
116
|
+
dataIndex: "thingPropertyCode",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: "pre_point_code",
|
|
120
|
+
key: "prePointCode",
|
|
121
|
+
width: 150,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: "PDU",
|
|
125
|
+
key: "pduCode",
|
|
126
|
+
width: 150,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: "地址",
|
|
130
|
+
key: "address",
|
|
131
|
+
width: 150,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
title: "输入数据类型",
|
|
135
|
+
key: "dataTypeId",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
title: "输出数据类型",
|
|
139
|
+
key: "outputTypeId",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
title: "",
|
|
143
|
+
key: "action",
|
|
144
|
+
},
|
|
145
|
+
]);
|
|
146
|
+
const dynamicTableList = ref<any>([]);
|
|
147
|
+
const pduInfoList = ref<any>([]);
|
|
148
|
+
// 逻辑表格
|
|
149
|
+
const LoginColumns = ref([
|
|
150
|
+
{
|
|
151
|
+
title: "属性名称",
|
|
152
|
+
dataIndex: "displayLabel",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: "属性编码",
|
|
156
|
+
dataIndex: "thingPropertyCode",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
title: "触发公式",
|
|
160
|
+
dataIndex: "triggerMode",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: "规则公式",
|
|
164
|
+
dataIndex: "rule",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: "",
|
|
168
|
+
dataIndex: "action",
|
|
169
|
+
width: 50,
|
|
170
|
+
},
|
|
171
|
+
]);
|
|
172
|
+
const LoginTableList = ref<any>([]);
|
|
173
|
+
const visible = ref(false);
|
|
174
|
+
// 报警
|
|
175
|
+
const formState = ref({
|
|
176
|
+
equipmentFailure: "",
|
|
177
|
+
maxDensity: "",
|
|
178
|
+
});
|
|
179
|
+
const alarmList = ref<any[]>([]);
|
|
180
|
+
// 动作表格
|
|
181
|
+
const actionColumns = ref([]);
|
|
182
|
+
const actionCTableList = ref([]);
|
|
183
|
+
const form = ref();
|
|
184
|
+
const formData = reactive({
|
|
185
|
+
name: null,
|
|
186
|
+
code: null,
|
|
187
|
+
fileUrl: null,
|
|
188
|
+
});
|
|
189
|
+
// form输入类型过滤
|
|
190
|
+
const typeFilter = (val) => {
|
|
191
|
+
switch (val) {
|
|
192
|
+
case "string":
|
|
193
|
+
return "text";
|
|
194
|
+
break;
|
|
195
|
+
case "long":
|
|
196
|
+
return "number";
|
|
197
|
+
break;
|
|
198
|
+
case "double":
|
|
199
|
+
return "number";
|
|
200
|
+
break;
|
|
201
|
+
case "boolean":
|
|
202
|
+
return "boolean";
|
|
203
|
+
break;
|
|
204
|
+
default:
|
|
205
|
+
return "";
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
watch(
|
|
211
|
+
() => _props.data,
|
|
212
|
+
(value: any) => {
|
|
213
|
+
colArr.value = JSON.parse(
|
|
214
|
+
JSON.stringify(value.thingInst?.thing?.thingPropertyList || [])
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
basicForm.value = [];
|
|
218
|
+
const newList = [
|
|
219
|
+
{
|
|
220
|
+
displayLabel: "实例名称",
|
|
221
|
+
code: "name",
|
|
222
|
+
display: true,
|
|
223
|
+
value: value.thingInst?.name,
|
|
224
|
+
displayType: "text",
|
|
225
|
+
rules: [{ required: true, message: "请输入名称" }],
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
displayLabel: "实例编码",
|
|
229
|
+
code: "code",
|
|
230
|
+
display: true,
|
|
231
|
+
value: value.thingInst?.code,
|
|
232
|
+
displayType: "text",
|
|
233
|
+
rules: [{ required: true, message: "请输入编码" }],
|
|
234
|
+
readonly: true,
|
|
235
|
+
},
|
|
236
|
+
];
|
|
237
|
+
formData.name = value.thingInst?.name;
|
|
238
|
+
formData.code = value.thingInst?.code;
|
|
239
|
+
formData.fileUrl = value.thingInst?.photo;
|
|
240
|
+
const colList: any = [];
|
|
241
|
+
colList.push(
|
|
242
|
+
...colArr.value.filter((ele: any) => {
|
|
243
|
+
ele.rules = [
|
|
244
|
+
{
|
|
245
|
+
required: ele.required,
|
|
246
|
+
message: `${ele.displayType === "text" ? "请输入" : "请选择"}${
|
|
247
|
+
ele.displayLabel
|
|
248
|
+
}`,
|
|
249
|
+
},
|
|
250
|
+
];
|
|
251
|
+
|
|
252
|
+
if (ele.columnType === "long" && ele.code !== "ID") {
|
|
253
|
+
formData[ele.code] = Number(
|
|
254
|
+
value.staticMap.map[ele.code] || ele.defaultValue
|
|
255
|
+
);
|
|
256
|
+
ele.value = Number(
|
|
257
|
+
value.staticMap.map[ele.code] || ele.defaultValue
|
|
258
|
+
);
|
|
259
|
+
} else {
|
|
260
|
+
formData[ele.code] =
|
|
261
|
+
value.staticMap.map[ele.code] || ele.defaultValue;
|
|
262
|
+
ele.value = value.staticMap.map[ele.code] || ele.defaultValue;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
ele.propertyType === "property" &&
|
|
267
|
+
ele.code !== "CODE" &&
|
|
268
|
+
ele.code !== "NAME"
|
|
269
|
+
);
|
|
270
|
+
})
|
|
271
|
+
);
|
|
272
|
+
colList.sort((a, b) => {
|
|
273
|
+
return a.sort - b.sort;
|
|
274
|
+
});
|
|
275
|
+
const list = colList.filter((n) => n.sort === null);
|
|
276
|
+
basicForm.value = colList.filter((n) => n.sort !== null);
|
|
277
|
+
basicForm.value = [...newList, ...basicForm.value, ...list];
|
|
278
|
+
|
|
279
|
+
dynamicTableList.value = colArr.value.filter(
|
|
280
|
+
(ele: any) => ele.propertyType === "metric" && ele.display
|
|
281
|
+
);
|
|
282
|
+
dynamicTableList.value = dynamicTableList.value.map((item) => ({
|
|
283
|
+
...item,
|
|
284
|
+
...value.dynamicProperties.find(
|
|
285
|
+
(n) => n.thingPropertyCode === item.code
|
|
286
|
+
),
|
|
287
|
+
}));
|
|
288
|
+
|
|
289
|
+
pduInfoList.value = value.pduInfoList;
|
|
290
|
+
|
|
291
|
+
alarmList.value = colArr.value.filter((ele: any) => {
|
|
292
|
+
return ele.propertyType === "alarm";
|
|
293
|
+
});
|
|
294
|
+
LoginTableList.value = colArr.value.filter((ele: any) => {
|
|
295
|
+
return ele.propertyType === "logic" && ele.display;
|
|
296
|
+
});
|
|
297
|
+
LoginTableList.value = LoginTableList.value.map((item) => ({
|
|
298
|
+
...item,
|
|
299
|
+
...value.logicProperties.find(
|
|
300
|
+
(n) => n.thingPropertyCode === item.code
|
|
301
|
+
),
|
|
302
|
+
}));
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
immediate: true,
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
const save = async () => {
|
|
310
|
+
const valid = await form.value.validateFields();
|
|
311
|
+
const param: any = _props.data;
|
|
312
|
+
param.thingInst.name = basicForm.value[0].value;
|
|
313
|
+
param.thingInst.code = basicForm.value[1].value;
|
|
314
|
+
param.thingInst.photo = formData.fileUrl;
|
|
315
|
+
basicForm.value.forEach((element: any, index: number) => {
|
|
316
|
+
if (index !== 0 && index !== 1) {
|
|
317
|
+
if (
|
|
318
|
+
element.value &&
|
|
319
|
+
element.code !== "ID" &&
|
|
320
|
+
element.columnType === "long" &&
|
|
321
|
+
typeof element.value === "number" &&
|
|
322
|
+
`${element.value}`.indexOf(".") > -1
|
|
323
|
+
) {
|
|
324
|
+
message.error(`${element.name}应为整数`);
|
|
325
|
+
return false;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
param.staticMap.map[element.code] = element.value;
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
param.dynamicProperties.forEach((element, idx: number) => {
|
|
332
|
+
const dy: any = dynamicTableList.value.find((ele: any) => {
|
|
333
|
+
return element.thingPropertyCode === ele.thingPropertyCode;
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
if (dy) {
|
|
337
|
+
param.dynamicProperties[idx] = dy;
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
param.logicProperties.forEach((element) => {
|
|
342
|
+
const dy: any = LoginTableList.value.find((ele: any) => {
|
|
343
|
+
return element.thingPropertyCode === ele.thingPropertyCode;
|
|
344
|
+
});
|
|
345
|
+
if (dy) {
|
|
346
|
+
element.triggerMode = dy.triggerMode;
|
|
347
|
+
element.ruleMode = dy.ruleMode;
|
|
348
|
+
element.rule = dy.rule;
|
|
349
|
+
element.timeInterval = dy.timeInterval;
|
|
350
|
+
element.listenProperty = dy.listenProperty;
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
const res: any = await thingApis.editThing(param);
|
|
354
|
+
if (res.code === "M0000") {
|
|
355
|
+
message.success("保存成功");
|
|
356
|
+
_context.emit("toDetail", _props.data!.staticMap.map);
|
|
357
|
+
} else {
|
|
358
|
+
message.error("服务异常");
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
const folds = reactive({
|
|
362
|
+
basic: false,
|
|
363
|
+
dynamic: false,
|
|
364
|
+
logic: false,
|
|
365
|
+
action: false,
|
|
366
|
+
alarm: false,
|
|
367
|
+
});
|
|
368
|
+
const renderSelect = (ele: any) => {
|
|
369
|
+
const selectInfo = JSON.parse(ele.listInfo || "[]");
|
|
370
|
+
const arr: any[] = [];
|
|
371
|
+
if (ele.columnType === "long") {
|
|
372
|
+
for (const key in selectInfo) {
|
|
373
|
+
arr.push({ key: Number(key), value: selectInfo[key] });
|
|
374
|
+
}
|
|
375
|
+
} else if (ele.columnType === "string") {
|
|
376
|
+
for (const key in selectInfo) {
|
|
377
|
+
arr.push({ key: key.toString(), value: selectInfo[key] });
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return (
|
|
381
|
+
<a-select v-model={[ele.value, "value"]} style={{ width: "100%" }}>
|
|
382
|
+
{arr.map((info: any) => {
|
|
383
|
+
return (
|
|
384
|
+
<a-select-option value={info.key}>{info.value}</a-select-option>
|
|
385
|
+
);
|
|
386
|
+
})}
|
|
387
|
+
</a-select>
|
|
388
|
+
);
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
// const customRequest = (options: any) => {
|
|
392
|
+
// const { file, onSuccess, onError } = options;
|
|
393
|
+
// const fileData = new FormData();
|
|
394
|
+
// fileData.append("file", file as any);
|
|
395
|
+
// thingApis.uploadCommon(fileData, headers).then((res: any) => {
|
|
396
|
+
// if (res.code === "M0000") {
|
|
397
|
+
// formData.fileUrl = res.data;
|
|
398
|
+
// message.success("上传成功");
|
|
399
|
+
// onSuccess("response", file);
|
|
400
|
+
// } else {
|
|
401
|
+
// message.error("上传失败");
|
|
402
|
+
// onError("error", file);
|
|
403
|
+
// }
|
|
404
|
+
// });
|
|
405
|
+
// };
|
|
406
|
+
const beforeUpload = (file) => {
|
|
407
|
+
let size = file.size / 1024 / 1024;
|
|
408
|
+
if (size > 2) {
|
|
409
|
+
message.error("文件不能大于2M");
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
let timeout: any;
|
|
415
|
+
const prePointList = ref<any>([]);
|
|
416
|
+
|
|
417
|
+
const searchHandle = (val: string, callBack: any) => {
|
|
418
|
+
if (val) {
|
|
419
|
+
if (timeout) {
|
|
420
|
+
clearTimeout(timeout);
|
|
421
|
+
timeout = null;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
timeout = setTimeout(async () => {
|
|
425
|
+
prePointList.value = [];
|
|
426
|
+
const { data } = await thingApis.prePointCodeByKeywords(val);
|
|
427
|
+
|
|
428
|
+
// 直接修改下拉的参数值(第一种方式)
|
|
429
|
+
callBack();
|
|
430
|
+
if (data.length > 0) {
|
|
431
|
+
prePointList.value = data;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// 在下拉中显示输入的选项(第二种方式)
|
|
435
|
+
// if (data.length > 0) {
|
|
436
|
+
// let haveSame = false;
|
|
437
|
+
// data.forEach((obj: any) => {
|
|
438
|
+
// if (obj.code === val) {
|
|
439
|
+
// haveSame = true;
|
|
440
|
+
// }
|
|
441
|
+
// });
|
|
442
|
+
// prePointList.value = data;
|
|
443
|
+
// if (!haveSame) {
|
|
444
|
+
// prePointList.value = [{ code: val }, ...prePointList.value];
|
|
445
|
+
// }
|
|
446
|
+
// } else {
|
|
447
|
+
// prePointList.value = [{ code: val }];
|
|
448
|
+
// }
|
|
449
|
+
}, 300);
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
return () => (
|
|
454
|
+
<div class="editThing">
|
|
455
|
+
<div class="header flex">
|
|
456
|
+
{!_props.hideBackBtn && (
|
|
457
|
+
<a-page-header
|
|
458
|
+
class="flex1 "
|
|
459
|
+
title="返回物实例列表"
|
|
460
|
+
onBack={() => {
|
|
461
|
+
_context.emit("backList");
|
|
462
|
+
}}
|
|
463
|
+
/>
|
|
464
|
+
)}
|
|
465
|
+
|
|
466
|
+
<a-button
|
|
467
|
+
type="primary"
|
|
468
|
+
onClick={() => {
|
|
469
|
+
save();
|
|
470
|
+
}}
|
|
471
|
+
>
|
|
472
|
+
保存
|
|
473
|
+
</a-button>
|
|
474
|
+
<a-button
|
|
475
|
+
onClick={() => {
|
|
476
|
+
_context.emit("back");
|
|
477
|
+
}}
|
|
478
|
+
>
|
|
479
|
+
取消
|
|
480
|
+
</a-button>
|
|
481
|
+
</div>
|
|
482
|
+
<div class="basic">
|
|
483
|
+
<div
|
|
484
|
+
class="title flex"
|
|
485
|
+
style={folds.basic ? "margin-bottom:34px" : ""}
|
|
486
|
+
>
|
|
487
|
+
<div class="icon"></div>
|
|
488
|
+
<div class="name">基础属性</div>
|
|
489
|
+
<div
|
|
490
|
+
class="fold flex"
|
|
491
|
+
onClick={() => {
|
|
492
|
+
folds.basic = !folds.basic;
|
|
493
|
+
}}
|
|
494
|
+
>
|
|
495
|
+
{folds.basic ? "展开" : "折叠"}
|
|
496
|
+
{folds.basic ? <CaretRightOutlined /> : <CaretUpOutlined />}
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
<div class="flex content" style={folds.basic ? "display:none" : ""}>
|
|
500
|
+
<a-form
|
|
501
|
+
class="flex3 grid"
|
|
502
|
+
ref={form}
|
|
503
|
+
model={formData}
|
|
504
|
+
labelWrap={true}
|
|
505
|
+
>
|
|
506
|
+
<div class="flex element">
|
|
507
|
+
<a-form-item
|
|
508
|
+
label="物模型名称"
|
|
509
|
+
style={{ width: "100%" }}
|
|
510
|
+
label-col={{ span: 8 }}
|
|
511
|
+
wrapper-col={{ span: 16 }}
|
|
512
|
+
>
|
|
513
|
+
{_props.data?.thingInst?.thing?.name}
|
|
514
|
+
</a-form-item>
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
{basicForm.value
|
|
518
|
+
.filter((basic: any) => {
|
|
519
|
+
return basic.display;
|
|
520
|
+
})
|
|
521
|
+
.map((ele: any) => {
|
|
522
|
+
return (
|
|
523
|
+
<div class="flex element">
|
|
524
|
+
<a-form-item
|
|
525
|
+
label={ele.displayLabel}
|
|
526
|
+
name={ele.code}
|
|
527
|
+
rules={ele.rules}
|
|
528
|
+
style={{ width: "100%" }}
|
|
529
|
+
label-col={{ span: 8 }}
|
|
530
|
+
wrapper-col={{ span: 16 }}
|
|
531
|
+
>
|
|
532
|
+
{ele.displayType === "text" ? (
|
|
533
|
+
<>
|
|
534
|
+
{typeFilter(ele.columnType) === "number" ? (
|
|
535
|
+
<a-input-number
|
|
536
|
+
v-model={[ele.value, "value"]}
|
|
537
|
+
readonly={ele.readonly}
|
|
538
|
+
type={
|
|
539
|
+
ele.code === "ID"
|
|
540
|
+
? "text"
|
|
541
|
+
: typeFilter(ele.columnType)
|
|
542
|
+
}
|
|
543
|
+
onChange={() => {
|
|
544
|
+
formData[ele.code] = ele.value;
|
|
545
|
+
}}
|
|
546
|
+
style={{ width: "100%" }}
|
|
547
|
+
></a-input-number>
|
|
548
|
+
) : (
|
|
549
|
+
<a-input
|
|
550
|
+
v-model={[ele.value, "value"]}
|
|
551
|
+
readonly={ele.readonly}
|
|
552
|
+
type={
|
|
553
|
+
ele.code === "ID"
|
|
554
|
+
? "text"
|
|
555
|
+
: typeFilter(ele.columnType)
|
|
556
|
+
}
|
|
557
|
+
onChange={() => {
|
|
558
|
+
formData[ele.code] = ele.value;
|
|
559
|
+
}}
|
|
560
|
+
></a-input>
|
|
561
|
+
)}
|
|
562
|
+
</>
|
|
563
|
+
) : (
|
|
564
|
+
""
|
|
565
|
+
)}
|
|
566
|
+
{ele.displayType === "select" ? renderSelect(ele) : ""}
|
|
567
|
+
</a-form-item>
|
|
568
|
+
</div>
|
|
569
|
+
);
|
|
570
|
+
})}
|
|
571
|
+
</a-form>
|
|
572
|
+
|
|
573
|
+
<div class="flex1 pic">
|
|
574
|
+
<div class="div_pic">
|
|
575
|
+
<a-image
|
|
576
|
+
src={formData.fileUrl || ""}
|
|
577
|
+
preview={false}
|
|
578
|
+
fallback="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="
|
|
579
|
+
/>
|
|
580
|
+
<div class="hover_action">
|
|
581
|
+
<a-space size={16}>
|
|
582
|
+
<a-upload
|
|
583
|
+
headers={headers}
|
|
584
|
+
showUploadList={false}
|
|
585
|
+
customRequest={async (e) => {
|
|
586
|
+
const res = await customRequest(
|
|
587
|
+
e,
|
|
588
|
+
thingApis.uploadCommon
|
|
589
|
+
);
|
|
590
|
+
formData.fileUrl = res.data;
|
|
591
|
+
}}
|
|
592
|
+
>
|
|
593
|
+
<upload-outlined class="icon" />
|
|
594
|
+
</a-upload>
|
|
595
|
+
<delete-outlined
|
|
596
|
+
class="icon"
|
|
597
|
+
onClick={() => {
|
|
598
|
+
formData.fileUrl = null;
|
|
599
|
+
}}
|
|
600
|
+
/>
|
|
601
|
+
</a-space>
|
|
602
|
+
</div>
|
|
603
|
+
<div class="tip_pic">
|
|
604
|
+
支持图片格式:.PNG;.JPG;.JPEG;.SVG; 大小不超过2M;
|
|
605
|
+
</div>
|
|
606
|
+
</div>
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
<div class="basic">
|
|
611
|
+
<div
|
|
612
|
+
class="title flex"
|
|
613
|
+
style={folds.dynamic ? "margin-bottom:34px" : ""}
|
|
614
|
+
>
|
|
615
|
+
<div class="icon"></div>
|
|
616
|
+
<div class="name">动态属性</div>
|
|
617
|
+
|
|
618
|
+
<div
|
|
619
|
+
class="fold flex"
|
|
620
|
+
onClick={() => {
|
|
621
|
+
folds.dynamic = !folds.dynamic;
|
|
622
|
+
}}
|
|
623
|
+
>
|
|
624
|
+
{folds.dynamic ? "展开" : "折叠"}
|
|
625
|
+
{folds.dynamic ? <CaretRightOutlined /> : <CaretUpOutlined />}
|
|
626
|
+
</div>
|
|
627
|
+
</div>
|
|
628
|
+
<div class="content" style={folds.dynamic ? "display:none" : ""}>
|
|
629
|
+
<a-table
|
|
630
|
+
rowKey="id"
|
|
631
|
+
columns={dynamicColumns.value}
|
|
632
|
+
dataSource={dynamicTableList.value}
|
|
633
|
+
pagination={false}
|
|
634
|
+
v-slots={{
|
|
635
|
+
bodyCell: ({ column, record, index }: any) => {
|
|
636
|
+
if (column.key === "prePointCode") {
|
|
637
|
+
return (
|
|
638
|
+
<a-select
|
|
639
|
+
v-model={[record.prePointCode, "value"]}
|
|
640
|
+
allowClear
|
|
641
|
+
placeholder="请选择或输入"
|
|
642
|
+
style="width: 180px"
|
|
643
|
+
show-search
|
|
644
|
+
onSearch={(value: string) => {
|
|
645
|
+
searchHandle(value, () => {
|
|
646
|
+
record.prePointCode = value;
|
|
647
|
+
record.prePointEntry.code = value;
|
|
648
|
+
});
|
|
649
|
+
}}
|
|
650
|
+
onChange={(value: string, option: any) => {
|
|
651
|
+
if (value && option?.obj?.id) {
|
|
652
|
+
record.prePointEntry = option?.obj;
|
|
653
|
+
|
|
654
|
+
// pduCode改变 需修改两个preCode
|
|
655
|
+
if (option?.obj?.pduCode) {
|
|
656
|
+
const pduObj = pduInfoList.value.find(
|
|
657
|
+
(pduInfo: any) =>
|
|
658
|
+
pduInfo.pduCode === option?.obj?.pduCode
|
|
659
|
+
);
|
|
660
|
+
|
|
661
|
+
if (pduObj?.preCode) {
|
|
662
|
+
record.preCode = pduObj?.preCode;
|
|
663
|
+
record.prePointEntry.preCode = pduObj?.preCode;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}}
|
|
668
|
+
options={prePointList.value.map(
|
|
669
|
+
(prePoint: any, index: number) => {
|
|
670
|
+
return {
|
|
671
|
+
value: prePoint.code,
|
|
672
|
+
label: prePoint.code,
|
|
673
|
+
key: index,
|
|
674
|
+
obj: prePoint,
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
)}
|
|
678
|
+
v-slots={{
|
|
679
|
+
option: (opt: any) => {
|
|
680
|
+
return (
|
|
681
|
+
<div
|
|
682
|
+
class="flex-center"
|
|
683
|
+
style="justify-content: space-between;"
|
|
684
|
+
>
|
|
685
|
+
{opt.label}
|
|
686
|
+
</div>
|
|
687
|
+
);
|
|
688
|
+
},
|
|
689
|
+
}}
|
|
690
|
+
></a-select>
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
if (
|
|
695
|
+
column.key === "pduCode" &&
|
|
696
|
+
"prePointEntry" in record &&
|
|
697
|
+
"pduCode" in record.prePointEntry
|
|
698
|
+
) {
|
|
699
|
+
return (
|
|
700
|
+
<a-select
|
|
701
|
+
v-model={[record.prePointEntry.pduCode, "value"]}
|
|
702
|
+
style="width: 100%"
|
|
703
|
+
onChange={(value: string, option: any) => {
|
|
704
|
+
// pduCode改变 需修改两个preCode
|
|
705
|
+
record.preCode =
|
|
706
|
+
pduInfoList.value[option.key].preCode;
|
|
707
|
+
record.prePointEntry.preCode =
|
|
708
|
+
pduInfoList.value[option.key].preCode;
|
|
709
|
+
}}
|
|
710
|
+
>
|
|
711
|
+
{pduInfoList.value.map((pduInfo: any, idx: number) => (
|
|
712
|
+
<a-select-option value={pduInfo.pduCode} key={idx}>
|
|
713
|
+
{pduInfo.pduCode}
|
|
714
|
+
</a-select-option>
|
|
715
|
+
))}
|
|
716
|
+
</a-select>
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (
|
|
721
|
+
column.key === "address" &&
|
|
722
|
+
"prePointEntry" in record &&
|
|
723
|
+
"address" in record.prePointEntry
|
|
724
|
+
) {
|
|
725
|
+
return (
|
|
726
|
+
<a-input
|
|
727
|
+
v-model={[record.prePointEntry.address, "value"]}
|
|
728
|
+
></a-input>
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (
|
|
733
|
+
column.key === "dataTypeId" &&
|
|
734
|
+
"prePointEntry" in record &&
|
|
735
|
+
"dataTypeId" in record.prePointEntry
|
|
736
|
+
) {
|
|
737
|
+
return (
|
|
738
|
+
<a-select
|
|
739
|
+
v-model={[record.prePointEntry.dataTypeId, "value"]}
|
|
740
|
+
style="width: 100%"
|
|
741
|
+
>
|
|
742
|
+
{dataTypeList.map((type: any) => (
|
|
743
|
+
<a-select-option value={type.id} key={type.id}>
|
|
744
|
+
{type.name}
|
|
745
|
+
</a-select-option>
|
|
746
|
+
))}
|
|
747
|
+
</a-select>
|
|
748
|
+
);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (
|
|
752
|
+
column.key === "outputTypeId" &&
|
|
753
|
+
"prePointEntry" in record &&
|
|
754
|
+
"outputTypeId" in record.prePointEntry
|
|
755
|
+
) {
|
|
756
|
+
return (
|
|
757
|
+
<a-select
|
|
758
|
+
v-model={[record.prePointEntry.outputTypeId, "value"]}
|
|
759
|
+
style="width: 100%"
|
|
760
|
+
>
|
|
761
|
+
{outputTypeList.map((type: any) => (
|
|
762
|
+
<a-select-option value={type.id} key={type.id}>
|
|
763
|
+
{type.name}
|
|
764
|
+
</a-select-option>
|
|
765
|
+
))}
|
|
766
|
+
</a-select>
|
|
767
|
+
);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (column.key === "action") {
|
|
771
|
+
return (
|
|
772
|
+
<a-button
|
|
773
|
+
type="link"
|
|
774
|
+
onClick={() => {
|
|
775
|
+
modalType.value = "dynamic";
|
|
776
|
+
|
|
777
|
+
dynamicIndex.value = `${index}`;
|
|
778
|
+
dynamicForm.value = record;
|
|
779
|
+
visible.value = true;
|
|
780
|
+
}}
|
|
781
|
+
>
|
|
782
|
+
高级 <double-right-outlined />
|
|
783
|
+
</a-button>
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
}}
|
|
788
|
+
></a-table>
|
|
789
|
+
</div>
|
|
790
|
+
</div>
|
|
791
|
+
<div class="basic">
|
|
792
|
+
<div
|
|
793
|
+
class="title flex"
|
|
794
|
+
style={folds.logic ? "margin-bottom:34px" : ""}
|
|
795
|
+
>
|
|
796
|
+
<div class="icon"></div>
|
|
797
|
+
<div class="name">逻辑</div>
|
|
798
|
+
<div
|
|
799
|
+
class="fold flex"
|
|
800
|
+
onClick={() => {
|
|
801
|
+
folds.logic = !folds.logic;
|
|
802
|
+
}}
|
|
803
|
+
>
|
|
804
|
+
{folds.logic ? "展开" : "折叠"}
|
|
805
|
+
{folds.logic ? <CaretRightOutlined /> : <CaretUpOutlined />}
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
<div class="content" style={folds.logic ? "display:none" : ""}>
|
|
809
|
+
<a-table
|
|
810
|
+
rowKey="id"
|
|
811
|
+
columns={LoginColumns.value}
|
|
812
|
+
dataSource={LoginTableList.value}
|
|
813
|
+
pagination={false}
|
|
814
|
+
v-slots={{
|
|
815
|
+
bodyCell: ({ column, record, index }) => {
|
|
816
|
+
if (column.dataIndex === "action") {
|
|
817
|
+
return (
|
|
818
|
+
<a-button
|
|
819
|
+
type="link"
|
|
820
|
+
onClick={() => {
|
|
821
|
+
modalType.value = "logic";
|
|
822
|
+
logicForm.value = {
|
|
823
|
+
triggerMode: "",
|
|
824
|
+
ruleMode: "",
|
|
825
|
+
rule: null,
|
|
826
|
+
timeInterval: null,
|
|
827
|
+
listenProperty: null,
|
|
828
|
+
};
|
|
829
|
+
logicIndex.value = null;
|
|
830
|
+
logicForm.value.triggerMode = record.triggerMode;
|
|
831
|
+
logicForm.value.ruleMode = record.ruleMode;
|
|
832
|
+
logicForm.value.rule = record.rule;
|
|
833
|
+
logicForm.value.timeInterval = record.timeInterval;
|
|
834
|
+
logicForm.value.listenProperty =
|
|
835
|
+
record.listenProperty;
|
|
836
|
+
logicIndex.value = `${index}`;
|
|
837
|
+
visible.value = true;
|
|
838
|
+
}}
|
|
839
|
+
>
|
|
840
|
+
高级 <double-right-outlined />
|
|
841
|
+
</a-button>
|
|
842
|
+
);
|
|
843
|
+
}
|
|
844
|
+
if (column.dataIndex === "triggerMode") {
|
|
845
|
+
return filter(
|
|
846
|
+
_props.triggerModeList,
|
|
847
|
+
record.triggerMode,
|
|
848
|
+
"code",
|
|
849
|
+
"name"
|
|
850
|
+
);
|
|
851
|
+
}
|
|
852
|
+
if (column.dataIndex === "rule") {
|
|
853
|
+
return (
|
|
854
|
+
<a-input
|
|
855
|
+
v-model={[record[column.dataIndex], "value"]}
|
|
856
|
+
></a-input>
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
}}
|
|
861
|
+
></a-table>
|
|
862
|
+
</div>
|
|
863
|
+
</div>
|
|
864
|
+
<div class="basic">
|
|
865
|
+
<div
|
|
866
|
+
class="title flex"
|
|
867
|
+
style={folds.alarm ? "margin-bottom:34px" : ""}
|
|
868
|
+
>
|
|
869
|
+
<div class="icon"></div>
|
|
870
|
+
<div class="name">报警</div>
|
|
871
|
+
<div
|
|
872
|
+
class="fold flex"
|
|
873
|
+
onClick={() => {
|
|
874
|
+
folds.alarm = !folds.alarm;
|
|
875
|
+
}}
|
|
876
|
+
>
|
|
877
|
+
{folds.alarm ? "展开" : "折叠"}
|
|
878
|
+
{folds.alarm ? <CaretRightOutlined /> : <CaretUpOutlined />}
|
|
879
|
+
</div>
|
|
880
|
+
</div>
|
|
881
|
+
<div class="content" style={folds.alarm ? "display:none" : ""}>
|
|
882
|
+
<div style={{ padding: "10px 20px" }}>
|
|
883
|
+
创建实例后,可前往
|
|
884
|
+
<a
|
|
885
|
+
onClick={() => {
|
|
886
|
+
_context.emit("toRoute");
|
|
887
|
+
}}
|
|
888
|
+
>
|
|
889
|
+
烽火报警
|
|
890
|
+
</a>
|
|
891
|
+
配置报警规则
|
|
892
|
+
</div>
|
|
893
|
+
<a-form
|
|
894
|
+
model={formState.value}
|
|
895
|
+
labelCol={{ span: 8 }}
|
|
896
|
+
wrapperCol={{ span: 16 }}
|
|
897
|
+
>
|
|
898
|
+
<a-row grade={24}>
|
|
899
|
+
{alarmList.value.map((item) => (
|
|
900
|
+
<a-col span={6}>
|
|
901
|
+
<a-form-item label={item.displayLabel}>
|
|
902
|
+
<a-input
|
|
903
|
+
v-model={[formState.value.equipmentFailure, "value"]}
|
|
904
|
+
disabled
|
|
905
|
+
></a-input>
|
|
906
|
+
</a-form-item>
|
|
907
|
+
</a-col>
|
|
908
|
+
))}
|
|
909
|
+
</a-row>
|
|
910
|
+
</a-form>
|
|
911
|
+
</div>
|
|
912
|
+
</div>
|
|
913
|
+
<div class="basic">
|
|
914
|
+
<div
|
|
915
|
+
class="title flex"
|
|
916
|
+
style={folds.action ? "margin-bottom:34px" : ""}
|
|
917
|
+
>
|
|
918
|
+
<div class="icon"></div>
|
|
919
|
+
<div class="name">动作</div>
|
|
920
|
+
<div
|
|
921
|
+
class="fold flex"
|
|
922
|
+
onClick={() => {
|
|
923
|
+
folds.action = !folds.action;
|
|
924
|
+
}}
|
|
925
|
+
>
|
|
926
|
+
{folds.action ? "展开" : "折叠"}
|
|
927
|
+
{folds.action ? <CaretRightOutlined /> : <CaretUpOutlined />}
|
|
928
|
+
</div>
|
|
929
|
+
</div>
|
|
930
|
+
<div class="content" style={folds.action ? "display:none" : ""}>
|
|
931
|
+
<a-table
|
|
932
|
+
rowKey="id"
|
|
933
|
+
columns={actionColumns.value}
|
|
934
|
+
dataSource={actionCTableList.value}
|
|
935
|
+
pagination={false}
|
|
936
|
+
></a-table>
|
|
937
|
+
</div>
|
|
938
|
+
</div>
|
|
939
|
+
<editRelation ele={_props.data?.staticMap?.map} />
|
|
940
|
+
<a-modal
|
|
941
|
+
v-model={[visible.value, "visible"]}
|
|
942
|
+
title="高级配置"
|
|
943
|
+
footer={false}
|
|
944
|
+
bodyStyle={{ height: "600px", overflowY: "auto" }}
|
|
945
|
+
>
|
|
946
|
+
{visible.value && modalType.value === "dynamic" ? (
|
|
947
|
+
<dynamicFormDom
|
|
948
|
+
v-models={[
|
|
949
|
+
[dynamicForm.value, "dynamicForm"],
|
|
950
|
+
[dynamicIndex.value, "dynamicIndex"],
|
|
951
|
+
]}
|
|
952
|
+
triggerModeList={_props.triggerModeList}
|
|
953
|
+
onClose={() => {
|
|
954
|
+
if (dynamicIndex.value) {
|
|
955
|
+
dynamicTableList.value[Number(dynamicIndex.value)] =
|
|
956
|
+
cloneDeep(dynamicForm.value);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
visible.value = false;
|
|
960
|
+
}}
|
|
961
|
+
></dynamicFormDom>
|
|
962
|
+
) : null}
|
|
963
|
+
{visible.value && modalType.value === "logic" ? (
|
|
964
|
+
<logicFormDom
|
|
965
|
+
v-models={[
|
|
966
|
+
[logicForm.value, "logicForm"],
|
|
967
|
+
[logicIndex.value, "logicIndex"],
|
|
968
|
+
]}
|
|
969
|
+
triggerModeList={_props.triggerModeList}
|
|
970
|
+
onClose={() => {
|
|
971
|
+
if (logicIndex.value) {
|
|
972
|
+
LoginTableList.value[Number(logicIndex.value)] = {
|
|
973
|
+
...LoginTableList.value[logicIndex.value],
|
|
974
|
+
...logicForm.value,
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
visible.value = false;
|
|
978
|
+
}}
|
|
979
|
+
></logicFormDom>
|
|
980
|
+
) : null}
|
|
981
|
+
</a-modal>
|
|
982
|
+
</div>
|
|
983
|
+
);
|
|
984
|
+
},
|
|
985
|
+
});
|