@das-fed/ui 6.4.0-dev.54.3 → 6.4.0-dev.54.5
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/device-panel/i18n/index.d.ts +191 -191
- package/packages/business-components/device-panel/index.js +4 -1
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +63 -61
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +87 -83
- package/packages/business-components/urgent-panel/index.js +127 -121
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/tree/index.js +1351 -1352
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +30 -18
|
@@ -3,14 +3,14 @@ import { ElLoadingDirective as We } from "element-plus/es";
|
|
|
3
3
|
import "element-plus/es/components/base/style/css";
|
|
4
4
|
import "element-plus/es/components/loading/style/css";
|
|
5
5
|
import { reactive as Nt, defineComponent as ue, computed as J, openBlock as i, createElementBlock as h, withDirectives as ie, createVNode as U, unref as e, toDisplayString as L, createCommentVNode as N, Fragment as Ae, createElementVNode as m, renderList as Be, createTextVNode as $, ref as r, onMounted as De, createBlock as G, withCtx as q, normalizeClass as Me, withModifiers as ge, watch as me, nextTick as Ue, h as Ie, isRef as _e, normalizeStyle as Oe, onBeforeMount as St, onBeforeUnmount as ot, renderSlot as Ut, watchEffect as Qe, Transition as $e, createApp as Lt } from "vue";
|
|
6
|
-
import { i18n as Pe, t as se, setI18nRule as
|
|
6
|
+
import { i18n as Pe, t as se, setI18nRule as Et } from "@das-fed/web/packages/i18n/index";
|
|
7
7
|
import { DasButton as oe } from "@das-fed/ui/packages/components/button/index";
|
|
8
8
|
import { DasCollaspe as st } from "@das-fed/ui/packages/components/collaspe/index";
|
|
9
9
|
import { DasCollaspePanel as rt } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
10
10
|
import { DasAutoRegisterIcon as je, DasIcon as Ve } from "@das-fed/ui/packages/components/icon/index";
|
|
11
11
|
import { DasEmpty as Xe } from "@das-fed/ui/packages/components/empty/index";
|
|
12
12
|
import { DasTooltip as Je } from "@das-fed/ui/packages/components/tooltip/index";
|
|
13
|
-
import { getProjectInfo as it, getUserInfo as
|
|
13
|
+
import { getProjectInfo as it, getUserInfo as zt } from "@das-fed/utils/common-info/index";
|
|
14
14
|
import { vScrollbar as qe } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
15
15
|
import { vDasTooltip as xe } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
16
16
|
import { getConfig as Pt } from "@das-fed/utils/config";
|
|
@@ -72,7 +72,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
72
72
|
setup(v) {
|
|
73
73
|
const g = Le(), y = Pt(), t = v, f = J(() => t.content), d = (c) => y.baseURL + "/oss/" + c;
|
|
74
74
|
return (c, p) => {
|
|
75
|
-
var V, b, n, A, S, x, I,
|
|
75
|
+
var V, b, n, A, S, x, I, E, P, M, B, w, T, _;
|
|
76
76
|
return i(), h("div", Zt, [
|
|
77
77
|
ie((i(), h("div", $t, [
|
|
78
78
|
f.value ? (i(), h("div", tn, [
|
|
@@ -98,7 +98,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
98
98
|
(x = f.value) != null && x.handleShow && ((I = f.value) != null && I.handleProgramme) ? (i(), h("div", {
|
|
99
99
|
key: 3,
|
|
100
100
|
class: "handle-plan-content",
|
|
101
|
-
innerHTML: (
|
|
101
|
+
innerHTML: (E = f.value) == null ? void 0 : E.handleProgramme
|
|
102
102
|
}, null, 8, on)) : N("v-if", !0),
|
|
103
103
|
((M = (P = f.value) == null ? void 0 : P.userList) == null ? void 0 : M.length) > 0 ? (i(), h(
|
|
104
104
|
Ae,
|
|
@@ -230,7 +230,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
230
230
|
for (const [t, f] of g)
|
|
231
231
|
y[t] = f;
|
|
232
232
|
return y;
|
|
233
|
-
}, mt = /* @__PURE__ */ ce(kn, [["__scopeId", "data-v-9a27f323"]]), Nn = "v1", Sn = `/api/emergency/manage/${Nn}`,
|
|
233
|
+
}, mt = /* @__PURE__ */ ce(kn, [["__scopeId", "data-v-9a27f323"]]), Nn = "v1", Sn = `/api/emergency/manage/${Nn}`, Ee = He(`${Sn}`), Un = Dt.get("/permissionset/user-portal-menu"), Ln = Ee.get("/emergency-event/event/type"), En = Ee.get("/emergency-event/event/level"), zn = Ee.get("/emergency-event/engine/plan-list"), pt = Ee.get("/emergency-event/engine/event-list"), Pn = Ee.get("/emergency-event/event/group/leader"), Dn = Ee.get("/emergency-event/event/group/member"), Rn = Ee.get("/emergency-event/engine/event"), wn = Ee.post("/emergency-event/event"), In = Ee.get("/emergency-event/process-track"), gt = ["", "待核实", "待处理", "处理中", "待归档", "已归档", "已解除", "已撤回", "超时未处理"], ft = ["", "一级", "二级", "三级", "四级"], Re = (v) => v === null || typeof v > "u" || v === "", Fe = (v, g = "YYYY/MM/DD HH:mm:ss") => Re(v) ? "" : isNaN(v) ? v : we(Number(v)).format(g), xn = (v, g = !1) => v ? (g ? we(v).unix() : we(we(v).utc().format())).valueOf() : "", ht = (v) => {
|
|
234
234
|
var g;
|
|
235
235
|
return {
|
|
236
236
|
checkProgramme: (v == null ? void 0 : v.checkProgramme) || "-",
|
|
@@ -274,12 +274,12 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
274
274
|
c.value = [];
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
c.value = (I = (x = V.value) == null ? void 0 : x.voList) == null ? void 0 : I.map((
|
|
278
|
-
...
|
|
279
|
-
statusName: gt[
|
|
280
|
-
eventLevelName: ft[
|
|
281
|
-
eventStatus:
|
|
282
|
-
creationTimeStr: Fe(
|
|
277
|
+
c.value = (I = (x = V.value) == null ? void 0 : x.voList) == null ? void 0 : I.map((E) => ({
|
|
278
|
+
...E,
|
|
279
|
+
statusName: gt[E.eventStatus] || "",
|
|
280
|
+
eventLevelName: ft[E.eventLevel] || "",
|
|
281
|
+
eventStatus: E.eventStatus + "",
|
|
282
|
+
creationTimeStr: Fe(E.creationTime, "YYYY/MM/DD HH:mm")
|
|
283
283
|
}));
|
|
284
284
|
}, S = (x) => {
|
|
285
285
|
t("routerTo", "eventInfo", x), d.value = !0;
|
|
@@ -297,7 +297,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
297
297
|
(i(!0), h(
|
|
298
298
|
Ae,
|
|
299
299
|
null,
|
|
300
|
-
Be(e(c), (
|
|
300
|
+
Be(e(c), (E, P) => (i(), h("div", {
|
|
301
301
|
class: "list-item",
|
|
302
302
|
key: P
|
|
303
303
|
}, [
|
|
@@ -305,15 +305,15 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
305
305
|
m(
|
|
306
306
|
"span",
|
|
307
307
|
{
|
|
308
|
-
class: Me(["type", { urgent:
|
|
308
|
+
class: Me(["type", { urgent: E.eventCategory == "1" }])
|
|
309
309
|
},
|
|
310
|
-
L(
|
|
310
|
+
L(E.eventCategory == "1" ? e(y)("应急事件") : e(y)("演练事件")),
|
|
311
311
|
3
|
|
312
312
|
/* TEXT, CLASS */
|
|
313
313
|
),
|
|
314
314
|
ie((i(), h("span", Xn, [
|
|
315
315
|
$(
|
|
316
|
-
L(
|
|
316
|
+
L(E.eventCode || "-"),
|
|
317
317
|
1
|
|
318
318
|
/* TEXT */
|
|
319
319
|
)
|
|
@@ -325,19 +325,19 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
325
325
|
{
|
|
326
326
|
class: Me([
|
|
327
327
|
"status-span",
|
|
328
|
-
{ red: ["1", "2", "4"].includes(
|
|
329
|
-
{ green: ["3"].includes(
|
|
330
|
-
{ blue: ["5", "6", "7", "8"].includes(
|
|
328
|
+
{ red: ["1", "2", "4"].includes(E.eventStatus) },
|
|
329
|
+
{ green: ["3"].includes(E.eventStatus) },
|
|
330
|
+
{ blue: ["5", "6", "7", "8"].includes(E.eventStatus) }
|
|
331
331
|
])
|
|
332
332
|
},
|
|
333
|
-
L(
|
|
333
|
+
L(E.statusName),
|
|
334
334
|
3
|
|
335
335
|
/* TEXT, CLASS */
|
|
336
336
|
)
|
|
337
337
|
]),
|
|
338
338
|
ie((i(), h("div", qn, [
|
|
339
339
|
$(
|
|
340
|
-
L(
|
|
340
|
+
L(E.eventTitle || "-"),
|
|
341
341
|
1
|
|
342
342
|
/* TEXT */
|
|
343
343
|
)
|
|
@@ -346,7 +346,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
346
346
|
]),
|
|
347
347
|
ie((i(), h("div", Hn, [
|
|
348
348
|
$(
|
|
349
|
-
L(
|
|
349
|
+
L(E.eventLevelName ? `[${E.eventLevelName}] ` : "") + L(E.eventTypeName || "-"),
|
|
350
350
|
1
|
|
351
351
|
/* TEXT */
|
|
352
352
|
)
|
|
@@ -356,7 +356,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
356
356
|
m("div", Kn, [
|
|
357
357
|
ie((i(), h("span", On, [
|
|
358
358
|
$(
|
|
359
|
-
L(
|
|
359
|
+
L(E.creationTimeStr),
|
|
360
360
|
1
|
|
361
361
|
/* TEXT */
|
|
362
362
|
)
|
|
@@ -366,7 +366,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
366
366
|
U(e(oe), {
|
|
367
367
|
btnType: "primary-text",
|
|
368
368
|
block: "",
|
|
369
|
-
onClick: ge((M) => S(
|
|
369
|
+
onClick: ge((M) => S(E), ["stop"])
|
|
370
370
|
}, {
|
|
371
371
|
default: q(() => [
|
|
372
372
|
$(
|
|
@@ -542,7 +542,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
542
542
|
])
|
|
543
543
|
]),
|
|
544
544
|
default: q(() => {
|
|
545
|
-
var S, x, I,
|
|
545
|
+
var S, x, I, E;
|
|
546
546
|
return [
|
|
547
547
|
p[4] || (p[4] = m(
|
|
548
548
|
"div",
|
|
@@ -579,7 +579,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
579
579
|
(S = n.userVO) != null && S.name || (x = n.userVO) != null && x.phone ? (i(), h(
|
|
580
580
|
"span",
|
|
581
581
|
va,
|
|
582
|
-
L(((I = n.userVO) == null ? void 0 : I.name) || "-") + " (" + L(((
|
|
582
|
+
L(((I = n.userVO) == null ? void 0 : I.name) || "-") + " (" + L(((E = n.userVO) == null ? void 0 : E.phone) || "-") + ")",
|
|
583
583
|
1
|
|
584
584
|
/* TEXT */
|
|
585
585
|
)) : (i(), h("span", da, "-"))
|
|
@@ -690,10 +690,10 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
690
690
|
Feedback: () => Ie(Na, { ref: g, activeTab: y, infoData: t }),
|
|
691
691
|
FeedbackRef: g
|
|
692
692
|
};
|
|
693
|
-
}, Ua = { class: "urgent-panel-event-info-container" }, La = { class: "nav-tabs-div" },
|
|
693
|
+
}, Ua = { class: "urgent-panel-event-info-container" }, La = { class: "nav-tabs-div" }, Ea = {
|
|
694
694
|
key: 0,
|
|
695
695
|
class: "tab-content"
|
|
696
|
-
},
|
|
696
|
+
}, za = /* @__PURE__ */ ue({
|
|
697
697
|
__name: "EventInfo",
|
|
698
698
|
props: {
|
|
699
699
|
id: {},
|
|
@@ -738,7 +738,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
738
738
|
data: S,
|
|
739
739
|
loading: x,
|
|
740
740
|
run: I
|
|
741
|
-
} = Rn(), { error:
|
|
741
|
+
} = Rn(), { error: E, data: P, loading: M, run: B } = In(), w = async () => {
|
|
742
742
|
if (await I({ id: t.id }), await B({ id: t.id }), p.value = P.value, A.value) {
|
|
743
743
|
c.value = null;
|
|
744
744
|
return;
|
|
@@ -792,7 +792,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
792
792
|
onTabClick: n
|
|
793
793
|
}, null, 8, ["options", "activeKey"])
|
|
794
794
|
]),
|
|
795
|
-
e(x) ? N("v-if", !0) : (i(), h("div",
|
|
795
|
+
e(x) ? N("v-if", !0) : (i(), h("div", Ea, [
|
|
796
796
|
N(" 预案信息 "),
|
|
797
797
|
e(d) === "1" ? (i(), G(mt, {
|
|
798
798
|
key: 0,
|
|
@@ -810,7 +810,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
810
810
|
]);
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
}), At = /* @__PURE__ */ ce(
|
|
813
|
+
}), At = /* @__PURE__ */ ce(za, [["__scopeId", "data-v-ddba8f61"]]), Pa = { class: "urgent-panel-release-urgent-container" }, Da = { class: "urgent-panel-release-urgent" }, Ra = { class: "input-item" }, wa = { style: { display: "flex", width: "100%" } }, Ia = { style: { flex: "1" } }, xa = /* @__PURE__ */ ue({
|
|
814
814
|
__name: "ReleaseUrgent",
|
|
815
815
|
props: {
|
|
816
816
|
releaseType: {}
|
|
@@ -859,13 +859,13 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
859
859
|
chargeUsersError: ""
|
|
860
860
|
});
|
|
861
861
|
const x = (l) => {
|
|
862
|
-
let a = [].concat(...l.value),
|
|
862
|
+
let a = [].concat(...l.value), z = [];
|
|
863
863
|
a.forEach((o) => {
|
|
864
|
-
o.identityType == 1 && (o._name = o.phone ? `${o.name}(${o.phone})` : o.name),
|
|
864
|
+
o.identityType == 1 && (o._name = o.phone ? `${o.name}(${o.phone})` : o.name), z.push(o.id);
|
|
865
865
|
}), I.value === "fzr" ? n.value.chargeUsers = a : I.value === "member" && (n.value.memberUsers = a);
|
|
866
866
|
};
|
|
867
867
|
let I = r("");
|
|
868
|
-
const
|
|
868
|
+
const E = (l = "") => {
|
|
869
869
|
I.value = l;
|
|
870
870
|
let a = [];
|
|
871
871
|
l === "fzr" ? a = [].concat(n.value.chargeUsers) : l === "member" && (a = [].concat(n.value.memberUsers)), d("openUserDialog", a);
|
|
@@ -897,10 +897,10 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
897
897
|
}), ee = It(), { error: W, data: Q, loading: Te, run: te } = wn(), ae = async () => {
|
|
898
898
|
var o;
|
|
899
899
|
A.value.startTimeErrorTips = Re(n.value.startTime) && c.value === "2" ? t("必填") : "", A.value.locationErrorTips = Re(n.value.location) ? t("必填,支持手动录入也支持从地图上选择位置") : "";
|
|
900
|
-
const l = H(), a = T(),
|
|
900
|
+
const l = H(), a = T(), z = _();
|
|
901
901
|
(o = ee.value) == null || o.validate(async (C) => {
|
|
902
902
|
var Y, le, F;
|
|
903
|
-
if (l && C && !A.value.startTimeErrorTips && !A.value.locationErrorTips && a &&
|
|
903
|
+
if (l && C && !A.value.startTimeErrorTips && !A.value.locationErrorTips && a && z) {
|
|
904
904
|
let be = {
|
|
905
905
|
eventCategory: c.value,
|
|
906
906
|
eventTitle: n.value.title,
|
|
@@ -936,7 +936,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
938
|
b.value.eventType = X.value || [];
|
|
939
|
-
}, { error: re, data: ke, loading:
|
|
939
|
+
}, { error: re, data: ke, loading: ze, run: Ne } = En(), Se = async () => {
|
|
940
940
|
if (Re(n.value.eventType)) {
|
|
941
941
|
b.value.eventLevel = V.value;
|
|
942
942
|
return;
|
|
@@ -957,8 +957,8 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
957
957
|
eventTypeId: n.value.eventType,
|
|
958
958
|
eventTypeLevel: n.value.eventLevel
|
|
959
959
|
};
|
|
960
|
-
const [a,
|
|
961
|
-
a || (n.value.chargeUsers =
|
|
960
|
+
const [a, z] = await Pn(l).run();
|
|
961
|
+
a || (n.value.chargeUsers = z == null ? void 0 : z.map((o) => ({
|
|
962
962
|
...o,
|
|
963
963
|
id: o.uid,
|
|
964
964
|
_name: o.name + (o.phone ? `(${o.phone})` : "") || "",
|
|
@@ -970,8 +970,8 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
970
970
|
eventTypeId: n.value.eventType,
|
|
971
971
|
eventTypeLevel: n.value.eventLevel
|
|
972
972
|
};
|
|
973
|
-
const [a,
|
|
974
|
-
a || (n.value.memberUsers =
|
|
973
|
+
const [a, z] = await Dn(l).run();
|
|
974
|
+
a || (n.value.memberUsers = z == null ? void 0 : z.map((o) => ({
|
|
975
975
|
...o,
|
|
976
976
|
id: o.uid,
|
|
977
977
|
_name: o.name + (o.phone ? `(${o.phone})` : "") || "",
|
|
@@ -987,7 +987,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
987
987
|
submitSelect: x,
|
|
988
988
|
mapConfirm: P
|
|
989
989
|
}), (l, a) => {
|
|
990
|
-
const
|
|
990
|
+
const z = We;
|
|
991
991
|
return i(), h(
|
|
992
992
|
Ae,
|
|
993
993
|
null,
|
|
@@ -1079,7 +1079,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1079
1079
|
isClear: "",
|
|
1080
1080
|
optionsLabelKey: "_name",
|
|
1081
1081
|
optionsValueKey: "id",
|
|
1082
|
-
onOpenDialog: a[7] || (a[7] = (o) =>
|
|
1082
|
+
onOpenDialog: a[7] || (a[7] = (o) => E("fzr")),
|
|
1083
1083
|
onClearDialog: a[8] || (a[8] = (o) => w("fzr")),
|
|
1084
1084
|
error: e(S).chargeUsersError,
|
|
1085
1085
|
"onUpdate:error": a[9] || (a[9] = (o) => e(S).chargeUsersError = o),
|
|
@@ -1094,7 +1094,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1094
1094
|
optionsValueKey: "id",
|
|
1095
1095
|
isClear: "",
|
|
1096
1096
|
marginRight: "0",
|
|
1097
|
-
onOpenDialog: a[10] || (a[10] = (o) =>
|
|
1097
|
+
onOpenDialog: a[10] || (a[10] = (o) => E("member")),
|
|
1098
1098
|
onClearDialog: a[11] || (a[11] = (o) => w("member")),
|
|
1099
1099
|
error: e(S).memberUsersError,
|
|
1100
1100
|
"onUpdate:error": a[12] || (a[12] = (o) => e(S).memberUsersError = o),
|
|
@@ -1219,7 +1219,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1219
1219
|
/* STABLE */
|
|
1220
1220
|
}, 8, ["rules"])
|
|
1221
1221
|
])), [
|
|
1222
|
-
[
|
|
1222
|
+
[z, e(Te)]
|
|
1223
1223
|
])
|
|
1224
1224
|
])), [
|
|
1225
1225
|
[e(qe)]
|
|
@@ -1308,7 +1308,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1308
1308
|
r([]), r("");
|
|
1309
1309
|
const y = r(""), t = r(""), f = r([]), d = r([]), c = r(20), p = r(1), V = r(0);
|
|
1310
1310
|
De(() => {
|
|
1311
|
-
|
|
1311
|
+
E(), b();
|
|
1312
1312
|
});
|
|
1313
1313
|
const b = () => {
|
|
1314
1314
|
d.value = he.value.filter((T) => T.identityType == 1);
|
|
@@ -1332,7 +1332,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
1334
|
f.value = (D = k.data) == null ? void 0 : D.map((H) => (H.userId = H.id, H.id = H.uid, H.identityType = 1, H)), V.value = Number(k.totalCount), g.value = !1;
|
|
1335
|
-
},
|
|
1335
|
+
}, E = () => {
|
|
1336
1336
|
t.value = "", y.value = "", f.value = [], c.value = 20, p.value = 1, P();
|
|
1337
1337
|
}, P = () => {
|
|
1338
1338
|
p.value = 1, I();
|
|
@@ -1569,7 +1569,7 @@ const fl = { class: "select-map-dialog-box" }, hl = { style: { height: "100%" }
|
|
|
1569
1569
|
}
|
|
1570
1570
|
}, I = () => {
|
|
1571
1571
|
d.value = !1, f("mapConfirm", null);
|
|
1572
|
-
},
|
|
1572
|
+
}, E = async () => {
|
|
1573
1573
|
var B, w, T;
|
|
1574
1574
|
let P = "", M = {};
|
|
1575
1575
|
if (c.value.serviceProvider == 1 ? (M = (B = p.value) == null ? void 0 : B.getMapInfo(), P = M.address) : c.value.serviceProvider == 2 && (M = (w = V.value) == null ? void 0 : w.getMapInfo(), P = M.address), M && M.adCode) {
|
|
@@ -1616,7 +1616,7 @@ const fl = { class: "select-map-dialog-box" }, hl = { style: { height: "100%" }
|
|
|
1616
1616
|
btnType: "primary",
|
|
1617
1617
|
size: "middle",
|
|
1618
1618
|
style: { "margin-left": "10px" },
|
|
1619
|
-
onClick:
|
|
1619
|
+
onClick: E
|
|
1620
1620
|
}, {
|
|
1621
1621
|
default: q(() => [
|
|
1622
1622
|
$(
|
|
@@ -1675,10 +1675,10 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1675
1675
|
}, Ul = { class: "nav-detail-tit" }, Ll = {
|
|
1676
1676
|
key: 1,
|
|
1677
1677
|
class: "plan-list-wrap"
|
|
1678
|
-
},
|
|
1678
|
+
}, El = {
|
|
1679
1679
|
key: 1,
|
|
1680
1680
|
class: "no-auth"
|
|
1681
|
-
},
|
|
1681
|
+
}, zl = {
|
|
1682
1682
|
key: 1,
|
|
1683
1683
|
class: "empty-block"
|
|
1684
1684
|
}, Pl = {
|
|
@@ -1734,22 +1734,22 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1734
1734
|
}));
|
|
1735
1735
|
};
|
|
1736
1736
|
let x = r(0), I = r(0);
|
|
1737
|
-
const { error:
|
|
1737
|
+
const { error: E, data: P, loading: M, run: B } = pt(), w = async (o) => {
|
|
1738
1738
|
var C, Y;
|
|
1739
|
-
if (await B({ eventTypeCode: o }),
|
|
1739
|
+
if (await B({ eventTypeCode: o }), E.value) {
|
|
1740
1740
|
x.value = 0, I.value = 0;
|
|
1741
1741
|
return;
|
|
1742
1742
|
}
|
|
1743
1743
|
x.value = ((C = P.value) == null ? void 0 : C.unCompleted) || 0, I.value = ((Y = P.value) == null ? void 0 : Y.completed) || 0;
|
|
1744
1744
|
};
|
|
1745
1745
|
let T = r([]);
|
|
1746
|
-
const { error: _, data: k, loading: D, run: H } =
|
|
1746
|
+
const { error: _, data: k, loading: D, run: H } = zn(), Z = async (o) => {
|
|
1747
1747
|
var C;
|
|
1748
1748
|
if (await H({ eventTypeCode: o }), _.value) {
|
|
1749
1749
|
T.value = [];
|
|
1750
1750
|
return;
|
|
1751
1751
|
}
|
|
1752
|
-
T.value = (C = k.value) == null ? void 0 : C.map((Y) =>
|
|
1752
|
+
T.value = (C = k.value) == null ? void 0 : C.map((Y) => ze(Y));
|
|
1753
1753
|
}, ee = (o) => {
|
|
1754
1754
|
d.value = 1, p.value = null, c.value = {
|
|
1755
1755
|
currentMenu: "",
|
|
@@ -1802,7 +1802,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1802
1802
|
showBtn: !0
|
|
1803
1803
|
});
|
|
1804
1804
|
o || !C || !C.length || (re.value = C);
|
|
1805
|
-
},
|
|
1805
|
+
}, ze = (o) => ({
|
|
1806
1806
|
...o,
|
|
1807
1807
|
content: ht(o)
|
|
1808
1808
|
});
|
|
@@ -1820,7 +1820,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1820
1820
|
}, { locationSelectVue: u, locationSelectRef: l } = Ct(s), a = (o) => {
|
|
1821
1821
|
var C;
|
|
1822
1822
|
t("updatePanelActive", !1), (C = l.value) == null || C.openMapDialog(o);
|
|
1823
|
-
},
|
|
1823
|
+
}, z = (o) => {
|
|
1824
1824
|
var C;
|
|
1825
1825
|
O.value = o, (C = R.value) == null || C.open();
|
|
1826
1826
|
};
|
|
@@ -1913,7 +1913,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1913
1913
|
K.value ? (i(), G(mt, {
|
|
1914
1914
|
key: 0,
|
|
1915
1915
|
content: F.content
|
|
1916
|
-
}, null, 8, ["content"])) : (i(), h("div",
|
|
1916
|
+
}, null, 8, ["content"])) : (i(), h("div", El, [
|
|
1917
1917
|
C[5] || (C[5] = m(
|
|
1918
1918
|
"img",
|
|
1919
1919
|
{
|
|
@@ -1942,7 +1942,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1942
1942
|
]),
|
|
1943
1943
|
_: 1
|
|
1944
1944
|
/* STABLE */
|
|
1945
|
-
}, 8, ["activeKey"])) : (i(), h("div",
|
|
1945
|
+
}, 8, ["activeKey"])) : (i(), h("div", zl, [
|
|
1946
1946
|
e(D) ? N("v-if", !0) : (i(), G(e(Xe), { key: 0 }))
|
|
1947
1947
|
]))
|
|
1948
1948
|
])),
|
|
@@ -1963,7 +1963,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1963
1963
|
key: 4,
|
|
1964
1964
|
onOpenMapDialog: a,
|
|
1965
1965
|
onReleaseSuccess: A,
|
|
1966
|
-
onOpenUserDialog:
|
|
1966
|
+
onOpenUserDialog: z
|
|
1967
1967
|
})) : N("v-if", !0)
|
|
1968
1968
|
],
|
|
1969
1969
|
2
|
|
@@ -2091,14 +2091,14 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2091
2091
|
showNav: !1,
|
|
2092
2092
|
navName: ""
|
|
2093
2093
|
}, j && (S = j);
|
|
2094
|
-
},
|
|
2095
|
-
b.value = V.value,
|
|
2094
|
+
}, E = r(""), P = (X) => {
|
|
2095
|
+
b.value = V.value, E.value = X, n.value = c.value, c.value = {
|
|
2096
2096
|
currentMenu: "releaseurgent",
|
|
2097
2097
|
titleName: t(X === "1" ? "发布应急" : "发布演练"),
|
|
2098
2098
|
navName: t(X === "1" ? "应急内容" : "演练内容"),
|
|
2099
2099
|
showNav: !0
|
|
2100
2100
|
};
|
|
2101
|
-
}, { ReleaseUrgent: M, ReleaseUrgentRef: B } = yt({ releaseType:
|
|
2101
|
+
}, { ReleaseUrgent: M, ReleaseUrgentRef: B } = yt({ releaseType: E }), w = () => {
|
|
2102
2102
|
c.value = n.value;
|
|
2103
2103
|
}, T = () => {
|
|
2104
2104
|
var X;
|
|
@@ -2319,7 +2319,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2319
2319
|
setup(v, { expose: g, emit: y }) {
|
|
2320
2320
|
const t = v, f = y, d = r(null), c = r(null);
|
|
2321
2321
|
r(null);
|
|
2322
|
-
const p = r(null), V = r(null), b = r(null), n = r(null), A = r(null), S = r(null), x = r(null), I = r(null),
|
|
2322
|
+
const p = r(null), V = r(null), b = r(null), n = r(null), A = r(null), S = r(null), x = r(null), I = r(null), E = r(null), P = r(null), M = r(null), B = r(null), w = r(null), T = r({
|
|
2323
2323
|
pointerX: 0,
|
|
2324
2324
|
pointerY: 0,
|
|
2325
2325
|
x: 0,
|
|
@@ -2333,15 +2333,15 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2333
2333
|
bottom: { min: null, max: null }
|
|
2334
2334
|
});
|
|
2335
2335
|
St(() => {
|
|
2336
|
-
|
|
2336
|
+
E.value = !1, P.value = !1, T.value = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 }, _.value = {
|
|
2337
2337
|
left: { min: null, max: null },
|
|
2338
2338
|
right: { min: null, max: null },
|
|
2339
2339
|
top: { min: null, max: null },
|
|
2340
2340
|
bottom: { min: null, max: null }
|
|
2341
2341
|
}, B.value = null;
|
|
2342
2342
|
}), De(() => {
|
|
2343
|
-
var s, u, l, a,
|
|
2344
|
-
d.value = (s = c.value) == null ? void 0 : s.parentNode, b.value = t.parentW ? t.parentW : (u = d.value) == null ? void 0 : u.clientWidth, n.value = t.parentH ? t.parentH : (l = d.value) == null ? void 0 : l.clientHeight, A.value = t.x, S.value = t.y, x.value = b.value - (t.w === "auto" ? (a = c.value) == null ? void 0 : a.scrollWidth : t.w) - A.value, I.value = n.value - (t.h === "auto" ? (
|
|
2343
|
+
var s, u, l, a, z;
|
|
2344
|
+
d.value = (s = c.value) == null ? void 0 : s.parentNode, b.value = t.parentW ? t.parentW : (u = d.value) == null ? void 0 : u.clientWidth, n.value = t.parentH ? t.parentH : (l = d.value) == null ? void 0 : l.clientHeight, A.value = t.x, S.value = t.y, x.value = b.value - (t.w === "auto" ? (a = c.value) == null ? void 0 : a.scrollWidth : t.w) - A.value, I.value = n.value - (t.h === "auto" ? (z = c.value) == null ? void 0 : z.scrollHeight : t.h) - S.value, M.value = /* @__PURE__ */ new Map([
|
|
2345
2345
|
["mousemove", pe],
|
|
2346
2346
|
["mouseup", ae],
|
|
2347
2347
|
["mouseleave", ae],
|
|
@@ -2392,16 +2392,16 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2392
2392
|
document.documentElement.removeEventListener(l, u);
|
|
2393
2393
|
});
|
|
2394
2394
|
}, ae = (s) => {
|
|
2395
|
-
|
|
2395
|
+
E.value ? ke() : P.value && j();
|
|
2396
2396
|
}, pe = (s) => {
|
|
2397
|
-
if (!
|
|
2397
|
+
if (!E.value && !P.value)
|
|
2398
2398
|
return;
|
|
2399
2399
|
s == null || s.stopPropagation();
|
|
2400
2400
|
const u = typeof s.pageX < "u" ? s.pageX : s.touches[0].pageX, l = typeof s.pageY < "u" ? s.pageY : s.touches[0].pageY, a = {
|
|
2401
2401
|
x: (T.value.pointerX - u) / t.parentScaleX,
|
|
2402
2402
|
y: (T.value.pointerY - l) / t.parentScaleY
|
|
2403
2403
|
};
|
|
2404
|
-
if (
|
|
2404
|
+
if (E.value && re(a), P.value) {
|
|
2405
2405
|
if (t.axis === "x")
|
|
2406
2406
|
a.y = 0;
|
|
2407
2407
|
else if (t.axis === "y")
|
|
@@ -2417,20 +2417,20 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2417
2417
|
if (t.preventActiveBehavior || (p.value = !0), l && l !== 0 || (f("clicked", s), !p.value))
|
|
2418
2418
|
return;
|
|
2419
2419
|
typeof s.stopPropagation < "u" && s.stopPropagation(), typeof s.preventDefault < "u" && s.preventDefault(), t.isDraggable && (P.value = !0);
|
|
2420
|
-
const a = typeof s.pageX < "u" ? s.pageX : s.touches[0].pageX,
|
|
2421
|
-
|
|
2420
|
+
const a = typeof s.pageX < "u" ? s.pageX : s.touches[0].pageX, z = typeof s.pageY < "u" ? s.pageY : s.touches[0].pageY;
|
|
2421
|
+
ze({ pointerX: a, pointerY: z }), t.parentLimitation && (_.value = Ne());
|
|
2422
2422
|
}, K = (s) => {
|
|
2423
|
-
let u = T.value.top - s.y, l = T.value.bottom + s.y, a = T.value.left - s.x,
|
|
2423
|
+
let u = T.value.top - s.y, l = T.value.bottom + s.y, a = T.value.left - s.x, z = T.value.right + s.x;
|
|
2424
2424
|
if (t.snapToGrid) {
|
|
2425
|
-
let o = !0, C = !0, Y = u - Math.floor(u / t.gridY) * t.gridY, le = n.value - l - Math.floor((n.value - l) / t.gridY) * t.gridY, F = a - Math.floor(a / t.gridX) * t.gridX, be = b.value -
|
|
2426
|
-
Y > t.gridY / 2 && (Y -= t.gridY), le > t.gridY / 2 && (le -= t.gridY), F > t.gridX / 2 && (F -= t.gridX), be > t.gridX / 2 && (be -= t.gridX), Math.abs(le) < Math.abs(Y) && (o = !1), Math.abs(be) < Math.abs(F) && (C = !1), u -= o ? Y : le, l = n.value - H.value - u, a -= C ? F : be,
|
|
2425
|
+
let o = !0, C = !0, Y = u - Math.floor(u / t.gridY) * t.gridY, le = n.value - l - Math.floor((n.value - l) / t.gridY) * t.gridY, F = a - Math.floor(a / t.gridX) * t.gridX, be = b.value - z - Math.floor((b.value - z) / t.gridX) * t.gridX;
|
|
2426
|
+
Y > t.gridY / 2 && (Y -= t.gridY), le > t.gridY / 2 && (le -= t.gridY), F > t.gridX / 2 && (F -= t.gridX), be > t.gridX / 2 && (be -= t.gridX), Math.abs(le) < Math.abs(Y) && (o = !1), Math.abs(be) < Math.abs(F) && (C = !1), u -= o ? Y : le, l = n.value - H.value - u, a -= C ? F : be, z = b.value - D.value - a;
|
|
2427
2427
|
}
|
|
2428
2428
|
({
|
|
2429
2429
|
newLeft: A.value,
|
|
2430
2430
|
newRight: x.value,
|
|
2431
2431
|
newTop: S.value,
|
|
2432
2432
|
newBottom: I.value
|
|
2433
|
-
} = R({ newLeft: a, newRight:
|
|
2433
|
+
} = R({ newLeft: a, newRight: z, newTop: u, newBottom: l })), f("dragging", ee.value);
|
|
2434
2434
|
}, j = () => {
|
|
2435
2435
|
P.value = !1, f("dragging", ee.value), f("dragstop", ee.value), T.value = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 }, _.value = {
|
|
2436
2436
|
left: { min: null, max: null },
|
|
@@ -2441,11 +2441,11 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2441
2441
|
}, ve = (s, u, l = !1) => {
|
|
2442
2442
|
if ((!t.isResizable || !p.value) && !l)
|
|
2443
2443
|
return;
|
|
2444
|
-
|
|
2445
|
-
const a = typeof u.pageX < "u" ? u.pageX : u.touches[0].pageX,
|
|
2446
|
-
|
|
2444
|
+
E.value = !0;
|
|
2445
|
+
const a = typeof u.pageX < "u" ? u.pageX : u.touches[0].pageX, z = typeof u.pageY < "u" ? u.pageY : u.touches[0].pageY;
|
|
2446
|
+
ze({ pointerX: a, pointerY: z }), B.value = s, _.value = Se();
|
|
2447
2447
|
}, re = (s) => {
|
|
2448
|
-
let u = T.value.top, l = T.value.bottom, a = T.value.left,
|
|
2448
|
+
let u = T.value.top, l = T.value.bottom, a = T.value.left, z = T.value.right;
|
|
2449
2449
|
switch (B.value[0]) {
|
|
2450
2450
|
case "b":
|
|
2451
2451
|
l = T.value.bottom + s.y, t.snapToGrid && (l = n.value - Math.round((n.value - l) / t.gridY) * t.gridY);
|
|
@@ -2456,20 +2456,20 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2456
2456
|
}
|
|
2457
2457
|
switch (B.value[1]) {
|
|
2458
2458
|
case "r":
|
|
2459
|
-
|
|
2459
|
+
z = T.value.right + s.x, t.snapToGrid && (z = b.value - Math.round((b.value - z) / t.gridX) * t.gridX);
|
|
2460
2460
|
break;
|
|
2461
2461
|
case "l":
|
|
2462
2462
|
a = T.value.left - s.x, t.snapToGrid && (a = Math.round(a / t.gridX) * t.gridX);
|
|
2463
2463
|
break;
|
|
2464
2464
|
}
|
|
2465
|
-
({ newLeft: a, newRight:
|
|
2465
|
+
({ newLeft: a, newRight: z, newTop: u, newBottom: l } = R({ newLeft: a, newRight: z, newTop: u, newBottom: l })), t.aspectRatio && ({ newLeft: a, newRight: z, newTop: u, newBottom: l } = O({
|
|
2466
2466
|
newLeft: a,
|
|
2467
|
-
newRight:
|
|
2467
|
+
newRight: z,
|
|
2468
2468
|
newTop: u,
|
|
2469
2469
|
newBottom: l
|
|
2470
|
-
})), A.value = a, x.value =
|
|
2470
|
+
})), A.value = a, x.value = z, S.value = u, I.value = l, f("resizing", ee.value);
|
|
2471
2471
|
}, ke = () => {
|
|
2472
|
-
|
|
2472
|
+
E.value = !1, T.value = {
|
|
2473
2473
|
pointerX: 0,
|
|
2474
2474
|
pointerY: 0,
|
|
2475
2475
|
x: 0,
|
|
@@ -2482,7 +2482,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2482
2482
|
top: { min: null, max: null },
|
|
2483
2483
|
bottom: { min: null, max: null }
|
|
2484
2484
|
}, f("resizing", ee.value), f("resizestop", ee.value);
|
|
2485
|
-
},
|
|
2485
|
+
}, ze = ({ pointerX: s, pointerY: u }) => {
|
|
2486
2486
|
T.value.pointerX = s, T.value.pointerY = u, T.value.left = A.value, T.value.right = x.value, T.value.top = S.value, T.value.bottom = I.value, T.value.width = D.value, T.value.height = H.value, w.value = D.value / H.value;
|
|
2487
2487
|
}, Ne = () => ({
|
|
2488
2488
|
left: { min: 0, max: b.value - D.value },
|
|
@@ -2500,7 +2500,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2500
2500
|
bottom: { min: s, max: I.value + (H.value - u) }
|
|
2501
2501
|
};
|
|
2502
2502
|
if (t.aspectRatio) {
|
|
2503
|
-
const
|
|
2503
|
+
const z = {
|
|
2504
2504
|
left: {
|
|
2505
2505
|
min: A.value - Math.min(S.value, I.value) * w.value * 2,
|
|
2506
2506
|
max: A.value + (H.value - u) / 2 * w.value * 2
|
|
@@ -2519,17 +2519,17 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
2521
|
B.value[0] === "m" ? (a.left = {
|
|
2522
|
-
min: Math.max(a.left.min,
|
|
2523
|
-
max: Math.min(a.left.max,
|
|
2522
|
+
min: Math.max(a.left.min, z.left.min),
|
|
2523
|
+
max: Math.min(a.left.max, z.left.max)
|
|
2524
2524
|
}, a.right = {
|
|
2525
|
-
min: Math.max(a.right.min,
|
|
2526
|
-
max: Math.min(a.right.max,
|
|
2525
|
+
min: Math.max(a.right.min, z.right.min),
|
|
2526
|
+
max: Math.min(a.right.max, z.right.max)
|
|
2527
2527
|
}) : B.value[1] === "m" && (a.top = {
|
|
2528
|
-
min: Math.max(a.top.min,
|
|
2529
|
-
max: Math.min(a.top.max,
|
|
2528
|
+
min: Math.max(a.top.min, z.top.min),
|
|
2529
|
+
max: Math.min(a.top.max, z.top.max)
|
|
2530
2530
|
}, a.bottom = {
|
|
2531
|
-
min: Math.max(a.bottom.min,
|
|
2532
|
-
max: Math.min(a.bottom.max,
|
|
2531
|
+
min: Math.max(a.bottom.min, z.bottom.min),
|
|
2532
|
+
max: Math.min(a.bottom.max, z.bottom.max)
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
2535
|
return a;
|
|
@@ -2537,23 +2537,23 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2537
2537
|
let l = u;
|
|
2538
2538
|
return s.min !== null && u < s.min ? l = s.min : s.max !== null && s.max < u && (l = s.max), l;
|
|
2539
2539
|
}, R = (s) => {
|
|
2540
|
-
let { newRight: u, newLeft: l, newBottom: a, newTop:
|
|
2541
|
-
return l = de(_.value.left, l), u = de(_.value.right, u),
|
|
2540
|
+
let { newRight: u, newLeft: l, newBottom: a, newTop: z } = s;
|
|
2541
|
+
return l = de(_.value.left, l), u = de(_.value.right, u), z = de(_.value.top, z), a = de(_.value.bottom, a), {
|
|
2542
2542
|
newLeft: l,
|
|
2543
2543
|
newRight: u,
|
|
2544
|
-
newTop:
|
|
2544
|
+
newTop: z,
|
|
2545
2545
|
newBottom: a
|
|
2546
2546
|
};
|
|
2547
2547
|
}, O = (s) => {
|
|
2548
|
-
let { newLeft: u, newRight: l, newTop: a, newBottom:
|
|
2548
|
+
let { newLeft: u, newRight: l, newTop: a, newBottom: z } = s, o = b.value - u - l, C = n.value - a - z;
|
|
2549
2549
|
if (B.value[1] === "m") {
|
|
2550
2550
|
const Y = C - T.value.height;
|
|
2551
2551
|
u -= Y * w.value / 2, l -= Y * w.value / 2;
|
|
2552
2552
|
} else if (B.value[0] === "m") {
|
|
2553
2553
|
const Y = o - T.value.width;
|
|
2554
|
-
a -= Y / w.value / 2,
|
|
2555
|
-
} else o / C > w.value ? (o = w.value * C, B.value[1] === "l" ? u = b.value - l - o : l = b.value - u - o) : (C = o / w.value, B.value[0] === "t" ? a = n.value -
|
|
2556
|
-
return { newLeft: u, newRight: l, newTop: a, newBottom:
|
|
2554
|
+
a -= Y / w.value / 2, z -= Y / w.value / 2;
|
|
2555
|
+
} else o / C > w.value ? (o = w.value * C, B.value[1] === "l" ? u = b.value - l - o : l = b.value - u - o) : (C = o / w.value, B.value[0] === "t" ? a = n.value - z - C : z = n.value - a - C);
|
|
2556
|
+
return { newLeft: u, newRight: l, newTop: a, newBottom: z };
|
|
2557
2557
|
};
|
|
2558
2558
|
return me(
|
|
2559
2559
|
() => p.value,
|
|
@@ -2575,7 +2575,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2575
2575
|
), me(
|
|
2576
2576
|
() => t.x,
|
|
2577
2577
|
(s, u) => {
|
|
2578
|
-
if (
|
|
2578
|
+
if (E.value || P.value || s === A.value)
|
|
2579
2579
|
return;
|
|
2580
2580
|
const l = u - s;
|
|
2581
2581
|
X({ pageX: A.value, pageY: S.value }), K({ x: l, y: 0 }), Ue(() => {
|
|
@@ -2585,7 +2585,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2585
2585
|
), me(
|
|
2586
2586
|
() => t.y,
|
|
2587
2587
|
(s, u) => {
|
|
2588
|
-
if (
|
|
2588
|
+
if (E.value || P.value || s === S.value)
|
|
2589
2589
|
return;
|
|
2590
2590
|
const l = u - s;
|
|
2591
2591
|
X({ pageX: A.value, pageY: S.value }), K({ x: 0, y: l }), Ue(() => {
|
|
@@ -2595,7 +2595,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2595
2595
|
), me(
|
|
2596
2596
|
() => t.w,
|
|
2597
2597
|
(s, u) => {
|
|
2598
|
-
if (
|
|
2598
|
+
if (E.value || P.value || s === D.value)
|
|
2599
2599
|
return;
|
|
2600
2600
|
const l = "mr", a = u - s;
|
|
2601
2601
|
ve(l, { pageX: x.value, pageY: S.value + H.value / 2 }, !0), re({ x: a, y: 0 }), Ue(() => {
|
|
@@ -2605,7 +2605,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2605
2605
|
), me(
|
|
2606
2606
|
() => t.h,
|
|
2607
2607
|
(s, u) => {
|
|
2608
|
-
if (
|
|
2608
|
+
if (E.value || P.value || s === H.value)
|
|
2609
2609
|
return;
|
|
2610
2610
|
const l = "bm", a = u - s;
|
|
2611
2611
|
ve(l, { pageX: A.value + D.value / 2, pageY: I.value }, !0), re({ x: 0, y: a }), Ue(() => {
|
|
@@ -2676,7 +2676,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2676
2676
|
}, Fl = { class: "urgent-panel-wrap" }, Wl = { class: "urgent-monitor-panel-wrap" }, jl = /* @__PURE__ */ ue({
|
|
2677
2677
|
__name: "index",
|
|
2678
2678
|
setup(v, { expose: g }) {
|
|
2679
|
-
const y = r(null), t = r(!0), f = r(null), d = r(!1), c = r(null), p = r(!1), V = r(!0), b = r(0), n = r(0), A = r(0), S = r(0), x = r(0), I = r(0),
|
|
2679
|
+
const y = r(null), t = r(!0), f = r(null), d = r(!1), c = r(null), p = r(!1), V = r(!0), b = r(0), n = r(0), A = r(0), S = r(0), x = r(0), I = r(0), E = r(0), P = r(0), M = r(0), B = Yt();
|
|
2680
2680
|
r([]), r({});
|
|
2681
2681
|
const w = r(null), T = r(null), _ = r(null), k = r(null), D = r(48), H = r(0), Z = J(() => document.body.clientHeight || 800);
|
|
2682
2682
|
J(() => window.screen.width * 0.4 || 500);
|
|
@@ -2757,13 +2757,13 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2757
2757
|
}, re = () => {
|
|
2758
2758
|
t.value = !0, d.value = !1;
|
|
2759
2759
|
}, ke = (R, O = 0, s = 0, u) => {
|
|
2760
|
-
ae(), fe.urgentEventTypeCode = R, W.value = JSON.parse(JSON.stringify(Q.value)), A.value = Q.value.minWidth, S.value = Q.value.minHeight, O = O || Q.value.right, s = s || Q.value.top, d.value = !0, t.value && ve(O, s, u), M.value = JSON.parse(JSON.stringify(
|
|
2761
|
-
const l =
|
|
2760
|
+
ae(), fe.urgentEventTypeCode = R, W.value = JSON.parse(JSON.stringify(Q.value)), A.value = Q.value.minWidth, S.value = Q.value.minHeight, O = O || Q.value.right, s = s || Q.value.top, d.value = !0, t.value && ve(O, s, u), M.value = JSON.parse(JSON.stringify(E.value));
|
|
2761
|
+
const l = zt();
|
|
2762
2762
|
l && (fe.userId = l.id, fe.userName = l.name), Ue(() => {
|
|
2763
2763
|
var a;
|
|
2764
2764
|
(a = f.value) == null || a.setConfigData(R);
|
|
2765
2765
|
});
|
|
2766
|
-
},
|
|
2766
|
+
}, ze = () => {
|
|
2767
2767
|
t.value = !0, p.value = !1;
|
|
2768
2768
|
}, Ne = (R, O, s) => {
|
|
2769
2769
|
fe.urgentEventTypeCode = R, p.value = !0, Ue(() => {
|
|
@@ -2775,13 +2775,13 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2775
2775
|
const s = document.getElementById("urgent-panel-link-dialog-test");
|
|
2776
2776
|
s && (R = s.getBoundingClientRect().top, O = s.getBoundingClientRect().left), b.value = document.documentElement.clientHeight - R, n.value = document.documentElement.clientWidth - O;
|
|
2777
2777
|
}, de = (R) => {
|
|
2778
|
-
Se(), R ? (W.value.top = Q.value.top, W.value.right = Q.value.right, x.value = W.value.width, I.value = W.value.height, A.value = Q.value.minWidth, S.value = Q.value.minHeight,
|
|
2778
|
+
Se(), R ? (W.value.top = Q.value.top, W.value.right = Q.value.right, x.value = W.value.width, I.value = W.value.height, A.value = Q.value.minWidth, S.value = Q.value.minHeight, E.value = n.value - W.value.right - W.value.width, P.value = W.value.top) : (x.value = W.value.width, I.value = W.value.height, E.value = n.value - W.value.right - W.value.width, P.value = W.value.top), M.value = JSON.parse(JSON.stringify(E.value)), t.value = !1;
|
|
2779
2779
|
};
|
|
2780
2780
|
return g({
|
|
2781
2781
|
urgentPanelShow: ke,
|
|
2782
2782
|
closeUrgentPanel: re,
|
|
2783
2783
|
urgentMonitorPanelShow: Ne,
|
|
2784
|
-
closeUrgentMonitorPanel:
|
|
2784
|
+
closeUrgentMonitorPanel: ze
|
|
2785
2785
|
}), (R, O) => (i(), h("div", Gl, [
|
|
2786
2786
|
m(
|
|
2787
2787
|
"div",
|
|
@@ -2813,7 +2813,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2813
2813
|
h: I.value,
|
|
2814
2814
|
minh: S.value,
|
|
2815
2815
|
minw: A.value,
|
|
2816
|
-
x:
|
|
2816
|
+
x: E.value,
|
|
2817
2817
|
y: P.value,
|
|
2818
2818
|
onResizing: ye,
|
|
2819
2819
|
onClicked: pe,
|
|
@@ -2852,7 +2852,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2852
2852
|
ref_key: "urgentMonitorPanel",
|
|
2853
2853
|
ref: c,
|
|
2854
2854
|
heardHeight: D.value,
|
|
2855
|
-
onClosePanel:
|
|
2855
|
+
onClosePanel: ze
|
|
2856
2856
|
}, null, 8, ["heardHeight"])) : N("v-if", !0)
|
|
2857
2857
|
]),
|
|
2858
2858
|
_: 1
|
|
@@ -2913,11 +2913,17 @@ const kt = () => {
|
|
|
2913
2913
|
汉字: { "zh-CN": "汉字", en: "Chinese characters" },
|
|
2914
2914
|
首尾不允许为空外: { "zh-CN": "首尾不允许为空外", en: "Leading and trailing are not allowed to be empty" },
|
|
2915
2915
|
支持任意字符: { "zh-CN": "支持任意字符", en: "Support any characters" },
|
|
2916
|
-
支持手动录入也支持从地图上选择位置: {
|
|
2916
|
+
支持手动录入也支持从地图上选择位置: {
|
|
2917
|
+
"zh-CN": "支持手动录入也支持从地图上选择位置",
|
|
2918
|
+
en: "Support manual entry and selecting location from map"
|
|
2919
|
+
},
|
|
2917
2920
|
发布成功: { "zh-CN": "发布成功", en: "Publish success" },
|
|
2918
2921
|
选择位置: { "zh-CN": "选择位置", en: "Select Location" },
|
|
2919
2922
|
确定: { "zh-CN": "确定", en: "OK" },
|
|
2920
|
-
请先完善第三方地图相关配置: {
|
|
2923
|
+
请先完善第三方地图相关配置: {
|
|
2924
|
+
"zh-CN": "请先完善第三方地图相关配置",
|
|
2925
|
+
en: "Please Complete Third-party Map Configuration First"
|
|
2926
|
+
},
|
|
2921
2927
|
反馈记录: { "zh-CN": "反馈记录", en: "Feedback Record" },
|
|
2922
2928
|
收起: { "zh-CN": "收起", en: "Collapse" },
|
|
2923
2929
|
展开: { "zh-CN": "展开", en: "Expand" },
|
|
@@ -2929,8 +2935,8 @@ const kt = () => {
|
|
|
2929
2935
|
处理阶段: { "zh-CN": "处理阶段", en: "Processing phase" },
|
|
2930
2936
|
应急人员: { "zh-CN": "应急人员", en: "Emergency personnel" },
|
|
2931
2937
|
应急物资: { "zh-CN": "应急物资", en: "Emergency supplies" },
|
|
2932
|
-
归档记录: { "zh-CN": "归档记录" },
|
|
2933
|
-
经济损失: { "zh-CN": "经济损失" },
|
|
2938
|
+
归档记录: { "zh-CN": "归档记录", en: "Archived records" },
|
|
2939
|
+
经济损失: { "zh-CN": "经济损失", en: "Economic loss" },
|
|
2934
2940
|
元: { "zh-CN": "元", en: "Yuan" },
|
|
2935
2941
|
人员伤亡: { "zh-CN": "人员伤亡", en: "Personnel casualties" },
|
|
2936
2942
|
人: { "zh-CN": "人", en: "Person" },
|
|
@@ -2945,9 +2951,9 @@ const kt = () => {
|
|
|
2945
2951
|
保存: { "zh-CN": "保存", en: "Save" },
|
|
2946
2952
|
发布应急: { "zh-CN": "发布应急", en: "Release emergency" },
|
|
2947
2953
|
发布演练: { "zh-CN": "发布演练", en: "Release drill" },
|
|
2948
|
-
应急事件: { "zh-CN": "应急事件", en: "
|
|
2949
|
-
应急事件列表: { "zh-CN": "应急事件列表" },
|
|
2950
|
-
列表详情: { "zh-CN": "列表详情" },
|
|
2954
|
+
应急事件: { "zh-CN": "应急事件", en: "Emergency event" },
|
|
2955
|
+
应急事件列表: { "zh-CN": "应急事件列表", en: "Emergency event list" },
|
|
2956
|
+
列表详情: { "zh-CN": "列表详情", en: "List details" },
|
|
2951
2957
|
详情: { "zh-CN": "详情", en: "Details" },
|
|
2952
2958
|
应急内容: { "zh-CN": "应急内容", en: "Emergency content" },
|
|
2953
2959
|
演练内容: { "zh-CN": "演练内容", en: "Drill content" },
|
|
@@ -2961,7 +2967,7 @@ const kt = () => {
|
|
|
2961
2967
|
保养记录: { "zh-CN": "保养记录", en: "Maintenance Record" },
|
|
2962
2968
|
维修记录: { "zh-CN": "维修记录", en: "Repair Record" }
|
|
2963
2969
|
};
|
|
2964
|
-
|
|
2970
|
+
Et(Zl);
|
|
2965
2971
|
const Ho = Ot(Tt), Ko = { name: "应急面板" };
|
|
2966
2972
|
export {
|
|
2967
2973
|
Ho as DasUrgentPanelModal,
|