coolcare-lite-scada-component 1.0.0
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/README.md +21 -0
- package/es/app.js +52 -0
- package/es/componentIndex.js +7 -0
- package/es/components/BoxShadowPicker/index.css +22 -0
- package/es/components/BoxShadowPicker/index.js +114 -0
- package/es/components/BoxShadowPicker/index.less.d.ts +9 -0
- package/es/components/Button/index.js +6 -0
- package/es/components/ColorPalette/index.js +12 -0
- package/es/components/ColorPicker/index.css +38 -0
- package/es/components/ColorPicker/index.js +103 -0
- package/es/components/ColorPicker/util.js +31 -0
- package/es/components/DeviceSelect/DeviceTable.js +320 -0
- package/es/components/DeviceSelect/index.css +6 -0
- package/es/components/DeviceSelect/index.js +112 -0
- package/es/components/DialogExpression/ImagePicker/index.css +13 -0
- package/es/components/DialogExpression/ImagePicker/index.js +44 -0
- package/es/components/DialogExpression/index.css +9 -0
- package/es/components/DialogExpression/index.js +270 -0
- package/es/components/DialogHistory/index.css +10 -0
- package/es/components/DialogHistory/index.js +383 -0
- package/es/components/DialogIconPicker/data.js +179 -0
- package/es/components/DialogIconPicker/index.css +30 -0
- package/es/components/DialogIconPicker/index.js +101 -0
- package/es/components/DialogImagePicker/Gallery/index.css +0 -0
- package/es/components/DialogImagePicker/Gallery/index.js +96 -0
- package/es/components/DialogImagePicker/GroupPanel/index.css +3 -0
- package/es/components/DialogImagePicker/GroupPanel/index.js +89 -0
- package/es/components/DialogImagePicker/index.css +25 -0
- package/es/components/DialogImagePicker/index.js +85 -0
- package/es/components/DialogPointWrite/PointItem.js +91 -0
- package/es/components/DialogPointWrite/index.js +124 -0
- package/es/components/ECharts/index.css +5 -0
- package/es/components/ECharts/index.js +94 -0
- package/es/components/ExpressionFormat/index.css +22 -0
- package/es/components/ExpressionFormat/index.js +50 -0
- package/es/components/FontFamilySelect/index.js +25 -0
- package/es/components/FontFamilySelect/list.js +2194 -0
- package/es/components/FontStyleForm/index.css +3 -0
- package/es/components/FontStyleForm/index.js +170 -0
- package/es/components/FormBindPoint/FreedomScene.js +207 -0
- package/es/components/FormBindPoint/ProductionOrDeviceScene.js +172 -0
- package/es/components/FormBindPoint/index.css +0 -0
- package/es/components/FormBindPoint/index.js +17 -0
- package/es/components/FormIconSelect/index.js +62 -0
- package/es/components/FormNodeData/index.js +82 -0
- package/es/components/FormNodeData/utils/valueUtil.js +8 -0
- package/es/components/Icon/index.js +6 -0
- package/es/components/ImageUploader/index.js +172 -0
- package/es/components/LockBtn/index.css +4 -0
- package/es/components/LockBtn/index.js +45 -0
- package/es/components/Margin_Padding/index.css +3 -0
- package/es/components/Margin_Padding/index.js +155 -0
- package/es/components/MouseTooltip/index.css +7 -0
- package/es/components/MouseTooltip/index.js +57 -0
- package/es/components/NeedBindPointHint/index.css +12 -0
- package/es/components/NeedBindPointHint/index.js +15 -0
- package/es/components/PaddingPicker/index.css +22 -0
- package/es/components/PaddingPicker/index.js +95 -0
- package/es/components/PageLoading/index.css +29 -0
- package/es/components/PageLoading/index.js +30 -0
- package/es/components/PointEnumNameFormat/index.css +4 -0
- package/es/components/PointEnumNameFormat/index.js +9 -0
- package/es/components/PointInfoTip/index.css +3 -0
- package/es/components/PointInfoTip/index.js +193 -0
- package/es/components/PointSelect/DevicePointTable.js +128 -0
- package/es/components/PointSelect/ProductPointTable.js +98 -0
- package/es/components/PointSelect/index.css +9 -0
- package/es/components/PointSelect/index.js +278 -0
- package/es/components/Prompt/index.js +126 -0
- package/es/components/SliderWithInput/index.css +11 -0
- package/es/components/SliderWithInput/index.js +67 -0
- package/es/components/Switch/index.js +69 -0
- package/es/components/TranslateButton/index.js +26 -0
- package/es/constant.js +16 -0
- package/es/edge/EdgeLinePort/PropsSet/Flow.js +173 -0
- package/es/edge/EdgeLinePort/PropsSet/Line.js +73 -0
- package/es/edge/EdgeLinePort/PropsSet/Marker.js +81 -0
- package/es/edge/EdgeLinePort/PropsSet/index.js +25 -0
- package/es/edge/EdgeLinePort/index.js +91 -0
- package/es/edge/EdgePipe/PropsSet/Flow.js +173 -0
- package/es/edge/EdgePipe/PropsSet/Pipe.js +73 -0
- package/es/edge/EdgePipe/PropsSet/index.js +34 -0
- package/es/edge/EdgePipe/index.css +10 -0
- package/es/edge/EdgePipe/index.js +181 -0
- package/es/edge/register.js +6 -0
- package/es/element/BasicShape/Circle/index.js +81 -0
- package/es/element/BasicShape/CommentBox/index.js +77 -0
- package/es/element/BasicShape/CommentBox2/index.js +78 -0
- package/es/element/BasicShape/Ellipse/index.js +80 -0
- package/es/element/BasicShape/Heart/index.js +75 -0
- package/es/element/BasicShape/Lightning/index.js +75 -0
- package/es/element/BasicShape/PropsForm/index.css +0 -0
- package/es/element/BasicShape/PropsForm/index.js +80 -0
- package/es/element/BasicShape/Rectangle/index.js +78 -0
- package/es/element/BasicShape/Star/index.js +75 -0
- package/es/element/BorderBox/BorderBox1/Component.js +74 -0
- package/es/element/BorderBox/BorderBox1/index.css +27 -0
- package/es/element/BorderBox/BorderBox1/index.js +51 -0
- package/es/element/BorderBox/BorderBox10/Component.js +61 -0
- package/es/element/BorderBox/BorderBox10/index.css +28 -0
- package/es/element/BorderBox/BorderBox10/index.js +51 -0
- package/es/element/BorderBox/BorderBox12/Component.js +109 -0
- package/es/element/BorderBox/BorderBox12/index.css +17 -0
- package/es/element/BorderBox/BorderBox12/index.js +51 -0
- package/es/element/BorderBox/BorderBox13/Component.js +55 -0
- package/es/element/BorderBox/BorderBox13/index.css +17 -0
- package/es/element/BorderBox/BorderBox13/index.js +51 -0
- package/es/element/BorderBox/BorderBox2/Component.js +65 -0
- package/es/element/BorderBox/BorderBox2/index.css +21 -0
- package/es/element/BorderBox/BorderBox2/index.js +51 -0
- package/es/element/BorderBox/BorderBox3/Component.js +55 -0
- package/es/element/BorderBox/BorderBox3/index.css +26 -0
- package/es/element/BorderBox/BorderBox3/index.js +51 -0
- package/es/element/BorderBox/BorderBox4/Component.js +81 -0
- package/es/element/BorderBox/BorderBox4/index.css +66 -0
- package/es/element/BorderBox/BorderBox4/index.js +51 -0
- package/es/element/BorderBox/BorderBox5/Component.js +65 -0
- package/es/element/BorderBox/BorderBox5/index.css +35 -0
- package/es/element/BorderBox/BorderBox5/index.js +51 -0
- package/es/element/BorderBox/BorderBox6/Component.js +95 -0
- package/es/element/BorderBox/BorderBox6/index.css +21 -0
- package/es/element/BorderBox/BorderBox6/index.js +51 -0
- package/es/element/BorderBox/BorderBox7/Component.js +70 -0
- package/es/element/BorderBox/BorderBox7/index.css +27 -0
- package/es/element/BorderBox/BorderBox7/index.js +51 -0
- package/es/element/BorderBox/BorderBox8/Component.js +113 -0
- package/es/element/BorderBox/BorderBox8/index.css +17 -0
- package/es/element/BorderBox/BorderBox8/index.js +51 -0
- package/es/element/BorderBox/BorderBox9/Component.js +137 -0
- package/es/element/BorderBox/BorderBox9/index.css +17 -0
- package/es/element/BorderBox/BorderBox9/index.js +51 -0
- package/es/element/BorderBox/PropsSet/ColorSet.js +60 -0
- package/es/element/BorderBox/PropsSet/index.js +21 -0
- package/es/element/BorderBox/util/index.js +7 -0
- package/es/element/BorderBox/util/typings.d.ts +9 -0
- package/es/element/Decoration/Decoration1/Component.js +126 -0
- package/es/element/Decoration/Decoration1/index.css +7 -0
- package/es/element/Decoration/Decoration1/index.js +51 -0
- package/es/element/Decoration/Decoration10/Component.js +171 -0
- package/es/element/Decoration/Decoration10/index.css +5 -0
- package/es/element/Decoration/Decoration10/index.js +51 -0
- package/es/element/Decoration/Decoration2/Component.js +81 -0
- package/es/element/Decoration/Decoration2/index.css +10 -0
- package/es/element/Decoration/Decoration2/index.js +51 -0
- package/es/element/Decoration/Decoration3/Component.js +81 -0
- package/es/element/Decoration/Decoration3/index.css +7 -0
- package/es/element/Decoration/Decoration3/index.js +51 -0
- package/es/element/Decoration/Decoration4/Component.js +54 -0
- package/es/element/Decoration/Decoration4/index.css +43 -0
- package/es/element/Decoration/Decoration4/index.js +51 -0
- package/es/element/Decoration/Decoration5/Component.js +86 -0
- package/es/element/Decoration/Decoration5/index.css +4 -0
- package/es/element/Decoration/Decoration5/index.js +51 -0
- package/es/element/Decoration/Decoration6/Component.js +120 -0
- package/es/element/Decoration/Decoration6/index.css +7 -0
- package/es/element/Decoration/Decoration6/index.js +51 -0
- package/es/element/Decoration/Decoration8/Component.js +62 -0
- package/es/element/Decoration/Decoration8/index.css +5 -0
- package/es/element/Decoration/Decoration8/index.js +51 -0
- package/es/element/Decoration/PropsSet/ColorSet.js +60 -0
- package/es/element/Decoration/PropsSet/index.js +21 -0
- package/es/element/Decoration/util/index.js +33 -0
- package/es/element/Decoration/util/typings.d.ts +9 -0
- package/es/element/EleButton/Component.js +49 -0
- package/es/element/EleButton/PropsSet/TextPropsSet/index.js +27 -0
- package/es/element/EleButton/PropsSet/index.js +25 -0
- package/es/element/EleButton/index.css +15 -0
- package/es/element/EleButton/index.js +66 -0
- package/es/element/EleClock/Component.js +60 -0
- package/es/element/EleClock/PropsSet/index.js +46 -0
- package/es/element/EleClock/index.css +7 -0
- package/es/element/EleClock/index.js +55 -0
- package/es/element/EleContainer/Component.js +22 -0
- package/es/element/EleContainer/PropsSet/OtherPropsSet/index.js +63 -0
- package/es/element/EleContainer/PropsSet/index.js +29 -0
- package/es/element/EleContainer/index.css +4 -0
- package/es/element/EleContainer/index.js +54 -0
- package/es/element/EleDeviceName/Component.js +81 -0
- package/es/element/EleDeviceName/PropsSet/FormBindDevice/index.js +52 -0
- package/es/element/EleDeviceName/PropsSet/index.js +26 -0
- package/es/element/EleDeviceName/index.css +11 -0
- package/es/element/EleDeviceName/index.js +57 -0
- package/es/element/EleDeviceState/Component.js +103 -0
- package/es/element/EleDeviceState/PropsSet/FormBindDevice/index.js +53 -0
- package/es/element/EleDeviceState/PropsSet/index.js +26 -0
- package/es/element/EleDeviceState/index.css +13 -0
- package/es/element/EleDeviceState/index.js +62 -0
- package/es/element/EleDeviceUpdateTime/Component.js +94 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDateFormat/index.js +32 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDevice/index.js +52 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/index.js +27 -0
- package/es/element/EleDeviceUpdateTime/index.css +9 -0
- package/es/element/EleDeviceUpdateTime/index.js +57 -0
- package/es/element/EleFan/Component.js +74 -0
- package/es/element/EleFan/PropsSet/FormBindDevice/index.js +46 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/FaultQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/FrostQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/RefrigerationQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/SwitchQuestion.js +12 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/index.js +519 -0
- package/es/element/EleFan/PropsSet/index.js +66 -0
- package/es/element/EleFan/Tooltip.js +8 -0
- package/es/element/EleFan/index.css +25 -0
- package/es/element/EleFan/index.js +113 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/FaultQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/FrostQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/RefrigerationQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/SwitchQuestion.js +12 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/index.js +473 -0
- package/es/element/EleFanBySvg/PropsSet/index.js +25 -0
- package/es/element/EleFanBySvg/Tooltip.js +8 -0
- package/es/element/EleFanBySvg/index.js +320 -0
- package/es/element/EleGauge/Component.js +128 -0
- package/es/element/EleGauge/PropsSet/OtherPropsSet/index.js +92 -0
- package/es/element/EleGauge/PropsSet/index.js +29 -0
- package/es/element/EleGauge/index.css +7 -0
- package/es/element/EleGauge/index.js +66 -0
- package/es/element/EleIcon/Component.js +53 -0
- package/es/element/EleIcon/PropsSet/IconPropsSet/index.js +105 -0
- package/es/element/EleIcon/PropsSet/index.js +29 -0
- package/es/element/EleIcon/index.css +13 -0
- package/es/element/EleIcon/index.js +58 -0
- package/es/element/EleImage/PropsSet/ImagePropsSet/index.js +56 -0
- package/es/element/EleImage/PropsSet/index.js +21 -0
- package/es/element/EleImage/index.js +61 -0
- package/es/element/EleIndicatorLight/Component.js +57 -0
- package/es/element/EleIndicatorLight/PropsSet/ColorPropsSet/index.js +63 -0
- package/es/element/EleIndicatorLight/PropsSet/index.js +29 -0
- package/es/element/EleIndicatorLight/index.css +4 -0
- package/es/element/EleIndicatorLight/index.js +66 -0
- package/es/element/ElePointImage/Component.js +60 -0
- package/es/element/ElePointImage/PropsSet/ImagePropsSet/index.js +84 -0
- package/es/element/ElePointImage/PropsSet/index.js +29 -0
- package/es/element/ElePointImage/index.css +9 -0
- package/es/element/ElePointImage/index.js +58 -0
- package/es/element/ElePointList/Component.js +142 -0
- package/es/element/ElePointList/PropsSet/index.js +25 -0
- package/es/element/ElePointList/index.css +22 -0
- package/es/element/ElePointList/index.js +67 -0
- package/es/element/ElePointState/Component.js +71 -0
- package/es/element/ElePointState/PropsSet/IconPropsSet/index.js +140 -0
- package/es/element/ElePointState/PropsSet/index.js +29 -0
- package/es/element/ElePointState/index.css +10 -0
- package/es/element/ElePointState/index.js +60 -0
- package/es/element/ElePointValue/Component.js +79 -0
- package/es/element/ElePointValue/PropsSet/GlobalPropSet/index.js +60 -0
- package/es/element/ElePointValue/PropsSet/TitlePropsSet/index.js +42 -0
- package/es/element/ElePointValue/PropsSet/UnitPropsSet/index.js +54 -0
- package/es/element/ElePointValue/PropsSet/ValuePropsSet/index.js +119 -0
- package/es/element/ElePointValue/PropsSet/index.js +41 -0
- package/es/element/ElePointValue/index.css +30 -0
- package/es/element/ElePointValue/index.js +63 -0
- package/es/element/EleShine/Component.js +61 -0
- package/es/element/EleShine/PropsSet/OtherPropsSet/index.js +63 -0
- package/es/element/EleShine/PropsSet/index.js +29 -0
- package/es/element/EleShine/index.css +15 -0
- package/es/element/EleShine/index.js +70 -0
- package/es/element/EleState/Tooltip.js +8 -0
- package/es/element/EleState/index.js +115 -0
- package/es/element/EleSvg/index.js +35 -0
- package/es/element/EleSwitch/Component.js +66 -0
- package/es/element/EleSwitch/PropsSet/OtherPropsSet/index.js +49 -0
- package/es/element/EleSwitch/PropsSet/index.js +25 -0
- package/es/element/EleSwitch/index.css +6 -0
- package/es/element/EleSwitch/index.js +62 -0
- package/es/element/EleText/Component.js +19 -0
- package/es/element/EleText/index.css +6 -0
- package/es/element/EleText/index.js +69 -0
- package/es/element/PipeNodes/NodeBL/index.js +74 -0
- package/es/element/PipeNodes/NodeBR/index.js +75 -0
- package/es/element/PipeNodes/NodeBottom/index.js +82 -0
- package/es/element/PipeNodes/NodeCenter/index.js +89 -0
- package/es/element/PipeNodes/NodeHorizontal/index.js +72 -0
- package/es/element/PipeNodes/NodeLeft/index.js +81 -0
- package/es/element/PipeNodes/NodeRight/index.js +81 -0
- package/es/element/PipeNodes/NodeTL/index.js +74 -0
- package/es/element/PipeNodes/NodeTL.TEMP/index.js +151 -0
- package/es/element/PipeNodes/NodeTR/index.js +74 -0
- package/es/element/PipeNodes/NodeTop/index.js +81 -0
- package/es/element/PipeNodes/NodeVertical/index.js +72 -0
- package/es/element/PipeNodes/portStyle.js +18 -0
- package/es/element/PointCard/PointCard1/Component.js +97 -0
- package/es/element/PointCard/PointCard1/PropsSet/IconPropsSet/index.js +147 -0
- package/es/element/PointCard/PointCard1/PropsSet/PointValuePropsSet/index.js +120 -0
- package/es/element/PointCard/PointCard1/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointCard1/PropsSet/index.js +37 -0
- package/es/element/PointCard/PointCard1/index.css +44 -0
- package/es/element/PointCard/PointCard1/index.js +88 -0
- package/es/element/PointCard/PointCard2/Component/PointItem.js +87 -0
- package/es/element/PointCard/PointCard2/Component/PointItemPlaceholder.js +33 -0
- package/es/element/PointCard/PointCard2/Component/index.css +30 -0
- package/es/element/PointCard/PointCard2/Component/index.js +53 -0
- package/es/element/PointCard/PointCard2/PropsSet/GlobalPropSet/index.js +14 -0
- package/es/element/PointCard/PointCard2/PropsSet/IconPropsSet/index.js +32 -0
- package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.css +7 -0
- package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.js +175 -0
- package/es/element/PointCard/PointCard2/PropsSet/TitlePropsSet/index.js +31 -0
- package/es/element/PointCard/PointCard2/PropsSet/index.js +52 -0
- package/es/element/PointCard/PointCard2/index.js +79 -0
- package/es/element/PointCard/PointCard3/Component.js +107 -0
- package/es/element/PointCard/PointCard3/PropsSet/IconPropsSet/index.js +178 -0
- package/es/element/PointCard/PointCard3/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointCard3/PropsSet/index.js +33 -0
- package/es/element/PointCard/PointCard3/index.css +26 -0
- package/es/element/PointCard/PointCard3/index.js +79 -0
- package/es/element/PointCard/PointListCard/Component.js +169 -0
- package/es/element/PointCard/PointListCard/PropsSet/GlobalPropSet/index.js +14 -0
- package/es/element/PointCard/PointListCard/PropsSet/LabelPropsSet/index.js +31 -0
- package/es/element/PointCard/PointListCard/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointListCard/PropsSet/ValuePropsSet/index.js +31 -0
- package/es/element/PointCard/PointListCard/PropsSet/index.js +41 -0
- package/es/element/PointCard/PointListCard/index.css +24 -0
- package/es/element/PointCard/PointListCard/index.js +87 -0
- package/es/element/PointControl/PointControl1/Component.js +110 -0
- package/es/element/PointControl/PointControl1/PropsSet/GlobalPropsSet/index.js +16 -0
- package/es/element/PointControl/PointControl1/PropsSet/PointValuePropsSet/index.js +31 -0
- package/es/element/PointControl/PointControl1/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointControl/PointControl1/PropsSet/index.js +33 -0
- package/es/element/PointControl/PointControl1/index.css +21 -0
- package/es/element/PointControl/PointControl1/index.js +83 -0
- package/es/element/PointControl/PointControl3/Component.js +123 -0
- package/es/element/PointControl/PointControl3/PropsSet/IconPropsSet/index.js +147 -0
- package/es/element/PointControl/PointControl3/PropsSet/SubTitlePropsSet/index.js +53 -0
- package/es/element/PointControl/PointControl3/PropsSet/SwitchPropsSet/index.js +49 -0
- package/es/element/PointControl/PointControl3/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointControl/PointControl3/PropsSet/index.js +41 -0
- package/es/element/PointControl/PointControl3/index.css +8 -0
- package/es/element/PointControl/PointControl3/index.js +94 -0
- package/es/element/nodeBase.js +48 -0
- package/es/element/reactShapeBase.js +47 -0
- package/es/element/register.js +131 -0
- package/es/element/type.d.ts +143 -0
- package/es/element/utils/getValueByExpression.js +22 -0
- package/es/element/utils/handleEleEvent.js +60 -0
- package/es/element/utils/index.js +4 -0
- package/es/element/utils/pointWrite.js +197 -0
- package/es/element/utils/shapeReactComponentShouldUpdate.js +7 -0
- package/es/global.css +162 -0
- package/es/graph/graphCore.js +501 -0
- package/es/graph/tools/ToolTipTool.js +139 -0
- package/es/graph/tools/registerX6Tool.js +1 -0
- package/es/hooks/index.js +7 -0
- package/es/hooks/useCMDKey.js +19 -0
- package/es/hooks/useEleEventHandle.js +36 -0
- package/es/hooks/useFirstMountState.js +9 -0
- package/es/hooks/useForceUpdate.js +23 -0
- package/es/hooks/useMittNamespace.js +7 -0
- package/es/hooks/usePointWatch.js +30 -0
- package/es/hooks/useQuery.js +6 -0
- package/es/models/useEditor.js +185 -0
- package/es/models/useElePanel.js +23 -0
- package/es/pages/display/Player/index.css +15 -0
- package/es/pages/display/Player/index.js +434 -0
- package/es/pages/display/components/Empty/index.css +9 -0
- package/es/pages/display/components/Empty/index.js +22 -0
- package/es/pages/display/components/Tools/index.js +86 -0
- package/es/pages/display/index.css +4 -0
- package/es/pages/display/index.js +231 -0
- package/es/pages/document.ejs +77 -0
- package/es/pages/editor/Palette/PaletteDropdown/index.css +9 -0
- package/es/pages/editor/Palette/PaletteDropdown/index.js +178 -0
- package/es/pages/editor/Palette/index.css +13 -0
- package/es/pages/editor/Palette/index.js +86 -0
- package/es/pages/editor/PanelLeft/BasicShapeList/index.js +32 -0
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +63 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.css +9 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.js +19 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.less.d.ts +7 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/listData.js +49 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.css +12 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.js +21 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.less.d.ts +7 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/listData.js +65 -0
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.css +32 -0
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +300 -0
- package/es/pages/editor/PanelLeft/ImgConfigDialog/index.css +0 -0
- package/es/pages/editor/PanelLeft/ImgConfigDialog/index.js +220 -0
- package/es/pages/editor/PanelLeft/ImgGroup/index.css +62 -0
- package/es/pages/editor/PanelLeft/ImgGroup/index.js +317 -0
- package/es/pages/editor/PanelLeft/MetaEleList/index.js +37 -0
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +88 -0
- package/es/pages/editor/PanelLeft/MineImgGroup/index.css +0 -0
- package/es/pages/editor/PanelLeft/MineImgGroup/index.js +163 -0
- package/es/pages/editor/PanelLeft/PipeEleList/index.css +0 -0
- package/es/pages/editor/PanelLeft/PipeEleList/index.js +33 -0
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +69 -0
- package/es/pages/editor/PanelLeft/PointCardEleList/index.js +31 -0
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +37 -0
- package/es/pages/editor/PanelLeft/RecommendEleList/index.js +37 -0
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +27 -0
- package/es/pages/editor/PanelLeft/SystemImgGroupList/index.css +6 -0
- package/es/pages/editor/PanelLeft/SystemImgGroupList/index.js +119 -0
- package/es/pages/editor/PanelLeft/index.css +100 -0
- package/es/pages/editor/PanelLeft/index.js +200 -0
- package/es/pages/editor/PanelLeft/index.less.d.ts +11 -0
- package/es/pages/editor/PanelRight/components/FormBindEvent/index.js +202 -0
- package/es/pages/editor/PanelRight/components/FormEleBorderStyle/index.js +145 -0
- package/es/pages/editor/PanelRight/components/FormEleLayout/index.css +8 -0
- package/es/pages/editor/PanelRight/components/FormEleLayout/index.js +214 -0
- package/es/pages/editor/PanelRight/components/FormElePadding/index.js +11 -0
- package/es/pages/editor/PanelRight/components/FormFillStyle/index.js +92 -0
- package/es/pages/editor/PanelRight/components/FormFontStyle/index.js +186 -0
- package/es/pages/editor/PanelRight/components/FormLayer/index.js +222 -0
- package/es/pages/editor/PanelRight/index.css +26 -0
- package/es/pages/editor/PanelRight/index.js +164 -0
- package/es/pages/editor/PanelRight/index.less.d.ts +7 -0
- package/es/pages/editor/PanelTop/FullScreen/index.js +31 -0
- package/es/pages/editor/PanelTop/HistoryControl/index.js +78 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.css +35 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.js +114 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.less.d.ts +10 -0
- package/es/pages/editor/PanelTop/Save/index.js +179 -0
- package/es/pages/editor/PanelTop/ZoomControl/index.css +0 -0
- package/es/pages/editor/PanelTop/ZoomControl/index.js +100 -0
- package/es/pages/editor/PanelTop/index.css +57 -0
- package/es/pages/editor/PanelTop/index.js +321 -0
- package/es/pages/editor/index.css +39 -0
- package/es/pages/editor/index.js +298 -0
- package/es/provider/index.js +2 -0
- package/es/provider/mittMeat.js +4 -0
- package/es/services/common/Uploader.js +45 -0
- package/es/services/common/index.js +8 -0
- package/es/services/common/typings.d.ts +15 -0
- package/es/services/gateway/CompanyConfiguration.js +87 -0
- package/es/services/gateway/Device.js +437 -0
- package/es/services/gateway/DeviceAuthorizationApply.js +111 -0
- package/es/services/gateway/DeviceGroup.js +137 -0
- package/es/services/gateway/Gateway.js +442 -0
- package/es/services/gateway/GatewayGroup.js +112 -0
- package/es/services/gateway/Point.js +137 -0
- package/es/services/gateway/UserDevice.js +112 -0
- package/es/services/gateway/index.js +22 -0
- package/es/services/gateway/typings.d.ts +1674 -0
- package/es/services/master/Func.js +33 -0
- package/es/services/master/Role.js +153 -0
- package/es/services/master/User.js +244 -0
- package/es/services/master/index.js +12 -0
- package/es/services/master/typings.d.ts +362 -0
- package/es/services/product/ConfigurationImg.js +87 -0
- package/es/services/product/ConfigurationImgGroup.js +87 -0
- package/es/services/product/DeviceType.js +37 -0
- package/es/services/product/Identifier.js +33 -0
- package/es/services/product/PointEnum.js +87 -0
- package/es/services/product/PointGroup.js +112 -0
- package/es/services/product/Product.js +351 -0
- package/es/services/product/ProductCompany.js +183 -0
- package/es/services/product/index.js +22 -0
- package/es/services/product/typings.d.ts +1045 -0
- package/es/services/project/ProjectGateway.js +62 -0
- package/es/services/project/ProjectResource.js +205 -0
- package/es/services/project/ProjectRole.js +302 -0
- package/es/services/project/ProjectUserPermission.js +217 -0
- package/es/services/project/Subarea.js +236 -0
- package/es/services/project/UserSubarea.js +62 -0
- package/es/services/project/index.js +18 -0
- package/es/services/project/typings.d.ts +1609 -0
- package/es/services/request.js +196 -0
- package/es/shims.x6.d.ts +15 -0
- package/es/typings.d.ts +182 -0
- package/es/utils/auth.js +90 -0
- package/es/utils/cssStyle.js +11 -0
- package/es/utils/decomposeMatrix.js +46 -0
- package/es/utils/events.js +7 -0
- package/es/utils/getMittMeta.js +14 -0
- package/es/utils/index.js +163 -0
- package/es/utils/isInIframe.js +8 -0
- package/es/utils/queryToObject.js +19 -0
- package/es/utils/svg.js +46 -0
- package/es/utils/type.js +3 -0
- package/es/x6Reset.css +36 -0
- package/package.json +84 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
13
|
+
import { Modal, Form, message, InputNumber, DatePicker, Empty } from 'antd';
|
|
14
|
+
import moment from 'moment';
|
|
15
|
+
import { useDebounceFn } from 'ahooks';
|
|
16
|
+
import { GetPointHistoryData } from "../../services/gateway/Point";
|
|
17
|
+
import Echarts from "../ECharts";
|
|
18
|
+
import styles from "./index.css";
|
|
19
|
+
var RangePicker = DatePicker.RangePicker;
|
|
20
|
+
var defaultInterval = 2;
|
|
21
|
+
|
|
22
|
+
// const twoYearTime = 2 * 365 * 3600 * 1000 * 24;
|
|
23
|
+
var oneYearTime = 365 * 3600 * 1000 * 24;
|
|
24
|
+
// const halfYearTime = 182 * 3600 * 1000 * 24;
|
|
25
|
+
// const oneSeasonTime = 90 * 3600 * 1000 * 24;
|
|
26
|
+
// const oneMonthTime = 31 * 3600 * 1000 * 24;
|
|
27
|
+
// const oneWeekTime = 7 * 3600 * 1000 * 24;
|
|
28
|
+
|
|
29
|
+
var DialogHistory = function DialogHistory(_ref) {
|
|
30
|
+
var pointIdListProp = _ref.pointIdListProp,
|
|
31
|
+
dateRangeProp = _ref.dateRangeProp,
|
|
32
|
+
intervalProp = _ref.intervalProp,
|
|
33
|
+
visible = _ref.visible,
|
|
34
|
+
onCancel = _ref.onCancel;
|
|
35
|
+
var _Form$useForm = Form.useForm(),
|
|
36
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
37
|
+
form = _Form$useForm2[0];
|
|
38
|
+
var _useState = useState(false),
|
|
39
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
+
isNoData = _useState2[0],
|
|
41
|
+
setIsNoData = _useState2[1];
|
|
42
|
+
/** 加载loading */
|
|
43
|
+
var _useState3 = useState(false),
|
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
+
loading = _useState4[0],
|
|
46
|
+
setLoading = _useState4[1];
|
|
47
|
+
/** 曲线图配置 */
|
|
48
|
+
var _useState5 = useState(undefined),
|
|
49
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
50
|
+
chartOptions = _useState6[0],
|
|
51
|
+
setChartOptions = _useState6[1];
|
|
52
|
+
var closeModal = function closeModal() {
|
|
53
|
+
form.resetFields();
|
|
54
|
+
setLoading(false);
|
|
55
|
+
setChartOptions(undefined);
|
|
56
|
+
setIsNoData(false);
|
|
57
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** 获取点位历史数据 */
|
|
61
|
+
var fetchPointHistory = useCallback( /*#__PURE__*/function () {
|
|
62
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(idList, ranges, interval) {
|
|
63
|
+
var diff, res, data, series, yAxisData, xAxisData;
|
|
64
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
65
|
+
while (1) switch (_context.prev = _context.next) {
|
|
66
|
+
case 0:
|
|
67
|
+
if (idList === null || idList === void 0 ? void 0 : idList.length) {
|
|
68
|
+
_context.next = 3;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.error('请至少查询一个点位');
|
|
72
|
+
return _context.abrupt("return");
|
|
73
|
+
case 3:
|
|
74
|
+
_context.prev = 3;
|
|
75
|
+
diff = moment(ranges[1]).valueOf() - moment(ranges[0]).valueOf();
|
|
76
|
+
if (!(diff > oneYearTime)) {
|
|
77
|
+
_context.next = 8;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.error('历史数据最大查询范围是一年');
|
|
81
|
+
return _context.abrupt("return");
|
|
82
|
+
case 8:
|
|
83
|
+
// 获取点位数据
|
|
84
|
+
setLoading(true);
|
|
85
|
+
_context.next = 11;
|
|
86
|
+
return GetPointHistoryData({
|
|
87
|
+
timeQuantum: {
|
|
88
|
+
startDate: moment(ranges[0]).format('YYYY-MM-DD HH:mm'),
|
|
89
|
+
endDate: moment(ranges[1]).format('YYYY-MM-DD HH:mm')
|
|
90
|
+
},
|
|
91
|
+
pointIdList: idList,
|
|
92
|
+
interval: interval
|
|
93
|
+
});
|
|
94
|
+
case 11:
|
|
95
|
+
res = _context.sent;
|
|
96
|
+
if (res.success) {
|
|
97
|
+
data = res.data;
|
|
98
|
+
if (!data || !data.length) {
|
|
99
|
+
message.info('暂无点位数据');
|
|
100
|
+
setIsNoData(true);
|
|
101
|
+
} else {
|
|
102
|
+
// 图形处理
|
|
103
|
+
series = [];
|
|
104
|
+
yAxisData = [];
|
|
105
|
+
xAxisData = [];
|
|
106
|
+
if (data.every(function (v) {
|
|
107
|
+
var _v$pointDataList;
|
|
108
|
+
return ((_v$pointDataList = v.pointDataList) === null || _v$pointDataList === void 0 ? void 0 : _v$pointDataList.length) === 0 || !v.pointDataList;
|
|
109
|
+
})) {
|
|
110
|
+
setIsNoData(true);
|
|
111
|
+
} else {
|
|
112
|
+
setIsNoData(false);
|
|
113
|
+
}
|
|
114
|
+
data.forEach(function (item) {
|
|
115
|
+
var _item$pointDataList, _item$pointDataList2;
|
|
116
|
+
var pointEnumId = item.pointEnumId,
|
|
117
|
+
pointEnumItemList = item.pointEnumItemList;
|
|
118
|
+
var unit = item.unit;
|
|
119
|
+
if (pointEnumId !== 1 && (pointEnumItemList === null || pointEnumItemList === void 0 ? void 0 : pointEnumItemList.length)) {
|
|
120
|
+
unit = pointEnumItemList.map(function (EnumItem) {
|
|
121
|
+
return EnumItem.pointEnumItemKey;
|
|
122
|
+
}).join('/');
|
|
123
|
+
}
|
|
124
|
+
// 配置y轴
|
|
125
|
+
if (!yAxisData.length || yAxisData.find(function (yAxis) {
|
|
126
|
+
return yAxis.pointEnumId === item.pointEnumId;
|
|
127
|
+
}) === undefined) {
|
|
128
|
+
var yAxis;
|
|
129
|
+
// 判断枚举类型 1为模拟量(数值类型) 其他为状态量
|
|
130
|
+
if (pointEnumId === 1) {
|
|
131
|
+
// 模拟量
|
|
132
|
+
yAxis = {
|
|
133
|
+
type: 'value',
|
|
134
|
+
name: unit,
|
|
135
|
+
pointEnumId: item.pointEnumId,
|
|
136
|
+
scale: false,
|
|
137
|
+
boundaryGap: ['20%', '20%'],
|
|
138
|
+
position: yAxisData.length === 0 ? 'left' : 'right',
|
|
139
|
+
offset: yAxisData.length > 1 ? (yAxisData.length - 1) * 70 : 0,
|
|
140
|
+
// 如果y轴数量大于2,y轴要对应偏移
|
|
141
|
+
axisLabel: {
|
|
142
|
+
show: true,
|
|
143
|
+
formatter: function formatter(value) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
} else {
|
|
149
|
+
// 状态量
|
|
150
|
+
yAxis = {
|
|
151
|
+
type: 'value',
|
|
152
|
+
name: unit,
|
|
153
|
+
pointEnumId: item.pointEnumId,
|
|
154
|
+
boundaryGap: ['20%', '20%'],
|
|
155
|
+
position: yAxisData.length === 0 ? 'left' : 'right',
|
|
156
|
+
offset: yAxisData.length >= 1 ? (yAxisData.length - 1) * 70 : 0,
|
|
157
|
+
// 如果y轴数量大于2,y轴要对应偏移
|
|
158
|
+
minInterval: 1,
|
|
159
|
+
axisLabel: {
|
|
160
|
+
show: true,
|
|
161
|
+
formatter: function formatter(value) {
|
|
162
|
+
var _item$pointEnumItemLi;
|
|
163
|
+
var currentPointEnumItemList = (_item$pointEnumItemLi = item.pointEnumItemList) === null || _item$pointEnumItemLi === void 0 ? void 0 : _item$pointEnumItemLi.filter(function (EnumItem) {
|
|
164
|
+
return EnumItem.pointEnumItemValue === value;
|
|
165
|
+
});
|
|
166
|
+
var pointEnumItem = currentPointEnumItemList && currentPointEnumItemList.length ? currentPointEnumItemList[0] : null;
|
|
167
|
+
return pointEnumItem ? pointEnumItem.pointEnumItemKey : '';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
yAxisData.push(yAxis);
|
|
173
|
+
}
|
|
174
|
+
// 配置x坐标轴数据
|
|
175
|
+
if ((_item$pointDataList = item.pointDataList) === null || _item$pointDataList === void 0 ? void 0 : _item$pointDataList.length) {
|
|
176
|
+
xAxisData = item.pointDataList.map(function (pointDataItem) {
|
|
177
|
+
return pointDataItem.ts;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
// 配置曲线数据
|
|
181
|
+
series.push({
|
|
182
|
+
animation: false,
|
|
183
|
+
name: item.pointName,
|
|
184
|
+
type: 'line',
|
|
185
|
+
unit: item.unit,
|
|
186
|
+
yAxisIndex: yAxisData.findIndex(function (yAxis) {
|
|
187
|
+
return yAxis.pointEnumId === item.pointEnumId;
|
|
188
|
+
}),
|
|
189
|
+
smooth: false,
|
|
190
|
+
data: (_item$pointDataList2 = item.pointDataList) === null || _item$pointDataList2 === void 0 ? void 0 : _item$pointDataList2.map(function (dataItem) {
|
|
191
|
+
return {
|
|
192
|
+
name: dataItem.ts,
|
|
193
|
+
value: dataItem.val
|
|
194
|
+
};
|
|
195
|
+
})
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
// 应用图形配置
|
|
200
|
+
setChartOptions({
|
|
201
|
+
color: ['#2297E8', '#48CE38', '#F8D156', '#FD9827', '#9764DC', '#1FCA6A'],
|
|
202
|
+
grid: {
|
|
203
|
+
left: 60,
|
|
204
|
+
right: 90 + (yAxisData.length > 2 ? (yAxisData.length - 2) * 70 : 0),
|
|
205
|
+
// 如果y轴数量大于2,图表右侧要对应添加留白
|
|
206
|
+
bottom: 80,
|
|
207
|
+
top: 50
|
|
208
|
+
},
|
|
209
|
+
dataZoom: [{
|
|
210
|
+
type: 'slider',
|
|
211
|
+
xAxisIndex: 0,
|
|
212
|
+
filterMode: 'empty',
|
|
213
|
+
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
|
214
|
+
handleSize: '90%'
|
|
215
|
+
}, {
|
|
216
|
+
type: 'inside',
|
|
217
|
+
xAxisIndex: 0,
|
|
218
|
+
filterMode: 'empty'
|
|
219
|
+
}],
|
|
220
|
+
legend: {
|
|
221
|
+
show: true,
|
|
222
|
+
type: 'scroll',
|
|
223
|
+
padding: [0, 50]
|
|
224
|
+
},
|
|
225
|
+
tooltip: {
|
|
226
|
+
trigger: 'axis',
|
|
227
|
+
formatter: function formatter(params) {
|
|
228
|
+
var colorSpan = function colorSpan(color) {
|
|
229
|
+
return "<i class=\"echart-circlepoint\" style=\"background: ".concat(color, "\"></i>");
|
|
230
|
+
};
|
|
231
|
+
var text = "".concat(moment(params[0].name).format(interval < 1 ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm'), "<br/>");
|
|
232
|
+
for (var i = 0; i < params.length; i += 1) {
|
|
233
|
+
text += "".concat(colorSpan(params[i].color), " ").concat(params[i].seriesName, "\uFF1A").concat(params[i].value === null ? '无数据' : params[i].value, " <br/>");
|
|
234
|
+
}
|
|
235
|
+
return text;
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
yAxis: yAxisData,
|
|
239
|
+
xAxis: {
|
|
240
|
+
axisLabel: {
|
|
241
|
+
formatter: function formatter(value) {
|
|
242
|
+
return moment(value).format('YYYY-MM-DD HH:mm');
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
splitLine: {
|
|
246
|
+
show: false
|
|
247
|
+
},
|
|
248
|
+
data: xAxisData
|
|
249
|
+
},
|
|
250
|
+
series: series
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
} else {
|
|
254
|
+
setIsNoData(true);
|
|
255
|
+
message.error(res.message);
|
|
256
|
+
}
|
|
257
|
+
_context.next = 20;
|
|
258
|
+
break;
|
|
259
|
+
case 15:
|
|
260
|
+
_context.prev = 15;
|
|
261
|
+
_context.t0 = _context["catch"](3);
|
|
262
|
+
console.error(_context.t0);
|
|
263
|
+
setIsNoData(true);
|
|
264
|
+
setChartOptions(undefined);
|
|
265
|
+
case 20:
|
|
266
|
+
_context.prev = 20;
|
|
267
|
+
setLoading(false);
|
|
268
|
+
return _context.finish(20);
|
|
269
|
+
case 23:
|
|
270
|
+
case "end":
|
|
271
|
+
return _context.stop();
|
|
272
|
+
}
|
|
273
|
+
}, _callee, null, [[3, 15, 20, 23]]);
|
|
274
|
+
}));
|
|
275
|
+
return function (_x2, _x3, _x4) {
|
|
276
|
+
return _ref2.apply(this, arguments);
|
|
277
|
+
};
|
|
278
|
+
}(), []);
|
|
279
|
+
var _useDebounceFn = useDebounceFn(fetchPointHistory, {
|
|
280
|
+
wait: 700
|
|
281
|
+
}),
|
|
282
|
+
fetchPointHistoryDebounce = _useDebounceFn.run;
|
|
283
|
+
var handleFormChange = function handleFormChange(values) {
|
|
284
|
+
var dateRange = values.dateRange,
|
|
285
|
+
interval = values.interval;
|
|
286
|
+
if (typeof interval !== 'number') {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
fetchPointHistoryDebounce(pointIdListProp, dateRange, interval);
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
// const handleSubmit = async () => {
|
|
293
|
+
// try {
|
|
294
|
+
// const { dateRange, interval } = await form.validateFields()
|
|
295
|
+
// if (typeof interval) {
|
|
296
|
+
// fetchPointHistory(pointIdListProp, dateRange, interval)
|
|
297
|
+
// }
|
|
298
|
+
// } catch (err) {
|
|
299
|
+
// console.error(err)
|
|
300
|
+
// }
|
|
301
|
+
// }
|
|
302
|
+
|
|
303
|
+
/** 打开弹框,初始化数据,获取曲线图形 */
|
|
304
|
+
useEffect(function () {
|
|
305
|
+
if (visible && (pointIdListProp === null || pointIdListProp === void 0 ? void 0 : pointIdListProp.length)) {
|
|
306
|
+
var ranges = dateRangeProp || [moment().subtract(1, 'days'), moment()];
|
|
307
|
+
form.setFieldsValue({
|
|
308
|
+
dateRange: ranges,
|
|
309
|
+
interval: typeof intervalProp === 'number' ? intervalProp : defaultInterval
|
|
310
|
+
});
|
|
311
|
+
fetchPointHistory(pointIdListProp, ranges, defaultInterval);
|
|
312
|
+
}
|
|
313
|
+
}, [visible, form, pointIdListProp, dateRangeProp, intervalProp, fetchPointHistory]);
|
|
314
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
315
|
+
title: "\u5386\u53F2\u6570\u636E\u66F2\u7EBF",
|
|
316
|
+
visible: visible,
|
|
317
|
+
closable: true,
|
|
318
|
+
width: 1300,
|
|
319
|
+
footer: null,
|
|
320
|
+
onCancel: closeModal,
|
|
321
|
+
afterClose: closeModal,
|
|
322
|
+
getContainer: false
|
|
323
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
324
|
+
onValuesChange: function onValuesChange(changedValues, values) {
|
|
325
|
+
return handleFormChange(values);
|
|
326
|
+
},
|
|
327
|
+
layout: "inline",
|
|
328
|
+
requiredMark: false,
|
|
329
|
+
form: form,
|
|
330
|
+
name: "form"
|
|
331
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
332
|
+
name: "dateRange",
|
|
333
|
+
label: "\u65F6\u95F4\u8303\u56F4",
|
|
334
|
+
rules: [{
|
|
335
|
+
required: true,
|
|
336
|
+
message: '请选择时间范围'
|
|
337
|
+
}]
|
|
338
|
+
}, /*#__PURE__*/React.createElement(RangePicker, {
|
|
339
|
+
disabled: loading,
|
|
340
|
+
style: {
|
|
341
|
+
width: '350px'
|
|
342
|
+
},
|
|
343
|
+
showTime: {
|
|
344
|
+
format: 'HH:mm'
|
|
345
|
+
},
|
|
346
|
+
getPopupContainer: function getPopupContainer(node) {
|
|
347
|
+
return node;
|
|
348
|
+
},
|
|
349
|
+
allowClear: false,
|
|
350
|
+
ranges: {
|
|
351
|
+
近一天: [moment().subtract(1, 'day'), moment()],
|
|
352
|
+
近一周: [moment().subtract(7, 'day'), moment()],
|
|
353
|
+
近一个月: [moment().subtract(30, 'day'), moment()]
|
|
354
|
+
},
|
|
355
|
+
format: "YYYY-MM-DD HH:mm"
|
|
356
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
357
|
+
name: "interval",
|
|
358
|
+
label: "\u95F4\u9694\uFF08\u5206\u949F\uFF09",
|
|
359
|
+
rules: [{
|
|
360
|
+
required: true,
|
|
361
|
+
message: '请输入'
|
|
362
|
+
}, {
|
|
363
|
+
pattern: /^[0-9]+$/,
|
|
364
|
+
message: '请输入正整数'
|
|
365
|
+
}]
|
|
366
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
367
|
+
disabled: loading,
|
|
368
|
+
placeholder: "\u8BF7\u8F93\u5165\u6B63\u6574\u6570"
|
|
369
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
370
|
+
className: styles['chart-wrap']
|
|
371
|
+
}, /*#__PURE__*/React.createElement(Echarts, {
|
|
372
|
+
option: chartOptions,
|
|
373
|
+
loading: loading,
|
|
374
|
+
style: {
|
|
375
|
+
height: '500px'
|
|
376
|
+
}
|
|
377
|
+
}), isNoData && /*#__PURE__*/React.createElement(Empty, {
|
|
378
|
+
className: styles['chart-empty'],
|
|
379
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
380
|
+
description: "\u6682\u65E0\u70B9\u4F4D\u5386\u53F2\u6570\u636E"
|
|
381
|
+
})));
|
|
382
|
+
};
|
|
383
|
+
export default DialogHistory;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var list = [{
|
|
2
|
+
name: '除霜',
|
|
3
|
+
font_class: 'chushuang'
|
|
4
|
+
}, {
|
|
5
|
+
name: '制冷',
|
|
6
|
+
font_class: 'zhileng1'
|
|
7
|
+
}, {
|
|
8
|
+
name: '制冷',
|
|
9
|
+
font_class: 'zhileng'
|
|
10
|
+
}, {
|
|
11
|
+
name: '火灾自动报警系统',
|
|
12
|
+
font_class: 'huozaibaojing'
|
|
13
|
+
}, {
|
|
14
|
+
name: '无线火灾报警系统',
|
|
15
|
+
font_class: 'wuxianhuozaibaojing'
|
|
16
|
+
}, {
|
|
17
|
+
name: '消防用水系统',
|
|
18
|
+
font_class: 'xiaofangyongshuixitong'
|
|
19
|
+
}, {
|
|
20
|
+
name: '防火门系统',
|
|
21
|
+
font_class: 'fanghuomenxitong'
|
|
22
|
+
}, {
|
|
23
|
+
name: '视频系统',
|
|
24
|
+
font_class: 'shipinxitong'
|
|
25
|
+
}, {
|
|
26
|
+
name: '温湿度',
|
|
27
|
+
font_class: 'wenshidu'
|
|
28
|
+
}, {
|
|
29
|
+
name: '排风机',
|
|
30
|
+
font_class: 'paifengji'
|
|
31
|
+
}, {
|
|
32
|
+
name: '消防水泵',
|
|
33
|
+
font_class: 'xiaofangshuibeng'
|
|
34
|
+
}, {
|
|
35
|
+
name: '液压传感器',
|
|
36
|
+
font_class: 'yeyachuanganqi'
|
|
37
|
+
}, {
|
|
38
|
+
name: '表面温度',
|
|
39
|
+
font_class: 'biaomianwendu'
|
|
40
|
+
}, {
|
|
41
|
+
name: '门磁开关',
|
|
42
|
+
font_class: 'mencikaiguan'
|
|
43
|
+
}, {
|
|
44
|
+
name: '震动传感器',
|
|
45
|
+
font_class: 'zhendongchuanganqi'
|
|
46
|
+
}, {
|
|
47
|
+
name: '噪声',
|
|
48
|
+
font_class: 'zaosheng'
|
|
49
|
+
}, {
|
|
50
|
+
name: '液位传感器',
|
|
51
|
+
font_class: 'yeweichuanganqi'
|
|
52
|
+
}, {
|
|
53
|
+
name: '水浸',
|
|
54
|
+
font_class: 'shuijin'
|
|
55
|
+
}, {
|
|
56
|
+
name: '开关',
|
|
57
|
+
font_class: 'kaiguan'
|
|
58
|
+
}, {
|
|
59
|
+
name: '红外探测器',
|
|
60
|
+
font_class: 'hongwaitanceqi'
|
|
61
|
+
}, {
|
|
62
|
+
name: '可燃气体探测器',
|
|
63
|
+
font_class: 'keranqititanceqi'
|
|
64
|
+
}, {
|
|
65
|
+
name: '感温探测器',
|
|
66
|
+
font_class: 'ganwentanceqi'
|
|
67
|
+
}, {
|
|
68
|
+
name: '感烟探测器',
|
|
69
|
+
font_class: 'ganyantanceqi'
|
|
70
|
+
}, {
|
|
71
|
+
name: '硬盘',
|
|
72
|
+
font_class: 'm_video_recorder'
|
|
73
|
+
}, {
|
|
74
|
+
name: '摄像头',
|
|
75
|
+
font_class: 'camera'
|
|
76
|
+
}, {
|
|
77
|
+
name: '报警主机',
|
|
78
|
+
font_class: 'm_alarm_host'
|
|
79
|
+
}, {
|
|
80
|
+
name: '发电机',
|
|
81
|
+
font_class: 'm_generator'
|
|
82
|
+
}, {
|
|
83
|
+
name: '库房',
|
|
84
|
+
font_class: 'm_cold_storage-copy'
|
|
85
|
+
}, {
|
|
86
|
+
name: '供气阀',
|
|
87
|
+
font_class: 'm_ac_valve'
|
|
88
|
+
}, {
|
|
89
|
+
name: '燃气',
|
|
90
|
+
font_class: 'ranqi'
|
|
91
|
+
}, {
|
|
92
|
+
name: '电源',
|
|
93
|
+
font_class: 'm_eps'
|
|
94
|
+
}, {
|
|
95
|
+
name: '音响 ',
|
|
96
|
+
font_class: 'm_audio'
|
|
97
|
+
}, {
|
|
98
|
+
name: '水泵',
|
|
99
|
+
font_class: 'm_pump'
|
|
100
|
+
}, {
|
|
101
|
+
name: '电梯',
|
|
102
|
+
font_class: 'm_elevator'
|
|
103
|
+
}, {
|
|
104
|
+
name: '电',
|
|
105
|
+
font_class: 'dian'
|
|
106
|
+
}, {
|
|
107
|
+
name: '液位传感器',
|
|
108
|
+
font_class: 'liquid_level'
|
|
109
|
+
}, {
|
|
110
|
+
name: '报警',
|
|
111
|
+
font_class: 'security_alarm'
|
|
112
|
+
}, {
|
|
113
|
+
name: '表',
|
|
114
|
+
font_class: 'Instrument_monitoring_01'
|
|
115
|
+
}, {
|
|
116
|
+
name: '水',
|
|
117
|
+
font_class: 'total_water'
|
|
118
|
+
}, {
|
|
119
|
+
name: '空调',
|
|
120
|
+
font_class: 's_air_conditionor'
|
|
121
|
+
}, {
|
|
122
|
+
name: '灯',
|
|
123
|
+
font_class: 'light'
|
|
124
|
+
}, {
|
|
125
|
+
name: '消防',
|
|
126
|
+
font_class: 's_fire_fighting'
|
|
127
|
+
}, {
|
|
128
|
+
name: '二氧化碳',
|
|
129
|
+
font_class: 'CO2'
|
|
130
|
+
}, {
|
|
131
|
+
name: '气压',
|
|
132
|
+
font_class: 'pressure'
|
|
133
|
+
}, {
|
|
134
|
+
name: '门禁',
|
|
135
|
+
font_class: 'm_entrance_guard'
|
|
136
|
+
}, {
|
|
137
|
+
name: '扶梯',
|
|
138
|
+
font_class: 'm_staircase'
|
|
139
|
+
}, {
|
|
140
|
+
name: '温度',
|
|
141
|
+
font_class: 'temp'
|
|
142
|
+
}, {
|
|
143
|
+
name: '甲醛',
|
|
144
|
+
font_class: 'jiaquan-'
|
|
145
|
+
}, {
|
|
146
|
+
name: '活动开关控制',
|
|
147
|
+
font_class: 'm_light_control'
|
|
148
|
+
}, {
|
|
149
|
+
name: '配电柜简化版',
|
|
150
|
+
font_class: 'm_elec_counter'
|
|
151
|
+
}, {
|
|
152
|
+
name: '电表',
|
|
153
|
+
font_class: 'm_elec_meter'
|
|
154
|
+
}, {
|
|
155
|
+
name: '摄像头',
|
|
156
|
+
font_class: 'monitor'
|
|
157
|
+
}, {
|
|
158
|
+
name: '声音',
|
|
159
|
+
font_class: 'systemprompt_fill'
|
|
160
|
+
}, {
|
|
161
|
+
name: '冷冻',
|
|
162
|
+
font_class: 's_cold_chain'
|
|
163
|
+
}, {
|
|
164
|
+
name: '门',
|
|
165
|
+
font_class: 'door'
|
|
166
|
+
}, {
|
|
167
|
+
name: '冷藏车',
|
|
168
|
+
font_class: 'lengcangche-copy'
|
|
169
|
+
}, {
|
|
170
|
+
name: '供气阀',
|
|
171
|
+
font_class: 'm_fire_valve'
|
|
172
|
+
}, {
|
|
173
|
+
name: '风',
|
|
174
|
+
font_class: 'm_ceiling_fan'
|
|
175
|
+
}, {
|
|
176
|
+
name: '风机',
|
|
177
|
+
font_class: 'fengji1'
|
|
178
|
+
}];
|
|
179
|
+
export default list;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
margin: 24px;
|
|
5
|
+
padding-left: 0;
|
|
6
|
+
color: #666;
|
|
7
|
+
}
|
|
8
|
+
.list-item {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
width: 100px;
|
|
14
|
+
height: 100px;
|
|
15
|
+
padding: 0 8px;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
.name {
|
|
19
|
+
width: 100px;
|
|
20
|
+
margin-top: 8px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
text-align: center;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
}
|
|
27
|
+
.checked {
|
|
28
|
+
border: 1px dotted #60606d;
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
}
|