Last modified by Hera Guo on 2024/11/11 17:08

From version 16.1
edited by Hera Guo
on 2024/11/04 16:45
Change comment: There is no comment for this version
To version 17.1
edited by Hera Guo
on 2024/11/04 17:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -139,7 +139,65 @@
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]]
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]]
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]]
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]]
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]]
195 +
196 +Asset List:
197 +
198 +
199 +[[image:1730710693066-349.png]]
200 +
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