hy-dispatch-ui-v3 0.2.77 → 0.2.79

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