@das-fed/ui 7.0.7-hot.30 → 7.0.7-hot.31
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +11190 -11229
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
- 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/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +72 -74
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +213 -215
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1096 -1104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +240 -243
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.d.ts +10 -0
- package/packages/business-components/video-dialog/index.js +325 -322
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/type.d.ts +4 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +64 -39
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.d.ts +6 -0
- package/packages/components/dialog/index.js +73 -72
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +3 -0
- package/packages/components/dialog/src/type.d.ts +4 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +75 -77
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +24 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +397 -398
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +45 -47
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +7 -14
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +143 -147
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +293 -297
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +248 -251
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +415 -421
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4583 -4613
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +503 -498
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +9 -5
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +5 -9
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +128 -129
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +178 -179
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +44 -43
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1093 -1117
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { t as
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasTooltip as
|
|
7
|
-
import { DasIconFullscreen2 as
|
|
8
|
-
import { DasAutoRegisterIcon as
|
|
9
|
-
import { DasLivePlayer as
|
|
10
|
-
import { DasSpin as
|
|
11
|
-
import { DasHlsPlayer as
|
|
12
|
-
import
|
|
2
|
+
import { getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as pe, onMounted as te, nextTick as x, unref as l, ref as w, watch as S, defineComponent as U, useCssVars as ve, computed as P, createElementBlock as z, openBlock as v, normalizeClass as fe, renderSlot as oe, createCommentVNode as I, Fragment as B, renderList as me, createBlock as R, withCtx as C, withModifiers as h, createVNode as f, createElementVNode as m, toDisplayString as j, toRefs as ge, mergeProps as Ce } from "vue";
|
|
3
|
+
import { withInstall as ye } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as y, setI18nRule as ke } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as he } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasTooltip as _ } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
|
+
import { DasIconFullscreen2 as we } from "@das-fed/ui/packages/icons/fullscreen-2/index";
|
|
8
|
+
import { DasAutoRegisterIcon as _e, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
|
|
9
|
+
import { DasLivePlayer as be } from "@das-fed/ui/packages/components/live-player/index";
|
|
10
|
+
import { DasSpin as Ie } from "@das-fed/ui/packages/components/spin/index";
|
|
11
|
+
import { DasHlsPlayer as Ee } from "@das-fed/ui/packages/components/hls-player/index";
|
|
12
|
+
import Re from "dayjs";
|
|
13
13
|
import { createService as M } from "@das-fed/utils/api-services/src/create-service";
|
|
14
|
-
import { getProjectInfo as q, getToken as
|
|
14
|
+
import { getProjectInfo as q, getToken as Ne } from "@das-fed/utils/common-info";
|
|
15
15
|
var G;
|
|
16
|
-
const A = typeof window < "u",
|
|
16
|
+
const A = typeof window < "u", Se = (t) => typeof t == "string", ze = () => {
|
|
17
17
|
};
|
|
18
18
|
A && ((G = window == null ? void 0 : window.navigator) != null && G.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
19
19
|
function ne(t) {
|
|
20
20
|
return typeof t == "function" ? t() : l(t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Fe(t) {
|
|
23
23
|
return t;
|
|
24
24
|
}
|
|
25
25
|
function le(t) {
|
|
26
26
|
return ue() ? (de(t), !0) : !1;
|
|
27
27
|
}
|
|
28
28
|
function Le(t, n = !0) {
|
|
29
|
-
|
|
29
|
+
pe() ? te(t) : n ? t() : x(t);
|
|
30
30
|
}
|
|
31
31
|
function ie(t) {
|
|
32
32
|
var n;
|
|
33
33
|
const e = ne(t);
|
|
34
34
|
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
35
35
|
}
|
|
36
|
-
const Oe = A ? window : void 0,
|
|
36
|
+
const Oe = A ? window : void 0, Ue = A ? window.document : void 0;
|
|
37
37
|
function De(...t) {
|
|
38
|
-
let n, e, i,
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
38
|
+
let n, e, i, r;
|
|
39
|
+
if (Se(t[0]) || Array.isArray(t[0]) ? ([e, i, r] = t, n = Oe) : [n, e, i, r] = t, !n)
|
|
40
|
+
return ze;
|
|
41
41
|
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
42
|
-
const o = [],
|
|
43
|
-
o.forEach((
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
}, { immediate: !0, flush: "post" }),
|
|
47
|
-
|
|
42
|
+
const o = [], c = () => {
|
|
43
|
+
o.forEach((a) => a()), o.length = 0;
|
|
44
|
+
}, g = (a, p, k, b) => (a.addEventListener(p, k, b), () => a.removeEventListener(p, k, b)), u = S(() => [ie(n), ne(r)], ([a, p]) => {
|
|
45
|
+
c(), a && o.push(...e.flatMap((k) => i.map((b) => g(a, k, b, p))));
|
|
46
|
+
}, { immediate: !0, flush: "post" }), s = () => {
|
|
47
|
+
u(), c();
|
|
48
48
|
};
|
|
49
|
-
return le(
|
|
49
|
+
return le(s), s;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const e =
|
|
51
|
+
function $e(t, n = !1) {
|
|
52
|
+
const e = w(), i = () => e.value = !!t();
|
|
53
53
|
return i(), Le(i, n), e;
|
|
54
54
|
}
|
|
55
55
|
const W = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = "__vueuse_ssr_handlers__";
|
|
@@ -97,50 +97,50 @@ const Z = [
|
|
|
97
97
|
]
|
|
98
98
|
];
|
|
99
99
|
function ae(t, n = {}) {
|
|
100
|
-
const { document: e =
|
|
101
|
-
let
|
|
102
|
-
const
|
|
100
|
+
const { document: e = Ue, autoExit: i = !1 } = n, r = t || (e == null ? void 0 : e.querySelector("html")), o = w(!1);
|
|
101
|
+
let c = Z[0];
|
|
102
|
+
const g = $e(() => {
|
|
103
103
|
if (e) {
|
|
104
104
|
for (const N of Z)
|
|
105
105
|
if (N[1] in e)
|
|
106
|
-
return
|
|
106
|
+
return c = N, !0;
|
|
107
107
|
} else
|
|
108
108
|
return !1;
|
|
109
109
|
return !1;
|
|
110
|
-
}), [
|
|
111
|
-
async function
|
|
112
|
-
|
|
110
|
+
}), [u, s, a, , p] = c;
|
|
111
|
+
async function k() {
|
|
112
|
+
g.value && (e != null && e[a] && await e[s](), o.value = !1);
|
|
113
113
|
}
|
|
114
114
|
async function b() {
|
|
115
|
-
if (!
|
|
115
|
+
if (!g.value)
|
|
116
116
|
return;
|
|
117
|
-
await
|
|
118
|
-
const N = ie(
|
|
119
|
-
N && (await N[
|
|
117
|
+
await k();
|
|
118
|
+
const N = ie(r);
|
|
119
|
+
N && (await N[u](), o.value = !0);
|
|
120
120
|
}
|
|
121
|
-
async function
|
|
122
|
-
o.value ? await
|
|
121
|
+
async function F() {
|
|
122
|
+
o.value ? await k() : await b();
|
|
123
123
|
}
|
|
124
|
-
return e && De(e,
|
|
125
|
-
o.value = !!(e != null && e[
|
|
126
|
-
}, !1), i && le(
|
|
127
|
-
isSupported:
|
|
124
|
+
return e && De(e, p, () => {
|
|
125
|
+
o.value = !!(e != null && e[a]);
|
|
126
|
+
}, !1), i && le(k), {
|
|
127
|
+
isSupported: g,
|
|
128
128
|
isFullscreen: o,
|
|
129
129
|
enter: b,
|
|
130
|
-
exit:
|
|
131
|
-
toggle:
|
|
130
|
+
exit: k,
|
|
131
|
+
toggle: F
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
var K;
|
|
135
135
|
(function(t) {
|
|
136
136
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
137
137
|
})(K || (K = {}));
|
|
138
|
-
var
|
|
138
|
+
var Pe = Object.defineProperty, X = Object.getOwnPropertySymbols, Te = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, J = (t, n, e) => n in t ? Pe(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Be = (t, n) => {
|
|
139
139
|
for (var e in n || (n = {}))
|
|
140
|
-
|
|
140
|
+
Te.call(n, e) && J(t, e, n[e]);
|
|
141
141
|
if (X)
|
|
142
142
|
for (var e of X(n))
|
|
143
|
-
|
|
143
|
+
xe.call(n, e) && J(t, e, n[e]);
|
|
144
144
|
return t;
|
|
145
145
|
};
|
|
146
146
|
const He = {
|
|
@@ -169,10 +169,10 @@ const He = {
|
|
|
169
169
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
170
170
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
171
171
|
};
|
|
172
|
-
|
|
173
|
-
linear:
|
|
172
|
+
Be({
|
|
173
|
+
linear: Fe
|
|
174
174
|
}, He);
|
|
175
|
-
const
|
|
175
|
+
const Ve = /* @__PURE__ */ U({
|
|
176
176
|
__name: "GridItem",
|
|
177
177
|
props: {
|
|
178
178
|
active: { type: Boolean },
|
|
@@ -180,38 +180,36 @@ const Be = /* @__PURE__ */ D({
|
|
|
180
180
|
},
|
|
181
181
|
emits: ["itemClick"],
|
|
182
182
|
setup(t, { emit: n }) {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
ve((s) => ({
|
|
184
|
+
a769b0be: u.value
|
|
185
185
|
}));
|
|
186
|
-
const e = t, i = n,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
})) : o());
|
|
190
|
-
}, c = () => {
|
|
186
|
+
const e = t, i = n, r = w(), { toggle: o } = ae(r), c = () => {
|
|
187
|
+
o();
|
|
188
|
+
}, g = () => {
|
|
191
189
|
i("itemClick");
|
|
192
|
-
}, u =
|
|
193
|
-
return (
|
|
190
|
+
}, u = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
191
|
+
return (s, a) => (v(), z(
|
|
194
192
|
"div",
|
|
195
193
|
{
|
|
196
194
|
ref_key: "containerRef",
|
|
197
|
-
ref:
|
|
195
|
+
ref: r,
|
|
198
196
|
class: fe(["wrapper", { "is-active": e.active }]),
|
|
199
|
-
onDblclick:
|
|
200
|
-
onClick:
|
|
197
|
+
onDblclick: a[0] || (a[0] = (p) => c()),
|
|
198
|
+
onClick: a[1] || (a[1] = (p) => g())
|
|
201
199
|
},
|
|
202
200
|
[
|
|
203
|
-
oe(
|
|
201
|
+
oe(s.$slots, "default", {}, void 0, !0)
|
|
204
202
|
],
|
|
205
203
|
34
|
|
206
204
|
/* CLASS, NEED_HYDRATION */
|
|
207
205
|
));
|
|
208
206
|
}
|
|
209
|
-
}),
|
|
207
|
+
}), H = (t, n) => {
|
|
210
208
|
const e = t.__vccOpts || t;
|
|
211
|
-
for (const [i,
|
|
212
|
-
e[i] =
|
|
209
|
+
for (const [i, r] of n)
|
|
210
|
+
e[i] = r;
|
|
213
211
|
return e;
|
|
214
|
-
},
|
|
212
|
+
}, je = /* @__PURE__ */ H(Ve, [["__scopeId", "data-v-97d987a9"]]), Me = { class: "layout-wrapper" }, Ae = /* @__PURE__ */ U({
|
|
215
213
|
__name: "GridLayout",
|
|
216
214
|
props: {
|
|
217
215
|
gridNum: {},
|
|
@@ -220,24 +218,24 @@ const Be = /* @__PURE__ */ D({
|
|
|
220
218
|
},
|
|
221
219
|
emits: ["update:activeIndex"],
|
|
222
220
|
setup(t, { emit: n }) {
|
|
223
|
-
const e = t, i = n,
|
|
221
|
+
const e = t, i = n, r = (o) => {
|
|
224
222
|
i("update:activeIndex", o);
|
|
225
223
|
};
|
|
226
|
-
return (o,
|
|
227
|
-
|
|
228
|
-
(
|
|
229
|
-
|
|
224
|
+
return (o, c) => (v(), z("div", Me, [
|
|
225
|
+
I(' :active="index === activeIndex" '),
|
|
226
|
+
(v(!0), z(
|
|
227
|
+
B,
|
|
230
228
|
null,
|
|
231
|
-
me(e.gridNum, (
|
|
229
|
+
me(e.gridNum, (g, u) => (v(), R(je, {
|
|
232
230
|
active: !1,
|
|
233
231
|
"grid-num": e.gridNum,
|
|
234
|
-
onItemClick: (
|
|
232
|
+
onItemClick: (s) => r(u)
|
|
235
233
|
}, {
|
|
236
|
-
default:
|
|
237
|
-
o.showFn(
|
|
234
|
+
default: C(() => [
|
|
235
|
+
o.showFn(u) ? oe(o.$slots, "default", {
|
|
238
236
|
key: 0,
|
|
239
|
-
index:
|
|
240
|
-
}, void 0, !0) :
|
|
237
|
+
index: u
|
|
238
|
+
}, void 0, !0) : I("v-if", !0)
|
|
241
239
|
]),
|
|
242
240
|
_: 2
|
|
243
241
|
/* DYNAMIC */
|
|
@@ -247,123 +245,123 @@ const Be = /* @__PURE__ */ D({
|
|
|
247
245
|
))
|
|
248
246
|
]));
|
|
249
247
|
}
|
|
250
|
-
}),
|
|
248
|
+
}), Qe = /* @__PURE__ */ H(Ae, [["__scopeId", "data-v-661e2289"]]), qe = /* @__PURE__ */ U({
|
|
251
249
|
__name: "DirectionControl",
|
|
252
250
|
emits: ["change"],
|
|
253
251
|
setup(t, { emit: n }) {
|
|
254
|
-
const e = n, i = (
|
|
255
|
-
e("change",
|
|
252
|
+
const e = n, i = (r) => {
|
|
253
|
+
e("change", r);
|
|
256
254
|
};
|
|
257
|
-
return (
|
|
255
|
+
return (r, o) => (v(), z(
|
|
258
256
|
"div",
|
|
259
257
|
{
|
|
260
258
|
class: "direction-control",
|
|
261
|
-
onDblclick: o[9] || (o[9] =
|
|
259
|
+
onDblclick: o[9] || (o[9] = h((c) => c.stopPropagation(), ["stop"]))
|
|
262
260
|
},
|
|
263
261
|
[
|
|
264
|
-
f(l(
|
|
265
|
-
content: l(
|
|
262
|
+
f(l(_), {
|
|
263
|
+
content: l(y)("左上")
|
|
266
264
|
}, {
|
|
267
|
-
default:
|
|
265
|
+
default: C(() => [
|
|
268
266
|
m("div", {
|
|
269
267
|
class: "icon icon-top-left",
|
|
270
|
-
onClick: o[0] || (o[0] =
|
|
268
|
+
onClick: o[0] || (o[0] = h((c) => i("leftUp"), ["stop"]))
|
|
271
269
|
})
|
|
272
270
|
]),
|
|
273
271
|
_: 1
|
|
274
272
|
/* STABLE */
|
|
275
273
|
}, 8, ["content"]),
|
|
276
|
-
f(l(
|
|
277
|
-
content: l(
|
|
274
|
+
f(l(_), {
|
|
275
|
+
content: l(y)("上")
|
|
278
276
|
}, {
|
|
279
|
-
default:
|
|
277
|
+
default: C(() => [
|
|
280
278
|
m("div", {
|
|
281
279
|
class: "icon icon-top",
|
|
282
|
-
onClick: o[1] || (o[1] =
|
|
280
|
+
onClick: o[1] || (o[1] = h((c) => i("up"), ["stop"]))
|
|
283
281
|
})
|
|
284
282
|
]),
|
|
285
283
|
_: 1
|
|
286
284
|
/* STABLE */
|
|
287
285
|
}, 8, ["content"]),
|
|
288
|
-
f(l(
|
|
289
|
-
content: l(
|
|
286
|
+
f(l(_), {
|
|
287
|
+
content: l(y)("右上")
|
|
290
288
|
}, {
|
|
291
|
-
default:
|
|
289
|
+
default: C(() => [
|
|
292
290
|
m("div", {
|
|
293
291
|
class: "icon icon-top-right",
|
|
294
|
-
onClick: o[2] || (o[2] =
|
|
292
|
+
onClick: o[2] || (o[2] = h((c) => i("rightUp"), ["stop"]))
|
|
295
293
|
})
|
|
296
294
|
]),
|
|
297
295
|
_: 1
|
|
298
296
|
/* STABLE */
|
|
299
297
|
}, 8, ["content"]),
|
|
300
|
-
f(l(
|
|
301
|
-
content: l(
|
|
298
|
+
f(l(_), {
|
|
299
|
+
content: l(y)("左")
|
|
302
300
|
}, {
|
|
303
|
-
default:
|
|
301
|
+
default: C(() => [
|
|
304
302
|
m("div", {
|
|
305
303
|
class: "icon icon-left",
|
|
306
|
-
onClick: o[3] || (o[3] =
|
|
304
|
+
onClick: o[3] || (o[3] = h((c) => i("left"), ["stop"]))
|
|
307
305
|
})
|
|
308
306
|
]),
|
|
309
307
|
_: 1
|
|
310
308
|
/* STABLE */
|
|
311
309
|
}, 8, ["content"]),
|
|
312
|
-
f(l(
|
|
313
|
-
content: l(
|
|
310
|
+
f(l(_), {
|
|
311
|
+
content: l(y)("自动")
|
|
314
312
|
}, {
|
|
315
|
-
default:
|
|
313
|
+
default: C(() => [
|
|
316
314
|
m("div", {
|
|
317
315
|
class: "icon icon-auto",
|
|
318
|
-
onClick: o[4] || (o[4] =
|
|
316
|
+
onClick: o[4] || (o[4] = h((c) => i("auto"), ["stop"]))
|
|
319
317
|
})
|
|
320
318
|
]),
|
|
321
319
|
_: 1
|
|
322
320
|
/* STABLE */
|
|
323
321
|
}, 8, ["content"]),
|
|
324
|
-
f(l(
|
|
325
|
-
content: l(
|
|
322
|
+
f(l(_), {
|
|
323
|
+
content: l(y)("右")
|
|
326
324
|
}, {
|
|
327
|
-
default:
|
|
325
|
+
default: C(() => [
|
|
328
326
|
m("div", {
|
|
329
327
|
class: "icon icon-right",
|
|
330
|
-
onClick: o[5] || (o[5] =
|
|
328
|
+
onClick: o[5] || (o[5] = h((c) => i("right"), ["stop"]))
|
|
331
329
|
})
|
|
332
330
|
]),
|
|
333
331
|
_: 1
|
|
334
332
|
/* STABLE */
|
|
335
333
|
}, 8, ["content"]),
|
|
336
|
-
f(l(
|
|
337
|
-
content: l(
|
|
334
|
+
f(l(_), {
|
|
335
|
+
content: l(y)("左下")
|
|
338
336
|
}, {
|
|
339
|
-
default:
|
|
337
|
+
default: C(() => [
|
|
340
338
|
m("div", {
|
|
341
339
|
class: "icon icon-bottom-left",
|
|
342
|
-
onClick: o[6] || (o[6] =
|
|
340
|
+
onClick: o[6] || (o[6] = h((c) => i("leftDown"), ["stop"]))
|
|
343
341
|
})
|
|
344
342
|
]),
|
|
345
343
|
_: 1
|
|
346
344
|
/* STABLE */
|
|
347
345
|
}, 8, ["content"]),
|
|
348
|
-
f(l(
|
|
349
|
-
content: l(
|
|
346
|
+
f(l(_), {
|
|
347
|
+
content: l(y)("下")
|
|
350
348
|
}, {
|
|
351
|
-
default:
|
|
349
|
+
default: C(() => [
|
|
352
350
|
m("div", {
|
|
353
351
|
class: "icon icon-bottom",
|
|
354
|
-
onClick: o[7] || (o[7] =
|
|
352
|
+
onClick: o[7] || (o[7] = h((c) => i("down"), ["stop"]))
|
|
355
353
|
})
|
|
356
354
|
]),
|
|
357
355
|
_: 1
|
|
358
356
|
/* STABLE */
|
|
359
357
|
}, 8, ["content"]),
|
|
360
|
-
f(l(
|
|
361
|
-
content: l(
|
|
358
|
+
f(l(_), {
|
|
359
|
+
content: l(y)("右下")
|
|
362
360
|
}, {
|
|
363
|
-
default:
|
|
361
|
+
default: C(() => [
|
|
364
362
|
m("div", {
|
|
365
363
|
class: "icon icon-bottom-right",
|
|
366
|
-
onClick: o[8] || (o[8] =
|
|
364
|
+
onClick: o[8] || (o[8] = h((c) => i("rightDown"), ["stop"]))
|
|
367
365
|
})
|
|
368
366
|
]),
|
|
369
367
|
_: 1
|
|
@@ -374,10 +372,10 @@ const Be = /* @__PURE__ */ D({
|
|
|
374
372
|
/* NEED_HYDRATION */
|
|
375
373
|
));
|
|
376
374
|
}
|
|
377
|
-
}),
|
|
375
|
+
}), Ge = /* @__PURE__ */ H(qe, [["__scopeId", "data-v-db2e8ec2"]]), We = { class: "video-wrapper" }, Ye = { class: "video-top" }, Ze = { class: "video-top_l" }, Ke = { class: "video-title-wrapper" }, Xe = { class: "video-title" }, Je = { class: "video-top_r" }, et = {
|
|
378
376
|
key: 0,
|
|
379
377
|
class: "play-status"
|
|
380
|
-
},
|
|
378
|
+
}, tt = { class: "video-bottom" }, ot = { class: "video-bottom_r" }, nt = /* @__PURE__ */ U({
|
|
381
379
|
__name: "index",
|
|
382
380
|
props: {
|
|
383
381
|
videoUrl: {},
|
|
@@ -394,7 +392,7 @@ const Be = /* @__PURE__ */ D({
|
|
|
394
392
|
emits: ["close", "directionControl", "zoomControl", "handleClick"],
|
|
395
393
|
setup(t, { emit: n }) {
|
|
396
394
|
const e = t, i = n;
|
|
397
|
-
|
|
395
|
+
_e({
|
|
398
396
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
399
397
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
400
398
|
shrink: import("@das-fed/ui/packages/icons/shrink"),
|
|
@@ -402,270 +400,269 @@ const Be = /* @__PURE__ */ D({
|
|
|
402
400
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control"),
|
|
403
401
|
screenshot: import("@das-fed/ui/packages/icons/screenshot")
|
|
404
402
|
});
|
|
405
|
-
const
|
|
406
|
-
var
|
|
407
|
-
return (
|
|
408
|
-
}),
|
|
409
|
-
o.value =
|
|
410
|
-
console.log("player error", I);
|
|
403
|
+
const r = w(!0), o = w(), c = w(!1), g = w(), u = P(() => {
|
|
404
|
+
var d;
|
|
405
|
+
return (d = g.value) == null ? void 0 : d.video;
|
|
406
|
+
}), s = w(!1), a = w(!0), p = (d) => {
|
|
407
|
+
o.value = d, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (E) => {
|
|
411
408
|
});
|
|
412
|
-
},
|
|
413
|
-
|
|
409
|
+
}, k = () => {
|
|
410
|
+
r.value = !r.value, i("handleClick", r.value ? "MUTE" : "UNMUTE"), o.value && (o.value.muted = r.value);
|
|
414
411
|
}, b = () => {
|
|
415
|
-
|
|
416
|
-
},
|
|
417
|
-
const
|
|
418
|
-
if (i("handleClick", "SCREENSHOT"),
|
|
419
|
-
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
const
|
|
423
|
-
if (
|
|
424
|
-
const
|
|
425
|
-
|
|
412
|
+
c.value = !c.value;
|
|
413
|
+
}, F = w(""), N = () => {
|
|
414
|
+
const d = document.createElement("canvas");
|
|
415
|
+
if (i("handleClick", "SCREENSHOT"), u.value) {
|
|
416
|
+
d.width = u.value.clientWidth, d.height = u.value.clientHeight;
|
|
417
|
+
const E = d.getContext("2d");
|
|
418
|
+
E == null || E.drawImage(u.value, 0, 0, d.width, d.height);
|
|
419
|
+
const O = d.toDataURL("image/jpg"), ce = `【${e.title}】${Re().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
420
|
+
if (F.value = O, "download" in document.createElement("a")) {
|
|
421
|
+
const L = document.createElement("a");
|
|
422
|
+
L.download = ce, L.style.display = "none", L.href = O, document.body.appendChild(L), document.body.appendChild(d), L.click(), URL.revokeObjectURL(L.href), document.body.removeChild(L), document.body.removeChild(d);
|
|
426
423
|
}
|
|
427
424
|
}
|
|
428
|
-
}, V = (
|
|
429
|
-
i("directionControl",
|
|
430
|
-
},
|
|
431
|
-
i("zoomControl",
|
|
432
|
-
},
|
|
433
|
-
return
|
|
434
|
-
() =>
|
|
425
|
+
}, V = (d) => {
|
|
426
|
+
i("directionControl", d);
|
|
427
|
+
}, T = (d) => {
|
|
428
|
+
i("zoomControl", d);
|
|
429
|
+
}, D = (d) => e.authType.includes(d);
|
|
430
|
+
return S(
|
|
431
|
+
() => u.value,
|
|
435
432
|
() => {
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
u.value && u.value.addEventListener("ended", () => {
|
|
434
|
+
s.value = !0, e.type === "playback" && (a.value = !1);
|
|
438
435
|
});
|
|
439
436
|
}
|
|
440
|
-
),
|
|
441
|
-
() =>
|
|
437
|
+
), S(
|
|
438
|
+
() => u.value,
|
|
442
439
|
() => {
|
|
443
|
-
|
|
444
|
-
|
|
440
|
+
u.value && x(() => {
|
|
441
|
+
u.value.playbackRate = e.playbackRate || 1;
|
|
445
442
|
});
|
|
446
443
|
}
|
|
447
|
-
),
|
|
444
|
+
), S(
|
|
448
445
|
() => o.value,
|
|
449
446
|
() => {
|
|
450
|
-
o.value &&
|
|
451
|
-
o.value.muted =
|
|
447
|
+
o.value && x(() => {
|
|
448
|
+
o.value.muted = r.value;
|
|
452
449
|
});
|
|
453
450
|
}
|
|
454
|
-
),
|
|
451
|
+
), S(
|
|
455
452
|
() => e.playbackRate,
|
|
456
453
|
() => {
|
|
457
|
-
|
|
454
|
+
u.value && (u.value.playbackRate = e.playbackRate || 1);
|
|
458
455
|
},
|
|
459
456
|
{
|
|
460
457
|
immediate: !0
|
|
461
458
|
}
|
|
462
|
-
),
|
|
459
|
+
), S(
|
|
463
460
|
() => e.paused,
|
|
464
461
|
() => {
|
|
465
462
|
o.value && (e.paused ? o.value.pause() : o.value.play());
|
|
466
463
|
}
|
|
467
|
-
),
|
|
464
|
+
), S(
|
|
468
465
|
() => e.videoUrl,
|
|
469
466
|
() => {
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
a.value = !1, x(() => {
|
|
468
|
+
a.value = !0;
|
|
472
469
|
});
|
|
473
470
|
}
|
|
474
|
-
), (
|
|
475
|
-
f(l(
|
|
471
|
+
), (d, E) => (v(), z("div", We, [
|
|
472
|
+
f(l(Ie), {
|
|
476
473
|
spinning: e.loading,
|
|
477
474
|
type: "component",
|
|
478
|
-
tip: l(
|
|
475
|
+
tip: l(y)("加载中...")
|
|
479
476
|
}, {
|
|
480
|
-
default:
|
|
481
|
-
m("div",
|
|
482
|
-
m("div",
|
|
483
|
-
m("div",
|
|
477
|
+
default: C(() => [
|
|
478
|
+
m("div", Ye, [
|
|
479
|
+
m("div", Ze, [
|
|
480
|
+
m("div", Ke, [
|
|
484
481
|
m(
|
|
485
482
|
"div",
|
|
486
|
-
|
|
483
|
+
Xe,
|
|
487
484
|
j(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
488
485
|
1
|
|
489
486
|
/* TEXT */
|
|
490
487
|
)
|
|
491
488
|
])
|
|
492
489
|
]),
|
|
493
|
-
m("div",
|
|
494
|
-
["live"].includes(
|
|
490
|
+
m("div", Je, [
|
|
491
|
+
["live"].includes(d.type) ? (v(), z(
|
|
495
492
|
"span",
|
|
496
|
-
|
|
497
|
-
j(l(
|
|
493
|
+
et,
|
|
494
|
+
j(l(y)("正在实时预览")),
|
|
498
495
|
1
|
|
499
496
|
/* TEXT */
|
|
500
|
-
)) :
|
|
501
|
-
|
|
497
|
+
)) : I("v-if", !0),
|
|
498
|
+
I(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
502
499
|
])
|
|
503
500
|
]),
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
d.isHls ? (v(), z(
|
|
502
|
+
B,
|
|
506
503
|
{ key: 1 },
|
|
507
504
|
[
|
|
508
|
-
e.videoUrl &&
|
|
505
|
+
e.videoUrl && a.value ? (v(), R(l(Ee), {
|
|
509
506
|
key: 0,
|
|
510
507
|
ref_key: "dasLivePlayerRef",
|
|
511
|
-
ref:
|
|
512
|
-
muted:
|
|
513
|
-
onLoaded:
|
|
508
|
+
ref: g,
|
|
509
|
+
muted: r.value,
|
|
510
|
+
onLoaded: p,
|
|
514
511
|
src: e.videoUrl
|
|
515
|
-
}, null, 8, ["muted", "src"])) :
|
|
512
|
+
}, null, 8, ["muted", "src"])) : I("v-if", !0)
|
|
516
513
|
],
|
|
517
514
|
64
|
|
518
515
|
/* STABLE_FRAGMENT */
|
|
519
|
-
)) : (
|
|
520
|
-
|
|
516
|
+
)) : (v(), z(
|
|
517
|
+
B,
|
|
521
518
|
{ key: 0 },
|
|
522
519
|
[
|
|
523
|
-
e.videoUrl &&
|
|
520
|
+
e.videoUrl && a.value ? (v(), R(l(be), {
|
|
524
521
|
key: 0,
|
|
525
522
|
type: "flv",
|
|
526
523
|
ref_key: "dasLivePlayerRef",
|
|
527
|
-
ref:
|
|
528
|
-
muted:
|
|
529
|
-
onLoaded:
|
|
524
|
+
ref: g,
|
|
525
|
+
muted: r.value,
|
|
526
|
+
onLoaded: p,
|
|
530
527
|
src: e.videoUrl
|
|
531
|
-
}, null, 8, ["muted", "src"])) :
|
|
528
|
+
}, null, 8, ["muted", "src"])) : I("v-if", !0)
|
|
532
529
|
],
|
|
533
530
|
64
|
|
534
531
|
/* STABLE_FRAGMENT */
|
|
535
532
|
)),
|
|
536
|
-
m("div",
|
|
537
|
-
|
|
533
|
+
m("div", tt, [
|
|
534
|
+
E[3] || (E[3] = m(
|
|
538
535
|
"div",
|
|
539
536
|
{ class: "video-bottom_l" },
|
|
540
537
|
null,
|
|
541
538
|
-1
|
|
542
539
|
/* CACHED */
|
|
543
540
|
)),
|
|
544
|
-
m("div",
|
|
541
|
+
m("div", ot, [
|
|
545
542
|
m(
|
|
546
543
|
"div",
|
|
547
544
|
{
|
|
548
545
|
class: "controls",
|
|
549
|
-
onDblclick:
|
|
546
|
+
onDblclick: E[2] || (E[2] = h((O) => O.stopPropagation(), ["stop"]))
|
|
550
547
|
},
|
|
551
548
|
[
|
|
552
|
-
f(l(
|
|
553
|
-
content: l(
|
|
549
|
+
f(l(_), {
|
|
550
|
+
content: l(y)("声音")
|
|
554
551
|
}, {
|
|
555
|
-
default:
|
|
552
|
+
default: C(() => [
|
|
556
553
|
f(l($), {
|
|
557
554
|
class: "icon icon-volume",
|
|
558
|
-
icon:
|
|
559
|
-
onClick:
|
|
555
|
+
icon: r.value ? "muted" : "volume",
|
|
556
|
+
onClick: h(k, ["stop"])
|
|
560
557
|
}, null, 8, ["icon"])
|
|
561
558
|
]),
|
|
562
559
|
_: 1
|
|
563
560
|
/* STABLE */
|
|
564
561
|
}, 8, ["content"]),
|
|
565
|
-
f(l(
|
|
566
|
-
content: l(
|
|
562
|
+
f(l(_), {
|
|
563
|
+
content: l(y)("截图")
|
|
567
564
|
}, {
|
|
568
|
-
default:
|
|
565
|
+
default: C(() => [
|
|
569
566
|
f(l($), {
|
|
570
567
|
class: "icon icon-screenshot",
|
|
571
568
|
icon: "screenshot",
|
|
572
|
-
onClick:
|
|
569
|
+
onClick: h(N, ["stop"])
|
|
573
570
|
})
|
|
574
571
|
]),
|
|
575
572
|
_: 1
|
|
576
573
|
/* STABLE */
|
|
577
574
|
}, 8, ["content"]),
|
|
578
|
-
|
|
575
|
+
D("control") ? (v(), R(l(_), {
|
|
579
576
|
key: 0,
|
|
580
|
-
content: l(
|
|
577
|
+
content: l(y)("聚焦-")
|
|
581
578
|
}, {
|
|
582
|
-
default:
|
|
583
|
-
["live", "polling"].includes(e.type) ? (
|
|
579
|
+
default: C(() => [
|
|
580
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
584
581
|
key: 0,
|
|
585
582
|
class: "icon icon-shrink",
|
|
586
583
|
icon: "shrink",
|
|
587
|
-
onClick:
|
|
588
|
-
})) :
|
|
584
|
+
onClick: E[0] || (E[0] = h((O) => T("zoomOut"), ["stop"]))
|
|
585
|
+
})) : I("v-if", !0)
|
|
589
586
|
]),
|
|
590
587
|
_: 1
|
|
591
588
|
/* STABLE */
|
|
592
|
-
}, 8, ["content"])) :
|
|
593
|
-
|
|
589
|
+
}, 8, ["content"])) : I("v-if", !0),
|
|
590
|
+
D("control") ? (v(), R(l(_), {
|
|
594
591
|
key: 1,
|
|
595
|
-
content: l(
|
|
592
|
+
content: l(y)("聚焦+")
|
|
596
593
|
}, {
|
|
597
|
-
default:
|
|
598
|
-
["live", "polling"].includes(e.type) ? (
|
|
594
|
+
default: C(() => [
|
|
595
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
599
596
|
key: 0,
|
|
600
597
|
class: "icon icon-enlarge",
|
|
601
598
|
icon: "enlarge",
|
|
602
|
-
onClick:
|
|
603
|
-
})) :
|
|
599
|
+
onClick: E[1] || (E[1] = h((O) => T("zoomIn"), ["stop"]))
|
|
600
|
+
})) : I("v-if", !0)
|
|
604
601
|
]),
|
|
605
602
|
_: 1
|
|
606
603
|
/* STABLE */
|
|
607
|
-
}, 8, ["content"])) :
|
|
608
|
-
|
|
604
|
+
}, 8, ["content"])) : I("v-if", !0),
|
|
605
|
+
D("control") ? (v(), R(l(_), {
|
|
609
606
|
key: 2,
|
|
610
|
-
content: l(
|
|
607
|
+
content: l(y)("方向控制")
|
|
611
608
|
}, {
|
|
612
|
-
default:
|
|
613
|
-
["live", "polling"].includes(e.type) ? (
|
|
609
|
+
default: C(() => [
|
|
610
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
614
611
|
key: 0,
|
|
615
612
|
class: "icon icon-direction-control",
|
|
616
613
|
icon: "direction-control",
|
|
617
|
-
onClick:
|
|
618
|
-
})) :
|
|
614
|
+
onClick: h(b, ["stop"])
|
|
615
|
+
})) : I("v-if", !0)
|
|
619
616
|
]),
|
|
620
617
|
_: 1
|
|
621
618
|
/* STABLE */
|
|
622
|
-
}, 8, ["content"])) :
|
|
619
|
+
}, 8, ["content"])) : I("v-if", !0)
|
|
623
620
|
],
|
|
624
621
|
32
|
|
625
622
|
/* NEED_HYDRATION */
|
|
626
623
|
)
|
|
627
624
|
])
|
|
628
625
|
]),
|
|
629
|
-
|
|
626
|
+
c.value ? (v(), R(Ge, {
|
|
630
627
|
key: 2,
|
|
631
628
|
onChange: V
|
|
632
|
-
})) :
|
|
629
|
+
})) : I("v-if", !0)
|
|
633
630
|
]),
|
|
634
631
|
_: 1
|
|
635
632
|
/* STABLE */
|
|
636
633
|
}, 8, ["spinning", "tip"])
|
|
637
634
|
]));
|
|
638
635
|
}
|
|
639
|
-
}),
|
|
640
|
-
let Q = M(`${
|
|
641
|
-
function
|
|
636
|
+
}), lt = /* @__PURE__ */ H(nt, [["__scopeId", "data-v-4db322a4"]]), it = "/api/device-relation/deviceproject/v1/project/device/video", at = "v1", rt = M(`/api/enterpriseright/permission/${at}`);
|
|
637
|
+
let Q = M(`${it}`, re);
|
|
638
|
+
function re(t) {
|
|
642
639
|
const n = q() ? q().id : 1;
|
|
643
640
|
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
644
641
|
}
|
|
645
|
-
function
|
|
642
|
+
function se(t) {
|
|
646
643
|
const n = new URLSearchParams("");
|
|
647
644
|
for (let [e, i] of Object.entries(t))
|
|
648
645
|
n.append(e, i);
|
|
649
646
|
return n.toString();
|
|
650
647
|
}
|
|
651
648
|
function ee(t) {
|
|
652
|
-
return Q.post(`/ptz?${
|
|
649
|
+
return Q.post(`/ptz?${se(t)}`)().run();
|
|
653
650
|
}
|
|
654
651
|
function st(t) {
|
|
655
|
-
return Q.post(`/url/preview?${
|
|
652
|
+
return Q.post(`/url/preview?${se(t)}`)().run();
|
|
656
653
|
}
|
|
657
|
-
|
|
658
|
-
function
|
|
654
|
+
rt.post("data/device-auth");
|
|
655
|
+
function ct(t) {
|
|
659
656
|
return new Promise((n) => {
|
|
660
|
-
Q = M(t,
|
|
657
|
+
Q = M(t, re), n("");
|
|
661
658
|
});
|
|
662
659
|
}
|
|
663
|
-
const
|
|
664
|
-
const n =
|
|
660
|
+
const ut = (t) => {
|
|
661
|
+
const n = Ne();
|
|
665
662
|
return `${t}?token=${n}`;
|
|
666
663
|
};
|
|
667
|
-
|
|
668
|
-
const
|
|
664
|
+
w([]);
|
|
665
|
+
const dt = /* @__PURE__ */ U({
|
|
669
666
|
props: {
|
|
670
667
|
deviceInfo: {
|
|
671
668
|
type: Object,
|
|
@@ -688,101 +685,101 @@ const ut = /* @__PURE__ */ D({
|
|
|
688
685
|
const {
|
|
689
686
|
deviceInfo: e,
|
|
690
687
|
source: i,
|
|
691
|
-
isHls:
|
|
688
|
+
isHls: r,
|
|
692
689
|
baseURL: o
|
|
693
|
-
} =
|
|
690
|
+
} = ge(t), c = w(!1), g = w(""), u = async () => {
|
|
694
691
|
var b;
|
|
695
692
|
if (!((b = e.value) != null && b.deviceId)) return;
|
|
696
|
-
|
|
697
|
-
const [
|
|
693
|
+
c.value = !0;
|
|
694
|
+
const [p, k] = await st({
|
|
698
695
|
productId: e.value.productId,
|
|
699
696
|
deviceId: e.value.deviceId,
|
|
700
697
|
source: i.value
|
|
701
698
|
});
|
|
702
|
-
if (!
|
|
703
|
-
let
|
|
704
|
-
|
|
699
|
+
if (!p) {
|
|
700
|
+
let F = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
|
|
701
|
+
g.value = ut(k == null ? void 0 : k[F]);
|
|
705
702
|
}
|
|
706
|
-
|
|
707
|
-
},
|
|
703
|
+
c.value = !1;
|
|
704
|
+
}, s = (p) => {
|
|
708
705
|
ee({
|
|
709
706
|
productId: e.value.productId,
|
|
710
707
|
deviceId: e.value.deviceId,
|
|
711
|
-
direction:
|
|
708
|
+
direction: p,
|
|
712
709
|
zoom: "",
|
|
713
710
|
source: i.value || "web"
|
|
714
711
|
});
|
|
715
|
-
},
|
|
712
|
+
}, a = (p) => {
|
|
716
713
|
ee({
|
|
717
714
|
productId: e.value.productId,
|
|
718
715
|
deviceId: e.value.deviceId,
|
|
719
716
|
direction: "",
|
|
720
|
-
zoom:
|
|
717
|
+
zoom: p,
|
|
721
718
|
source: i.value || "web"
|
|
722
719
|
});
|
|
723
720
|
};
|
|
724
721
|
return te(async () => {
|
|
725
|
-
o.value && await
|
|
726
|
-
}),
|
|
727
|
-
|
|
722
|
+
o.value && await ct(o.value), u();
|
|
723
|
+
}), S(() => e.value, () => {
|
|
724
|
+
u();
|
|
728
725
|
}, {
|
|
729
726
|
deep: !0
|
|
730
|
-
}), () => f(
|
|
731
|
-
videoUrl:
|
|
732
|
-
loading:
|
|
733
|
-
onDirectionControl:
|
|
734
|
-
onZoomControl:
|
|
735
|
-
isHls:
|
|
727
|
+
}), () => f(B, null, [n.default({
|
|
728
|
+
videoUrl: g.value,
|
|
729
|
+
loading: c.value,
|
|
730
|
+
onDirectionControl: s,
|
|
731
|
+
onZoomControl: a,
|
|
732
|
+
isHls: r.value
|
|
736
733
|
})]);
|
|
737
734
|
}
|
|
738
735
|
});
|
|
739
|
-
function
|
|
740
|
-
const n =
|
|
736
|
+
function pt(t) {
|
|
737
|
+
const n = w(0), e = w(), {
|
|
741
738
|
toggle: i,
|
|
742
|
-
isFullscreen:
|
|
739
|
+
isFullscreen: r,
|
|
743
740
|
exit: o
|
|
744
|
-
} = ae(e),
|
|
745
|
-
|
|
746
|
-
},
|
|
747
|
-
var
|
|
748
|
-
(
|
|
741
|
+
} = ae(e), c = (s, a) => {
|
|
742
|
+
r.value && o();
|
|
743
|
+
}, g = (s) => {
|
|
744
|
+
var a;
|
|
745
|
+
(a = t == null ? void 0 : t.handleClick) == null || a.call(t, s);
|
|
749
746
|
};
|
|
750
747
|
return {
|
|
751
|
-
render: () => f(
|
|
748
|
+
render: () => f(Qe, {
|
|
752
749
|
ref: e,
|
|
753
750
|
gridNum: t.gridNum,
|
|
754
751
|
activeIndex: n.value,
|
|
755
|
-
"onUpdate:activeIndex": (
|
|
756
|
-
showFn: (
|
|
752
|
+
"onUpdate:activeIndex": (s) => n.value = s,
|
|
753
|
+
showFn: (s) => !!t.deviceList[s]
|
|
757
754
|
}, {
|
|
758
755
|
default: ({
|
|
759
|
-
index:
|
|
756
|
+
index: s
|
|
760
757
|
}) => {
|
|
761
|
-
const
|
|
762
|
-
return f(
|
|
763
|
-
deviceInfo:
|
|
758
|
+
const a = t.deviceList[s], p = t.source, k = t.isHls, b = t.baseURL;
|
|
759
|
+
return f(dt, {
|
|
760
|
+
deviceInfo: a,
|
|
764
761
|
baseURL: b,
|
|
765
|
-
source:
|
|
766
|
-
isHls:
|
|
762
|
+
source: p,
|
|
763
|
+
isHls: k
|
|
767
764
|
}, {
|
|
768
765
|
default: ({
|
|
769
|
-
videoUrl:
|
|
766
|
+
videoUrl: F,
|
|
770
767
|
onDirectionControl: N,
|
|
771
768
|
onZoomControl: V,
|
|
772
|
-
loading:
|
|
773
|
-
isHls:
|
|
774
|
-
}) => f(
|
|
769
|
+
loading: T,
|
|
770
|
+
isHls: D
|
|
771
|
+
}) => f(lt, {
|
|
775
772
|
type: "live",
|
|
776
|
-
loading:
|
|
777
|
-
isFullscreen:
|
|
778
|
-
videoUrl:
|
|
779
|
-
title:
|
|
780
|
-
onClose: () =>
|
|
773
|
+
loading: T,
|
|
774
|
+
isFullscreen: r.value,
|
|
775
|
+
videoUrl: F,
|
|
776
|
+
title: a.deviceName,
|
|
777
|
+
onClose: () => c(),
|
|
781
778
|
onDirectionControl: N,
|
|
782
779
|
onZoomControl: V,
|
|
783
|
-
onHandleClick:
|
|
784
|
-
authType:
|
|
785
|
-
isHls:
|
|
780
|
+
onHandleClick: g,
|
|
781
|
+
authType: a.authType === 2 ? ["control"] : [],
|
|
782
|
+
isHls: D
|
|
786
783
|
}, null)
|
|
787
784
|
});
|
|
788
785
|
}
|
|
@@ -790,7 +787,7 @@ function dt(t) {
|
|
|
790
787
|
toggleFullscreen: i
|
|
791
788
|
};
|
|
792
789
|
}
|
|
793
|
-
const vt = /* @__PURE__ */
|
|
790
|
+
const vt = /* @__PURE__ */ U({
|
|
794
791
|
__name: "index",
|
|
795
792
|
props: {
|
|
796
793
|
visible: { type: Boolean, default: !1 },
|
|
@@ -798,43 +795,49 @@ const vt = /* @__PURE__ */ D({
|
|
|
798
795
|
gridNum: { default: 4 },
|
|
799
796
|
source: {},
|
|
800
797
|
isHls: { type: Boolean, default: !1 },
|
|
798
|
+
draggable: { type: Boolean, default: !0 },
|
|
799
|
+
resizable: { type: Boolean, default: !0 },
|
|
801
800
|
dialogTitle: { default: "" },
|
|
802
801
|
baseURL: { default: "/api/device-relation/deviceproject/v1/project/device/video" },
|
|
803
802
|
handleClick: {}
|
|
804
803
|
},
|
|
805
804
|
emits: ["update:visible"],
|
|
806
805
|
setup(t, { emit: n }) {
|
|
807
|
-
const e = t, i =
|
|
806
|
+
const e = t, i = P(() => e.dialogTitle || y("视频监控")), r = n, o = P({
|
|
808
807
|
get: () => e.visible,
|
|
809
|
-
set: (
|
|
810
|
-
}), { render:
|
|
811
|
-
let
|
|
808
|
+
set: (s) => r("update:visible", s)
|
|
809
|
+
}), { render: c, toggleFullscreen: g } = pt(e), u = P(() => {
|
|
810
|
+
let s = {};
|
|
812
811
|
switch (e.gridNum) {
|
|
813
812
|
case 1:
|
|
814
|
-
|
|
813
|
+
s = { width: "933px", height: "595px" };
|
|
815
814
|
break;
|
|
816
815
|
case 4:
|
|
817
|
-
|
|
816
|
+
s = { width: "933px", height: "595px" };
|
|
818
817
|
break;
|
|
819
818
|
case 9:
|
|
820
|
-
|
|
819
|
+
s = { width: "1370px", height: "840px" };
|
|
821
820
|
break;
|
|
822
821
|
}
|
|
823
|
-
return
|
|
822
|
+
return s;
|
|
824
823
|
});
|
|
825
|
-
return (
|
|
824
|
+
return (s, a) => (v(), R(l(he), Ce({
|
|
826
825
|
size: "mini",
|
|
827
826
|
title: i.value,
|
|
828
|
-
"custom-class":
|
|
827
|
+
"custom-class": "das-linakge-video-dialog",
|
|
829
828
|
modelValue: o.value,
|
|
830
|
-
"onUpdate:modelValue":
|
|
829
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => o.value = p),
|
|
831
830
|
bodyStyle: { padding: 0 },
|
|
832
831
|
"close-on-click-modal": !1,
|
|
833
832
|
"close-on-press-escape": !1,
|
|
834
833
|
modal: !1,
|
|
835
|
-
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
836
|
-
|
|
837
|
-
|
|
834
|
+
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
835
|
+
draggable: s.draggable,
|
|
836
|
+
resizable: s.resizable,
|
|
837
|
+
width: u.value.width,
|
|
838
|
+
height: u.value.height
|
|
839
|
+
}, s.$attrs), {
|
|
840
|
+
header: C(() => [
|
|
838
841
|
m("div", null, [
|
|
839
842
|
m(
|
|
840
843
|
"span",
|
|
@@ -844,28 +847,28 @@ const vt = /* @__PURE__ */ D({
|
|
|
844
847
|
/* TEXT */
|
|
845
848
|
)
|
|
846
849
|
]),
|
|
847
|
-
f(l(
|
|
848
|
-
content: l(
|
|
850
|
+
f(l(_), {
|
|
851
|
+
content: l(y)("页面全屏")
|
|
849
852
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
f(l(
|
|
853
|
+
default: C(() => [
|
|
854
|
+
f(l(we), {
|
|
852
855
|
class: "icon",
|
|
853
856
|
color: "#999",
|
|
854
|
-
onClick: l(
|
|
857
|
+
onClick: l(g)
|
|
855
858
|
}, null, 8, ["onClick"])
|
|
856
859
|
]),
|
|
857
860
|
_: 1
|
|
858
861
|
/* STABLE */
|
|
859
862
|
}, 8, ["content"])
|
|
860
863
|
]),
|
|
861
|
-
default:
|
|
862
|
-
o.value ? (
|
|
864
|
+
default: C(() => [
|
|
865
|
+
o.value ? (v(), R(l(c), { key: 0 })) : I("v-if", !0)
|
|
863
866
|
]),
|
|
864
867
|
_: 1
|
|
865
868
|
/* STABLE */
|
|
866
|
-
},
|
|
869
|
+
}, 16, ["title", "modelValue", "draggable", "resizable", "width", "height"]));
|
|
867
870
|
}
|
|
868
|
-
}),
|
|
871
|
+
}), ft = {
|
|
869
872
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
870
873
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
871
874
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
@@ -887,10 +890,10 @@ const vt = /* @__PURE__ */ D({
|
|
|
887
890
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
888
891
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
889
892
|
};
|
|
890
|
-
|
|
891
|
-
const
|
|
893
|
+
ke(ft);
|
|
894
|
+
const St = ye(vt), zt = () => w(null);
|
|
892
895
|
export {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
+
St as DasVideoDialog,
|
|
897
|
+
zt as DasVideoDialogRef,
|
|
898
|
+
pt as useVideo
|
|
896
899
|
};
|