Changes for page Demo for Smart Office, Factory
Last modified by Hera Guo on 2024/11/11 17:08
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 10 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -94,39 +94,39 @@ 94 94 95 95 Asset map: 96 96 97 -[[image:1730709409941-536.png]] 97 +[[image:1730709409941-536.png||height="729" width="1440"]] 98 98 99 99 detail: 100 100 101 -[[image:1730709424998-915.png]] 101 +[[image:1730709424998-915.png||height="729" width="1436"]] 102 102 103 103 devid: 104 104 105 -[[image:1730709442773-502.png]] 105 +[[image:1730709442773-502.png||height="738" width="1434"]] 106 106 107 107 State: 108 108 109 -[[image:1730709461297-207.png]] 109 +[[image:1730709461297-207.png||height="706" width="1434"]] 110 110 111 111 Alarm: 112 112 113 -[[image:1730709479828-595.png]] 113 +[[image:1730709479828-595.png||height="696" width="1435"]] 114 114 115 115 Dragino&GXHL,Ltd: 116 116 117 -[[image:1730709511861-439.png]] 117 +[[image:1730709511861-439.png||height="714" width="1435"]] 118 118 119 119 Selected Supermarket: 120 120 121 -[[image:1730709527720-418.png]] 121 +[[image:1730709527720-418.png||height="751" width="1433"]] 122 122 123 123 Supermarkets: 124 124 125 -[[image:1730709542597-321.png]] 125 +[[image:1730709542597-321.png||height="734" width="1435"]] 126 126 127 127 Supermarket Devices: 128 128 129 -[[image:1730709555797-383.png]] 129 +[[image:1730709555797-383.png||height="726" width="1434"]] 130 130 131 131 132 132 === 4.1.2.Page Configuration === ... ... @@ -139,7 +139,75 @@ 139 139 140 140 3、Configure the first layer menu interface 141 141 142 +Map: 142 142 144 +Data: 145 + 146 +[[image:1730710271230-716.png||height="729" width="1427"]] 147 + 148 +Actions:The map interface has two actions, among which Select supermarket can refresh the device list and related alarms on the right side to enter the location, and Supermarket_detail can jump to the second level physical interface to view the details of the location based on the selected location 149 + 150 +[[image:1730710850458-781.png||height="770" width="1429"]] 151 + 152 +Select supermarket: 153 + 154 +{{code language="none"}} 155 +var params = widgetContext.stateController.getStateParams(); 156 +var selectedSupermarket = params['selectedSupermarket']; 157 +if (selectedSupermarket && selectedSupermarket.entityId.id === entityId.id) { 158 + params['selectedSupermarket'] = null; 159 +} else { 160 + params['selectedSupermarket'] = { entityId: entityId, entityName: entityName, entityLabel: entityLabel }; 161 +} 162 +widgetContext.stateController.updateState(null, params); 163 +{{/code}} 164 + 165 +[[image:1730710875401-848.png||height="767" width="1429"]] 166 + 167 +Supermarket_detail: 168 + 169 +{{code language="none"}} 170 +var params = JSON.parse(JSON.stringify(widgetContext.stateController.getStateParams())); 171 +params['selectedSupermarket'] = { 172 + entityId: entityId, 173 + entityName: entityName, 174 + entityLabel: entityLabel, 175 +}; 176 +params['targetEntityParamName'] = 'selectedSupermarket'; 177 +params['selectedDevice'] = null; 178 + 179 +widgetContext.stateController.openState('svgmap', params); 180 +{{/code}} 181 + 182 +[[image:1730710990334-601.png||height="772" width="1433"]] 183 + 184 +* In this demo, exclusive map icons were set as follows: 185 + 186 +{{code language="none"}} 187 +var res = { 188 + url: images[0], 189 + size: 66 190 +}; 191 +return res; 192 +{{/code}} 193 + 194 +[[image:1730710395303-672.png||height="771" width="1438"]] 195 + 196 +Asset List: 197 + 198 + 199 +[[image:1730710693066-349.png||height="772" width="1439"]] 200 + 201 +Actions:The Assets List interface has an action, which is the same as the Supermarket_details in the Map. You can jump to the second level entity interface to view the details of the selected location based on its location 202 + 203 +[[image:1730712335338-750.png||height="751" width="1423"]] 204 + 205 +[[image:1730712473941-913.png||height="781" width="1422"]] 206 + 207 +All Alarms: 208 + 209 +[[image:1730712539209-554.png||height="764" width="1424"]] 210 + 143 143 == 4.2 Alarm configuration details == 144 144 145 145 == 4.3 Rule chain configuration details ==
- 1730710271230-716.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.5 MB - Content
- 1730710395303-672.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.6 MB - Content
- 1730710693066-349.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +94.4 KB - Content
- 1730710850458-781.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.5 MB - Content
- 1730710875401-848.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.0 MB - Content
- 1730710949358-671.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.0 MB - Content
- 1730710990334-601.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.0 MB - Content
- 1730712335338-750.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +77.1 KB - Content
- 1730712473941-913.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +135.9 KB - Content
- 1730712539209-554.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +131.0 KB - Content