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,1169 +1,1174 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineComponent,
|
|
3
|
-
nextTick,
|
|
4
|
-
onMounted,
|
|
5
|
-
reactive,
|
|
6
|
-
ref,
|
|
7
|
-
watch,
|
|
8
|
-
provide,
|
|
9
|
-
} from "vue";
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
MenuFoldOutlined,
|
|
13
|
-
DownOutlined,
|
|
14
|
-
RedoOutlined,
|
|
15
|
-
} from "@ant-design/icons-vue";
|
|
16
|
-
import * as thingApis from "@/api/thingInstance";
|
|
17
|
-
import utils from "@/utils";
|
|
18
|
-
import { message } from "ant-design-vue";
|
|
19
|
-
import { listFilter, treeBycodeFilter } from "@/pageComponent/hooks/filters";
|
|
20
|
-
import useTreeSearch from "./hooks/useTreeSearch";
|
|
21
|
-
import useTableList from "./hooks/useTableList";
|
|
22
|
-
import { Search } from "./hooks/filters";
|
|
23
|
-
import thingModal from "./modal";
|
|
24
|
-
import editThing from "./component/editThing";
|
|
25
|
-
import addThing from "./component/addThing";
|
|
26
|
-
import thingDetail from "./component/thingDetail";
|
|
27
|
-
import "./less/thingInstance.less";
|
|
28
|
-
|
|
29
|
-
import { useRoute } from "vue-router";
|
|
30
|
-
import moment from "moment";
|
|
31
|
-
import { customRequest } from "@/pageComponent/utils/upload";
|
|
32
|
-
|
|
33
|
-
const props = {
|
|
34
|
-
thingCode: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const triggerModeList = [
|
|
40
|
-
{
|
|
41
|
-
code: "get",
|
|
42
|
-
name: "GET时触发",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
code: "timer",
|
|
46
|
-
name: "定时触发",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
code: "change",
|
|
50
|
-
name: "数据变化时触发",
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
const com = defineComponent({
|
|
54
|
-
components: { thingModal, editThing, thingDetail, addThing },
|
|
55
|
-
props,
|
|
56
|
-
setup(_props, _context) {
|
|
57
|
-
const route = useRoute();
|
|
58
|
-
|
|
59
|
-
// 模型树
|
|
60
|
-
const {
|
|
61
|
-
tree,
|
|
62
|
-
searchValue,
|
|
63
|
-
expandedKeys,
|
|
64
|
-
autoExpandParent,
|
|
65
|
-
selectedKeyArr,
|
|
66
|
-
fieldNames,
|
|
67
|
-
generateKey,
|
|
68
|
-
generateList,
|
|
69
|
-
} = useTreeSearch({
|
|
70
|
-
title: "name",
|
|
71
|
-
children: "child",
|
|
72
|
-
});
|
|
73
|
-
let treeDataRecord;
|
|
74
|
-
const filterTree = (arr: any[], key: string) => {
|
|
75
|
-
let have: boolean = false;
|
|
76
|
-
for (let i = 0; i < arr.length; i++) {
|
|
77
|
-
const obj = arr[i];
|
|
78
|
-
let childHave: boolean = false;
|
|
79
|
-
if (obj.child && obj.child.length != 0) {
|
|
80
|
-
childHave = filterTree(obj.child, key).have;
|
|
81
|
-
}
|
|
82
|
-
if (obj.name.indexOf(key) !== -1 || childHave) {
|
|
83
|
-
have = true;
|
|
84
|
-
} else {
|
|
85
|
-
arr.splice(i, 1);
|
|
86
|
-
i--;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return { arr, have };
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
watch(
|
|
93
|
-
() => searchValue.value,
|
|
94
|
-
(value) => {
|
|
95
|
-
tree.data = filterTree(
|
|
96
|
-
JSON.parse(JSON.stringify(treeDataRecord)),
|
|
97
|
-
searchValue.value
|
|
98
|
-
).arr;
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
const getTreeData = () => {
|
|
102
|
-
thingApis.findAllThingForTree().then((res) => {
|
|
103
|
-
refresh();
|
|
104
|
-
res.data.forEach((ele: any) => {
|
|
105
|
-
ele.first = true;
|
|
106
|
-
});
|
|
107
|
-
const data = generateKey("0", res.data);
|
|
108
|
-
generateList(data);
|
|
109
|
-
treeDataRecord = data;
|
|
110
|
-
tree.data = filterTree(
|
|
111
|
-
JSON.parse(JSON.stringify(treeDataRecord)),
|
|
112
|
-
searchValue.value
|
|
113
|
-
).arr;
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
const canAdd = ref(true);
|
|
117
|
-
const getOpiton = async () => {
|
|
118
|
-
queryOpts.value = [];
|
|
119
|
-
columnData.value = [];
|
|
120
|
-
const res: any = await thingApis.findByCode(formQuery.thingCode);
|
|
121
|
-
if (res.data.tableName === "-") {
|
|
122
|
-
canAdd.value = false;
|
|
123
|
-
} else {
|
|
124
|
-
canAdd.value = true;
|
|
125
|
-
}
|
|
126
|
-
res.data.thingPropertyList.forEach((ele: any) => {
|
|
127
|
-
if (ele.display && ele.queryDisplay) {
|
|
128
|
-
queryOpts.value.push({ ...ele, operation: "LIKE" });
|
|
129
|
-
}
|
|
130
|
-
if (ele.display && ele.listDisplay) {
|
|
131
|
-
columnData.value.push({
|
|
132
|
-
title: ele.displayLabel,
|
|
133
|
-
dataIndex: ele.code,
|
|
134
|
-
key: ele.displayType,
|
|
135
|
-
sort: ele.sort,
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
queryOpts.value.sort((a, b) => {
|
|
140
|
-
return a.sort - b.sort;
|
|
141
|
-
});
|
|
142
|
-
const list = queryOpts.value.filter((n) => n.sort === null);
|
|
143
|
-
const newList = queryOpts.value.filter((n) => n.sort !== null);
|
|
144
|
-
queryOpts.value = [...newList, ...list];
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
const thingNode = ref();
|
|
148
|
-
|
|
149
|
-
const selectNode = (
|
|
150
|
-
selectedKeys: string[] | number[],
|
|
151
|
-
{ selected, node }: any
|
|
152
|
-
) => {
|
|
153
|
-
if (formQuery.thingCode === node.code) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (selected) {
|
|
157
|
-
formQuery.thingCode = node.code;
|
|
158
|
-
thingNode.value = node;
|
|
159
|
-
} else {
|
|
160
|
-
formQuery.thingCode = "";
|
|
161
|
-
thingNode.value = null;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
selectedKeyArr.value = selectedKeys;
|
|
165
|
-
currPage.value = 1;
|
|
166
|
-
refresh();
|
|
167
|
-
getOpiton();
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
const expandNode = (keys: string[]) => {
|
|
171
|
-
expandedKeys.value = keys;
|
|
172
|
-
autoExpandParent.value = false;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// table
|
|
176
|
-
const queryFormRef = ref();
|
|
177
|
-
const formQuery: any = reactive({});
|
|
178
|
-
const getList = async () => {
|
|
179
|
-
const param: any = { ...formQuery, wherePojoList: [] };
|
|
180
|
-
|
|
181
|
-
queryOpts.value.forEach((ele: any) => {
|
|
182
|
-
if (ele.value) {
|
|
183
|
-
param.wherePojoList.push({
|
|
184
|
-
column: ele.columnName,
|
|
185
|
-
operation: ele.operation,
|
|
186
|
-
valueList: [ele.value],
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
const res: any = await thingApis.indInsts({
|
|
191
|
-
...param,
|
|
192
|
-
pageNum: currPage.value,
|
|
193
|
-
pageSize: pageSize.value,
|
|
194
|
-
});
|
|
195
|
-
const resObj: any = {
|
|
196
|
-
columnData: [],
|
|
197
|
-
data: [],
|
|
198
|
-
totalNum: res.data?.total,
|
|
199
|
-
};
|
|
200
|
-
columnData.value.sort((a, b) => {
|
|
201
|
-
return a.sort - b.sort;
|
|
202
|
-
});
|
|
203
|
-
const list = columnData.value.filter((n) => n.sort === null);
|
|
204
|
-
resObj.columnData = columnData.value.filter((n) => n.sort !== null);
|
|
205
|
-
resObj.columnData = [...resObj.columnData, ...list].map((item) => item);
|
|
206
|
-
resObj.columnData.push({
|
|
207
|
-
title: "操作",
|
|
208
|
-
dataIndex: "action",
|
|
209
|
-
key: "action",
|
|
210
|
-
});
|
|
211
|
-
resObj.data = res.data?.list.map((ele: any) => ({
|
|
212
|
-
...ele.staticMap.map,
|
|
213
|
-
thingPropertyList: ele.thingInst?.thing?.thingPropertyList,
|
|
214
|
-
}));
|
|
215
|
-
return resObj;
|
|
216
|
-
};
|
|
217
|
-
const state = reactive<{
|
|
218
|
-
selectedRowKeys: string[];
|
|
219
|
-
selectedRows: any[];
|
|
220
|
-
modalVisible: boolean;
|
|
221
|
-
}>({
|
|
222
|
-
selectedRowKeys: [],
|
|
223
|
-
selectedRows: [],
|
|
224
|
-
modalVisible: true,
|
|
225
|
-
});
|
|
226
|
-
const onSelectChange = (selectedRowKeys: string[], selectedRows: any[]) => {
|
|
227
|
-
state.selectedRowKeys = selectedRowKeys;
|
|
228
|
-
state.selectedRows = selectedRows;
|
|
229
|
-
};
|
|
230
|
-
const {
|
|
231
|
-
isLoading,
|
|
232
|
-
columns,
|
|
233
|
-
tableList,
|
|
234
|
-
pagination,
|
|
235
|
-
refresh,
|
|
236
|
-
currPage,
|
|
237
|
-
pageSize,
|
|
238
|
-
} = useTableList(getList, "list", "total");
|
|
239
|
-
const reset = () => {
|
|
240
|
-
queryOpts.value.forEach((ele) => {
|
|
241
|
-
ele.value = "";
|
|
242
|
-
ele.operation = "LIKE";
|
|
243
|
-
});
|
|
244
|
-
refresh();
|
|
245
|
-
};
|
|
246
|
-
const pageData = reactive({
|
|
247
|
-
editData: {},
|
|
248
|
-
addData: {},
|
|
249
|
-
thingCode: "",
|
|
250
|
-
id: "",
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
// all table
|
|
254
|
-
const queryAllFormRef = ref();
|
|
255
|
-
const columnsAll = [
|
|
256
|
-
// {
|
|
257
|
-
// dataIndex: "id",
|
|
258
|
-
// title: "实例ID",
|
|
259
|
-
// },
|
|
260
|
-
{
|
|
261
|
-
dataIndex: "name",
|
|
262
|
-
title: "实例名称",
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
dataIndex: "code",
|
|
266
|
-
title: "实例编码",
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
dataIndex: "thingName",
|
|
270
|
-
title: "物模型名称",
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
dataIndex: "thingCode",
|
|
274
|
-
title: "物模型编码",
|
|
275
|
-
},
|
|
276
|
-
{ title: "操作", key: "action" },
|
|
277
|
-
];
|
|
278
|
-
const formQueryAll: any = ref([
|
|
279
|
-
// { label: "实例ID", column: "instanceId", operation: "LIKE", value: null },
|
|
280
|
-
{
|
|
281
|
-
label: "实例名称",
|
|
282
|
-
column: "instanceName",
|
|
283
|
-
operation: "LIKE",
|
|
284
|
-
value: null,
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
label: "实例编码",
|
|
288
|
-
column: "instanceCode",
|
|
289
|
-
operation: "LIKE",
|
|
290
|
-
value: null,
|
|
291
|
-
},
|
|
292
|
-
{ label: "属性ID", column: "propertyId", operation: "LIKE", value: null },
|
|
293
|
-
{
|
|
294
|
-
label: "属性名称",
|
|
295
|
-
column: "displayLabel",
|
|
296
|
-
operation: "LIKE",
|
|
297
|
-
value: null,
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
label: "属性编码",
|
|
301
|
-
column: "propertyCode",
|
|
302
|
-
operation: "LIKE",
|
|
303
|
-
value: null,
|
|
304
|
-
},
|
|
305
|
-
]);
|
|
306
|
-
const getListAll = async () => {
|
|
307
|
-
const param: any = { wherePojoList: [] };
|
|
308
|
-
|
|
309
|
-
formQueryAll.value.forEach((ele: any) => {
|
|
310
|
-
if (ele.value) {
|
|
311
|
-
param.wherePojoList.push({
|
|
312
|
-
column: ele.column,
|
|
313
|
-
operation: ele.operation,
|
|
314
|
-
valueList: [ele.value],
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
const resp = await thingApis.indInstsAll({
|
|
319
|
-
...param,
|
|
320
|
-
pageNum: currPageAll.value,
|
|
321
|
-
pageSize: pageSizeAll.value,
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
const resObj: any = {
|
|
325
|
-
columnData: [],
|
|
326
|
-
data: resp.data?.list,
|
|
327
|
-
totalNum: resp.data?.total,
|
|
328
|
-
};
|
|
329
|
-
return resObj;
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
const {
|
|
333
|
-
isLoading: isLoadingAll,
|
|
334
|
-
tableList: tableListAll,
|
|
335
|
-
pagination: paginationAll,
|
|
336
|
-
refresh: refreshAll,
|
|
337
|
-
currPage: currPageAll,
|
|
338
|
-
pageSize: pageSizeAll,
|
|
339
|
-
} = useTableList(getListAll, "list", "total");
|
|
340
|
-
const resetAll = () => {
|
|
341
|
-
formQueryAll.value.forEach((ele) => {
|
|
342
|
-
ele.value = "";
|
|
343
|
-
ele.operation = "LIKE";
|
|
344
|
-
});
|
|
345
|
-
refreshAll();
|
|
346
|
-
};
|
|
347
|
-
const stateAll = reactive<{
|
|
348
|
-
selectedRowKeys: string[];
|
|
349
|
-
selectedRows: any[];
|
|
350
|
-
}>({
|
|
351
|
-
selectedRowKeys: [],
|
|
352
|
-
selectedRows: [],
|
|
353
|
-
});
|
|
354
|
-
const onSelectChangeAll = (
|
|
355
|
-
selectedRowKeys: string[],
|
|
356
|
-
selectedRows: any[]
|
|
357
|
-
) => {
|
|
358
|
-
stateAll.selectedRowKeys = selectedRowKeys;
|
|
359
|
-
stateAll.selectedRows = selectedRows;
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
// 弹框
|
|
363
|
-
const modalRef = ref<any>(null);
|
|
364
|
-
const toEdit = async (row?: any) => {
|
|
365
|
-
const res: any = await thingApis.findThingProperties(row.ID);
|
|
366
|
-
pageData.thingCode = row.THING_CODE;
|
|
367
|
-
pageData.editData = res.data;
|
|
368
|
-
page.value = "edit";
|
|
369
|
-
};
|
|
370
|
-
const toCreate = async (row?: any) => {
|
|
371
|
-
const res: any = await thingApis.findByCode(formQuery.thingCode);
|
|
372
|
-
if (res.data.tableName === "-") {
|
|
373
|
-
message.error("该模型不支持新增实例!");
|
|
374
|
-
return false;
|
|
375
|
-
}
|
|
376
|
-
pageData.thingCode = formQuery.thingCode;
|
|
377
|
-
pageData.addData = res.data;
|
|
378
|
-
page.value = "add";
|
|
379
|
-
};
|
|
380
|
-
const toDetail = async (row: any, hideEdit = false) => {
|
|
381
|
-
hideBtnLine.value = false;
|
|
382
|
-
hideEditBtn.value = hideEdit;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
pageData.
|
|
386
|
-
pageData.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
const
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
state.
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
stateAll.
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
a
|
|
481
|
-
a.
|
|
482
|
-
a.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
a.
|
|
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
|
-
param
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
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
|
-
<p class="ant-upload-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
stateAll.
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
state.
|
|
596
|
-
state.
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
const
|
|
607
|
-
const
|
|
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
|
-
refresh();
|
|
640
|
-
page.value = "
|
|
641
|
-
}}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
refresh();
|
|
662
|
-
page.value = "list";
|
|
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
|
-
|
|
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
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
</a-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
type="primary"
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1
|
+
import {
|
|
2
|
+
defineComponent,
|
|
3
|
+
nextTick,
|
|
4
|
+
onMounted,
|
|
5
|
+
reactive,
|
|
6
|
+
ref,
|
|
7
|
+
watch,
|
|
8
|
+
provide,
|
|
9
|
+
} from "vue";
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
MenuFoldOutlined,
|
|
13
|
+
DownOutlined,
|
|
14
|
+
RedoOutlined,
|
|
15
|
+
} from "@ant-design/icons-vue";
|
|
16
|
+
import * as thingApis from "@/api/thingInstance";
|
|
17
|
+
import utils from "@/utils";
|
|
18
|
+
import { message } from "ant-design-vue";
|
|
19
|
+
import { listFilter, treeBycodeFilter } from "@/pageComponent/hooks/filters";
|
|
20
|
+
import useTreeSearch from "./hooks/useTreeSearch";
|
|
21
|
+
import useTableList from "./hooks/useTableList";
|
|
22
|
+
import { Search } from "./hooks/filters";
|
|
23
|
+
import thingModal from "./modal";
|
|
24
|
+
import editThing from "./component/editThing";
|
|
25
|
+
import addThing from "./component/addThing";
|
|
26
|
+
import thingDetail from "./component/thingDetail";
|
|
27
|
+
import "./less/thingInstance.less";
|
|
28
|
+
|
|
29
|
+
import { useRoute } from "vue-router";
|
|
30
|
+
import moment from "moment";
|
|
31
|
+
import { customRequest } from "@/pageComponent/utils/upload";
|
|
32
|
+
|
|
33
|
+
const props = {
|
|
34
|
+
thingCode: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const triggerModeList = [
|
|
40
|
+
{
|
|
41
|
+
code: "get",
|
|
42
|
+
name: "GET时触发",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
code: "timer",
|
|
46
|
+
name: "定时触发",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
code: "change",
|
|
50
|
+
name: "数据变化时触发",
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
const com = defineComponent({
|
|
54
|
+
components: { thingModal, editThing, thingDetail, addThing },
|
|
55
|
+
props,
|
|
56
|
+
setup(_props, _context) {
|
|
57
|
+
const route = useRoute();
|
|
58
|
+
|
|
59
|
+
// 模型树
|
|
60
|
+
const {
|
|
61
|
+
tree,
|
|
62
|
+
searchValue,
|
|
63
|
+
expandedKeys,
|
|
64
|
+
autoExpandParent,
|
|
65
|
+
selectedKeyArr,
|
|
66
|
+
fieldNames,
|
|
67
|
+
generateKey,
|
|
68
|
+
generateList,
|
|
69
|
+
} = useTreeSearch({
|
|
70
|
+
title: "name",
|
|
71
|
+
children: "child",
|
|
72
|
+
});
|
|
73
|
+
let treeDataRecord;
|
|
74
|
+
const filterTree = (arr: any[], key: string) => {
|
|
75
|
+
let have: boolean = false;
|
|
76
|
+
for (let i = 0; i < arr.length; i++) {
|
|
77
|
+
const obj = arr[i];
|
|
78
|
+
let childHave: boolean = false;
|
|
79
|
+
if (obj.child && obj.child.length != 0) {
|
|
80
|
+
childHave = filterTree(obj.child, key).have;
|
|
81
|
+
}
|
|
82
|
+
if (obj.name.indexOf(key) !== -1 || childHave) {
|
|
83
|
+
have = true;
|
|
84
|
+
} else {
|
|
85
|
+
arr.splice(i, 1);
|
|
86
|
+
i--;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return { arr, have };
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
watch(
|
|
93
|
+
() => searchValue.value,
|
|
94
|
+
(value) => {
|
|
95
|
+
tree.data = filterTree(
|
|
96
|
+
JSON.parse(JSON.stringify(treeDataRecord)),
|
|
97
|
+
searchValue.value
|
|
98
|
+
).arr;
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
const getTreeData = () => {
|
|
102
|
+
thingApis.findAllThingForTree().then((res) => {
|
|
103
|
+
refresh();
|
|
104
|
+
res.data.forEach((ele: any) => {
|
|
105
|
+
ele.first = true;
|
|
106
|
+
});
|
|
107
|
+
const data = generateKey("0", res.data);
|
|
108
|
+
generateList(data);
|
|
109
|
+
treeDataRecord = data;
|
|
110
|
+
tree.data = filterTree(
|
|
111
|
+
JSON.parse(JSON.stringify(treeDataRecord)),
|
|
112
|
+
searchValue.value
|
|
113
|
+
).arr;
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const canAdd = ref(true);
|
|
117
|
+
const getOpiton = async () => {
|
|
118
|
+
queryOpts.value = [];
|
|
119
|
+
columnData.value = [];
|
|
120
|
+
const res: any = await thingApis.findByCode(formQuery.thingCode);
|
|
121
|
+
if (res.data.tableName === "-") {
|
|
122
|
+
canAdd.value = false;
|
|
123
|
+
} else {
|
|
124
|
+
canAdd.value = true;
|
|
125
|
+
}
|
|
126
|
+
res.data.thingPropertyList.forEach((ele: any) => {
|
|
127
|
+
if (ele.display && ele.queryDisplay) {
|
|
128
|
+
queryOpts.value.push({ ...ele, operation: "LIKE" });
|
|
129
|
+
}
|
|
130
|
+
if (ele.display && ele.listDisplay) {
|
|
131
|
+
columnData.value.push({
|
|
132
|
+
title: ele.displayLabel,
|
|
133
|
+
dataIndex: ele.code,
|
|
134
|
+
key: ele.displayType,
|
|
135
|
+
sort: ele.sort,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
queryOpts.value.sort((a, b) => {
|
|
140
|
+
return a.sort - b.sort;
|
|
141
|
+
});
|
|
142
|
+
const list = queryOpts.value.filter((n) => n.sort === null);
|
|
143
|
+
const newList = queryOpts.value.filter((n) => n.sort !== null);
|
|
144
|
+
queryOpts.value = [...newList, ...list];
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const thingNode = ref();
|
|
148
|
+
|
|
149
|
+
const selectNode = (
|
|
150
|
+
selectedKeys: string[] | number[],
|
|
151
|
+
{ selected, node }: any
|
|
152
|
+
) => {
|
|
153
|
+
if (formQuery.thingCode === node.code) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
if (selected) {
|
|
157
|
+
formQuery.thingCode = node.code;
|
|
158
|
+
thingNode.value = node;
|
|
159
|
+
} else {
|
|
160
|
+
formQuery.thingCode = "";
|
|
161
|
+
thingNode.value = null;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
selectedKeyArr.value = selectedKeys;
|
|
165
|
+
currPage.value = 1;
|
|
166
|
+
refresh();
|
|
167
|
+
getOpiton();
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const expandNode = (keys: string[]) => {
|
|
171
|
+
expandedKeys.value = keys;
|
|
172
|
+
autoExpandParent.value = false;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// table
|
|
176
|
+
const queryFormRef = ref();
|
|
177
|
+
const formQuery: any = reactive({});
|
|
178
|
+
const getList = async () => {
|
|
179
|
+
const param: any = { ...formQuery, wherePojoList: [] };
|
|
180
|
+
|
|
181
|
+
queryOpts.value.forEach((ele: any) => {
|
|
182
|
+
if (ele.value) {
|
|
183
|
+
param.wherePojoList.push({
|
|
184
|
+
column: ele.columnName,
|
|
185
|
+
operation: ele.operation,
|
|
186
|
+
valueList: [ele.value],
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
const res: any = await thingApis.indInsts({
|
|
191
|
+
...param,
|
|
192
|
+
pageNum: currPage.value,
|
|
193
|
+
pageSize: pageSize.value,
|
|
194
|
+
});
|
|
195
|
+
const resObj: any = {
|
|
196
|
+
columnData: [],
|
|
197
|
+
data: [],
|
|
198
|
+
totalNum: res.data?.total,
|
|
199
|
+
};
|
|
200
|
+
columnData.value.sort((a, b) => {
|
|
201
|
+
return a.sort - b.sort;
|
|
202
|
+
});
|
|
203
|
+
const list = columnData.value.filter((n) => n.sort === null);
|
|
204
|
+
resObj.columnData = columnData.value.filter((n) => n.sort !== null);
|
|
205
|
+
resObj.columnData = [...resObj.columnData, ...list].map((item) => item);
|
|
206
|
+
resObj.columnData.push({
|
|
207
|
+
title: "操作",
|
|
208
|
+
dataIndex: "action",
|
|
209
|
+
key: "action",
|
|
210
|
+
});
|
|
211
|
+
resObj.data = res.data?.list.map((ele: any) => ({
|
|
212
|
+
...ele.staticMap.map,
|
|
213
|
+
thingPropertyList: ele.thingInst?.thing?.thingPropertyList,
|
|
214
|
+
}));
|
|
215
|
+
return resObj;
|
|
216
|
+
};
|
|
217
|
+
const state = reactive<{
|
|
218
|
+
selectedRowKeys: string[];
|
|
219
|
+
selectedRows: any[];
|
|
220
|
+
modalVisible: boolean;
|
|
221
|
+
}>({
|
|
222
|
+
selectedRowKeys: [],
|
|
223
|
+
selectedRows: [],
|
|
224
|
+
modalVisible: true,
|
|
225
|
+
});
|
|
226
|
+
const onSelectChange = (selectedRowKeys: string[], selectedRows: any[]) => {
|
|
227
|
+
state.selectedRowKeys = selectedRowKeys;
|
|
228
|
+
state.selectedRows = selectedRows;
|
|
229
|
+
};
|
|
230
|
+
const {
|
|
231
|
+
isLoading,
|
|
232
|
+
columns,
|
|
233
|
+
tableList,
|
|
234
|
+
pagination,
|
|
235
|
+
refresh,
|
|
236
|
+
currPage,
|
|
237
|
+
pageSize,
|
|
238
|
+
} = useTableList(getList, "list", "total");
|
|
239
|
+
const reset = () => {
|
|
240
|
+
queryOpts.value.forEach((ele) => {
|
|
241
|
+
ele.value = "";
|
|
242
|
+
ele.operation = "LIKE";
|
|
243
|
+
});
|
|
244
|
+
refresh();
|
|
245
|
+
};
|
|
246
|
+
const pageData = reactive({
|
|
247
|
+
editData: {},
|
|
248
|
+
addData: {},
|
|
249
|
+
thingCode: "",
|
|
250
|
+
id: "",
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
// all table
|
|
254
|
+
const queryAllFormRef = ref();
|
|
255
|
+
const columnsAll = [
|
|
256
|
+
// {
|
|
257
|
+
// dataIndex: "id",
|
|
258
|
+
// title: "实例ID",
|
|
259
|
+
// },
|
|
260
|
+
{
|
|
261
|
+
dataIndex: "name",
|
|
262
|
+
title: "实例名称",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
dataIndex: "code",
|
|
266
|
+
title: "实例编码",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
dataIndex: "thingName",
|
|
270
|
+
title: "物模型名称",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
dataIndex: "thingCode",
|
|
274
|
+
title: "物模型编码",
|
|
275
|
+
},
|
|
276
|
+
{ title: "操作", key: "action" },
|
|
277
|
+
];
|
|
278
|
+
const formQueryAll: any = ref([
|
|
279
|
+
// { label: "实例ID", column: "instanceId", operation: "LIKE", value: null },
|
|
280
|
+
{
|
|
281
|
+
label: "实例名称",
|
|
282
|
+
column: "instanceName",
|
|
283
|
+
operation: "LIKE",
|
|
284
|
+
value: null,
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
label: "实例编码",
|
|
288
|
+
column: "instanceCode",
|
|
289
|
+
operation: "LIKE",
|
|
290
|
+
value: null,
|
|
291
|
+
},
|
|
292
|
+
{ label: "属性ID", column: "propertyId", operation: "LIKE", value: null },
|
|
293
|
+
{
|
|
294
|
+
label: "属性名称",
|
|
295
|
+
column: "displayLabel",
|
|
296
|
+
operation: "LIKE",
|
|
297
|
+
value: null,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
label: "属性编码",
|
|
301
|
+
column: "propertyCode",
|
|
302
|
+
operation: "LIKE",
|
|
303
|
+
value: null,
|
|
304
|
+
},
|
|
305
|
+
]);
|
|
306
|
+
const getListAll = async () => {
|
|
307
|
+
const param: any = { wherePojoList: [] };
|
|
308
|
+
|
|
309
|
+
formQueryAll.value.forEach((ele: any) => {
|
|
310
|
+
if (ele.value) {
|
|
311
|
+
param.wherePojoList.push({
|
|
312
|
+
column: ele.column,
|
|
313
|
+
operation: ele.operation,
|
|
314
|
+
valueList: [ele.value],
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
const resp = await thingApis.indInstsAll({
|
|
319
|
+
...param,
|
|
320
|
+
pageNum: currPageAll.value,
|
|
321
|
+
pageSize: pageSizeAll.value,
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
const resObj: any = {
|
|
325
|
+
columnData: [],
|
|
326
|
+
data: resp.data?.list,
|
|
327
|
+
totalNum: resp.data?.total,
|
|
328
|
+
};
|
|
329
|
+
return resObj;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
const {
|
|
333
|
+
isLoading: isLoadingAll,
|
|
334
|
+
tableList: tableListAll,
|
|
335
|
+
pagination: paginationAll,
|
|
336
|
+
refresh: refreshAll,
|
|
337
|
+
currPage: currPageAll,
|
|
338
|
+
pageSize: pageSizeAll,
|
|
339
|
+
} = useTableList(getListAll, "list", "total");
|
|
340
|
+
const resetAll = () => {
|
|
341
|
+
formQueryAll.value.forEach((ele) => {
|
|
342
|
+
ele.value = "";
|
|
343
|
+
ele.operation = "LIKE";
|
|
344
|
+
});
|
|
345
|
+
refreshAll();
|
|
346
|
+
};
|
|
347
|
+
const stateAll = reactive<{
|
|
348
|
+
selectedRowKeys: string[];
|
|
349
|
+
selectedRows: any[];
|
|
350
|
+
}>({
|
|
351
|
+
selectedRowKeys: [],
|
|
352
|
+
selectedRows: [],
|
|
353
|
+
});
|
|
354
|
+
const onSelectChangeAll = (
|
|
355
|
+
selectedRowKeys: string[],
|
|
356
|
+
selectedRows: any[]
|
|
357
|
+
) => {
|
|
358
|
+
stateAll.selectedRowKeys = selectedRowKeys;
|
|
359
|
+
stateAll.selectedRows = selectedRows;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
// 弹框
|
|
363
|
+
const modalRef = ref<any>(null);
|
|
364
|
+
const toEdit = async (row?: any) => {
|
|
365
|
+
const res: any = await thingApis.findThingProperties(row.ID);
|
|
366
|
+
pageData.thingCode = row.THING_CODE;
|
|
367
|
+
pageData.editData = res.data;
|
|
368
|
+
page.value = "edit";
|
|
369
|
+
};
|
|
370
|
+
const toCreate = async (row?: any) => {
|
|
371
|
+
const res: any = await thingApis.findByCode(formQuery.thingCode);
|
|
372
|
+
if (res.data.tableName === "-") {
|
|
373
|
+
message.error("该模型不支持新增实例!");
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
pageData.thingCode = formQuery.thingCode;
|
|
377
|
+
pageData.addData = res.data;
|
|
378
|
+
page.value = "add";
|
|
379
|
+
};
|
|
380
|
+
const toDetail = async (row: any, hideEdit = false, hideBack = false) => {
|
|
381
|
+
hideBtnLine.value = false;
|
|
382
|
+
hideEditBtn.value = hideEdit;
|
|
383
|
+
hideBackBtn.value = hideBack;
|
|
384
|
+
const res: any = await thingApis.findThingProperties(row.ID);
|
|
385
|
+
pageData.id = row.ID;
|
|
386
|
+
pageData.thingCode = row.THING_CODE;
|
|
387
|
+
pageData.editData = res.data;
|
|
388
|
+
page.value = "detail";
|
|
389
|
+
};
|
|
390
|
+
const deleteThing = async (row) => {
|
|
391
|
+
const res: any = await thingApis.deleteThing(row.ID.toString());
|
|
392
|
+
|
|
393
|
+
if (formQuery.thingCode) {
|
|
394
|
+
refresh();
|
|
395
|
+
} else {
|
|
396
|
+
refreshAll();
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if ((res.code = "M0000")) {
|
|
400
|
+
message.success("删除成功");
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
const queryOpts = ref<any[]>([]);
|
|
404
|
+
const columnData = ref<any>([]);
|
|
405
|
+
const batchDelete = async () => {
|
|
406
|
+
for (const row of state.selectedRows) {
|
|
407
|
+
const res: any = await thingApis.deleteThing(row.ID.toString());
|
|
408
|
+
}
|
|
409
|
+
if (formQuery.thingCode) {
|
|
410
|
+
refresh();
|
|
411
|
+
state.selectedRowKeys = [];
|
|
412
|
+
state.selectedRows = [];
|
|
413
|
+
} else {
|
|
414
|
+
refreshAll();
|
|
415
|
+
stateAll.selectedRowKeys = [];
|
|
416
|
+
stateAll.selectedRows = [];
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
message.success("删除成功");
|
|
420
|
+
};
|
|
421
|
+
const importModal = ref(false);
|
|
422
|
+
|
|
423
|
+
const newThing = ref(null);
|
|
424
|
+
|
|
425
|
+
onMounted(() => {
|
|
426
|
+
const { newThingInfo } = route?.query;
|
|
427
|
+
if (newThingInfo) {
|
|
428
|
+
newThing.value = JSON.parse(newThingInfo as any);
|
|
429
|
+
|
|
430
|
+
toNewThing(newThing.value);
|
|
431
|
+
} else {
|
|
432
|
+
getTreeData();
|
|
433
|
+
refreshAll();
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
const isInit = ref(false);
|
|
438
|
+
|
|
439
|
+
watch(
|
|
440
|
+
() => [tree.data, _props.thingCode],
|
|
441
|
+
(e) => {
|
|
442
|
+
if (e[0] && e[1] && e[1] !== "" && !isInit.value) {
|
|
443
|
+
page.value = "list";
|
|
444
|
+
searchValue.value = "";
|
|
445
|
+
|
|
446
|
+
formQuery.thingCode = _props.thingCode;
|
|
447
|
+
const { node, key } = treeBycodeFilter(tree.data, _props.thingCode);
|
|
448
|
+
|
|
449
|
+
thingNode.value = node;
|
|
450
|
+
selectedKeyArr.value = [key];
|
|
451
|
+
const keys = new Search({
|
|
452
|
+
treeData: tree.data,
|
|
453
|
+
key,
|
|
454
|
+
});
|
|
455
|
+
const keyData = keys.rtn();
|
|
456
|
+
expandedKeys.value = keyData.expandedKeys;
|
|
457
|
+
refresh();
|
|
458
|
+
getOpiton();
|
|
459
|
+
} else {
|
|
460
|
+
formQuery.thingCode = "";
|
|
461
|
+
selectedKeyArr.value = [];
|
|
462
|
+
thingNode.value = null;
|
|
463
|
+
|
|
464
|
+
isInit.value = false;
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
immediate: true,
|
|
469
|
+
deep: true,
|
|
470
|
+
}
|
|
471
|
+
);
|
|
472
|
+
|
|
473
|
+
const page = ref("list");
|
|
474
|
+
const file = ref();
|
|
475
|
+
|
|
476
|
+
const exportFun = (resource: any, name: string) => {
|
|
477
|
+
const blob = new Blob([resource], {
|
|
478
|
+
type: "text/html;charset=UTF-8",
|
|
479
|
+
});
|
|
480
|
+
const a = document.createElement("a");
|
|
481
|
+
a.href = URL.createObjectURL(blob);
|
|
482
|
+
a.download = name;
|
|
483
|
+
a.style.display = "none";
|
|
484
|
+
document.body.appendChild(a);
|
|
485
|
+
a.click();
|
|
486
|
+
a.remove();
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
// 配点模板下载
|
|
490
|
+
const dynamicExport = async (exportName: string, node?: any) => {
|
|
491
|
+
const param: any = {};
|
|
492
|
+
if (node) {
|
|
493
|
+
param.thingCode = formQuery.thingCode;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
message.info("正在导出,请稍后");
|
|
497
|
+
const res: any = await thingApis.exportExcelTemplate(param);
|
|
498
|
+
|
|
499
|
+
exportFun(res, exportName);
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
// 导出全部
|
|
503
|
+
const exportAll = async (ids: any[] = []) => {
|
|
504
|
+
const param: any = {};
|
|
505
|
+
if (ids.length > 0) {
|
|
506
|
+
param.ids = ids;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
message.info("正在导出,请稍后");
|
|
510
|
+
const res: any = await thingApis.exportPointExcelTemplate(param);
|
|
511
|
+
exportFun(res, `物实例数据-${moment().format("YYYYMMDDHHmmss")}.xls`);
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
// 选中树物实例导出
|
|
515
|
+
const exportThing = async (ids: any[] = []) => {
|
|
516
|
+
if (thingNode.value) {
|
|
517
|
+
const param: any = {};
|
|
518
|
+
param.thingCode = formQuery.thingCode;
|
|
519
|
+
if (ids.length > 0) {
|
|
520
|
+
param.ids = ids;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
message.info("正在导出,请稍后");
|
|
524
|
+
const res: any = await thingApis.exportPointExcelTemplate(param);
|
|
525
|
+
exportFun(
|
|
526
|
+
res,
|
|
527
|
+
`物实例数据-${thingNode.value.name}-${moment().format(
|
|
528
|
+
"YYYYMMDDHHmmss"
|
|
529
|
+
)}.xls`
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
const renderPointModal = (node?: any) => {
|
|
535
|
+
const exportName = `动态属性${
|
|
536
|
+
node ? "-" + node?.name : ""
|
|
537
|
+
}-${moment().format("YYYYMMDDHHmmss")}.xls`;
|
|
538
|
+
return (
|
|
539
|
+
<a-modal
|
|
540
|
+
v-model={[importModal.value, "visible"]}
|
|
541
|
+
title={"批量配点" + (node ? " - " + node?.name : "")}
|
|
542
|
+
class="pointModal"
|
|
543
|
+
width={800}
|
|
544
|
+
footer={null}
|
|
545
|
+
onCancel={() => {
|
|
546
|
+
importModal.value = false;
|
|
547
|
+
}}
|
|
548
|
+
>
|
|
549
|
+
<div
|
|
550
|
+
style={{
|
|
551
|
+
display: "flex",
|
|
552
|
+
alignItems: "center",
|
|
553
|
+
backgroundColor: "rgba(255, 146, 20, 0.1)",
|
|
554
|
+
}}
|
|
555
|
+
>
|
|
556
|
+
<a-alert
|
|
557
|
+
message="请先下载当前所有的动态属性并按要求填写信息,否则可能导入失败。上传文件后将覆盖式更新,请谨慎操作!"
|
|
558
|
+
banner
|
|
559
|
+
/>
|
|
560
|
+
<a-button
|
|
561
|
+
type="link"
|
|
562
|
+
onClick={() => {
|
|
563
|
+
dynamicExport(exportName, node);
|
|
564
|
+
}}
|
|
565
|
+
>
|
|
566
|
+
{exportName}
|
|
567
|
+
</a-button>
|
|
568
|
+
</div>
|
|
569
|
+
<a-upload-dragger
|
|
570
|
+
showUploadList={false}
|
|
571
|
+
accept=".xls,.xlsx"
|
|
572
|
+
customRequest={async (e) => {
|
|
573
|
+
const res = await customRequest(e, thingApis.importExcel);
|
|
574
|
+
importModal.value = false;
|
|
575
|
+
}}
|
|
576
|
+
>
|
|
577
|
+
<p class="ant-upload-drag-icon">
|
|
578
|
+
<inbox-outlined></inbox-outlined>
|
|
579
|
+
</p>
|
|
580
|
+
<p class="ant-upload-text">点击或将文件拖拽到这里上传</p>
|
|
581
|
+
<p class="ant-upload-hint">支持格式:xls/xlsx</p>
|
|
582
|
+
</a-upload-dragger>
|
|
583
|
+
</a-modal>
|
|
584
|
+
);
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
const initHandle = () => {
|
|
588
|
+
canAdd.value = true;
|
|
589
|
+
searchValue.value = "";
|
|
590
|
+
expandedKeys.value = [];
|
|
591
|
+
|
|
592
|
+
stateAll.selectedRowKeys = [];
|
|
593
|
+
stateAll.selectedRows = [];
|
|
594
|
+
|
|
595
|
+
state.selectedRowKeys = [];
|
|
596
|
+
state.selectedRows = [];
|
|
597
|
+
state.modalVisible = true;
|
|
598
|
+
|
|
599
|
+
isInit.value = true;
|
|
600
|
+
|
|
601
|
+
getTreeData();
|
|
602
|
+
refreshAll();
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
const isLoad = ref(false);
|
|
606
|
+
const hideEditBtn = ref(false);
|
|
607
|
+
const hideBtnLine = ref(false);
|
|
608
|
+
const hideBackBtn = ref(false);
|
|
609
|
+
const toNewThing = async (row: any) => {
|
|
610
|
+
page.value = "detail";
|
|
611
|
+
isLoad.value = true;
|
|
612
|
+
hideBackBtn.value = true;
|
|
613
|
+
|
|
614
|
+
const res: any = await thingApis.findThingProperties(row.id);
|
|
615
|
+
pageData.id = row.id;
|
|
616
|
+
pageData.thingCode = row.thingInst.thingCode;
|
|
617
|
+
pageData.editData = res.data;
|
|
618
|
+
|
|
619
|
+
isLoad.value = false;
|
|
620
|
+
};
|
|
621
|
+
provide("toNewThing", toNewThing);
|
|
622
|
+
|
|
623
|
+
const toRouter = async (row: any) => {
|
|
624
|
+
_context.emit("toRouter", row);
|
|
625
|
+
};
|
|
626
|
+
provide("toRouter", toRouter);
|
|
627
|
+
|
|
628
|
+
return () => (
|
|
629
|
+
<div
|
|
630
|
+
class="thingApp flex"
|
|
631
|
+
style={{ justifyContent: isLoad.value ? "center" : "" }}
|
|
632
|
+
>
|
|
633
|
+
{page.value === "edit" ? (
|
|
634
|
+
<editThing
|
|
635
|
+
data={pageData.editData}
|
|
636
|
+
triggerModeList={triggerModeList}
|
|
637
|
+
hideBackBtn={hideBackBtn.value}
|
|
638
|
+
onBack={() => {
|
|
639
|
+
refresh();
|
|
640
|
+
page.value = "detail";
|
|
641
|
+
}}
|
|
642
|
+
onBackList={() => {
|
|
643
|
+
refresh();
|
|
644
|
+
page.value = "list";
|
|
645
|
+
}}
|
|
646
|
+
onToDetail={(res) => {
|
|
647
|
+
toDetail(res);
|
|
648
|
+
}}
|
|
649
|
+
onToRoute={() => {
|
|
650
|
+
_context.emit("toRoute");
|
|
651
|
+
}}
|
|
652
|
+
/>
|
|
653
|
+
) : (
|
|
654
|
+
""
|
|
655
|
+
)}
|
|
656
|
+
{page.value === "add" ? (
|
|
657
|
+
<addThing
|
|
658
|
+
data={pageData.addData}
|
|
659
|
+
triggerModeList={triggerModeList}
|
|
660
|
+
onBack={() => {
|
|
661
|
+
refresh();
|
|
662
|
+
page.value = "list";
|
|
663
|
+
}}
|
|
664
|
+
onBackList={() => {
|
|
665
|
+
refresh();
|
|
666
|
+
page.value = "list";
|
|
667
|
+
}}
|
|
668
|
+
onToDetail={(res) => {
|
|
669
|
+
toDetail(res);
|
|
670
|
+
}}
|
|
671
|
+
onToRoute={() => {
|
|
672
|
+
_context.emit("toRoute");
|
|
673
|
+
}}
|
|
674
|
+
/>
|
|
675
|
+
) : (
|
|
676
|
+
""
|
|
677
|
+
)}
|
|
678
|
+
{page.value === "detail" ? (
|
|
679
|
+
<a-spin spinning={isLoad.value}>
|
|
680
|
+
{!isLoad.value && (
|
|
681
|
+
<thingDetail
|
|
682
|
+
data={pageData.editData}
|
|
683
|
+
id={pageData.id}
|
|
684
|
+
hideBtnLine={hideBtnLine.value}
|
|
685
|
+
hideEditBtn={hideEditBtn.value}
|
|
686
|
+
hideBackBtn={hideBackBtn.value}
|
|
687
|
+
onBack={() => {
|
|
688
|
+
if (formQuery.thingCode) {
|
|
689
|
+
refresh();
|
|
690
|
+
} else {
|
|
691
|
+
refreshAll();
|
|
692
|
+
if (newThing.value) {
|
|
693
|
+
newThing.value = null;
|
|
694
|
+
getTreeData();
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
page.value = "list";
|
|
698
|
+
}}
|
|
699
|
+
onBackList={() => {
|
|
700
|
+
if (formQuery.thingCode) {
|
|
701
|
+
refresh();
|
|
702
|
+
} else {
|
|
703
|
+
refreshAll();
|
|
704
|
+
if (newThing.value) {
|
|
705
|
+
newThing.value = null;
|
|
706
|
+
getTreeData();
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
page.value = "list";
|
|
710
|
+
}}
|
|
711
|
+
onToEdit={(res) => {
|
|
712
|
+
toEdit(res);
|
|
713
|
+
}}
|
|
714
|
+
/>
|
|
715
|
+
)}
|
|
716
|
+
</a-spin>
|
|
717
|
+
) : (
|
|
718
|
+
""
|
|
719
|
+
)}
|
|
720
|
+
<div
|
|
721
|
+
class="thingInstance flex"
|
|
722
|
+
style={page.value !== "list" ? "display:none" : ""}
|
|
723
|
+
>
|
|
724
|
+
<div class="left_wrap">
|
|
725
|
+
<div class="flex_lr_c">
|
|
726
|
+
<div class="flex-center title flex1">
|
|
727
|
+
<span>物模型</span>
|
|
728
|
+
|
|
729
|
+
<div class="flex gap">
|
|
730
|
+
<RedoOutlined onClick={initHandle} title="刷新" />
|
|
731
|
+
{/* <MenuFoldOutlined /> */}
|
|
732
|
+
</div>
|
|
733
|
+
</div>
|
|
734
|
+
</div>
|
|
735
|
+
|
|
736
|
+
<div class="tree_data">
|
|
737
|
+
<a-input-search
|
|
738
|
+
class="search"
|
|
739
|
+
v-model={[searchValue.value, "value", ["trim"]]}
|
|
740
|
+
style="margin-bottom: 8px"
|
|
741
|
+
placeholder="搜索"
|
|
742
|
+
allowClear
|
|
743
|
+
/>
|
|
744
|
+
<div
|
|
745
|
+
class="mar-t-20 tree_wrap"
|
|
746
|
+
style={{ height: "calc(100vh - 240px)" }}
|
|
747
|
+
>
|
|
748
|
+
{tree.data.length ? (
|
|
749
|
+
<a-tree
|
|
750
|
+
show-line
|
|
751
|
+
blockNode={true}
|
|
752
|
+
tree-data={tree.data}
|
|
753
|
+
field-names={fieldNames}
|
|
754
|
+
onSelect={selectNode}
|
|
755
|
+
onExpand={expandNode}
|
|
756
|
+
selectedKeys={selectedKeyArr.value}
|
|
757
|
+
expandedKeys={expandedKeys.value}
|
|
758
|
+
autoExpandParent={autoExpandParent.value}
|
|
759
|
+
v-slots={{
|
|
760
|
+
title: (ele: any) => {
|
|
761
|
+
return (
|
|
762
|
+
<span class="tree-node-title">
|
|
763
|
+
<span style={ele.first ? "font-weight:700" : ""}>
|
|
764
|
+
{ele.name}
|
|
765
|
+
</span>
|
|
766
|
+
</span>
|
|
767
|
+
);
|
|
768
|
+
},
|
|
769
|
+
}}
|
|
770
|
+
></a-tree>
|
|
771
|
+
) : null}
|
|
772
|
+
</div>
|
|
773
|
+
</div>
|
|
774
|
+
</div>
|
|
775
|
+
<div class="table_wrap">
|
|
776
|
+
{!formQuery.thingCode ? (
|
|
777
|
+
// <a-empty
|
|
778
|
+
// image="/micro-assets/platform-web/empty.png"
|
|
779
|
+
// image-style={{
|
|
780
|
+
// height: "17.57rem",
|
|
781
|
+
// }}
|
|
782
|
+
// v-slots={{
|
|
783
|
+
// description: () => (
|
|
784
|
+
// <span style={{ fontSize: "1rem", color: "#354052" }}>
|
|
785
|
+
// 请先在左侧选择一个物规格
|
|
786
|
+
// </span>
|
|
787
|
+
// ),
|
|
788
|
+
// }}
|
|
789
|
+
// ></a-empty>
|
|
790
|
+
<>
|
|
791
|
+
<div class="option">
|
|
792
|
+
<a-form
|
|
793
|
+
ref={queryAllFormRef}
|
|
794
|
+
model={formQueryAll.value}
|
|
795
|
+
labelCol={{ span: 8 }}
|
|
796
|
+
wrapperCol={{ span: 16 }}
|
|
797
|
+
onSubmit={refreshAll}
|
|
798
|
+
>
|
|
799
|
+
<a-row gutter={24}>
|
|
800
|
+
{formQueryAll.value.map((formItem: any) => (
|
|
801
|
+
<a-col span={6}>
|
|
802
|
+
<a-form-item label={formItem.label}>
|
|
803
|
+
<div class="flex">
|
|
804
|
+
<div class="flex">
|
|
805
|
+
<a-select
|
|
806
|
+
class="searchSelect"
|
|
807
|
+
v-model={[formItem.operation, "value"]}
|
|
808
|
+
>
|
|
809
|
+
<a-select-option value="EQ">
|
|
810
|
+
{"="}
|
|
811
|
+
</a-select-option>
|
|
812
|
+
<a-select-option value="NE">
|
|
813
|
+
{"!="}
|
|
814
|
+
</a-select-option>
|
|
815
|
+
<a-select-option value="GT">
|
|
816
|
+
{">"}
|
|
817
|
+
</a-select-option>
|
|
818
|
+
<a-select-option value="GTE">
|
|
819
|
+
{">="}
|
|
820
|
+
</a-select-option>
|
|
821
|
+
<a-select-option value="LT">
|
|
822
|
+
{"<"}
|
|
823
|
+
</a-select-option>
|
|
824
|
+
<a-select-option value="LTE">
|
|
825
|
+
{"<="}
|
|
826
|
+
</a-select-option>
|
|
827
|
+
<a-select-option value="LIKE">
|
|
828
|
+
{"包含"}
|
|
829
|
+
</a-select-option>
|
|
830
|
+
</a-select>
|
|
831
|
+
<a-input
|
|
832
|
+
v-model={[formItem.value, "value", ["trim"]]}
|
|
833
|
+
allowClear={true}
|
|
834
|
+
/>
|
|
835
|
+
</div>
|
|
836
|
+
</div>
|
|
837
|
+
</a-form-item>
|
|
838
|
+
</a-col>
|
|
839
|
+
))}
|
|
840
|
+
<a-col span={18} class="align-r">
|
|
841
|
+
<a-space size={16}>
|
|
842
|
+
<a-button type="primary" html-type="submit">
|
|
843
|
+
查询
|
|
844
|
+
</a-button>
|
|
845
|
+
<a-button onClick={resetAll}>重置</a-button>
|
|
846
|
+
</a-space>
|
|
847
|
+
</a-col>
|
|
848
|
+
</a-row>
|
|
849
|
+
</a-form>
|
|
850
|
+
</div>
|
|
851
|
+
<a-space size={16}>
|
|
852
|
+
<a-button
|
|
853
|
+
type="primary"
|
|
854
|
+
onClick={() => {
|
|
855
|
+
exportAll();
|
|
856
|
+
}}
|
|
857
|
+
ghost
|
|
858
|
+
>
|
|
859
|
+
导出全部
|
|
860
|
+
</a-button>
|
|
861
|
+
<a-button
|
|
862
|
+
type="primary"
|
|
863
|
+
disabled={stateAll.selectedRowKeys.length == 0}
|
|
864
|
+
onClick={() => {
|
|
865
|
+
exportAll(stateAll.selectedRowKeys);
|
|
866
|
+
}}
|
|
867
|
+
>
|
|
868
|
+
导出选中
|
|
869
|
+
</a-button>
|
|
870
|
+
|
|
871
|
+
{renderPointModal()}
|
|
872
|
+
<a-button
|
|
873
|
+
onClick={() => {
|
|
874
|
+
importModal.value = true;
|
|
875
|
+
}}
|
|
876
|
+
type="primary"
|
|
877
|
+
ghost
|
|
878
|
+
>
|
|
879
|
+
批量配点
|
|
880
|
+
</a-button>
|
|
881
|
+
</a-space>
|
|
882
|
+
<div class="mar-t-20">
|
|
883
|
+
<a-table
|
|
884
|
+
rowKey={(record) => record.thingInst.id}
|
|
885
|
+
columns={columnsAll}
|
|
886
|
+
row-selection={{
|
|
887
|
+
selectedRowKeys: stateAll.selectedRowKeys,
|
|
888
|
+
onChange: onSelectChangeAll,
|
|
889
|
+
}}
|
|
890
|
+
dataSource={tableListAll.value}
|
|
891
|
+
loading={isLoadingAll.value}
|
|
892
|
+
pagination={paginationAll}
|
|
893
|
+
v-slots={{
|
|
894
|
+
bodyCell: ({ column, record }) => {
|
|
895
|
+
if (column.dataIndex) {
|
|
896
|
+
return record.thingInst[column.dataIndex];
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (column.key === "action") {
|
|
900
|
+
return (
|
|
901
|
+
<a-space>
|
|
902
|
+
<a
|
|
903
|
+
onClick={() => {
|
|
904
|
+
toEdit({
|
|
905
|
+
...record,
|
|
906
|
+
ID: record.thingInst.id,
|
|
907
|
+
THING_CODE: record.thingInst.thingCode,
|
|
908
|
+
});
|
|
909
|
+
}}
|
|
910
|
+
>
|
|
911
|
+
编辑
|
|
912
|
+
</a>
|
|
913
|
+
<a
|
|
914
|
+
onClick={() => {
|
|
915
|
+
// // 本页打开
|
|
916
|
+
// toDetail({
|
|
917
|
+
// ...record,
|
|
918
|
+
// ID: record.thingInst.id,
|
|
919
|
+
// THING_CODE: record.thingInst.thingCode,
|
|
920
|
+
// });
|
|
921
|
+
|
|
922
|
+
// 新页签打开
|
|
923
|
+
toRouter(
|
|
924
|
+
decodeURI(
|
|
925
|
+
JSON.stringify({
|
|
926
|
+
id: record.thingInst.id,
|
|
927
|
+
thingInst: {
|
|
928
|
+
name: record.thingInst.name,
|
|
929
|
+
thingCode: record.thingInst.thingCode,
|
|
930
|
+
},
|
|
931
|
+
})
|
|
932
|
+
)
|
|
933
|
+
);
|
|
934
|
+
}}
|
|
935
|
+
>
|
|
936
|
+
详情
|
|
937
|
+
</a>
|
|
938
|
+
<a-popconfirm
|
|
939
|
+
title="确认删除?"
|
|
940
|
+
ok-text="确定"
|
|
941
|
+
cancel-text="取消"
|
|
942
|
+
onConfirm={() => {
|
|
943
|
+
deleteThing({
|
|
944
|
+
...record,
|
|
945
|
+
ID: record.thingInst.id,
|
|
946
|
+
});
|
|
947
|
+
}}
|
|
948
|
+
>
|
|
949
|
+
<a-button size="small" type="link">
|
|
950
|
+
删除
|
|
951
|
+
</a-button>
|
|
952
|
+
</a-popconfirm>
|
|
953
|
+
</a-space>
|
|
954
|
+
);
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
}}
|
|
958
|
+
></a-table>
|
|
959
|
+
</div>
|
|
960
|
+
</>
|
|
961
|
+
) : (
|
|
962
|
+
<>
|
|
963
|
+
<div class="option">
|
|
964
|
+
<a-form
|
|
965
|
+
ref={queryFormRef}
|
|
966
|
+
model={formQuery}
|
|
967
|
+
labelCol={{ span: 8 }}
|
|
968
|
+
wrapperCol={{ span: 16 }}
|
|
969
|
+
onSubmit={refresh}
|
|
970
|
+
>
|
|
971
|
+
<a-row gutter={24}>
|
|
972
|
+
{queryOpts.value.map((item: any) => {
|
|
973
|
+
return (
|
|
974
|
+
<a-col span={6}>
|
|
975
|
+
<a-form-item label={item.displayLabel}>
|
|
976
|
+
<div class="flex">
|
|
977
|
+
<a-select
|
|
978
|
+
class="searchSelect"
|
|
979
|
+
v-model={[item.operation, "value"]}
|
|
980
|
+
>
|
|
981
|
+
<a-select-option value="EQ">
|
|
982
|
+
{"="}
|
|
983
|
+
</a-select-option>
|
|
984
|
+
<a-select-option value="NE">
|
|
985
|
+
{"!="}
|
|
986
|
+
</a-select-option>
|
|
987
|
+
<a-select-option value="GT">
|
|
988
|
+
{">"}
|
|
989
|
+
</a-select-option>
|
|
990
|
+
<a-select-option value="GTE">
|
|
991
|
+
{">="}
|
|
992
|
+
</a-select-option>
|
|
993
|
+
<a-select-option value="LT">
|
|
994
|
+
{"<"}
|
|
995
|
+
</a-select-option>
|
|
996
|
+
<a-select-option value="LTE">
|
|
997
|
+
{"<="}
|
|
998
|
+
</a-select-option>
|
|
999
|
+
<a-select-option value="LIKE">
|
|
1000
|
+
{"包含"}
|
|
1001
|
+
</a-select-option>
|
|
1002
|
+
</a-select>
|
|
1003
|
+
<a-input
|
|
1004
|
+
v-model={[item.value, "value", ["trim"]]}
|
|
1005
|
+
allowClear={true}
|
|
1006
|
+
/>
|
|
1007
|
+
</div>
|
|
1008
|
+
</a-form-item>
|
|
1009
|
+
</a-col>
|
|
1010
|
+
);
|
|
1011
|
+
})}
|
|
1012
|
+
<a-col
|
|
1013
|
+
span={24 - (queryOpts.value.length % 4) * 6}
|
|
1014
|
+
class="align-r"
|
|
1015
|
+
>
|
|
1016
|
+
<a-space size={16}>
|
|
1017
|
+
<a-button type="primary" html-type="submit">
|
|
1018
|
+
查询
|
|
1019
|
+
</a-button>
|
|
1020
|
+
<a-button onClick={reset}>重置</a-button>
|
|
1021
|
+
{/* <a-space size={5}>
|
|
1022
|
+
<span>更多</span>
|
|
1023
|
+
<DownOutlined />
|
|
1024
|
+
</a-space> */}
|
|
1025
|
+
</a-space>
|
|
1026
|
+
</a-col>
|
|
1027
|
+
</a-row>
|
|
1028
|
+
</a-form>
|
|
1029
|
+
</div>
|
|
1030
|
+
<a-space size={16}>
|
|
1031
|
+
<a-button
|
|
1032
|
+
type="primary"
|
|
1033
|
+
onClick={() => toCreate()}
|
|
1034
|
+
disabled={!formQuery.thingCode || !canAdd.value}
|
|
1035
|
+
>
|
|
1036
|
+
新增
|
|
1037
|
+
</a-button>
|
|
1038
|
+
<a-upload
|
|
1039
|
+
showUploadList={false}
|
|
1040
|
+
accept=".xls,.xlsx"
|
|
1041
|
+
customRequest={(e) =>
|
|
1042
|
+
customRequest(e, thingApis.importPointExcel)
|
|
1043
|
+
}
|
|
1044
|
+
>
|
|
1045
|
+
<a-button type="primary" ghost>
|
|
1046
|
+
批量导入
|
|
1047
|
+
</a-button>
|
|
1048
|
+
</a-upload>
|
|
1049
|
+
<a-button
|
|
1050
|
+
type="primary"
|
|
1051
|
+
onClick={() => {
|
|
1052
|
+
exportThing();
|
|
1053
|
+
}}
|
|
1054
|
+
ghost
|
|
1055
|
+
>
|
|
1056
|
+
导出全部
|
|
1057
|
+
</a-button>
|
|
1058
|
+
<a-button
|
|
1059
|
+
type="primary"
|
|
1060
|
+
disabled={state.selectedRowKeys.length == 0}
|
|
1061
|
+
onClick={() => {
|
|
1062
|
+
exportThing(state.selectedRowKeys);
|
|
1063
|
+
}}
|
|
1064
|
+
>
|
|
1065
|
+
导出选中
|
|
1066
|
+
</a-button>
|
|
1067
|
+
|
|
1068
|
+
<a-popconfirm
|
|
1069
|
+
title="确认删除?"
|
|
1070
|
+
ok-text="确定"
|
|
1071
|
+
cancel-text="取消"
|
|
1072
|
+
onConfirm={() => {
|
|
1073
|
+
batchDelete();
|
|
1074
|
+
}}
|
|
1075
|
+
>
|
|
1076
|
+
<a-button
|
|
1077
|
+
type="danger"
|
|
1078
|
+
disabled={state.selectedRowKeys.length == 0}
|
|
1079
|
+
>
|
|
1080
|
+
删除选中
|
|
1081
|
+
</a-button>
|
|
1082
|
+
</a-popconfirm>
|
|
1083
|
+
|
|
1084
|
+
{renderPointModal(thingNode.value)}
|
|
1085
|
+
<a-button
|
|
1086
|
+
onClick={() => {
|
|
1087
|
+
importModal.value = true;
|
|
1088
|
+
}}
|
|
1089
|
+
type="primary"
|
|
1090
|
+
ghost
|
|
1091
|
+
>
|
|
1092
|
+
批量配点
|
|
1093
|
+
</a-button>
|
|
1094
|
+
</a-space>
|
|
1095
|
+
<div class="mar-t-20">
|
|
1096
|
+
<a-table
|
|
1097
|
+
rowKey="ID"
|
|
1098
|
+
columns={columns.value}
|
|
1099
|
+
row-selection={{
|
|
1100
|
+
selectedRowKeys: state.selectedRowKeys,
|
|
1101
|
+
onChange: onSelectChange,
|
|
1102
|
+
}}
|
|
1103
|
+
dataSource={tableList.value}
|
|
1104
|
+
loading={isLoading.value}
|
|
1105
|
+
pagination={pagination}
|
|
1106
|
+
v-slots={{
|
|
1107
|
+
bodyCell: ({ column, record }) => {
|
|
1108
|
+
if (column.key === "select") {
|
|
1109
|
+
return listFilter(
|
|
1110
|
+
record.thingPropertyList,
|
|
1111
|
+
record[column.dataIndex],
|
|
1112
|
+
column.dataIndex
|
|
1113
|
+
);
|
|
1114
|
+
}
|
|
1115
|
+
if (column.dataIndex === "action") {
|
|
1116
|
+
return (
|
|
1117
|
+
<a-space>
|
|
1118
|
+
<a
|
|
1119
|
+
onClick={() => {
|
|
1120
|
+
toEdit(record);
|
|
1121
|
+
}}
|
|
1122
|
+
>
|
|
1123
|
+
编辑
|
|
1124
|
+
</a>
|
|
1125
|
+
<a
|
|
1126
|
+
onClick={() => {
|
|
1127
|
+
// // 本页打开
|
|
1128
|
+
// toDetail(record);
|
|
1129
|
+
|
|
1130
|
+
// 新页签打开
|
|
1131
|
+
toRouter(
|
|
1132
|
+
decodeURI(
|
|
1133
|
+
JSON.stringify({
|
|
1134
|
+
id: record.ID,
|
|
1135
|
+
thingInst: {
|
|
1136
|
+
name: record.NAME,
|
|
1137
|
+
thingCode: record.THING_CODE,
|
|
1138
|
+
},
|
|
1139
|
+
})
|
|
1140
|
+
)
|
|
1141
|
+
);
|
|
1142
|
+
}}
|
|
1143
|
+
>
|
|
1144
|
+
详情
|
|
1145
|
+
</a>
|
|
1146
|
+
<a-popconfirm
|
|
1147
|
+
title="确认删除?"
|
|
1148
|
+
ok-text="确定"
|
|
1149
|
+
cancel-text="取消"
|
|
1150
|
+
onConfirm={() => {
|
|
1151
|
+
deleteThing(record);
|
|
1152
|
+
}}
|
|
1153
|
+
>
|
|
1154
|
+
<a-button size="small" type="link">
|
|
1155
|
+
删除
|
|
1156
|
+
</a-button>
|
|
1157
|
+
</a-popconfirm>
|
|
1158
|
+
</a-space>
|
|
1159
|
+
);
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
}}
|
|
1163
|
+
></a-table>
|
|
1164
|
+
</div>
|
|
1165
|
+
</>
|
|
1166
|
+
)}
|
|
1167
|
+
</div>
|
|
1168
|
+
<thing-modal ref={modalRef} />
|
|
1169
|
+
</div>
|
|
1170
|
+
</div>
|
|
1171
|
+
);
|
|
1172
|
+
},
|
|
1173
|
+
});
|
|
1174
|
+
export default utils.installComponent(com, "thing-instance");
|