@das-fed/ui 6.4.0-dev.52 → 6.4.0-dev.54
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/esm-map.json +3 -1
- package/i18n-collection/en.js +407 -406
- package/i18n-collection/zh-CN.js +437 -437
- package/package.json +5 -5
- package/packages/business-components/app-container/index.d.ts +1 -0
- package/packages/business-components/app-container/index.js +152 -120
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
- package/packages/business-components/app-container/src/type.d.ts +1 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +1 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
- package/packages/business-components/change-enterprises/index.js +51 -45
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
- package/packages/business-components/change-pwd/index.js +118 -99
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
- package/packages/business-components/currency-page/index.js +27 -20
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
- package/packages/business-components/device-panel/index.js +4961 -4767
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +51 -0
- package/packages/business-components/export-button/index.js +117 -102
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +103 -0
- package/packages/business-components/import-button/index.js +220 -192
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
- package/packages/business-components/model-table-dialog/index.js +663 -660
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
- package/packages/business-components/process-configuration/index.js +158 -130
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
- package/packages/business-components/process-form/apis.d.ts +1 -0
- package/packages/business-components/process-form/i18n/index.d.ts +279 -0
- package/packages/business-components/process-form/index.js +1170 -1071
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +33 -1
- package/packages/business-components/process-log/index.js +151 -146
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
- package/packages/business-components/process-search-form/index.d.ts +2 -2
- package/packages/business-components/process-search-form/index.js +420 -389
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
- package/packages/business-components/process-search-form/src/type.d.ts +1 -1
- package/packages/business-components/process-table/i18n/index.d.ts +35 -0
- package/packages/business-components/process-table/index.js +265 -254
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
- package/packages/business-components/upload-file/index.js +26 -22
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
- package/packages/business-components/urgent-panel/index.js +900 -814
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
- package/packages/business-components/user-org-dialog/index.js +196 -186
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
- package/packages/business-components/video-dialog/index.js +199 -179
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/button/i18n/index.d.ts +1 -6
- package/packages/components/button/index.js +16 -21
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +52 -44
- package/packages/components/calendar/index.js +77 -75
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +7 -0
- package/packages/components/cascader/index.js +38 -35
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +7 -0
- package/packages/components/color-picker/index.js +37 -34
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
- package/packages/components/custom-search-item/index.js +27 -24
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +15 -0
- package/packages/components/date-picker/index.js +81 -76
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -6
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +43 -0
- package/packages/components/dimple-layout/index.js +1077 -1064
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +7 -0
- package/packages/components/dropdown/index.js +32 -29
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/index.js +14 -16
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +27 -3
- package/packages/components/image-upload/index.js +84 -78
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +31 -0
- package/packages/components/image-viewer/index.js +246 -237
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +15 -0
- package/packages/components/input/index.js +50 -45
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
- package/packages/components/input-dialog-select/index.js +20 -23
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +15 -0
- package/packages/components/live-player/index.js +15 -9
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +7 -0
- package/packages/components/loading/index.js +93 -90
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +23 -0
- package/packages/components/map/index.js +355 -347
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +7 -0
- package/packages/components/menu-aside/index.js +221 -212
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/style-theme.d.ts +5 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-aside/theme/base.d.ts +1 -0
- package/packages/components/menu-header/index.js +32 -26
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/style-theme.d.ts +5 -0
- package/packages/components/menu-header/theme/base.d.ts +1 -0
- package/packages/components/message/i18n/index.d.ts +7 -0
- package/packages/components/message/index.js +17 -14
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +7 -0
- package/packages/components/notification/index.js +10 -7
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +19 -0
- package/packages/components/pagination/index.js +81 -75
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -2
- package/packages/components/preview/i18n/index.d.ts +1 -1
- package/packages/components/preview/index.js +1 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +10 -3
- package/packages/components/rich-editor/index.js +4 -3
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search/i18n/index.d.ts +25 -1
- package/packages/components/search/index.js +31 -28
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +23 -0
- package/packages/components/select/index.js +204 -197
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -4
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
- package/packages/components/special-range-picker-month/index.js +15 -15
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
- package/packages/components/special-range-picker-year/index.js +81 -81
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +7 -0
- package/packages/components/spin/index.js +35 -32
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +72 -2
- package/packages/components/table/index.js +1245 -1225
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +15 -0
- package/packages/components/tabs/index.js +70 -65
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/time-line/i18n/index.d.ts +1 -1
- package/packages/components/time-line/index.js +6 -9
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +7 -0
- package/packages/components/tooltip/index.js +38 -35
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +35 -0
- package/packages/components/tree/index.js +692 -682
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -5
- package/packages/components/upload/index.js +50 -50
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
- package/packages/components/virtual-tree/index.js +35 -31
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/icons/edit-3/index.d.ts +1 -0
- package/packages/icons/edit-3/index.js +17 -0
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/edit-3/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +2 -0
- package/packages/icons/index.js +2 -0
- package/packages/icons/right-3/index.d.ts +1 -0
- package/packages/icons/right-3/index.js +17 -0
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/right-3/index.vue.d.ts +16 -0
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as
|
|
2
|
+
import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as L, ref as h, watch as S, defineComponent as z, useCssVars as ve, computed as P, openBlock as C, createElementBlock as D, normalizeClass as pe, renderSlot as X, createCommentVNode as I, Fragment as J, renderList as fe, createBlock as E, withCtx as m, withModifiers as k, createVNode as v, createElementVNode as p, toDisplayString as B, toRefs as me } from "vue";
|
|
3
3
|
import { withInstall as ge } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { t as g } from "@das-fed/web/packages/i18n/index";
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasTooltip as
|
|
4
|
+
import { t as g, setI18nRule as ye } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as Ce } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasTooltip as b } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
7
|
import { DasIconFullscreen2 as ke } from "@das-fed/ui/packages/icons/fullscreen-2/index";
|
|
8
|
-
import { DasAutoRegisterIcon as
|
|
9
|
-
import { DasLivePlayer as
|
|
10
|
-
import { DasSpin as
|
|
11
|
-
import
|
|
8
|
+
import { DasAutoRegisterIcon as he, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
|
|
9
|
+
import { DasLivePlayer as _e } from "@das-fed/ui/packages/components/live-player/index";
|
|
10
|
+
import { DasSpin as be } from "@das-fed/ui/packages/components/spin/index";
|
|
11
|
+
import we from "dayjs";
|
|
12
12
|
import { createService as ee } from "@das-fed/utils/api-services/src/create-service";
|
|
13
13
|
import { getProjectInfo as M, getToken as Ie } from "@das-fed/utils/common-info";
|
|
14
|
-
var
|
|
15
|
-
const V = typeof window < "u",
|
|
14
|
+
var A;
|
|
15
|
+
const V = typeof window < "u", Ee = (t) => typeof t == "string", Ne = () => {
|
|
16
16
|
};
|
|
17
|
-
V && ((
|
|
17
|
+
V && ((A = window == null ? void 0 : window.navigator) != null && A.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
18
18
|
function te(t) {
|
|
19
19
|
return typeof t == "function" ? t() : l(t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Se(t) {
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
function ne(t) {
|
|
25
25
|
return ce() ? (ue(t), !0) : !1;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
de() ? K(t) : o ? t() :
|
|
27
|
+
function Re(t, o = !0) {
|
|
28
|
+
de() ? K(t) : o ? t() : L(t);
|
|
29
29
|
}
|
|
30
30
|
function oe(t) {
|
|
31
31
|
var o;
|
|
32
32
|
const e = te(t);
|
|
33
33
|
return (o = e == null ? void 0 : e.$el) != null ? o : e;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
35
|
+
const Fe = V ? window : void 0, Oe = V ? window.document : void 0;
|
|
36
|
+
function De(...t) {
|
|
37
37
|
let o, e, i, a;
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
38
|
+
if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t, o = Fe) : [o, e, i, a] = t, !o)
|
|
39
|
+
return Ne;
|
|
40
40
|
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
41
41
|
const n = [], s = () => {
|
|
42
42
|
n.forEach((c) => c()), n.length = 0;
|
|
43
|
-
}, f = (c, y,
|
|
44
|
-
s(), c && n.push(...e.flatMap((
|
|
43
|
+
}, f = (c, y, _, N) => (c.addEventListener(y, _, N), () => c.removeEventListener(y, _, N)), r = S(() => [oe(o), te(a)], ([c, y]) => {
|
|
44
|
+
s(), c && n.push(...e.flatMap((_) => i.map((N) => f(c, _, N, y))));
|
|
45
45
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
46
46
|
r(), s();
|
|
47
47
|
};
|
|
48
48
|
return ne(d), d;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const e =
|
|
52
|
-
return i(),
|
|
50
|
+
function ze(t, o = !1) {
|
|
51
|
+
const e = h(), i = () => e.value = !!t();
|
|
52
|
+
return i(), Re(i, o), e;
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, q = "__vueuse_ssr_handlers__";
|
|
55
|
+
Q[q] = Q[q] || {};
|
|
56
56
|
const G = [
|
|
57
57
|
[
|
|
58
58
|
"requestFullscreen",
|
|
@@ -96,53 +96,53 @@ const G = [
|
|
|
96
96
|
]
|
|
97
97
|
];
|
|
98
98
|
function le(t, o = {}) {
|
|
99
|
-
const { document: e =
|
|
99
|
+
const { document: e = Oe, autoExit: i = !1 } = o, a = t || (e == null ? void 0 : e.querySelector("html")), n = h(!1);
|
|
100
100
|
let s = G[0];
|
|
101
|
-
const f =
|
|
101
|
+
const f = ze(() => {
|
|
102
102
|
if (e) {
|
|
103
|
-
for (const
|
|
104
|
-
if (
|
|
105
|
-
return s =
|
|
103
|
+
for (const R of G)
|
|
104
|
+
if (R[1] in e)
|
|
105
|
+
return s = R, !0;
|
|
106
106
|
} else
|
|
107
107
|
return !1;
|
|
108
108
|
return !1;
|
|
109
109
|
}), [r, d, c, , y] = s;
|
|
110
|
-
async function
|
|
110
|
+
async function _() {
|
|
111
111
|
f.value && (e != null && e[c] && await e[d](), n.value = !1);
|
|
112
112
|
}
|
|
113
|
-
async function
|
|
113
|
+
async function N() {
|
|
114
114
|
if (!f.value)
|
|
115
115
|
return;
|
|
116
|
-
await
|
|
117
|
-
const
|
|
118
|
-
|
|
116
|
+
await _();
|
|
117
|
+
const R = oe(a);
|
|
118
|
+
R && (await R[r](), n.value = !0);
|
|
119
119
|
}
|
|
120
|
-
async function
|
|
121
|
-
n.value ? await
|
|
120
|
+
async function x() {
|
|
121
|
+
n.value ? await _() : await N();
|
|
122
122
|
}
|
|
123
|
-
return e &&
|
|
123
|
+
return e && De(e, y, () => {
|
|
124
124
|
n.value = !!(e != null && e[c]);
|
|
125
|
-
}, !1), i && ne(
|
|
125
|
+
}, !1), i && ne(_), {
|
|
126
126
|
isSupported: f,
|
|
127
127
|
isFullscreen: n,
|
|
128
|
-
enter:
|
|
129
|
-
exit:
|
|
130
|
-
toggle:
|
|
128
|
+
enter: N,
|
|
129
|
+
exit: _,
|
|
130
|
+
toggle: x
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
var W;
|
|
134
134
|
(function(t) {
|
|
135
135
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
136
136
|
})(W || (W = {}));
|
|
137
|
-
var
|
|
137
|
+
var $e = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Pe = Object.prototype.propertyIsEnumerable, Y = (t, o, e) => o in t ? $e(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, Te = (t, o) => {
|
|
138
138
|
for (var e in o || (o = {}))
|
|
139
139
|
Le.call(o, e) && Y(t, e, o[e]);
|
|
140
140
|
if (H)
|
|
141
141
|
for (var e of H(o))
|
|
142
|
-
|
|
142
|
+
Pe.call(o, e) && Y(t, e, o[e]);
|
|
143
143
|
return t;
|
|
144
144
|
};
|
|
145
|
-
const
|
|
145
|
+
const xe = {
|
|
146
146
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
147
147
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
148
148
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -168,10 +168,10 @@ const Te = {
|
|
|
168
168
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
169
169
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
170
170
|
};
|
|
171
|
-
|
|
172
|
-
linear:
|
|
173
|
-
},
|
|
174
|
-
const Ue = /* @__PURE__ */
|
|
171
|
+
Te({
|
|
172
|
+
linear: Se
|
|
173
|
+
}, xe);
|
|
174
|
+
const Ue = /* @__PURE__ */ z({
|
|
175
175
|
__name: "GridItem",
|
|
176
176
|
props: {
|
|
177
177
|
active: { type: Boolean },
|
|
@@ -182,21 +182,21 @@ const Ue = /* @__PURE__ */ P({
|
|
|
182
182
|
ve((c) => ({
|
|
183
183
|
"9b3a2c32": d.value
|
|
184
184
|
}));
|
|
185
|
-
const e = t, i = o, a =
|
|
186
|
-
a.value != document.fullscreenElement && (s.value ? (s.value = !1,
|
|
185
|
+
const e = t, i = o, a = h(), { toggle: n, isFullscreen: s } = le(a), f = () => {
|
|
186
|
+
a.value != document.fullscreenElement && (s.value ? (s.value = !1, L(() => {
|
|
187
187
|
n();
|
|
188
188
|
})) : n());
|
|
189
189
|
}, r = () => {
|
|
190
190
|
i("itemClick");
|
|
191
|
-
}, d =
|
|
192
|
-
return (c, y) => (
|
|
191
|
+
}, d = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
192
|
+
return (c, y) => (C(), D(
|
|
193
193
|
"div",
|
|
194
194
|
{
|
|
195
195
|
ref_key: "containerRef",
|
|
196
196
|
ref: a,
|
|
197
197
|
class: pe(["wrapper", { "is-active": e.active }]),
|
|
198
|
-
onDblclick: y[0] || (y[0] = (
|
|
199
|
-
onClick: y[1] || (y[1] = (
|
|
198
|
+
onDblclick: y[0] || (y[0] = (_) => f()),
|
|
199
|
+
onClick: y[1] || (y[1] = (_) => r())
|
|
200
200
|
},
|
|
201
201
|
[
|
|
202
202
|
X(c.$slots, "default", {}, void 0, !0)
|
|
@@ -210,7 +210,7 @@ const Ue = /* @__PURE__ */ P({
|
|
|
210
210
|
for (const [i, a] of o)
|
|
211
211
|
e[i] = a;
|
|
212
212
|
return e;
|
|
213
|
-
},
|
|
213
|
+
}, Be = /* @__PURE__ */ T(Ue, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ z({
|
|
214
214
|
__name: "GridLayout",
|
|
215
215
|
props: {
|
|
216
216
|
gridNum: {},
|
|
@@ -222,12 +222,12 @@ const Ue = /* @__PURE__ */ P({
|
|
|
222
222
|
const e = t, i = o, a = (n) => {
|
|
223
223
|
i("update:activeIndex", n);
|
|
224
224
|
};
|
|
225
|
-
return (n, s) => (
|
|
226
|
-
|
|
227
|
-
(
|
|
225
|
+
return (n, s) => (C(), D("div", Ve, [
|
|
226
|
+
I(' :active="index === activeIndex" '),
|
|
227
|
+
(C(!0), D(
|
|
228
228
|
J,
|
|
229
229
|
null,
|
|
230
|
-
fe(e.gridNum, (f, r) => (
|
|
230
|
+
fe(e.gridNum, (f, r) => (C(), E(Be, {
|
|
231
231
|
active: !1,
|
|
232
232
|
"grid-num": e.gridNum,
|
|
233
233
|
onItemClick: (d) => a(r)
|
|
@@ -236,7 +236,7 @@ const Ue = /* @__PURE__ */ P({
|
|
|
236
236
|
n.showFn(r) ? X(n.$slots, "default", {
|
|
237
237
|
key: 0,
|
|
238
238
|
index: r
|
|
239
|
-
}, void 0, !0) :
|
|
239
|
+
}, void 0, !0) : I("v-if", !0)
|
|
240
240
|
]),
|
|
241
241
|
_: 2
|
|
242
242
|
/* DYNAMIC */
|
|
@@ -246,123 +246,123 @@ const Ue = /* @__PURE__ */ P({
|
|
|
246
246
|
))
|
|
247
247
|
]));
|
|
248
248
|
}
|
|
249
|
-
}),
|
|
249
|
+
}), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ z({
|
|
250
250
|
__name: "DirectionControl",
|
|
251
251
|
emits: ["change"],
|
|
252
252
|
setup(t, { emit: o }) {
|
|
253
253
|
const e = o, i = (a) => {
|
|
254
254
|
e("change", a);
|
|
255
255
|
};
|
|
256
|
-
return (a, n) => (
|
|
256
|
+
return (a, n) => (C(), D(
|
|
257
257
|
"div",
|
|
258
258
|
{
|
|
259
259
|
class: "direction-control",
|
|
260
|
-
onDblclick: n[9] || (n[9] =
|
|
260
|
+
onDblclick: n[9] || (n[9] = k((s) => s.stopPropagation(), ["stop"]))
|
|
261
261
|
},
|
|
262
262
|
[
|
|
263
|
-
v(l(
|
|
263
|
+
v(l(b), {
|
|
264
264
|
content: l(g)("左上")
|
|
265
265
|
}, {
|
|
266
266
|
default: m(() => [
|
|
267
267
|
p("div", {
|
|
268
268
|
class: "icon icon-top-left",
|
|
269
|
-
onClick: n[0] || (n[0] =
|
|
269
|
+
onClick: n[0] || (n[0] = k((s) => i("leftUp"), ["stop"]))
|
|
270
270
|
})
|
|
271
271
|
]),
|
|
272
272
|
_: 1
|
|
273
273
|
/* STABLE */
|
|
274
274
|
}, 8, ["content"]),
|
|
275
|
-
v(l(
|
|
275
|
+
v(l(b), {
|
|
276
276
|
content: l(g)("上")
|
|
277
277
|
}, {
|
|
278
278
|
default: m(() => [
|
|
279
279
|
p("div", {
|
|
280
280
|
class: "icon icon-top",
|
|
281
|
-
onClick: n[1] || (n[1] =
|
|
281
|
+
onClick: n[1] || (n[1] = k((s) => i("up"), ["stop"]))
|
|
282
282
|
})
|
|
283
283
|
]),
|
|
284
284
|
_: 1
|
|
285
285
|
/* STABLE */
|
|
286
286
|
}, 8, ["content"]),
|
|
287
|
-
v(l(
|
|
287
|
+
v(l(b), {
|
|
288
288
|
content: l(g)("右上")
|
|
289
289
|
}, {
|
|
290
290
|
default: m(() => [
|
|
291
291
|
p("div", {
|
|
292
292
|
class: "icon icon-top-right",
|
|
293
|
-
onClick: n[2] || (n[2] =
|
|
293
|
+
onClick: n[2] || (n[2] = k((s) => i("rightUp"), ["stop"]))
|
|
294
294
|
})
|
|
295
295
|
]),
|
|
296
296
|
_: 1
|
|
297
297
|
/* STABLE */
|
|
298
298
|
}, 8, ["content"]),
|
|
299
|
-
v(l(
|
|
299
|
+
v(l(b), {
|
|
300
300
|
content: l(g)("左")
|
|
301
301
|
}, {
|
|
302
302
|
default: m(() => [
|
|
303
303
|
p("div", {
|
|
304
304
|
class: "icon icon-left",
|
|
305
|
-
onClick: n[3] || (n[3] =
|
|
305
|
+
onClick: n[3] || (n[3] = k((s) => i("left"), ["stop"]))
|
|
306
306
|
})
|
|
307
307
|
]),
|
|
308
308
|
_: 1
|
|
309
309
|
/* STABLE */
|
|
310
310
|
}, 8, ["content"]),
|
|
311
|
-
v(l(
|
|
311
|
+
v(l(b), {
|
|
312
312
|
content: l(g)("自动")
|
|
313
313
|
}, {
|
|
314
314
|
default: m(() => [
|
|
315
315
|
p("div", {
|
|
316
316
|
class: "icon icon-auto",
|
|
317
|
-
onClick: n[4] || (n[4] =
|
|
317
|
+
onClick: n[4] || (n[4] = k((s) => i("auto"), ["stop"]))
|
|
318
318
|
})
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
/* STABLE */
|
|
322
322
|
}, 8, ["content"]),
|
|
323
|
-
v(l(
|
|
323
|
+
v(l(b), {
|
|
324
324
|
content: l(g)("右")
|
|
325
325
|
}, {
|
|
326
326
|
default: m(() => [
|
|
327
327
|
p("div", {
|
|
328
328
|
class: "icon icon-right",
|
|
329
|
-
onClick: n[5] || (n[5] =
|
|
329
|
+
onClick: n[5] || (n[5] = k((s) => i("right"), ["stop"]))
|
|
330
330
|
})
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
333
333
|
/* STABLE */
|
|
334
334
|
}, 8, ["content"]),
|
|
335
|
-
v(l(
|
|
335
|
+
v(l(b), {
|
|
336
336
|
content: l(g)("左下")
|
|
337
337
|
}, {
|
|
338
338
|
default: m(() => [
|
|
339
339
|
p("div", {
|
|
340
340
|
class: "icon icon-bottom-left",
|
|
341
|
-
onClick: n[6] || (n[6] =
|
|
341
|
+
onClick: n[6] || (n[6] = k((s) => i("leftDown"), ["stop"]))
|
|
342
342
|
})
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
345
|
/* STABLE */
|
|
346
346
|
}, 8, ["content"]),
|
|
347
|
-
v(l(
|
|
347
|
+
v(l(b), {
|
|
348
348
|
content: l(g)("下")
|
|
349
349
|
}, {
|
|
350
350
|
default: m(() => [
|
|
351
351
|
p("div", {
|
|
352
352
|
class: "icon icon-bottom",
|
|
353
|
-
onClick: n[7] || (n[7] =
|
|
353
|
+
onClick: n[7] || (n[7] = k((s) => i("down"), ["stop"]))
|
|
354
354
|
})
|
|
355
355
|
]),
|
|
356
356
|
_: 1
|
|
357
357
|
/* STABLE */
|
|
358
358
|
}, 8, ["content"]),
|
|
359
|
-
v(l(
|
|
359
|
+
v(l(b), {
|
|
360
360
|
content: l(g)("右下")
|
|
361
361
|
}, {
|
|
362
362
|
default: m(() => [
|
|
363
363
|
p("div", {
|
|
364
364
|
class: "icon icon-bottom-right",
|
|
365
|
-
onClick: n[8] || (n[8] =
|
|
365
|
+
onClick: n[8] || (n[8] = k((s) => i("rightDown"), ["stop"]))
|
|
366
366
|
})
|
|
367
367
|
]),
|
|
368
368
|
_: 1
|
|
@@ -373,10 +373,10 @@ const Ue = /* @__PURE__ */ P({
|
|
|
373
373
|
/* NEED_HYDRATION */
|
|
374
374
|
));
|
|
375
375
|
}
|
|
376
|
-
}), Qe = /* @__PURE__ */ T(
|
|
376
|
+
}), Qe = /* @__PURE__ */ T(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" }, He = { class: "video-title-wrapper" }, Ye = { class: "video-title" }, Ze = { class: "video-top_r" }, Ke = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "play-status"
|
|
379
|
-
},
|
|
379
|
+
}, Xe = { class: "video-bottom" }, Je = { class: "video-bottom_r" }, et = /* @__PURE__ */ z({
|
|
380
380
|
__name: "index",
|
|
381
381
|
props: {
|
|
382
382
|
videoUrl: {},
|
|
@@ -391,62 +391,62 @@ const Ue = /* @__PURE__ */ P({
|
|
|
391
391
|
emits: ["close", "directionControl", "zoomControl"],
|
|
392
392
|
setup(t, { emit: o }) {
|
|
393
393
|
const e = t, i = o;
|
|
394
|
-
|
|
394
|
+
he({
|
|
395
395
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
396
396
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
397
397
|
shrink: import("@das-fed/ui/packages/icons/shrink"),
|
|
398
398
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
399
399
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
400
400
|
});
|
|
401
|
-
const a =
|
|
401
|
+
const a = h(!0), n = h(), s = h(!1), f = h(), r = P(() => {
|
|
402
402
|
var u;
|
|
403
403
|
return (u = f.value) == null ? void 0 : u.video;
|
|
404
|
-
}), d =
|
|
405
|
-
n.value = u, n.value.on(window.mpegts.Events.ERROR, (
|
|
404
|
+
}), d = h(!1), c = h(!0), y = (u) => {
|
|
405
|
+
n.value = u, n.value.on(window.mpegts.Events.ERROR, (w) => {
|
|
406
406
|
});
|
|
407
|
-
},
|
|
407
|
+
}, _ = () => {
|
|
408
408
|
a.value = !a.value, n.value && (n.value.muted = a.value);
|
|
409
|
-
},
|
|
409
|
+
}, N = () => {
|
|
410
410
|
s.value = !s.value;
|
|
411
|
-
},
|
|
411
|
+
}, x = h(""), R = () => {
|
|
412
412
|
const u = document.createElement("canvas");
|
|
413
413
|
if (r.value) {
|
|
414
414
|
u.width = r.value.clientWidth, u.height = r.value.clientHeight;
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
if (
|
|
419
|
-
const
|
|
420
|
-
|
|
415
|
+
const w = u.getContext("2d");
|
|
416
|
+
w == null || w.drawImage(r.value, 0, 0, u.width, u.height);
|
|
417
|
+
const O = u.toDataURL("image/jpg"), ae = `【${e.title}】${we().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
418
|
+
if (x.value = O, "download" in document.createElement("a")) {
|
|
419
|
+
const F = document.createElement("a");
|
|
420
|
+
F.download = ae, F.style.display = "none", F.href = O, document.body.appendChild(F), document.body.appendChild(u), F.click(), URL.revokeObjectURL(F.href), document.body.removeChild(F), document.body.removeChild(u);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
}, re = (u) => {
|
|
424
424
|
i("directionControl", u);
|
|
425
|
-
},
|
|
425
|
+
}, j = (u) => {
|
|
426
426
|
i("zoomControl", u);
|
|
427
|
-
},
|
|
428
|
-
return
|
|
427
|
+
}, U = (u) => e.authType.includes(u);
|
|
428
|
+
return S(
|
|
429
429
|
() => r.value,
|
|
430
430
|
() => {
|
|
431
431
|
r.value && r.value.addEventListener("ended", () => {
|
|
432
432
|
d.value = !0, e.type === "playback" && (c.value = !1);
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
),
|
|
435
|
+
), S(
|
|
436
436
|
() => r.value,
|
|
437
437
|
() => {
|
|
438
|
-
r.value &&
|
|
438
|
+
r.value && L(() => {
|
|
439
439
|
r.value.playbackRate = e.playbackRate || 1;
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
),
|
|
442
|
+
), S(
|
|
443
443
|
() => n.value,
|
|
444
444
|
() => {
|
|
445
|
-
n.value &&
|
|
445
|
+
n.value && L(() => {
|
|
446
446
|
n.value.muted = a.value;
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
),
|
|
449
|
+
), S(
|
|
450
450
|
() => e.playbackRate,
|
|
451
451
|
() => {
|
|
452
452
|
r.value && (r.value.playbackRate = e.playbackRate || 1);
|
|
@@ -454,49 +454,49 @@ const Ue = /* @__PURE__ */ P({
|
|
|
454
454
|
{
|
|
455
455
|
immediate: !0
|
|
456
456
|
}
|
|
457
|
-
),
|
|
457
|
+
), S(
|
|
458
458
|
() => e.paused,
|
|
459
459
|
() => {
|
|
460
460
|
n.value && (e.paused ? n.value.pause() : n.value.play());
|
|
461
461
|
}
|
|
462
|
-
),
|
|
462
|
+
), S(
|
|
463
463
|
() => e.videoUrl,
|
|
464
464
|
() => {
|
|
465
|
-
c.value = !1,
|
|
465
|
+
c.value = !1, L(() => {
|
|
466
466
|
c.value = !0;
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
), (u,
|
|
470
|
-
v(l(
|
|
469
|
+
), (u, w) => (C(), D("div", qe, [
|
|
470
|
+
v(l(be), {
|
|
471
471
|
spinning: e.loading,
|
|
472
472
|
type: "component",
|
|
473
473
|
tip: l(g)("加载中...")
|
|
474
474
|
}, {
|
|
475
475
|
default: m(() => [
|
|
476
|
-
p("div",
|
|
477
|
-
p("div",
|
|
478
|
-
p("div",
|
|
476
|
+
p("div", Ge, [
|
|
477
|
+
p("div", We, [
|
|
478
|
+
p("div", He, [
|
|
479
479
|
p(
|
|
480
480
|
"div",
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
Ye,
|
|
482
|
+
B(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
483
483
|
1
|
|
484
484
|
/* TEXT */
|
|
485
485
|
)
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
|
-
p("div",
|
|
489
|
-
["live"].includes(u.type) ? (
|
|
488
|
+
p("div", Ze, [
|
|
489
|
+
["live"].includes(u.type) ? (C(), D(
|
|
490
490
|
"span",
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
Ke,
|
|
492
|
+
B(l(g)("正在实时预览")),
|
|
493
493
|
1
|
|
494
494
|
/* TEXT */
|
|
495
|
-
)) :
|
|
496
|
-
|
|
495
|
+
)) : I("v-if", !0),
|
|
496
|
+
I(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
497
497
|
])
|
|
498
498
|
]),
|
|
499
|
-
e.videoUrl && c.value ? (
|
|
499
|
+
e.videoUrl && c.value ? (C(), E(l(_e), {
|
|
500
500
|
key: 0,
|
|
501
501
|
type: "flv",
|
|
502
502
|
ref_key: "dasLivePlayerRef",
|
|
@@ -504,112 +504,112 @@ const Ue = /* @__PURE__ */ P({
|
|
|
504
504
|
muted: a.value,
|
|
505
505
|
onLoaded: y,
|
|
506
506
|
src: e.videoUrl
|
|
507
|
-
}, null, 8, ["muted", "src"])) :
|
|
508
|
-
p("div",
|
|
509
|
-
|
|
507
|
+
}, null, 8, ["muted", "src"])) : I("v-if", !0),
|
|
508
|
+
p("div", Xe, [
|
|
509
|
+
w[3] || (w[3] = p(
|
|
510
510
|
"div",
|
|
511
511
|
{ class: "video-bottom_l" },
|
|
512
512
|
null,
|
|
513
513
|
-1
|
|
514
514
|
/* HOISTED */
|
|
515
515
|
)),
|
|
516
|
-
p("div",
|
|
516
|
+
p("div", Je, [
|
|
517
517
|
p(
|
|
518
518
|
"div",
|
|
519
519
|
{
|
|
520
520
|
class: "controls",
|
|
521
|
-
onDblclick:
|
|
521
|
+
onDblclick: w[2] || (w[2] = k((O) => O.stopPropagation(), ["stop"]))
|
|
522
522
|
},
|
|
523
523
|
[
|
|
524
|
-
v(l(
|
|
524
|
+
v(l(b), {
|
|
525
525
|
content: l(g)("声音")
|
|
526
526
|
}, {
|
|
527
527
|
default: m(() => [
|
|
528
|
-
v(l(
|
|
528
|
+
v(l($), {
|
|
529
529
|
class: "icon icon-volume",
|
|
530
530
|
icon: a.value ? "muted" : "volume",
|
|
531
|
-
onClick: _
|
|
531
|
+
onClick: k(_, ["stop"])
|
|
532
532
|
}, null, 8, ["icon"])
|
|
533
533
|
]),
|
|
534
534
|
_: 1
|
|
535
535
|
/* STABLE */
|
|
536
536
|
}, 8, ["content"]),
|
|
537
|
-
v(l(
|
|
537
|
+
v(l(b), {
|
|
538
538
|
content: l(g)("截图")
|
|
539
539
|
}, {
|
|
540
540
|
default: m(() => [
|
|
541
|
-
v(l(
|
|
541
|
+
v(l($), {
|
|
542
542
|
class: "icon icon-screenshot",
|
|
543
543
|
icon: "screenshot",
|
|
544
|
-
onClick:
|
|
544
|
+
onClick: k(R, ["stop"])
|
|
545
545
|
})
|
|
546
546
|
]),
|
|
547
547
|
_: 1
|
|
548
548
|
/* STABLE */
|
|
549
549
|
}, 8, ["content"]),
|
|
550
|
-
|
|
550
|
+
U("control") ? (C(), E(l(b), {
|
|
551
551
|
key: 0,
|
|
552
552
|
content: l(g)("聚焦-")
|
|
553
553
|
}, {
|
|
554
554
|
default: m(() => [
|
|
555
|
-
["live", "polling"].includes(e.type) ? (
|
|
555
|
+
["live", "polling"].includes(e.type) ? (C(), E(l($), {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "icon icon-shrink",
|
|
558
558
|
icon: "shrink",
|
|
559
|
-
onClick:
|
|
560
|
-
})) :
|
|
559
|
+
onClick: w[0] || (w[0] = k((O) => j("zoomOut"), ["stop"]))
|
|
560
|
+
})) : I("v-if", !0)
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
/* STABLE */
|
|
564
|
-
}, 8, ["content"])) :
|
|
565
|
-
|
|
564
|
+
}, 8, ["content"])) : I("v-if", !0),
|
|
565
|
+
U("control") ? (C(), E(l(b), {
|
|
566
566
|
key: 1,
|
|
567
567
|
content: l(g)("聚焦+")
|
|
568
568
|
}, {
|
|
569
569
|
default: m(() => [
|
|
570
|
-
["live", "polling"].includes(e.type) ? (
|
|
570
|
+
["live", "polling"].includes(e.type) ? (C(), E(l($), {
|
|
571
571
|
key: 0,
|
|
572
572
|
class: "icon icon-enlarge",
|
|
573
573
|
icon: "enlarge",
|
|
574
|
-
onClick:
|
|
575
|
-
})) :
|
|
574
|
+
onClick: w[1] || (w[1] = k((O) => j("zoomIn"), ["stop"]))
|
|
575
|
+
})) : I("v-if", !0)
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
/* STABLE */
|
|
579
|
-
}, 8, ["content"])) :
|
|
580
|
-
|
|
579
|
+
}, 8, ["content"])) : I("v-if", !0),
|
|
580
|
+
U("control") ? (C(), E(l(b), {
|
|
581
581
|
key: 2,
|
|
582
582
|
content: l(g)("方向控制")
|
|
583
583
|
}, {
|
|
584
584
|
default: m(() => [
|
|
585
|
-
["live", "polling"].includes(e.type) ? (
|
|
585
|
+
["live", "polling"].includes(e.type) ? (C(), E(l($), {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "icon icon-direction-control",
|
|
588
588
|
icon: "direction-control",
|
|
589
|
-
onClick:
|
|
590
|
-
})) :
|
|
589
|
+
onClick: k(N, ["stop"])
|
|
590
|
+
})) : I("v-if", !0)
|
|
591
591
|
]),
|
|
592
592
|
_: 1
|
|
593
593
|
/* STABLE */
|
|
594
|
-
}, 8, ["content"])) :
|
|
594
|
+
}, 8, ["content"])) : I("v-if", !0)
|
|
595
595
|
],
|
|
596
596
|
32
|
|
597
597
|
/* NEED_HYDRATION */
|
|
598
598
|
)
|
|
599
599
|
])
|
|
600
600
|
]),
|
|
601
|
-
s.value ? (
|
|
601
|
+
s.value ? (C(), E(Qe, {
|
|
602
602
|
key: 1,
|
|
603
603
|
onChange: re
|
|
604
|
-
})) :
|
|
604
|
+
})) : I("v-if", !0)
|
|
605
605
|
]),
|
|
606
606
|
_: 1
|
|
607
607
|
/* STABLE */
|
|
608
608
|
}, 8, ["spinning", "tip"])
|
|
609
609
|
]));
|
|
610
610
|
}
|
|
611
|
-
}),
|
|
612
|
-
function
|
|
611
|
+
}), tt = /* @__PURE__ */ T(et, [["__scopeId", "data-v-2bc90e59"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", ot = "v1", lt = ee(`/api/enterpriseright/permission/${ot}`), ie = ee(`${nt}`, it);
|
|
612
|
+
function it(t) {
|
|
613
613
|
const o = M() ? M().id : 1;
|
|
614
614
|
return t.params || (t.params = {}), t.params.project = o, t.params.projectId = o, t;
|
|
615
615
|
}
|
|
@@ -622,16 +622,16 @@ function se(t) {
|
|
|
622
622
|
function Z(t) {
|
|
623
623
|
return ie.post(`/ptz?${se(t)}`)().run();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function st(t) {
|
|
626
626
|
return ie.post(`/url/preview?${se(t)}`)().run();
|
|
627
627
|
}
|
|
628
|
-
|
|
629
|
-
const
|
|
628
|
+
lt.post("data/device-auth");
|
|
629
|
+
const rt = (t) => {
|
|
630
630
|
const o = Ie();
|
|
631
631
|
return `${t}?token=${o}`;
|
|
632
632
|
};
|
|
633
|
-
|
|
634
|
-
const
|
|
633
|
+
h([]);
|
|
634
|
+
const at = /* @__PURE__ */ z({
|
|
635
635
|
props: {
|
|
636
636
|
deviceInfo: {
|
|
637
637
|
type: Object,
|
|
@@ -647,16 +647,16 @@ const rt = /* @__PURE__ */ P({
|
|
|
647
647
|
const {
|
|
648
648
|
deviceInfo: e,
|
|
649
649
|
source: i
|
|
650
|
-
} = me(t), a =
|
|
650
|
+
} = me(t), a = h(!1), n = h(""), s = async () => {
|
|
651
651
|
var y;
|
|
652
652
|
if (!((y = e.value) != null && y.deviceId)) return;
|
|
653
653
|
a.value = !0;
|
|
654
|
-
const [d, c] = await
|
|
654
|
+
const [d, c] = await st({
|
|
655
655
|
productId: e.value.productId,
|
|
656
656
|
deviceId: e.value.deviceId,
|
|
657
657
|
source: i.value
|
|
658
658
|
});
|
|
659
|
-
d || (n.value =
|
|
659
|
+
d || (n.value = rt(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
|
|
660
660
|
}, f = (d) => {
|
|
661
661
|
Z({
|
|
662
662
|
productId: e.value.productId,
|
|
@@ -676,7 +676,7 @@ const rt = /* @__PURE__ */ P({
|
|
|
676
676
|
};
|
|
677
677
|
return K(() => {
|
|
678
678
|
s();
|
|
679
|
-
}),
|
|
679
|
+
}), S(() => e.value, () => {
|
|
680
680
|
s();
|
|
681
681
|
}, {
|
|
682
682
|
deep: !0
|
|
@@ -688,13 +688,13 @@ const rt = /* @__PURE__ */ P({
|
|
|
688
688
|
})]);
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
|
-
function
|
|
692
|
-
const o =
|
|
691
|
+
function ct(t) {
|
|
692
|
+
const o = h(0), e = h(), {
|
|
693
693
|
toggle: i,
|
|
694
694
|
isFullscreen: a
|
|
695
695
|
} = le(e);
|
|
696
696
|
return {
|
|
697
|
-
render: () => v(
|
|
697
|
+
render: () => v(Me, {
|
|
698
698
|
ref: e,
|
|
699
699
|
gridNum: t.gridNum,
|
|
700
700
|
activeIndex: o.value,
|
|
@@ -705,7 +705,7 @@ function at(t) {
|
|
|
705
705
|
index: s
|
|
706
706
|
}) => {
|
|
707
707
|
const f = t.deviceList[s], r = t.source;
|
|
708
|
-
return v(
|
|
708
|
+
return v(at, {
|
|
709
709
|
deviceInfo: f,
|
|
710
710
|
source: r
|
|
711
711
|
}, {
|
|
@@ -713,10 +713,10 @@ function at(t) {
|
|
|
713
713
|
videoUrl: d,
|
|
714
714
|
onDirectionControl: c,
|
|
715
715
|
onZoomControl: y,
|
|
716
|
-
loading:
|
|
717
|
-
}) => v(
|
|
716
|
+
loading: _
|
|
717
|
+
}) => v(tt, {
|
|
718
718
|
type: "live",
|
|
719
|
-
loading:
|
|
719
|
+
loading: _,
|
|
720
720
|
videoUrl: d,
|
|
721
721
|
title: f.deviceName,
|
|
722
722
|
onDirectionControl: c,
|
|
@@ -729,7 +729,7 @@ function at(t) {
|
|
|
729
729
|
toggleFullscreen: i
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
const
|
|
732
|
+
const ut = /* @__PURE__ */ z({
|
|
733
733
|
__name: "index",
|
|
734
734
|
props: {
|
|
735
735
|
visible: { type: Boolean, default: !1 },
|
|
@@ -739,10 +739,10 @@ const ct = /* @__PURE__ */ P({
|
|
|
739
739
|
},
|
|
740
740
|
emits: ["update:visible"],
|
|
741
741
|
setup(t, { emit: o }) {
|
|
742
|
-
const e = t, i = o, a =
|
|
742
|
+
const e = t, i = o, a = P({
|
|
743
743
|
get: () => e.visible,
|
|
744
744
|
set: (r) => i("update:visible", r)
|
|
745
|
-
}), { render: n, toggleFullscreen: s } =
|
|
745
|
+
}), { render: n, toggleFullscreen: s } = ct(e), f = P(() => {
|
|
746
746
|
let r = {};
|
|
747
747
|
switch (e.gridNum) {
|
|
748
748
|
case 1:
|
|
@@ -757,7 +757,7 @@ const ct = /* @__PURE__ */ P({
|
|
|
757
757
|
}
|
|
758
758
|
return r;
|
|
759
759
|
});
|
|
760
|
-
return (r, d) => (
|
|
760
|
+
return (r, d) => (C(), E(l(Ce), {
|
|
761
761
|
size: "mini",
|
|
762
762
|
title: l(g)("视频监控"),
|
|
763
763
|
"custom-class": `das-linakge-video-dialog ${f.value}`,
|
|
@@ -774,12 +774,12 @@ const ct = /* @__PURE__ */ P({
|
|
|
774
774
|
p(
|
|
775
775
|
"span",
|
|
776
776
|
null,
|
|
777
|
-
|
|
777
|
+
B(l(g)("视频监控")),
|
|
778
778
|
1
|
|
779
779
|
/* TEXT */
|
|
780
780
|
)
|
|
781
781
|
]),
|
|
782
|
-
v(l(
|
|
782
|
+
v(l(b), {
|
|
783
783
|
content: l(g)("页面全屏")
|
|
784
784
|
}, {
|
|
785
785
|
default: m(() => [
|
|
@@ -794,15 +794,35 @@ const ct = /* @__PURE__ */ P({
|
|
|
794
794
|
}, 8, ["content"])
|
|
795
795
|
]),
|
|
796
796
|
default: m(() => [
|
|
797
|
-
a.value ? (
|
|
797
|
+
a.value ? (C(), E(l(n), { key: 0 })) : I("v-if", !0)
|
|
798
798
|
]),
|
|
799
799
|
_: 1
|
|
800
800
|
/* STABLE */
|
|
801
801
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
802
802
|
}
|
|
803
|
-
}),
|
|
803
|
+
}), dt = {
|
|
804
|
+
加载中: { "zh-CN": "加载中", en: "Loading" },
|
|
805
|
+
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Preview" },
|
|
806
|
+
声音: { "zh-CN": "声音", en: "Sound" },
|
|
807
|
+
截图: { "zh-CN": "截图", en: "Screenshot" },
|
|
808
|
+
聚焦: { "zh-CN": "聚焦", en: "Focus" },
|
|
809
|
+
方向控制: { "zh-CN": "方向控制", en: "Direction Control" },
|
|
810
|
+
左上: { "zh-CN": "左上", en: "Top Left" },
|
|
811
|
+
上: { "zh-CN": "上", en: "Top" },
|
|
812
|
+
右上: { "zh-CN": "右上", en: "Top Right" },
|
|
813
|
+
左: { "zh-CN": "左", en: "Left" },
|
|
814
|
+
自动: { "zh-CN": "自动", en: "Auto" },
|
|
815
|
+
右: { "zh-CN": "右", en: "Right" },
|
|
816
|
+
左下: { "zh-CN": "左下", en: "Bottom Left" },
|
|
817
|
+
下: { "zh-CN": "下", en: "Bottom" },
|
|
818
|
+
右下: { "zh-CN": "右下", en: "Bottom Right" },
|
|
819
|
+
视频监控: { "zh-CN": "视频监控", en: "Video Surveillance" },
|
|
820
|
+
页面全屏: { "zh-CN": "页面全屏", en: "Page Full Screen" }
|
|
821
|
+
};
|
|
822
|
+
ye(dt);
|
|
823
|
+
const It = ge(ut), Et = () => h(null);
|
|
804
824
|
export {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
825
|
+
It as DasVideoDialog,
|
|
826
|
+
Et as DasVideoDialogRef,
|
|
827
|
+
ct as useVideo
|
|
808
828
|
};
|