detailStore.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. /**
  2. * 详情与分区状态(ADR 0004 的 `detailStore`:监测点摘要、设备卡片、设备详情**及各分区状态**)。
  3. *
  4. * 票 05 的职责边界:本 store 只做两件事——
  5. * 1. 调领域接口(`services/*Api.js`),把结果收进 `sections`;
  6. * 2. 对外给**领域对象**,不给后端裸字段(store 里不出现 `deviceCode` 之外的接口字段名)。
  7. *
  8. * 为什么各分区要并列存放(票 05 验收第 6 条、票 11 验收第 3 条):
  9. * 「某个分区数据不可用」必须**不牵连**其它分区,所以状态天然是 `{ [分区名]: section() }`,
  10. * 而不是一个整体的 `loading/error`。地图骨架不在这里——它归 `mapService`,本身就不受分区成败影响。
  11. *
  12. * 票 08 修正了一处分工:地图摘要这一条分区不再在这里「取一页了事」,而是交给 `mapStore` 的
  13. * 渐进加载(分页 + 快照一致性归它)。本 store 只把它的装载状态同步成一条分区状态,
  14. * 免得同一个端点被两处各拉一次(那还会各持一个快照,正好违反票 08 的一致性要求)。
  15. *
  16. * 票 10 追加**两级详情**:`selection`(在点位级还是设备级)+ 点位摘要分区。
  17. * 层级语义是纯函数(`domain/detailFlow.js`),本文件只负责「该取数时取数」与收口竞态:
  18. * · 同一个点位重复打开不再发请求(`isSamePointTarget` + 已加载);
  19. * · 先后打开 A、B 时,A 的迟到响应被丢弃(token),不会把 A 的数据挂在 B 的表头下;
  20. * 本文件与 `mapService` 零耦合:详情流程不会给地图加任何标记(关联设备因此不会被重复上图)。
  21. *
  22. * 票 11 补上第三件取数:**设备详情聚合**(按设备编码)。它接在票 10 留下的那个接缝上 ——
  23. * 票 10 的「进第二级不取数」是**延期**(它的票面写明"归票 11"),不是永久契约;本票把这条
  24. * 取数收进 `selectDevice` / `openDevice` 这两个**唯一**的进级入口,于是「进了设备级却没取数」
  25. * 在结构上不可能发生(不用调用方记得额外调一次加载)。竞态收口与点位级同款:
  26. * 换设备时旧的在途响应作废(token),并且**已答过的同一台设备不再重复取数**,
  27. * 而失败/不可用要留恢复路径(再选一次同一台可以重试)。
  28. */
  29. import { ref } from 'vue'
  30. import { defineStore } from 'pinia'
  31. import { fetchEquipmentDetailAggregate, fetchEquipmentFreshness, fetchMonitoringPointDetail } from '../services/detailApi.js'
  32. import { SECTION_STATE, overallState, section, sectionStateFromReason } from '../domain/sectionState.js'
  33. import { REQUEST_REASON } from '../domain/requestReason.js'
  34. import { MAP_SUMMARY_PHASE } from '../domain/mapSummary.js'
  35. import { equipmentDetailMatches, collectionRecordsSection } from '../domain/equipmentDetailView.js'
  36. import { retainEquipmentRefresh } from '../domain/detailRefresh.js'
  37. import {
  38. DETAIL_LEVEL,
  39. backToPoint as backToPointSelection,
  40. closeDetail as closeDetailSelection,
  41. emptyDetailSelection,
  42. isSamePointTarget,
  43. openDevice as openDeviceSelection,
  44. openPoint as openPointSelection,
  45. } from '../domain/detailFlow.js'
  46. import { useMapStore } from './mapStore.js'
  47. function pending() {
  48. return { state: SECTION_STATE.EMPTY, reason: '', mode: '', data: null, missing: [], freshness: '', retained: false, loaded: false }
  49. }
  50. export const useDetailStore = defineStore('detailStore', () => {
  51. const mapStore = useMapStore()
  52. /**
  53. * 分区状态表:键是分区名,值是 `section()`。
  54. * 挂了**共享详情域**的分区(票 05 的交付面):地图摘要、监测点摘要(票 10)、
  55. * 设备详情聚合(8 个子分区)、设备新鲜度。
  56. */
  57. const sections = ref({
  58. mapSnapshot: pending(),
  59. pointDetail: pending(),
  60. equipmentAggregate: pending(),
  61. equipmentFreshness: pending(),
  62. })
  63. /** 当前的两级详情选择(`domain/detailFlow.js` 的状态)。 */
  64. const selection = ref(emptyDetailSelection())
  65. /**
  66. * 当前「定位揭示」目标(#127):`{ code, deviceCode }`,`code` 是地图摘要对象编码。
  67. * 只由定位成功的那一次打开动作写入;换选择、关闭、模式/图例筛选变化时清除。
  68. * 它不等于 `monitoringStore.locate`(那是给用户的定位反馈,可能保留到最后一次操作)。
  69. */
  70. const locateTarget = ref(null)
  71. /** 点位摘要正在取数(界面只做轻提示;分区状态仍由 `sections.pointDetail` 说了算)。 */
  72. const pointLoading = ref(false)
  73. /** 设备详情聚合正在取数(票 11;同样只是轻提示,分区成败由各分区自己说)。 */
  74. const deviceLoading = ref(false)
  75. /** 最近一次加载是否进行中(界面只做轻提示,不影响分区各自的成功值)。 */
  76. const loading = ref(false)
  77. /** 请求注入(config / fetchImpl):取一次就让后续所有分区共用,单测与走查都靠它。 */
  78. let requestOptions = {}
  79. /** 点位摘要的请求序号:只有最后一次请求允许写分区(迟到响应丢弃)。 */
  80. let pointToken = 0
  81. /** 设备详情聚合的请求序号:换设备时旧的在途响应作废(与点位级同款收口)。 */
  82. let deviceToken = 0
  83. function configure(options = {}) {
  84. requestOptions = { ...requestOptions, ...options }
  85. }
  86. function setSection(name, value) {
  87. sections.value = { ...sections.value, [name]: { ...value, loaded: true } }
  88. }
  89. /** 写入/清除定位揭示目标;调用方只在定位成功的打开动作里传对象。 */
  90. function setLocateTarget(target) {
  91. const code = String((target && target.code) || '').trim()
  92. const device = target && target.device && typeof target.device === 'object' ? { ...target.device } : null
  93. locateTarget.value = code
  94. ? {
  95. code,
  96. deviceCode: String(target.deviceCode || '').trim(),
  97. ...(device ? { device } : {}),
  98. }
  99. : null
  100. }
  101. function clearLocateTarget() {
  102. locateTarget.value = null
  103. }
  104. /** 从已加载的点位详情里取某台设备的**原始卡片**(含自身坐标/校验);找不到回 null。 */
  105. function deviceCard(pointCode, deviceCode) {
  106. const data = sections.value.pointDetail && sections.value.pointDetail.data
  107. if (!data || data.code !== pointCode || !Array.isArray(data.devices)) return null
  108. return data.devices.find((item) => item && item.code === deviceCode) || null
  109. }
  110. /**
  111. * 把 `mapStore` 的渐进加载状态同步成「地图摘要」分区状态(票 08)。
  112. *
  113. * 映射刻意**不把"还没翻完"写成 `STALE`**:`STALE` 在票 16 的词汇里是「有值但过期」,
  114. * 而分页没翻完的数据是**新鲜的**,只是还没取全 —— 说成"已过期"就是对值班人员撒谎,
  115. * 也会让顶栏分区板与地图上真实进度互相矛盾。取到一部分就是**成功**(数据源健康、值新鲜),
  116. * 「翻到第几页了」由地图摘要那条专用指示器与地图上的点位数体现。
  117. *
  118. * 真正该报异常的三种:真失败(`FAILED`)、快照失效(`STALE` + `retained`,这次确实是"有值但已作废")、
  119. * 后端说没有对象(`EMPTY`)。
  120. */
  121. function syncMapSnapshotSection() {
  122. const state = mapStore.summary
  123. const phase = state.phase
  124. let next = null
  125. if (phase === MAP_SUMMARY_PHASE.EMPTY) {
  126. next = section(SECTION_STATE.EMPTY, { data: null })
  127. } else if (phase === MAP_SUMMARY_PHASE.FAILED) {
  128. next = section(sectionStateFromReason(state.reason), { reason: state.reason || '', data: state.loaded ? state : null })
  129. } else if (phase === MAP_SUMMARY_PHASE.EXPIRED) {
  130. next = section(SECTION_STATE.STALE, { reason: state.reason || '', data: state, retained: true })
  131. } else if (state.loaded > 0) {
  132. // 加载中 / 就绪(还有下一页):已上图的点位是新鲜的,分区就是成功。
  133. next = section(SECTION_STATE.SUCCESS, { data: state })
  134. }
  135. // 一个点都还没取到、也还没失败时**不改写**分区:保持 pending(未取数),
  136. // 不拿「无数据」或「已过期」去描述"正在取第 1 页"。
  137. if (!next) return sections.value.mapSnapshot
  138. setSection('mapSnapshot', next)
  139. return next
  140. }
  141. /**
  142. * 加载启动时共享的分区:这里只有地图摘要。
  143. * 地图摘要走 `mapStore` 的 refresh 链(票 14:换新快照第 1 页并**自动分批加载到完成**,
  144. * 决策 02 的 Q24——旧版只取第一页的手动渐进形态已由自动加载取代)。
  145. * 设备详情与新鲜度不再用固定演示设备预载,用户选中真实设备时再取。
  146. * @param {object} [options] `{ config, fetchImpl }`
  147. */
  148. async function loadSharedSections(options = {}) {
  149. const shared = { config: options.config, fetchImpl: options.fetchImpl }
  150. configure(shared)
  151. loading.value = true
  152. mapStore.setup(shared)
  153. await mapStore.refresh()
  154. syncMapSnapshotSection()
  155. loading.value = false
  156. return sections.value
  157. }
  158. /**
  159. * 加载某个监测点的详情(票 10 的第一级:摘要 + 设备卡片)。
  160. * @param {string} pointCode 监测点编码
  161. * @returns {Promise<object>} 该分区(`section()`)
  162. */
  163. async function loadPointDetail(pointCode, options = {}) {
  164. if (!pointCode) return sections.value.pointDetail
  165. pointToken += 1
  166. const mine = pointToken
  167. if (sections.value.pointDetail.data?.code !== pointCode) {
  168. sections.value = { ...sections.value, pointDetail: pending() }
  169. }
  170. pointLoading.value = true
  171. const active = Object.keys(options).length ? { ...requestOptions, ...options } : requestOptions
  172. try {
  173. const result = await fetchMonitoringPointDetail(pointCode, active)
  174. // 迟到的响应丢弃:A 的点位还没回来就点了 B,A 的数据不得盖在 B 的表头下。
  175. if (mine !== pointToken) return sections.value.pointDetail
  176. return setPointResult(pointCode, result)
  177. } catch (error) {
  178. // 适配层本身不会抛(票 04 的失败一律收敛成 `{ok:false,reason}`),但转换层万一抛了
  179. // 也不能把详情卡在「加载中」或冒成页面级报错:收成一条失败分区,用户还能重试。
  180. if (mine !== pointToken) return sections.value.pointDetail
  181. const failed = section(SECTION_STATE.FAILED, { reason: REQUEST_REASON.UNREACHABLE, data: null })
  182. return setPointResult(pointCode, failed)
  183. } finally {
  184. if (mine === pointToken) pointLoading.value = false
  185. }
  186. }
  187. function setPointResult(pointCode, result) {
  188. const current = sections.value.pointDetail
  189. const retained = !result.data && [SECTION_STATE.FAILED, SECTION_STATE.UNAVAILABLE].includes(result.state)
  190. && current.data?.code === pointCode
  191. const next = retained ? { ...result, state: SECTION_STATE.STALE, data: current.data, retained: true } : result
  192. setSection('pointDetail', next)
  193. return next
  194. }
  195. /**
  196. * 票 15:状态推送把**已打开**的点位详情里的状态就地换掉(验收第 4 条)。
  197. *
  198. * 三件事刻意不做,都是为了"不重建视图":
  199. * · **不重新取数**(推送已经给了新状态,再拉一次既慢又可能覆盖更新的推送);
  200. * · **不换层级、不动选择**(`selection` 一个字节不变,浮层不闪、不回到第一级);
  201. * · **不复制整份摘要**(只换 `status` 字段,其余字段保持 REST 快照里的那份)。
  202. * 与之无关的点位一律不碰:编码对不上就直接返回(推送不该影响没打开的详情)。
  203. * @param {string} pointCode 推送指名的点位编码
  204. * @param {string} status 后端发布的状态字符串
  205. * @returns {boolean} 是否真的改到了
  206. */
  207. function applyPushedStatus(pointCode, status) {
  208. const code = String(pointCode || '').trim()
  209. const next = String(status || '').trim()
  210. if (!code || !next) return false
  211. const current = sections.value.pointDetail
  212. const summary = current && current.data
  213. // 详情没打开 / 打开的不是这个点位 / 分区里没有数据:都不动。
  214. if (!summary || summary.code !== code) return false
  215. if (summary.status === next) return false
  216. setSection('pointDetail', { ...current, data: { ...summary, status: next, statusSource: 'push' } })
  217. return true
  218. }
  219. /**
  220. * 加载设备详情聚合(票 11 的主路径)与这台设备的新鲜度。
  221. * 聚合一次拿到档案/指标/预警/报警/工单/时间线/图片,每个分区独立成败
  222. * (契约层保证,见 `domain/equipmentDetail.js`)。
  223. *
  224. * @param {string} deviceCode 设备编码
  225. * @returns {Promise<object>} 该分区(`section()`)
  226. */
  227. async function loadEquipmentAggregate(deviceCode, options = {}) {
  228. if (!deviceCode) return sections.value.equipmentAggregate
  229. deviceToken += 1
  230. const mine = deviceToken
  231. deviceLoading.value = true
  232. const active = Object.keys(options).length ? { ...requestOptions, ...options } : requestOptions
  233. try {
  234. const [result, freshness] = await Promise.all([
  235. fetchEquipmentDetailAggregate(deviceCode, active),
  236. fetchEquipmentFreshness(deviceCode, active),
  237. ])
  238. // 迟到的响应丢弃:A 还没回来就换了 B,A 的数据不得挂在新表头下。
  239. if (mine !== deviceToken) return sections.value.equipmentAggregate
  240. setSection('equipmentFreshness', freshness)
  241. return setEquipmentResult(deviceCode, result)
  242. } catch (error) {
  243. // 与点位级同款兜底:适配层不抛,但转换层万一抛了要收成一条失败分区,
  244. // 不能把设备详情卡在「加载中」(用户还得能看见其它已成功的区块)。
  245. if (mine !== deviceToken) return sections.value.equipmentAggregate
  246. const failed = section(SECTION_STATE.FAILED, { reason: REQUEST_REASON.UNREACHABLE, data: null })
  247. setSection('equipmentFreshness', failed)
  248. return setEquipmentResult(deviceCode, failed)
  249. } finally {
  250. if (mine === deviceToken) deviceLoading.value = false
  251. }
  252. }
  253. /** A failed background read does not erase an already displayed, identity-matched result. */
  254. function setEquipmentResult(deviceCode, result) {
  255. const next = retainEquipmentRefresh(sections.value.equipmentAggregate, result, deviceCode)
  256. setSection('equipmentAggregate', next)
  257. return next
  258. }
  259. /**
  260. * 进入设备级:换层级 + **按需取数**(票 11 把设备详情聚合的加载收在这里)。
  261. *
  262. * 「已答过」= 成功 / 空 / 过期(有过一次明确答复),且答复的是**同一台设备**:
  263. * 满足就不再发请求(返回点位级再点回来不该重复拉)。
  264. * **失败与不可用不算已答**:那两种要允许用户再选一次同一台重试,否则永远没有恢复路径
  265. * (与票 10 点位级的立场一致)。
  266. */
  267. async function enterDeviceLevel(next, options = {}) {
  268. const previous = selection.value
  269. selection.value = next
  270. const deviceCode = next.deviceCode || ''
  271. if (!deviceCode) return selection.value
  272. const aggregate = sections.value.equipmentAggregate
  273. const collection = collectionRecordsSection(aggregate.data?.sections?.metrics)
  274. const answered =
  275. equipmentDetailMatches(aggregate, deviceCode) &&
  276. aggregate.loaded === true && !aggregate.invalidated && !aggregate.retained &&
  277. ![SECTION_STATE.FAILED, SECTION_STATE.UNAVAILABLE].includes(collection.state) &&
  278. [SECTION_STATE.SUCCESS, SECTION_STATE.EMPTY, SECTION_STATE.STALE].includes(aggregate.state)
  279. // 同一台设备正在取数时再点一下不该叠第二个请求。
  280. const inFlight = deviceLoading.value && (previous.deviceCode || '') === deviceCode
  281. if (!answered && !inFlight) {
  282. await loadEquipmentAggregate(deviceCode, options)
  283. }
  284. return selection.value
  285. }
  286. /**
  287. * 打开一个详情选择 —— 地图点选与(票 18 的)台账卡片共用这一条入口。
  288. *
  289. * 两级都可能取数:点位级取点位摘要(票 10),设备级取设备详情聚合(票 11)。
  290. * 同一个点位已经取过就不再发请求,但层级仍会回到第一级(用户可能只是想退回卡片列表)。
  291. * @param {object} next `domain/detailFlow.js` 的选择
  292. */
  293. async function openSelection(next, options = {}) {
  294. if (!next || next.level === DETAIL_LEVEL.NONE) return closeDetail()
  295. if (next.level === DETAIL_LEVEL.EQUIPMENT) {
  296. return enterDeviceLevel(
  297. { level: next.level, pointCode: next.pointCode || '', deviceCode: next.deviceCode || '' },
  298. options,
  299. )
  300. }
  301. const samePoint = isSamePointTarget(selection.value, next.pointCode)
  302. const state = sections.value.pointDetail.state
  303. /**
  304. * 「已经有确定结果」= 成功 / 空 / 过期(有过一次明确答复)。
  305. * **失败或不可用不算**:那两种情况要允许用户再点一次同一个点位重试,
  306. * 否则点同一个标记只会反复看到同一张失败卡片,永远没有恢复路径。
  307. */
  308. const answered = sections.value.pointDetail.loaded === true && !sections.value.pointDetail.retained
  309. && [SECTION_STATE.SUCCESS, SECTION_STATE.EMPTY, SECTION_STATE.STALE].includes(state)
  310. /** 同一点位正在取数时再点一下不该叠第二个请求。 */
  311. const inFlight = pointLoading.value && samePoint
  312. selection.value = {
  313. level: next.level,
  314. pointCode: next.pointCode || '',
  315. deviceCode: next.deviceCode || '',
  316. }
  317. if (selection.value.level === DETAIL_LEVEL.POINT && !(samePoint && (answered || inFlight))) {
  318. await loadPointDetail(selection.value.pointCode, options)
  319. }
  320. return selection.value
  321. }
  322. /** 打开监测点(第一级)。 */
  323. function openPoint(pointCode, options = {}) {
  324. setLocateTarget(options.locateTarget || null)
  325. return openSelection(openPointSelection(selection.value, pointCode), options)
  326. }
  327. /**
  328. * 票 42(规格 14:刷新核对链):**强制重取**一个点位的摘要数据,不查「已答过」缓存。
  329. *
  330. * 与 `openPoint` 的区别:核对链在快照变更后已知数据可能过期,重取是规格明写的行为
  331. * (「找到同编码有效标记后恢复锚定详情并重新加载设备」)。
  332. * 刻意**不动 `selection`**:核对链要求保留选择身份与详情层级(含设备级),
  333. * 这里只换数据 —— 设备图层经既有的 pointDetail 监听自行重算。
  334. */
  335. function reloadPointDetail(pointCode, options = {}) {
  336. if (!pointCode) return sections.value.pointDetail
  337. return loadPointDetail(pointCode, options)
  338. }
  339. /** 选择设备卡片(第二级):换层级并加载这台设备的详情聚合(票 11)。 */
  340. function selectDevice(deviceCode, options = {}) {
  341. setLocateTarget(options.locateTarget || null)
  342. return enterDeviceLevel(openDeviceSelection(selection.value, deviceCode), options)
  343. }
  344. /** 从地图上的未关联设备直接进设备详情(没有点位可摘要)。 */
  345. function openDevice(deviceCode, options = {}) {
  346. setLocateTarget(options.locateTarget || null)
  347. return enterDeviceLevel({ level: DETAIL_LEVEL.EQUIPMENT, pointCode: '', deviceCode }, options)
  348. }
  349. /**
  350. * 返回点位摘要级;没有点位可回时收成空选择(未关联设备的入口)。
  351. *
  352. * 刻意**不清掉已加载的设备详情**:退回卡片列表再点回同一台时靠它免掉一次重复请求
  353. * (`enterDeviceLevel` 的「已答过」判据)。作废的只是在途请求序号。
  354. */
  355. function backToPoint() {
  356. deviceToken += 1
  357. deviceLoading.value = false
  358. clearLocateTarget()
  359. selection.value = backToPointSelection(selection.value)
  360. return selection.value
  361. }
  362. /** 关掉详情浮层。在途的点位与设备请求一并作废(它们已经不属于任何一次选择)。 */
  363. function closeDetail() {
  364. pointToken += 1
  365. deviceToken += 1
  366. pointLoading.value = false
  367. deviceLoading.value = false
  368. clearLocateTarget()
  369. selection.value = closeDetailSelection()
  370. return selection.value
  371. }
  372. /** 增量到达后失效对应设备缓存,撤销在途旧响应;再打开时必须重取。 */
  373. function invalidateEquipment(deviceCode) {
  374. const current = sections.value.equipmentAggregate
  375. if (!current || !current.data || current.data.deviceCode !== deviceCode) return false
  376. deviceToken += 1
  377. deviceLoading.value = false
  378. sections.value = { ...sections.value, equipmentAggregate: { ...current, invalidated: true } }
  379. return true
  380. }
  381. /** 设备详情聚合里的一个子分区(票 11 按分区渲染时取用)。 */
  382. function aggregateSection(name) {
  383. const aggregate = sections.value.equipmentAggregate
  384. const data = (aggregate && aggregate.data) || null
  385. const found = data && data.sections ? data.sections[name] : null
  386. return found || pending()
  387. }
  388. /** 全部子分区(票 11 遍历渲染)。 */
  389. function aggregateSections() {
  390. const aggregate = sections.value.equipmentAggregate
  391. const data = (aggregate && aggregate.data) || null
  392. return (data && data.sections) || {}
  393. }
  394. /** 三条顶层分区的整体状态:`partial` 表示"部分可用"(票 16 要求可区分)。 */
  395. function overall() {
  396. return overallState(sections.value)
  397. }
  398. /** 仅测试用:回到未加载状态。 */
  399. function reset() {
  400. sections.value = {
  401. mapSnapshot: pending(),
  402. pointDetail: pending(),
  403. equipmentAggregate: pending(),
  404. equipmentFreshness: pending(),
  405. }
  406. pointToken += 1
  407. deviceToken += 1
  408. pointLoading.value = false
  409. deviceLoading.value = false
  410. selection.value = emptyDetailSelection()
  411. clearLocateTarget()
  412. loading.value = false
  413. }
  414. return {
  415. sections,
  416. selection,
  417. locateTarget,
  418. pointLoading,
  419. deviceLoading,
  420. loading,
  421. configure,
  422. setSection,
  423. setLocateTarget,
  424. clearLocateTarget,
  425. deviceCard,
  426. syncMapSnapshotSection,
  427. loadSharedSections,
  428. loadPointDetail,
  429. loadEquipmentAggregate,
  430. invalidateEquipment,
  431. applyPushedStatus,
  432. openSelection,
  433. openPoint,
  434. reloadPointDetail,
  435. openDevice,
  436. selectDevice,
  437. backToPoint,
  438. closeDetail,
  439. aggregateSection,
  440. aggregateSections,
  441. overall,
  442. reset,
  443. }
  444. })