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.
- package/dist/tailwind.css +95 -12
- package/es/api/common.mjs +28 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +5 -8
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -125
- package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
- package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
- package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
- package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
- package/es/bussiness/hyFilePlayback/index.mjs +8 -0
- package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
- package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
- package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
- package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/es/bussiness/index.mjs +2 -0
- package/es/components/hyCutter/cutter.vue.mjs +2 -2
- package/es/components/hyDatePicker/datePicker.vue.mjs +34 -4
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +73 -63
- package/es/components/hyForm/js/index.mjs +2 -8
- package/es/components/hyForm/js/useAppForm.mjs +2 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
- package/es/components/hySearch/js/index.mjs +1 -35
- package/es/components/hySearch/js/useAppSearch.mjs +2 -29
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
- package/es/components/hyTable/js/index.mjs +44 -4
- package/es/components/hyTable/js/search.mjs +1 -7
- package/es/components/hyTable/table.vue.mjs +47 -30
- package/es/components/hyTooltip/tooltip.vue.mjs +39 -21
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
- package/es/components-map.mjs +2 -0
- package/es/hooks/useBaseMainStore.mjs +16 -5
- package/es/hooks/useCurrentBus.mjs +5 -4
- package/es/hooks/useDialog.mjs +2 -2
- package/es/hooks/useGlobalConfig.mjs +19 -18
- package/es/index.mjs +5 -2
- package/es/locale/en_US.mjs +1 -0
- package/es/locale/zh_CN.mjs +1 -0
- package/es/style/index.scss +2 -2
- package/es/utils/file.mjs +1 -2
- package/es/utils/form.mjs +84 -5
- package/es/utils/index.mjs +3 -2
- package/es/utils/is.mjs +1 -1
- package/es/utils/map/hook/leafletjs.mjs +4 -0
- package/es/utils/map/index.mjs +4 -0
- package/es/utils/permission.mjs +3 -1
- package/es/utils/timeUtils.mjs +95 -0
- package/es/version.mjs +1 -1
- package/lib/api/common.js +33 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +3 -6
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -124
- package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
- package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
- package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
- package/lib/bussiness/hyFilePlayback/index.js +13 -0
- package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
- package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
- package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
- package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/lib/bussiness/index.js +18 -14
- package/lib/components/hyCutter/cutter.vue.js +2 -2
- package/lib/components/hyDatePicker/datePicker.vue.js +32 -2
- package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +71 -61
- package/lib/components/hyForm/js/index.js +0 -7
- package/lib/components/hyForm/js/useAppForm.js +1 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
- package/lib/components/hySearch/js/index.js +0 -36
- package/lib/components/hySearch/js/useAppSearch.js +1 -28
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
- package/lib/components/hyTable/js/index.js +45 -3
- package/lib/components/hyTable/js/search.js +1 -7
- package/lib/components/hyTable/table.vue.js +46 -29
- package/lib/components/hyTooltip/tooltip.vue.js +38 -20
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
- package/lib/components-map.js +2 -0
- package/lib/hooks/useBaseMainStore.js +15 -4
- package/lib/hooks/useCurrentBus.js +4 -3
- package/lib/hooks/useDialog.js +2 -2
- package/lib/hooks/useGlobalConfig.js +18 -17
- package/lib/index.js +71 -55
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/zh_CN.js +1 -0
- package/lib/style/index.scss +2 -2
- package/lib/utils/file.js +1 -2
- package/lib/utils/form.js +87 -4
- package/lib/utils/index.js +13 -1
- package/lib/utils/is.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +4 -0
- package/lib/utils/map/index.js +4 -0
- package/lib/utils/permission.js +3 -1
- package/lib/utils/timeUtils.js +105 -0
- package/lib/version.js +1 -1
- 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,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;
|