hy-dispatch-ui-v3 0.2.76 → 0.2.78

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.
Files changed (195) hide show
  1. package/dist/tailwind.css +91 -8
  2. package/es/api/common.mjs +28 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
  5. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
  6. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
  7. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
  8. package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
  9. package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
  10. package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
  11. package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
  12. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
  13. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
  14. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
  15. package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
  16. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
  17. package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
  18. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
  19. package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  20. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
  21. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
  22. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
  23. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
  24. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
  25. package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
  26. package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
  27. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
  28. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
  29. package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
  30. package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
  31. package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
  32. package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
  33. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
  34. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
  35. package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
  36. package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
  37. package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
  38. package/es/bussiness/hyFilePlayback/index.mjs +8 -0
  39. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
  40. package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
  41. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
  42. package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  43. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
  44. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
  45. package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
  46. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
  47. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
  48. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
  49. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
  50. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
  51. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
  52. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
  53. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
  54. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
  55. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
  56. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
  57. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
  58. package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
  59. package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
  60. package/es/bussiness/index.mjs +3 -2
  61. package/es/components/hyCutter/cutter.vue.mjs +2 -2
  62. package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
  63. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
  64. package/es/components/hyForm/js/index.mjs +2 -8
  65. package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
  66. package/es/components/hySearch/js/index.mjs +1 -35
  67. package/es/components/hySearch/js/useAppSearch.mjs +3 -3
  68. package/es/components/hySearch/style/search.scss +1 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
  70. package/es/components/hyTable/js/index.mjs +44 -4
  71. package/es/components/hyTable/js/search.mjs +0 -6
  72. package/es/components/hyTable/table.vue.mjs +47 -30
  73. package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
  74. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
  75. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
  76. package/es/components-map.mjs +19 -10
  77. package/es/hooks/index.mjs +1 -0
  78. package/es/hooks/useBaseMainStore.mjs +16 -5
  79. package/es/hooks/useCurrentBus.mjs +5 -4
  80. package/es/hooks/useDialog.mjs +2 -2
  81. package/es/hooks/useGlobalConfig.mjs +26 -16
  82. package/es/hooks/useVersionControl.mjs +34 -0
  83. package/es/index.mjs +7 -4
  84. package/es/locale/en_US.mjs +1 -0
  85. package/es/locale/zh_CN.mjs +1 -0
  86. package/es/style/index.scss +2 -2
  87. package/es/utils/file.mjs +1 -2
  88. package/es/utils/form.mjs +70 -7
  89. package/es/utils/index.mjs +3 -2
  90. package/es/utils/map/hook/leafletjs.mjs +4 -0
  91. package/es/utils/map/index.mjs +4 -0
  92. package/es/utils/timeUtils.mjs +95 -0
  93. package/es/utils/useUiComponent.mjs +34 -0
  94. package/es/version.mjs +1 -1
  95. package/lib/api/common.js +33 -0
  96. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
  97. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
  98. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
  99. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
  100. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
  101. package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
  102. package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
  103. package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
  104. package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
  105. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
  106. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
  107. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
  108. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
  109. package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
  110. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
  111. package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
  112. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
  113. package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  114. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
  115. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
  116. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
  117. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
  118. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
  119. package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
  120. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
  121. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
  122. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
  123. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
  124. package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
  125. package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
  126. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
  127. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
  128. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
  129. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
  130. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
  131. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
  132. package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
  133. package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
  134. package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
  135. package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
  136. package/lib/bussiness/hyFilePlayback/index.js +13 -0
  137. package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
  138. package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
  139. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
  140. package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  141. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
  142. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
  143. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
  144. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
  145. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
  146. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
  147. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
  148. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
  149. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
  150. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
  151. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
  152. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
  153. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
  154. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
  155. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
  156. package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
  157. package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
  158. package/lib/bussiness/index.js +19 -16
  159. package/lib/components/hyCutter/cutter.vue.js +2 -2
  160. package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
  161. package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
  162. package/lib/components/hyForm/js/index.js +0 -7
  163. package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
  164. package/lib/components/hySearch/js/index.js +0 -36
  165. package/lib/components/hySearch/js/useAppSearch.js +3 -3
  166. package/lib/components/hySearch/style/search.scss +1 -0
  167. package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
  168. package/lib/components/hyTable/js/index.js +45 -3
  169. package/lib/components/hyTable/js/search.js +0 -6
  170. package/lib/components/hyTable/table.vue.js +46 -29
  171. package/lib/components/hyTooltip/tooltip.vue.js +13 -5
  172. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
  173. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
  174. package/lib/components-map.js +19 -10
  175. package/lib/hooks/index.js +4 -0
  176. package/lib/hooks/useBaseMainStore.js +15 -4
  177. package/lib/hooks/useCurrentBus.js +4 -3
  178. package/lib/hooks/useDialog.js +2 -2
  179. package/lib/hooks/useGlobalConfig.js +25 -15
  180. package/lib/hooks/useVersionControl.js +38 -0
  181. package/lib/index.js +75 -57
  182. package/lib/locale/en_US.js +1 -0
  183. package/lib/locale/zh_CN.js +1 -0
  184. package/lib/style/index.scss +2 -2
  185. package/lib/utils/file.js +1 -2
  186. package/lib/utils/form.js +72 -6
  187. package/lib/utils/index.js +12 -1
  188. package/lib/utils/map/hook/leafletjs.js +4 -0
  189. package/lib/utils/map/index.js +4 -0
  190. package/lib/utils/timeUtils.js +105 -0
  191. package/lib/utils/useUiComponent.js +37 -0
  192. package/lib/version.js +1 -1
  193. package/package.json +113 -58
  194. package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
  195. package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
@@ -0,0 +1,247 @@
1
+ import { defineComponent, onMounted, nextTick, useTemplateRef, ref, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, createBlock, toDisplayString, createTextVNode, createCommentVNode } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import '../../../components/index.mjs';
4
+ import { ElRow, ElCol } from 'element-plus';
5
+ import { getPublicFileSize } from '../../../utils/input.mjs';
6
+ import { $t } from '../../../hooks/useLocale.mjs';
7
+ import { useBaseMainStore } from '../../../hooks/useBaseMainStore.mjs';
8
+ import { useMixins } from '../../../hooks/useMixins.mjs';
9
+ import { HyAudioPlayer } from '../../../components/hyAudioPlayer/index.mjs';
10
+
11
+ var _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "audioDetail",
13
+ props: {
14
+ item: {
15
+ type: Object,
16
+ required: true,
17
+ default: () => {
18
+ }
19
+ },
20
+ playList: {
21
+ type: Array,
22
+ required: true,
23
+ default: () => []
24
+ }
25
+ },
26
+ emits: ["playItemChange"],
27
+ setup(__props, { expose: __expose, emit: __emit }) {
28
+ const $t$1 = (key, option) => $t(`HyFilePlayback.${key}`, option);
29
+ const emit = __emit;
30
+ const props = __props;
31
+ function useAudioDetail(hy) {
32
+ const { baseMainStore } = useBaseMainStore();
33
+ onMounted(() => {
34
+ let newColorObject = baseMainStore.value.getters.colorObject || {};
35
+ const newColors = {
36
+ 2: newColorObject.auxiliary,
37
+ 3: newColorObject.warning,
38
+ 4: newColorObject.success,
39
+ 5: newColorObject.theme
40
+ };
41
+ nextTick(() => {
42
+ hy.playItem.value = {};
43
+ hy.playStart(null, hy.props.item);
44
+ hy.colors.value = newColors;
45
+ hy.colorObject.value = newColorObject;
46
+ nextTick(() => {
47
+ audioPlayerRef2.value?.playAudio(hy.playItem.value.filePath, hy.playItem.value);
48
+ });
49
+ });
50
+ });
51
+ const fileScoreRef2 = useTemplateRef("fileScoreRef");
52
+ const audioPlayerRef2 = useTemplateRef("audioPlayerRef");
53
+ const paramsList2 = ref([
54
+ { name: $t$1("fileNumber"), params: "fileUniqueId" },
55
+ { name: $t$1("audioDuration"), params: "audioLength" },
56
+ { name: $t$1("fileName"), params: "fileName" },
57
+ { name: $t$1("fileSize"), params: "fileSize" },
58
+ { name: $t$1("creationTime"), params: "uploadDateStr" },
59
+ { name: $t$1("equipmentNumber"), params: "deviceId" },
60
+ { name: $t$1("collectionTime"), params: "fileDtmStart" },
61
+ { name: $t$1("deviceName"), params: "devName" },
62
+ { name: $t$1("workNumber"), params: "jobNum" },
63
+ { name: $t$1("userName-0"), params: "devUserName" },
64
+ { name: $t$1("collectionStationIP"), params: "sip" },
65
+ { name: $t$1("deviceCode"), params: "deviceCode" }
66
+ ]);
67
+ const fileScoreLoading2 = ref(true);
68
+ const fileScore2 = ref(null);
69
+ const colors2 = ref({});
70
+ const colorObject2 = ref({});
71
+ const fileList2 = ref([]);
72
+ const playItem2 = ref({
73
+ id: ""
74
+ });
75
+ const audioTotalTime2 = ref(0);
76
+ const audioCurTime2 = ref(0);
77
+ function fileScoreShow2() {
78
+ fileScoreRef2.value?.show(hy.playItem.value.id, hy.fileScore.value).then(() => {
79
+ hy.playItem.value.fileScore = hy.fileScore.value;
80
+ });
81
+ }
82
+ function playEnd2() {
83
+ }
84
+ function playStart2(audioUrl, newItem = {}) {
85
+ const id = newItem.id;
86
+ if (hy.playItem.value.id !== id) {
87
+ hy.playItem.value = { ...newItem };
88
+ }
89
+ console.log("hy.playItem.value", hy.playItem.value);
90
+ emit("playItemChange", hy.playItem.value);
91
+ }
92
+ function canPlay2(totalTime) {
93
+ hy.audioTotalTime.value = totalTime;
94
+ }
95
+ function onTimeUpdate2(curTime) {
96
+ hy.audioCurTime.value = curTime;
97
+ }
98
+ return {
99
+ fileScoreRef: fileScoreRef2,
100
+ audioPlayerRef: audioPlayerRef2,
101
+ paramsList: paramsList2,
102
+ fileScoreLoading: fileScoreLoading2,
103
+ fileScore: fileScore2,
104
+ colors: colors2,
105
+ colorObject: colorObject2,
106
+ fileList: fileList2,
107
+ playItem: playItem2,
108
+ audioTotalTime: audioTotalTime2,
109
+ audioCurTime: audioCurTime2,
110
+ fileScoreShow: fileScoreShow2,
111
+ playEnd: playEnd2,
112
+ playStart: playStart2,
113
+ canPlay: canPlay2,
114
+ onTimeUpdate: onTimeUpdate2
115
+ };
116
+ }
117
+ onMounted(() => {
118
+ });
119
+ const {
120
+ audioCurTime,
121
+ audioPlayerRef,
122
+ audioTotalTime,
123
+ canPlay,
124
+ colorObject,
125
+ colors,
126
+ fileList,
127
+ fileScore,
128
+ fileScoreLoading,
129
+ fileScoreRef,
130
+ fileScoreShow,
131
+ onTimeUpdate,
132
+ paramsList,
133
+ playEnd,
134
+ playItem,
135
+ playStart
136
+ } = useMixins({ props }, [useAudioDetail]);
137
+ __expose({});
138
+ return (_ctx, _cache) => {
139
+ return openBlock(), createElementBlock("div", { class: "flex flex-col w-full h-full box-border border border-border items-center px-[15px] bg-background-2 rounded shadow-[0_0_10px_0_rgb(var(--hy-background), 1)]" }, [
140
+ createElementVNode("div", { class: "w-full flex mt-5" }, [
141
+ createVNode(unref(HyAudioPlayer), {
142
+ ref_key: "audioPlayerRef",
143
+ ref: audioPlayerRef,
144
+ "play-list": __props.playList,
145
+ onOnTimeUpdate: unref(onTimeUpdate),
146
+ onCanPlay: unref(canPlay),
147
+ onPlayEnd: unref(playEnd),
148
+ onPlayStart: unref(playStart)
149
+ }, null, 8, ["play-list", "onOnTimeUpdate", "onCanPlay", "onPlayEnd", "onPlayStart"])
150
+ ]),
151
+ unref(playItem) && unref(playItem).id ? (openBlock(), createElementBlock("div", {
152
+ key: 0,
153
+ class: "w-full mb-[10px] flex-grow h-0 overflow-y-auto overflow-x-hidden mt-5"
154
+ }, [
155
+ createVNode(unref(ElRow), {
156
+ gutter: 20,
157
+ class: "text-xs text-auxiliary leading-5"
158
+ }, {
159
+ default: withCtx(() => [
160
+ (openBlock(true), createElementBlock(
161
+ Fragment,
162
+ null,
163
+ renderList(unref(paramsList), (paramsItem, paramsIndex) => {
164
+ return openBlock(), createBlock(unref(ElCol), {
165
+ key: paramsIndex + "_paramsList",
166
+ span: paramsItem.span || 12
167
+ }, {
168
+ default: withCtx(() => [
169
+ createElementVNode("div", { class: "flex mb-1.5" }, [
170
+ createElementVNode(
171
+ "span",
172
+ {
173
+ class: "w-[70px] shrink-0 mr-5",
174
+ style: { "text-align-last": "justify" }
175
+ },
176
+ toDisplayString(paramsItem.name) + ":",
177
+ 1
178
+ /* TEXT */
179
+ ),
180
+ createElementVNode("span", { class: "overflow-ellipsis overflow-hidden whitespace-nowrap text-main" }, [
181
+ !unref(playItem)[`${paramsItem.params}`] ? (openBlock(), createElementBlock("span", {
182
+ key: 0,
183
+ class: "text-auxiliary"
184
+ }, "- -")) : paramsItem.params === "audioLength" ? (openBlock(), createElementBlock(
185
+ "span",
186
+ { key: 1 },
187
+ toDisplayString(unref(playItem).audioLength) + "s ",
188
+ 1
189
+ /* TEXT */
190
+ )) : paramsItem.params === "fileSize" ? (openBlock(), createElementBlock(
191
+ "span",
192
+ { key: 2 },
193
+ toDisplayString(unref(getPublicFileSize)(unref(playItem).fileSize)),
194
+ 1
195
+ /* TEXT */
196
+ )) : paramsItem.params === "fileDtmStart" ? (openBlock(), createElementBlock("span", { key: 3 }, [
197
+ createTextVNode(
198
+ toDisplayString(unref(playItem).fileDtmStart) + " ",
199
+ 1
200
+ /* TEXT */
201
+ ),
202
+ createElementVNode("span", { class: "text-auxiliary" }, "-"),
203
+ createTextVNode(
204
+ " " + toDisplayString(unref(playItem).fileDtmEnd),
205
+ 1
206
+ /* TEXT */
207
+ )
208
+ ])) : paramsItem.params === "fileheight" ? (openBlock(), createElementBlock("span", { key: 4 }, [
209
+ createTextVNode(
210
+ toDisplayString(unref(playItem).filewidth) + " ",
211
+ 1
212
+ /* TEXT */
213
+ ),
214
+ createElementVNode("span", { class: "text-auxiliary" }, "*"),
215
+ createTextVNode(
216
+ " " + toDisplayString(unref(playItem).fileheight),
217
+ 1
218
+ /* TEXT */
219
+ )
220
+ ])) : (openBlock(), createElementBlock(
221
+ "span",
222
+ { key: 5 },
223
+ toDisplayString(unref(playItem)[`${paramsItem.params}`]),
224
+ 1
225
+ /* TEXT */
226
+ ))
227
+ ])
228
+ ])
229
+ ]),
230
+ _: 2
231
+ /* DYNAMIC */
232
+ }, 1032, ["span"]);
233
+ }),
234
+ 128
235
+ /* KEYED_FRAGMENT */
236
+ ))
237
+ ]),
238
+ _: 1
239
+ /* STABLE */
240
+ })
241
+ ])) : createCommentVNode("v-if", true)
242
+ ]);
243
+ };
244
+ }
245
+ });
246
+
247
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './picDetail2.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import '../../../utils/index.mjs';
2
+ import { withInstall } from '../../../utils/handler.mjs';
3
+ import _sfc_main from './picDetail2.vue.mjs';
4
+
5
+ const _wrapped = withInstall(_sfc_main);
6
+ export { _wrapped as default }
@@ -0,0 +1,206 @@
1
+ import { defineComponent, onMounted, nextTick, ref, openBlock, createElementBlock, createElementVNode, unref, toDisplayString, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { ElRow, ElCol } from 'element-plus';
4
+ import { getPublicFileSize } from '../../../utils/input.mjs';
5
+ import { $t } from '../../../hooks/useLocale.mjs';
6
+ import { useBaseMainStore } from '../../../hooks/useBaseMainStore.mjs';
7
+ import { useMixins } from '../../../hooks/useMixins.mjs';
8
+
9
+ var _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "picDetail",
11
+ props: {
12
+ item: {
13
+ type: Object,
14
+ required: true,
15
+ default: () => {
16
+ }
17
+ }
18
+ },
19
+ emits: ["playItemChange"],
20
+ setup(__props, { expose: __expose, emit: __emit }) {
21
+ const emit = __emit;
22
+ const $t$1 = (key, option) => $t(`HyFilePlayback.${key}`, option);
23
+ const props = __props;
24
+ function usePicDetail(hy) {
25
+ const { baseMainStore } = useBaseMainStore();
26
+ onMounted(() => {
27
+ let newColorObject = baseMainStore.value.getters.colorObject || {};
28
+ const newColors = {
29
+ 2: newColorObject.auxiliary,
30
+ 3: newColorObject.warning,
31
+ 4: newColorObject.success,
32
+ 5: newColorObject.theme
33
+ };
34
+ nextTick(() => {
35
+ console.log("hy.props.item", hy.props.item);
36
+ hy.playStart(hy.props.item);
37
+ hy.colors.value = newColors;
38
+ hy.colorObject.value = newColorObject;
39
+ });
40
+ });
41
+ const paramsList2 = ref([
42
+ { name: $t$1("fileNumber"), params: "fileUniqueId" },
43
+ { name: $t$1("resolution"), params: "fileheight" },
44
+ { name: $t$1("fileName"), params: "fileName" },
45
+ { name: $t$1("fileSize"), params: "fileSize" },
46
+ { name: $t$1("shootingTime"), params: "uploadDateStr" },
47
+ { name: $t$1("equipmentNumber"), params: "deviceId" },
48
+ { name: $t$1("collectionTime"), params: "fileDtmStart" },
49
+ { name: $t$1("collectionStationIP"), params: "sip" },
50
+ { name: $t$1("workNumber"), params: "jobNum" },
51
+ { name: $t$1("deviceName"), params: "devName" },
52
+ { name: $t$1("userName-0"), params: "devUserName" },
53
+ { name: $t$1("deviceCode"), params: "deviceCode" }
54
+ ]);
55
+ const colors2 = ref({});
56
+ const colorObject2 = ref({});
57
+ const playItem2 = ref({
58
+ id: "",
59
+ filePath: ""
60
+ });
61
+ function onShowViewer2(image) {
62
+ baseMainStore.value.commit("callComponent", {
63
+ name: "fileUpload",
64
+ data: {
65
+ methodName: "onShowViewer",
66
+ params: image
67
+ }
68
+ });
69
+ }
70
+ function playStart2(newItem = {}) {
71
+ hy.playItem.value = { ...newItem };
72
+ emit("playItemChange", hy.playItem.value);
73
+ }
74
+ return {
75
+ paramsList: paramsList2,
76
+ colors: colors2,
77
+ colorObject: colorObject2,
78
+ playItem: playItem2,
79
+ onShowViewer: onShowViewer2,
80
+ playStart: playStart2
81
+ };
82
+ }
83
+ const {
84
+ colorObject,
85
+ colors,
86
+ onShowViewer,
87
+ paramsList,
88
+ playItem,
89
+ playStart
90
+ } = useMixins({ props }, [usePicDetail]);
91
+ __expose({});
92
+ return (_ctx, _cache) => {
93
+ return openBlock(), createElementBlock("div", { class: "flex flex-col w-full h-full box-border border border-border text-main p-5 rounded bg-background-2 shadow-[0_0_10px_0_rgb(var(--hy-background))]" }, [
94
+ createElementVNode("div", {
95
+ class: "w-full h-[400px] overflow-hidden flex items-center justify-center box-border rounded-xl shadow-[0px_0px_6px_0px_rgba(var(--hy-background-3),1)]",
96
+ onClick: ($event) => unref(onShowViewer)(unref(playItem).filePath)
97
+ }, [
98
+ createElementVNode("img", {
99
+ src: unref(playItem).filePath,
100
+ class: "h-full"
101
+ }, null, 8, ["src"])
102
+ ], 8, ["onClick"]),
103
+ createElementVNode(
104
+ "div",
105
+ { class: "flex justify-center items-center text-sm font-bold h-[50px] leading-[50px] text-auxiliary" },
106
+ toDisplayString($t$1("clickTheImageToDisplayInFullScreen")),
107
+ 1
108
+ /* TEXT */
109
+ ),
110
+ unref(playItem) && unref(playItem).id ? (openBlock(), createElementBlock("div", {
111
+ key: 0,
112
+ class: "w-full pt-4 mb-[10px] h-[30%] overflow-y-auto overflow-x-hidden border-t border-border"
113
+ }, [
114
+ createVNode(unref(ElRow), {
115
+ gutter: 20,
116
+ class: "text-xs text-auxiliary leading-5"
117
+ }, {
118
+ default: withCtx(() => [
119
+ (openBlock(true), createElementBlock(
120
+ Fragment,
121
+ null,
122
+ renderList(unref(paramsList), (paramsItem, paramsIndex) => {
123
+ return openBlock(), createBlock(unref(ElCol), {
124
+ key: paramsIndex + "_paramsList",
125
+ span: paramsItem.span || 12
126
+ }, {
127
+ default: withCtx(() => [
128
+ createElementVNode("div", { class: "flex mb-1.5" }, [
129
+ createElementVNode(
130
+ "span",
131
+ {
132
+ class: "w-[70px] shrink-0 mr-5",
133
+ style: { "text-align-last": "justify" }
134
+ },
135
+ toDisplayString(paramsItem.name) + ":",
136
+ 1
137
+ /* TEXT */
138
+ ),
139
+ createElementVNode("span", { class: "overflow-ellipsis overflow-hidden whitespace-nowrap text-main" }, [
140
+ !unref(playItem)[`${paramsItem.params}`] ? (openBlock(), createElementBlock("span", {
141
+ key: 0,
142
+ class: "text-auxiliary"
143
+ }, "- -")) : paramsItem.params === "audioLength" ? (openBlock(), createElementBlock(
144
+ "span",
145
+ { key: 1 },
146
+ toDisplayString(unref(playItem).audioLength) + "s ",
147
+ 1
148
+ /* TEXT */
149
+ )) : paramsItem.params === "fileSize" ? (openBlock(), createElementBlock(
150
+ "span",
151
+ { key: 2 },
152
+ toDisplayString(unref(getPublicFileSize)(unref(playItem).fileSize)),
153
+ 1
154
+ /* TEXT */
155
+ )) : paramsItem.params === "fileDtmStart" ? (openBlock(), createElementBlock("span", { key: 3 }, [
156
+ createTextVNode(
157
+ toDisplayString(unref(playItem).fileDtmStart) + " ",
158
+ 1
159
+ /* TEXT */
160
+ ),
161
+ createElementVNode("span", { class: "text-auxiliary" }, "-"),
162
+ createTextVNode(
163
+ " " + toDisplayString(unref(playItem).fileDtmEnd),
164
+ 1
165
+ /* TEXT */
166
+ )
167
+ ])) : paramsItem.params === "fileheight" ? (openBlock(), createElementBlock("span", { key: 4 }, [
168
+ createTextVNode(
169
+ toDisplayString(unref(playItem).filewidth) + " ",
170
+ 1
171
+ /* TEXT */
172
+ ),
173
+ createElementVNode("span", { class: "text-auxiliary" }, "*"),
174
+ createTextVNode(
175
+ " " + toDisplayString(unref(playItem).fileheight),
176
+ 1
177
+ /* TEXT */
178
+ )
179
+ ])) : (openBlock(), createElementBlock(
180
+ "span",
181
+ { key: 5 },
182
+ toDisplayString(unref(playItem)[`${paramsItem.params}`]),
183
+ 1
184
+ /* TEXT */
185
+ ))
186
+ ])
187
+ ])
188
+ ]),
189
+ _: 2
190
+ /* DYNAMIC */
191
+ }, 1032, ["span"]);
192
+ }),
193
+ 128
194
+ /* KEYED_FRAGMENT */
195
+ ))
196
+ ]),
197
+ _: 1
198
+ /* STABLE */
199
+ })
200
+ ])) : createCommentVNode("v-if", true)
201
+ ]);
202
+ };
203
+ }
204
+ });
205
+
206
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './videoDetail2.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import '../../../utils/index.mjs';
2
+ import { withInstall } from '../../../utils/handler.mjs';
3
+ import _sfc_main from './videoDetail2.vue.mjs';
4
+
5
+ const _wrapped = withInstall(_sfc_main);
6
+ export { _wrapped as default }