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.
- package/dist/tailwind.css +91 -8
- package/es/api/common.mjs +28 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
- package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
- package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
- package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
- package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
- 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/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -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/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
- package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
- package/es/bussiness/index.mjs +3 -2
- package/es/components/hyCutter/cutter.vue.mjs +2 -2
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
- package/es/components/hyForm/js/index.mjs +2 -8
- 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 +3 -3
- 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 +0 -6
- package/es/components/hyTable/table.vue.mjs +47 -30
- package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
- package/es/components-map.mjs +19 -10
- package/es/hooks/index.mjs +1 -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 +26 -16
- package/es/hooks/useVersionControl.mjs +34 -0
- package/es/index.mjs +7 -4
- 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 +70 -7
- package/es/utils/index.mjs +3 -2
- package/es/utils/map/hook/leafletjs.mjs +4 -0
- package/es/utils/map/index.mjs +4 -0
- package/es/utils/timeUtils.mjs +95 -0
- package/es/utils/useUiComponent.mjs +34 -0
- package/es/version.mjs +1 -1
- package/lib/api/common.js +33 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
- package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
- package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
- package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
- package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
- 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/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -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/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
- package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
- package/lib/bussiness/index.js +19 -16
- package/lib/components/hyCutter/cutter.vue.js +2 -2
- package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
- package/lib/components/hyForm/js/index.js +0 -7
- 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 +3 -3
- 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 +0 -6
- package/lib/components/hyTable/table.vue.js +46 -29
- package/lib/components/hyTooltip/tooltip.vue.js +13 -5
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
- package/lib/components-map.js +19 -10
- package/lib/hooks/index.js +4 -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 +25 -15
- package/lib/hooks/useVersionControl.js +38 -0
- package/lib/index.js +75 -57
- 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 +72 -6
- package/lib/utils/index.js +12 -1
- package/lib/utils/map/hook/leafletjs.js +4 -0
- package/lib/utils/map/index.js +4 -0
- package/lib/utils/timeUtils.js +105 -0
- package/lib/utils/useUiComponent.js +37 -0
- package/lib/version.js +1 -1
- package/package.json +113 -58
- package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
- package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
|
@@ -0,0 +1,242 @@
|
|
|
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
|
+
require('../../../components/index.js');
|
|
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/hyVideoPlayer/index.js');
|
|
14
|
+
|
|
15
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
+
__name: "videoDetail",
|
|
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 useVideoDetail(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
|
+
videoPlayerRef2.value?.playVideo(hy.playItem.value.filePath, hy.playItem.value);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
const videoPlayerRef2 = vue.useTemplateRef("videoPlayerRef");
|
|
56
|
+
const paramsList2 = vue.ref([
|
|
57
|
+
{ name: $t("fileNumber"), params: "fileUniqueId" },
|
|
58
|
+
{ name: $t("videoDuration"), params: "audioLength" },
|
|
59
|
+
{ name: $t("fileName"), params: "fileName" },
|
|
60
|
+
{ name: $t("resolution"), params: "fileheight" },
|
|
61
|
+
// filewidth
|
|
62
|
+
{ name: $t("creationTime"), params: "uploadDateStr" },
|
|
63
|
+
{ name: $t("fileSize"), params: "fileSize" },
|
|
64
|
+
{ name: $t("collectionTime"), params: "fileDtmStart" },
|
|
65
|
+
// fileDtmEnd
|
|
66
|
+
{ name: $t("deviceNumber"), params: "deviceId" },
|
|
67
|
+
{ name: $t("deviceName"), params: "devName" },
|
|
68
|
+
{ name: $t("workNumber"), params: "jobNum" },
|
|
69
|
+
{ name: $t("collectionStationIP"), params: "sip" },
|
|
70
|
+
{ name: $t("userName-0"), params: "devUserName" },
|
|
71
|
+
{ name: $t("deviceCode"), params: "deviceCode" }
|
|
72
|
+
]);
|
|
73
|
+
const fileScore2 = vue.ref(null);
|
|
74
|
+
const fileScoreLoading2 = vue.ref(true);
|
|
75
|
+
const colors2 = vue.ref({});
|
|
76
|
+
const colorObject2 = vue.ref({});
|
|
77
|
+
const fileList2 = vue.ref([]);
|
|
78
|
+
const playItem2 = vue.ref({
|
|
79
|
+
id: ""
|
|
80
|
+
});
|
|
81
|
+
const videoCurTime2 = vue.ref(0);
|
|
82
|
+
const videoTotalTime2 = vue.ref(0);
|
|
83
|
+
function detectingHashValues2() {
|
|
84
|
+
elementPlus.ElMessage.success($t("detectionIsCorrect"));
|
|
85
|
+
}
|
|
86
|
+
function playStart2(audioUrl, newItem = {}) {
|
|
87
|
+
const id = newItem.id;
|
|
88
|
+
if (hy.playItem.value.id !== id) {
|
|
89
|
+
hy.playItem.value = { ...newItem };
|
|
90
|
+
}
|
|
91
|
+
emit("playItemChange", hy.playItem.value);
|
|
92
|
+
}
|
|
93
|
+
function onTimeUpdate2(curTime) {
|
|
94
|
+
hy.videoCurTime.value = curTime;
|
|
95
|
+
}
|
|
96
|
+
function canPlay2(totalTime) {
|
|
97
|
+
hy.videoTotalTime.value = totalTime;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
videoPlayerRef: videoPlayerRef2,
|
|
101
|
+
paramsList: paramsList2,
|
|
102
|
+
fileScore: fileScore2,
|
|
103
|
+
fileScoreLoading: fileScoreLoading2,
|
|
104
|
+
colors: colors2,
|
|
105
|
+
colorObject: colorObject2,
|
|
106
|
+
fileList: fileList2,
|
|
107
|
+
playItem: playItem2,
|
|
108
|
+
videoCurTime: videoCurTime2,
|
|
109
|
+
videoTotalTime: videoTotalTime2,
|
|
110
|
+
detectingHashValues: detectingHashValues2,
|
|
111
|
+
playStart: playStart2,
|
|
112
|
+
onTimeUpdate: onTimeUpdate2,
|
|
113
|
+
canPlay: canPlay2
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const {
|
|
117
|
+
canPlay,
|
|
118
|
+
colorObject,
|
|
119
|
+
colors,
|
|
120
|
+
detectingHashValues,
|
|
121
|
+
fileList,
|
|
122
|
+
fileScore,
|
|
123
|
+
fileScoreLoading,
|
|
124
|
+
onTimeUpdate,
|
|
125
|
+
paramsList,
|
|
126
|
+
playItem,
|
|
127
|
+
playStart,
|
|
128
|
+
videoCurTime,
|
|
129
|
+
videoPlayerRef,
|
|
130
|
+
videoTotalTime
|
|
131
|
+
} = useMixins.useMixins({ props }, [useVideoDetail]);
|
|
132
|
+
__expose({});
|
|
133
|
+
return (_ctx, _cache) => {
|
|
134
|
+
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" }, [
|
|
135
|
+
vue.createElementVNode("div", { class: "w-full flex-1 relative mt-5 flex" }, [
|
|
136
|
+
vue.createVNode(vue.unref(index.HyVideoPlayer), {
|
|
137
|
+
ref_key: "videoPlayerRef",
|
|
138
|
+
ref: videoPlayerRef,
|
|
139
|
+
"play-list": __props.playList,
|
|
140
|
+
class: "!h-full",
|
|
141
|
+
onCanPlay: vue.unref(canPlay),
|
|
142
|
+
onOnTimeUpdate: vue.unref(onTimeUpdate),
|
|
143
|
+
onPlayStart: vue.unref(playStart)
|
|
144
|
+
}, null, 8, ["play-list", "onCanPlay", "onOnTimeUpdate", "onPlayStart"])
|
|
145
|
+
]),
|
|
146
|
+
vue.unref(playItem) && vue.unref(playItem).id ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
147
|
+
key: 0,
|
|
148
|
+
class: "w-full h-[30%] overflow-y-auto overflow-x-hidden my-[10px]"
|
|
149
|
+
}, [
|
|
150
|
+
vue.createVNode(vue.unref(elementPlus.ElRow), {
|
|
151
|
+
gutter: 20,
|
|
152
|
+
class: "text-xs text-auxiliary leading-5"
|
|
153
|
+
}, {
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
156
|
+
vue.Fragment,
|
|
157
|
+
null,
|
|
158
|
+
vue.renderList(vue.unref(paramsList), (paramsItem, paramsIndex) => {
|
|
159
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCol), {
|
|
160
|
+
key: paramsIndex + "_paramsList",
|
|
161
|
+
span: paramsItem.span || 12
|
|
162
|
+
}, {
|
|
163
|
+
default: vue.withCtx(() => [
|
|
164
|
+
vue.createElementVNode("div", { class: "flex mb-1.5" }, [
|
|
165
|
+
vue.createElementVNode(
|
|
166
|
+
"span",
|
|
167
|
+
{
|
|
168
|
+
class: "w-14 shrink-0 mr-5",
|
|
169
|
+
style: { "text-align-last": "justify" }
|
|
170
|
+
},
|
|
171
|
+
vue.toDisplayString(paramsItem.name) + ":",
|
|
172
|
+
1
|
|
173
|
+
/* TEXT */
|
|
174
|
+
),
|
|
175
|
+
vue.createElementVNode("span", { class: "overflow-ellipsis overflow-hidden whitespace-nowrap text-main" }, [
|
|
176
|
+
!vue.unref(playItem)[`${paramsItem.params}`] ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
177
|
+
key: 0,
|
|
178
|
+
class: "text-auxiliary"
|
|
179
|
+
}, "- -")) : paramsItem.params === "audioLength" ? (vue.openBlock(), vue.createElementBlock(
|
|
180
|
+
"span",
|
|
181
|
+
{ key: 1 },
|
|
182
|
+
vue.toDisplayString(vue.unref(playItem).audioLength) + "s ",
|
|
183
|
+
1
|
|
184
|
+
/* TEXT */
|
|
185
|
+
)) : paramsItem.params === "fileSize" ? (vue.openBlock(), vue.createElementBlock(
|
|
186
|
+
"span",
|
|
187
|
+
{ key: 2 },
|
|
188
|
+
vue.toDisplayString(vue.unref(input.getPublicFileSize)(vue.unref(playItem).fileSize)),
|
|
189
|
+
1
|
|
190
|
+
/* TEXT */
|
|
191
|
+
)) : paramsItem.params === "fileDtmStart" ? (vue.openBlock(), vue.createElementBlock("span", { key: 3 }, [
|
|
192
|
+
vue.createTextVNode(
|
|
193
|
+
vue.toDisplayString(vue.unref(playItem).fileDtmStart) + " ",
|
|
194
|
+
1
|
|
195
|
+
/* TEXT */
|
|
196
|
+
),
|
|
197
|
+
vue.createElementVNode("span", { class: "text-auxiliary" }, "-"),
|
|
198
|
+
vue.createTextVNode(
|
|
199
|
+
" " + vue.toDisplayString(vue.unref(playItem).fileDtmEnd),
|
|
200
|
+
1
|
|
201
|
+
/* TEXT */
|
|
202
|
+
)
|
|
203
|
+
])) : paramsItem.params === "fileheight" ? (vue.openBlock(), vue.createElementBlock("span", { key: 4 }, [
|
|
204
|
+
vue.createTextVNode(
|
|
205
|
+
vue.toDisplayString(vue.unref(playItem).filewidth) + " ",
|
|
206
|
+
1
|
|
207
|
+
/* TEXT */
|
|
208
|
+
),
|
|
209
|
+
vue.createElementVNode("span", { class: "text-auxiliary" }, "*"),
|
|
210
|
+
vue.createTextVNode(
|
|
211
|
+
" " + vue.toDisplayString(vue.unref(playItem).fileheight),
|
|
212
|
+
1
|
|
213
|
+
/* TEXT */
|
|
214
|
+
)
|
|
215
|
+
])) : (vue.openBlock(), vue.createElementBlock(
|
|
216
|
+
"span",
|
|
217
|
+
{ key: 5 },
|
|
218
|
+
vue.toDisplayString(vue.unref(playItem)[`${paramsItem.params}`]),
|
|
219
|
+
1
|
|
220
|
+
/* TEXT */
|
|
221
|
+
))
|
|
222
|
+
])
|
|
223
|
+
])
|
|
224
|
+
]),
|
|
225
|
+
_: 2
|
|
226
|
+
/* DYNAMIC */
|
|
227
|
+
}, 1032, ["span"]);
|
|
228
|
+
}),
|
|
229
|
+
128
|
|
230
|
+
/* KEYED_FRAGMENT */
|
|
231
|
+
))
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
/* STABLE */
|
|
235
|
+
})
|
|
236
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
237
|
+
]);
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('./cpns/videoDetail.vue.js');
|
|
7
|
+
var useDialog = require('../../hooks/useDialog.js');
|
|
8
|
+
require('./cpns/audioDetail.vue.js');
|
|
9
|
+
require('./cpns/picDetail.vue.js');
|
|
10
|
+
require('../../hooks/index.js');
|
|
11
|
+
require('../../components/index.js');
|
|
12
|
+
var index = require('./locale/index.js');
|
|
13
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
14
|
+
var useMixins = require('../../hooks/useMixins.js');
|
|
15
|
+
var index$1 = require('../../components/hyDialog/index.js');
|
|
16
|
+
var audioDetail_vue_vue_type_script_setup_true_lang = require('./cpns/audioDetail2.vue.js');
|
|
17
|
+
var videoDetail_vue_vue_type_script_setup_true_lang = require('./cpns/videoDetail2.vue.js');
|
|
18
|
+
var picDetail_vue_vue_type_script_setup_true_lang = require('./cpns/picDetail2.vue.js');
|
|
19
|
+
var index$2 = require('../../components/hyIcon/index.js');
|
|
20
|
+
|
|
21
|
+
const __default__ = vue.defineComponent({
|
|
22
|
+
name: "HyFilePlayback"
|
|
23
|
+
});
|
|
24
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
25
|
+
...__default__,
|
|
26
|
+
emits: ["on-submit"],
|
|
27
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
28
|
+
useLocale.registerComponentLocale("HyFilePlayback", index);
|
|
29
|
+
vue.onUnmounted(() => {
|
|
30
|
+
useLocale.unregisterComponentLocale("HyFilePlayback");
|
|
31
|
+
});
|
|
32
|
+
const $t = (key, option) => useLocale.$t(`HyFilePlayback.${key}`, option);
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
function useFilePlayback(hy) {
|
|
35
|
+
vue.onMounted(() => {
|
|
36
|
+
});
|
|
37
|
+
const HyDialogRef2 = vue.useTemplateRef("HyDialogRef");
|
|
38
|
+
const dialogVisible2 = vue.ref(false);
|
|
39
|
+
const loading2 = vue.ref(false);
|
|
40
|
+
const curMediaType2 = vue.ref(1);
|
|
41
|
+
const curItem2 = vue.ref({});
|
|
42
|
+
const playItem2 = vue.ref({});
|
|
43
|
+
const playList2 = vue.ref([]);
|
|
44
|
+
function setPlayItem2(newPlayItem = {}) {
|
|
45
|
+
hy.playItem.value = newPlayItem;
|
|
46
|
+
}
|
|
47
|
+
function show2(params = {}) {
|
|
48
|
+
hy.curMediaType.value = params.curMediaType;
|
|
49
|
+
hy.curItem.value = params.curItem;
|
|
50
|
+
hy.playList.value = params.playList | [];
|
|
51
|
+
vue.nextTick(() => {
|
|
52
|
+
hy.setDragLevelIndex("HyDialogRef");
|
|
53
|
+
hy.dialogVisible.value = true;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function onClose2() {
|
|
57
|
+
hy.dialogVisible.value = false;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
HyDialogRef: HyDialogRef2,
|
|
61
|
+
dialogVisible: dialogVisible2,
|
|
62
|
+
loading: loading2,
|
|
63
|
+
curMediaType: curMediaType2,
|
|
64
|
+
curItem: curItem2,
|
|
65
|
+
playItem: playItem2,
|
|
66
|
+
playList: playList2,
|
|
67
|
+
setPlayItem: setPlayItem2,
|
|
68
|
+
show: show2,
|
|
69
|
+
onClose: onClose2
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const {
|
|
73
|
+
HyDialogRef,
|
|
74
|
+
confirmReplace,
|
|
75
|
+
curItem,
|
|
76
|
+
curMediaType,
|
|
77
|
+
dialogVisible,
|
|
78
|
+
getCacheData,
|
|
79
|
+
getIsEdit,
|
|
80
|
+
instance,
|
|
81
|
+
isEdit,
|
|
82
|
+
loading,
|
|
83
|
+
minimized,
|
|
84
|
+
minimizedClose,
|
|
85
|
+
minimizedRemove,
|
|
86
|
+
minimizedShow,
|
|
87
|
+
minimizedTitle,
|
|
88
|
+
onClose,
|
|
89
|
+
onMinimized,
|
|
90
|
+
playItem,
|
|
91
|
+
playList,
|
|
92
|
+
restoreCache,
|
|
93
|
+
setDragLevelIndex,
|
|
94
|
+
setIsEdit,
|
|
95
|
+
setPlayItem,
|
|
96
|
+
show
|
|
97
|
+
} = useMixins.useMixins({}, [useDialog.useDialog, useFilePlayback]);
|
|
98
|
+
__expose({
|
|
99
|
+
show
|
|
100
|
+
});
|
|
101
|
+
return (_ctx, _cache) => {
|
|
102
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyDialog), vue.mergeProps({
|
|
103
|
+
ref_key: "HyDialogRef",
|
|
104
|
+
ref: HyDialogRef,
|
|
105
|
+
modelValue: vue.unref(dialogVisible),
|
|
106
|
+
"onUpdate:modelValue": ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
107
|
+
loading: vue.unref(loading),
|
|
108
|
+
"onUpdate:loading": ($event) => vue.isRef(loading) ? loading.value = $event : null,
|
|
109
|
+
ifDraggable: true,
|
|
110
|
+
width: "90%",
|
|
111
|
+
"dialog-type": "right"
|
|
112
|
+
}, _ctx.$attrs, {
|
|
113
|
+
title: "\u67E5\u770B\u6587\u4EF6",
|
|
114
|
+
"on-cancel": vue.unref(onClose),
|
|
115
|
+
"on-close": vue.unref(onClose),
|
|
116
|
+
"show-operate": false,
|
|
117
|
+
"operate-class": "w-full justify-center",
|
|
118
|
+
onOnMinimized: vue.unref(onMinimized),
|
|
119
|
+
onOnDialogMousedown: ($event) => vue.unref(setDragLevelIndex)("HyDialogRef")
|
|
120
|
+
}), {
|
|
121
|
+
title: vue.withCtx(() => [
|
|
122
|
+
vue.unref(playItem) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "group-info flex items-center text-base font-bold w-full"
|
|
125
|
+
}, [
|
|
126
|
+
vue.unref(playItem).mark ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyIcon), {
|
|
127
|
+
key: 0,
|
|
128
|
+
class: "mr-[4px] svgBox relative text-warning",
|
|
129
|
+
"svg-name": "dispatch-share-media-center-mark-filev2"
|
|
130
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
131
|
+
vue.unref(playItem) ? (vue.openBlock(), vue.createElementBlock(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
key: 1,
|
|
135
|
+
class: "w-full overflow-ellipsis overflow-hidden whitespace-nowrap"
|
|
136
|
+
},
|
|
137
|
+
vue.toDisplayString(vue.unref(playItem).fileName),
|
|
138
|
+
1
|
|
139
|
+
/* TEXT */
|
|
140
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
141
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
142
|
+
]),
|
|
143
|
+
default: vue.withCtx(() => [
|
|
144
|
+
vue.createElementVNode("div", { class: "filePlayback w-full h-full" }, [
|
|
145
|
+
vue.unref(curMediaType) === 2 ? (vue.openBlock(), vue.createBlock(audioDetail_vue_vue_type_script_setup_true_lang.default, {
|
|
146
|
+
key: 0,
|
|
147
|
+
item: vue.unref(curItem),
|
|
148
|
+
playList: vue.unref(playList),
|
|
149
|
+
onPlayItemChange: vue.unref(setPlayItem)
|
|
150
|
+
}, null, 8, ["item", "playList", "onPlayItemChange"])) : vue.unref(curMediaType) === 3 ? (vue.openBlock(), vue.createBlock(videoDetail_vue_vue_type_script_setup_true_lang.default, {
|
|
151
|
+
key: 1,
|
|
152
|
+
item: vue.unref(curItem),
|
|
153
|
+
playList: vue.unref(playList),
|
|
154
|
+
onPlayItemChange: vue.unref(setPlayItem)
|
|
155
|
+
}, null, 8, ["item", "playList", "onPlayItemChange"])) : vue.unref(curMediaType) === 4 ? (vue.openBlock(), vue.createBlock(picDetail_vue_vue_type_script_setup_true_lang.default, {
|
|
156
|
+
key: 2,
|
|
157
|
+
item: vue.unref(curItem),
|
|
158
|
+
playList: vue.unref(playList),
|
|
159
|
+
onPlayItemChange: vue.unref(setPlayItem)
|
|
160
|
+
}, null, 8, ["item", "playList", "onPlayItemChange"])) : vue.createCommentVNode("v-if", true)
|
|
161
|
+
])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
/* STABLE */
|
|
165
|
+
}, 16, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "on-cancel", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./filePlayback.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
7
|
+
var handler = require('../../utils/handler.js');
|
|
8
|
+
var filePlayback_vue_vue_type_script_setup_true_lang = require('./filePlayback2.vue.js');
|
|
9
|
+
|
|
10
|
+
const HyFilePlayback = handler.withInstall(filePlayback_vue_vue_type_script_setup_true_lang.default);
|
|
11
|
+
|
|
12
|
+
exports.HyFilePlayback = HyFilePlayback;
|
|
13
|
+
exports.default = HyFilePlayback;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var en_US = {
|
|
6
|
+
"fileNumber": "File Number",
|
|
7
|
+
"videoDuration": "Video Duration",
|
|
8
|
+
"fileName": "File Name",
|
|
9
|
+
"resolution": "Resolution",
|
|
10
|
+
"creationTime": "Creation Time",
|
|
11
|
+
"fileSize": "File Size",
|
|
12
|
+
"collectionTime": "Collection Time",
|
|
13
|
+
"deviceNumber": "Device Number",
|
|
14
|
+
"deviceName": "Device Name",
|
|
15
|
+
"workNumber": "Work Number",
|
|
16
|
+
"collectionStationIP": "Collection Station IP",
|
|
17
|
+
"userName-0": "User Name",
|
|
18
|
+
"deviceCode": "Device Code",
|
|
19
|
+
"detectionIsCorrect": "Detection Is Correct",
|
|
20
|
+
"audioDuration": "Audio Duration",
|
|
21
|
+
"equipmentNumber": "Device Number:",
|
|
22
|
+
"shootingTime": "Shooting Time",
|
|
23
|
+
"clickTheImageToDisplayInFullScreen": "Click The Image To Display In Full Screen"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.default = en_US;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var zh_CN = {
|
|
6
|
+
"fileNumber": "\u6587\u4EF6\u7F16\u53F7",
|
|
7
|
+
"videoDuration": "\u89C6\u9891\u65F6\u957F",
|
|
8
|
+
"fileName": "\u6587\u4EF6\u540D\u79F0",
|
|
9
|
+
"resolution": "\u5206\u8FA8\u7387",
|
|
10
|
+
"creationTime": "\u521B\u5EFA\u65F6\u95F4",
|
|
11
|
+
"fileSize": "\u6587\u4EF6\u5927\u5C0F",
|
|
12
|
+
"collectionTime": "\u91C7\u96C6\u65F6\u95F4",
|
|
13
|
+
"deviceNumber": "\u8BBE\u5907\u7F16\u53F7",
|
|
14
|
+
"deviceName": "\u8BBE\u5907\u540D\u79F0",
|
|
15
|
+
"workNumber": "\u5DE5\u53F7",
|
|
16
|
+
"collectionStationIP": "\u91C7\u96C6\u7AD9IP",
|
|
17
|
+
"userName-0": "\u7528\u6237\u540D\u79F0",
|
|
18
|
+
"deviceCode": "\u8BBE\u5907\u7F16\u7801",
|
|
19
|
+
"detectionIsCorrect": "\u68C0\u6D4B\u6B63\u786E",
|
|
20
|
+
"audioDuration": "\u97F3\u9891\u65F6\u957F",
|
|
21
|
+
"equipmentNumber": "\u8BBE\u5907\u7F16\u53F7\uFF1A",
|
|
22
|
+
"shootingTime": "\u62CD\u6444\u65F6\u95F4",
|
|
23
|
+
"clickTheImageToDisplayInFullScreen": "\u70B9\u51FB\u56FE\u7247\uFF0C\u5373\u53EF\u5168\u5C4F\u5C55\u793A"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.default = zh_CN;
|