@das-fed/ui 6.4.0-dev.55.2 → 6.4.0-dev.55.4
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/change-enterprises/index.js +2 -2
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +33 -33
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -4
- package/packages/business-components/currency-page/index.js +4 -4
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +4 -0
- package/packages/business-components/device-panel/index.js +6566 -6552
- 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/index.js +44 -44
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +101 -101
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +1 -1
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +82 -82
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +488 -488
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +1 -1
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +1 -1
- package/packages/business-components/process-search-form/index.js +442 -442
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/upload-file/index.js +11 -11
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +108 -108
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.d.ts +9 -3
- package/packages/components/breadcrumb/index.js +48 -45
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
- package/packages/components/breadcrumb/src/type.d.ts +1 -0
- package/packages/components/breadcrumb/style.css +1 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -46
- package/packages/components/calendar/index.js +33 -33
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -1
- package/packages/components/cascader/index.js +12 -14
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -1
- package/packages/components/color-picker/index.js +84 -83
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -1
- package/packages/components/custom-search-item/index.js +1 -3
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +3 -3
- package/packages/components/date-picker/index.js +519 -518
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -6
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -10
- package/packages/components/dimple-layout/index.js +8 -8
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -1
- package/packages/components/dropdown/index.js +1 -3
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +52 -52
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/index.js +11 -11
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/index.js +142 -142
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +4 -4
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/pagination/index.js +132 -131
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/index.d.ts +3 -0
- package/packages/components/popover/index.js +24 -23
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -4
- package/packages/components/rich-editor/index.js +3138 -3128
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/index.js +156 -156
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +5 -5
- package/packages/components/select/index.js +2 -2
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -4
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
- package/packages/components/table/i18n/index.d.ts +12 -0
- package/packages/components/table/index.js +3302 -3233
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/type.d.ts +5 -1
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +23 -23
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +5 -5
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +216 -216
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/index.js +32 -32
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +6 -6
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -2,7 +2,7 @@ import '@das-fed/ui/packages/business-components/urgent-panel/style.css';
|
|
|
2
2
|
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
|
-
import { reactive as kt, defineComponent as ue, computed as J, openBlock as i, createElementBlock as h, withDirectives as ie, createVNode as U, unref as e, toDisplayString as E, createCommentVNode as k, Fragment as Ae, createElementVNode as m, renderList as
|
|
5
|
+
import { reactive as kt, defineComponent as ue, computed as J, openBlock as i, createElementBlock as h, withDirectives as ie, createVNode as U, unref as e, toDisplayString as E, createCommentVNode as k, Fragment as Ae, createElementVNode as m, renderList as Be, createTextVNode as $, ref as r, onMounted as Re, createBlock as G, withCtx as q, normalizeClass as Me, withModifiers as ge, watch as me, nextTick as Ue, h as we, isRef as _e, normalizeStyle as Oe, onBeforeMount as St, onBeforeUnmount as ot, renderSlot as Ut, watchEffect as Qe, Transition as $e, createApp as Et } from "vue";
|
|
6
6
|
import { i18n as Pe, t as se, setI18nRule as zt } 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";
|
|
@@ -12,7 +12,7 @@ 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
13
|
import { getProjectInfo as it, getUserInfo as Lt } from "@das-fed/utils/common-info/index";
|
|
14
14
|
import { vScrollbar as qe } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
15
|
-
import { vDasTooltip as
|
|
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";
|
|
17
17
|
import { DasSpin as ut } from "@das-fed/ui/packages/components/spin/index";
|
|
18
18
|
import { createService as He } from "@das-fed/utils/create-api-service";
|
|
@@ -21,11 +21,11 @@ import Ie from "dayjs";
|
|
|
21
21
|
import { DasTabs as Dt } from "@das-fed/ui/packages/components/tabs/index";
|
|
22
22
|
import { DasProcessLog as It } from "@das-fed/ui/packages/business-components/process-log/index";
|
|
23
23
|
import { DasImageViewer as ct } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
24
|
-
import { DasFormRef as wt, DasForm as
|
|
24
|
+
import { DasFormRef as wt, DasForm as xt } from "@das-fed/ui/packages/components/form/index";
|
|
25
25
|
import { DasMessage as vt } from "@das-fed/ui/packages/components/message/index";
|
|
26
26
|
import { DasFormItem as Ce } from "@das-fed/ui/packages/components/form-item/index";
|
|
27
27
|
import { DasInput as et } from "@das-fed/ui/packages/components/input/index";
|
|
28
|
-
import { DasSelect as
|
|
28
|
+
import { DasSelect as Bt } from "@das-fed/ui/packages/components/select/index";
|
|
29
29
|
import { DasDialog as dt } from "@das-fed/ui/packages/components/dialog/index";
|
|
30
30
|
import { DasSearch as Mt } from "@das-fed/ui/packages/components/search/index";
|
|
31
31
|
import { DasTable as _t, DasTableColumn as Ge } from "@das-fed/ui/packages/components/table/index";
|
|
@@ -72,7 +72,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
72
72
|
setup(v) {
|
|
73
73
|
const g = Ee(), 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,
|
|
75
|
+
var V, b, n, A, S, x, w, z, P, M, B, I, N, _;
|
|
76
76
|
return i(), h("div", Zt, [
|
|
77
77
|
ie((i(), h("div", $t, [
|
|
78
78
|
f.value ? (i(), h("div", tn, [
|
|
@@ -95,7 +95,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
95
95
|
1
|
|
96
96
|
/* TEXT */
|
|
97
97
|
)) : k("v-if", !0),
|
|
98
|
-
(
|
|
98
|
+
(x = f.value) != null && x.handleShow && ((w = f.value) != null && w.handleProgramme) ? (i(), h("div", {
|
|
99
99
|
key: 3,
|
|
100
100
|
class: "handle-plan-content",
|
|
101
101
|
innerHTML: (z = f.value) == null ? void 0 : z.handleProgramme
|
|
@@ -122,7 +122,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
122
122
|
(i(!0), h(
|
|
123
123
|
Ae,
|
|
124
124
|
null,
|
|
125
|
-
|
|
125
|
+
Be((B = f.value) == null ? void 0 : B.userList, (T, R) => (i(), h("div", {
|
|
126
126
|
class: "urgent-user",
|
|
127
127
|
key: R
|
|
128
128
|
}, [
|
|
@@ -179,7 +179,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
179
179
|
(i(!0), h(
|
|
180
180
|
Ae,
|
|
181
181
|
null,
|
|
182
|
-
|
|
182
|
+
Be((_ = f.value) == null ? void 0 : _.supplyList, (T, R) => (i(), h("div", {
|
|
183
183
|
class: "urgent-supplies",
|
|
184
184
|
key: R
|
|
185
185
|
}, [
|
|
@@ -204,7 +204,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
204
204
|
/* TEXT */
|
|
205
205
|
)
|
|
206
206
|
])), [
|
|
207
|
-
[e(
|
|
207
|
+
[e(xe)]
|
|
208
208
|
])
|
|
209
209
|
])
|
|
210
210
|
]))),
|
|
@@ -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(Tn, [["__scopeId", "data-v-9a27f323"]]), kn = "v1", Sn = `/api/emergency/manage/${kn}`, ze = He(`${Sn}`), Un = Rt.get("/permissionset/user-portal-menu"), En = ze.get("/emergency-event/event/type"), zn = ze.get("/emergency-event/event/level"), Ln = ze.get("/emergency-event/engine/plan-list"), pt = ze.get("/emergency-event/engine/event-list"), Pn = ze.get("/emergency-event/event/group/leader"), Rn = ze.get("/emergency-event/event/group/member"), Dn = ze.get("/emergency-event/engine/event"), In = ze.post("/emergency-event/event"), wn = ze.get("/emergency-event/process-track"), gt = ["", "待核实", "待处理", "处理中", "待归档", "已归档", "已解除", "已撤回", "超时未处理"], ft = ["", "一级", "二级", "三级", "四级"], De = (v) => v === null || typeof v > "u" || v === "", Fe = (v, g = "YYYY/MM/DD HH:mm:ss") => De(v) ? "" : isNaN(v) ? v : Ie(Number(v)).format(g),
|
|
233
|
+
}, mt = /* @__PURE__ */ ce(Tn, [["__scopeId", "data-v-9a27f323"]]), kn = "v1", Sn = `/api/emergency/manage/${kn}`, ze = He(`${Sn}`), Un = Rt.get("/permissionset/user-portal-menu"), En = ze.get("/emergency-event/event/type"), zn = ze.get("/emergency-event/event/level"), Ln = ze.get("/emergency-event/engine/plan-list"), pt = ze.get("/emergency-event/engine/event-list"), Pn = ze.get("/emergency-event/event/group/leader"), Rn = ze.get("/emergency-event/event/group/member"), Dn = ze.get("/emergency-event/engine/event"), In = ze.post("/emergency-event/event"), wn = ze.get("/emergency-event/process-track"), gt = ["", "待核实", "待处理", "处理中", "待归档", "已归档", "已解除", "已撤回", "超时未处理"], ft = ["", "一级", "二级", "三级", "四级"], De = (v) => v === null || typeof v > "u" || v === "", Fe = (v, g = "YYYY/MM/DD HH:mm:ss") => De(v) ? "" : isNaN(v) ? v : Ie(Number(v)).format(g), xn = (v, g = !1) => v ? (g ? Ie(v).unix() : Ie(Ie(v).utc().format())).valueOf() : "", ht = (v) => {
|
|
234
234
|
var g;
|
|
235
235
|
return {
|
|
236
236
|
checkProgramme: (v == null ? void 0 : v.checkProgramme) || "-",
|
|
@@ -247,7 +247,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
247
247
|
};
|
|
248
248
|
})
|
|
249
249
|
};
|
|
250
|
-
},
|
|
250
|
+
}, Bn = { class: "urgent-panel-event-record-container" }, Mn = {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "content-container-scroll"
|
|
253
253
|
}, _n = { class: "content-container-content" }, Vn = { class: "title-line" }, Xn = { class: "title" }, qn = { class: "name-line" }, Hn = { class: "second-line" }, Kn = { class: "time-line" }, On = { class: "time" }, Yn = {
|
|
@@ -269,22 +269,22 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
269
269
|
loading: b,
|
|
270
270
|
run: n
|
|
271
271
|
} = pt(), A = async () => {
|
|
272
|
-
var
|
|
272
|
+
var x, w;
|
|
273
273
|
if (await n({ eventTypeCode: fe == null ? void 0 : fe.urgentEventTypeCode }), p.value) {
|
|
274
274
|
c.value = [];
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
c.value = (w = (
|
|
277
|
+
c.value = (w = (x = V.value) == null ? void 0 : x.voList) == null ? void 0 : w.map((z) => ({
|
|
278
278
|
...z,
|
|
279
279
|
statusName: gt[z.eventStatus] || "",
|
|
280
280
|
eventLevelName: ft[z.eventLevel] || "",
|
|
281
281
|
eventStatus: z.eventStatus + "",
|
|
282
282
|
creationTimeStr: Fe(z.creationTime, "YYYY/MM/DD HH:mm")
|
|
283
283
|
}));
|
|
284
|
-
}, S = (
|
|
285
|
-
t("routerTo", "eventInfo",
|
|
284
|
+
}, S = (x) => {
|
|
285
|
+
t("routerTo", "eventInfo", x), d.value = !0;
|
|
286
286
|
};
|
|
287
|
-
return (
|
|
287
|
+
return (x, w) => (i(), h("div", Bn, [
|
|
288
288
|
e(d) ? k("v-if", !0) : (i(), G(e(ut), {
|
|
289
289
|
key: 0,
|
|
290
290
|
full: "",
|
|
@@ -297,7 +297,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
297
297
|
(i(!0), h(
|
|
298
298
|
Ae,
|
|
299
299
|
null,
|
|
300
|
-
|
|
300
|
+
Be(e(c), (z, P) => (i(), h("div", {
|
|
301
301
|
class: "list-item",
|
|
302
302
|
key: P
|
|
303
303
|
}, [
|
|
@@ -318,7 +318,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
318
318
|
/* TEXT */
|
|
319
319
|
)
|
|
320
320
|
])), [
|
|
321
|
-
[e(
|
|
321
|
+
[e(xe)]
|
|
322
322
|
]),
|
|
323
323
|
m(
|
|
324
324
|
"span",
|
|
@@ -342,7 +342,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
342
342
|
/* TEXT */
|
|
343
343
|
)
|
|
344
344
|
])), [
|
|
345
|
-
[e(
|
|
345
|
+
[e(xe)]
|
|
346
346
|
]),
|
|
347
347
|
ie((i(), h("div", Hn, [
|
|
348
348
|
$(
|
|
@@ -351,7 +351,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
351
351
|
/* TEXT */
|
|
352
352
|
)
|
|
353
353
|
])), [
|
|
354
|
-
[e(
|
|
354
|
+
[e(xe)]
|
|
355
355
|
]),
|
|
356
356
|
m("div", Kn, [
|
|
357
357
|
ie((i(), h("span", On, [
|
|
@@ -361,7 +361,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
361
361
|
/* TEXT */
|
|
362
362
|
)
|
|
363
363
|
])), [
|
|
364
|
-
[e(
|
|
364
|
+
[e(xe)]
|
|
365
365
|
]),
|
|
366
366
|
U(e(oe), {
|
|
367
367
|
btnType: "primary-text",
|
|
@@ -491,7 +491,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
491
491
|
(i(!0), h(
|
|
492
492
|
Ae,
|
|
493
493
|
null,
|
|
494
|
-
|
|
494
|
+
Be(t.value.feedbackList, (n, A) => (i(), G(
|
|
495
495
|
e(rt),
|
|
496
496
|
{
|
|
497
497
|
key: A + ""
|
|
@@ -542,7 +542,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
542
542
|
])
|
|
543
543
|
]),
|
|
544
544
|
default: q(() => {
|
|
545
|
-
var S,
|
|
545
|
+
var S, x, w, z;
|
|
546
546
|
return [
|
|
547
547
|
p[4] || (p[4] = m(
|
|
548
548
|
"div",
|
|
@@ -576,7 +576,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
576
576
|
1
|
|
577
577
|
/* TEXT */
|
|
578
578
|
),
|
|
579
|
-
(S = n.userVO) != null && S.name || (
|
|
579
|
+
(S = n.userVO) != null && S.name || (x = n.userVO) != null && x.phone ? (i(), h(
|
|
580
580
|
"span",
|
|
581
581
|
va,
|
|
582
582
|
E(((w = n.userVO) == null ? void 0 : w.name) || "-") + " (" + E(((z = n.userVO) == null ? void 0 : z.phone) || "-") + ")",
|
|
@@ -736,10 +736,10 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
736
736
|
}, {
|
|
737
737
|
error: A,
|
|
738
738
|
data: S,
|
|
739
|
-
loading:
|
|
739
|
+
loading: x,
|
|
740
740
|
run: w
|
|
741
|
-
} = Dn(), { error: z, data: P, loading: M, run:
|
|
742
|
-
if (await w({ id: t.id }), await
|
|
741
|
+
} = Dn(), { error: z, data: P, loading: M, run: B } = wn(), I = async () => {
|
|
742
|
+
if (await w({ id: t.id }), await B({ id: t.id }), p.value = P.value, A.value) {
|
|
743
743
|
c.value = null;
|
|
744
744
|
return;
|
|
745
745
|
}
|
|
@@ -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(
|
|
795
|
+
e(x) ? k("v-if", !0) : (i(), h("div", za, [
|
|
796
796
|
k(" 预案信息 "),
|
|
797
797
|
e(d) === "1" ? (i(), G(mt, {
|
|
798
798
|
key: 0,
|
|
@@ -806,11 +806,11 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
806
806
|
k(` <FileRecord :content="infoData?.archiveRecordVO" v-if="activeTab === '4'"></FileRecord> `)
|
|
807
807
|
]))
|
|
808
808
|
])), [
|
|
809
|
-
[H, e(
|
|
809
|
+
[H, e(x)]
|
|
810
810
|
]);
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
}), At = /* @__PURE__ */ ce(La, [["__scopeId", "data-v-ddba8f61"]]), Pa = { class: "urgent-panel-release-urgent-container" }, Ra = { class: "urgent-panel-release-urgent" }, Da = { class: "input-item" }, Ia = { style: { display: "flex", width: "100%" } }, wa = { style: { flex: "1" } },
|
|
813
|
+
}), At = /* @__PURE__ */ ce(La, [["__scopeId", "data-v-ddba8f61"]]), Pa = { class: "urgent-panel-release-urgent-container" }, Ra = { class: "urgent-panel-release-urgent" }, Da = { class: "input-item" }, Ia = { style: { display: "flex", width: "100%" } }, wa = { style: { flex: "1" } }, xa = /* @__PURE__ */ ue({
|
|
814
814
|
__name: "ReleaseUrgent",
|
|
815
815
|
props: {
|
|
816
816
|
releaseType: {}
|
|
@@ -858,7 +858,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
858
858
|
memberUsersError: "",
|
|
859
859
|
chargeUsersError: ""
|
|
860
860
|
});
|
|
861
|
-
const
|
|
861
|
+
const x = (l) => {
|
|
862
862
|
let a = [].concat(...l.value), L = [];
|
|
863
863
|
a.forEach((o) => {
|
|
864
864
|
o.identityType == 1 && (o._name = o.phone ? `${o.name}(${o.phone})` : o.name), L.push(o.id);
|
|
@@ -873,7 +873,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
873
873
|
n.value.location = l == null ? void 0 : l.location, n.value.latitude = l == null ? void 0 : l.latitude, n.value.longitude = l == null ? void 0 : l.longitude, A.value.locationErrorTips = "";
|
|
874
874
|
}, M = () => {
|
|
875
875
|
d("openMapDialog", n.value);
|
|
876
|
-
},
|
|
876
|
+
}, B = () => {
|
|
877
877
|
n.value.location = "", n.value.latitude = null, n.value.longitude = null, n.value.userInput = !0, A.value.locationErrorTips = "";
|
|
878
878
|
}, I = (l = "") => {
|
|
879
879
|
l === "fzr" ? n.value.chargeUsers = [] : l === "member" && (n.value.memberUsers = []);
|
|
@@ -920,7 +920,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
920
920
|
creationTime: pe.value,
|
|
921
921
|
eventImgUrl: ((F = n.value.attaches) == null ? void 0 : F.length) > 0 ? JSON.stringify(n.value.attaches) : "[]"
|
|
922
922
|
};
|
|
923
|
-
if (c.value === "2" ? be.startTime =
|
|
923
|
+
if (c.value === "2" ? be.startTime = xn(n.value.startTime) : be.startTime = null, await te(be), W.value)
|
|
924
924
|
return;
|
|
925
925
|
vt.success(t("发布成功")), d("releaseSuccess");
|
|
926
926
|
}
|
|
@@ -984,7 +984,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
984
984
|
};
|
|
985
985
|
return g({
|
|
986
986
|
save: ae,
|
|
987
|
-
submitSelect:
|
|
987
|
+
submitSelect: x,
|
|
988
988
|
mapConfirm: P
|
|
989
989
|
}), (l, a) => {
|
|
990
990
|
const L = We;
|
|
@@ -995,7 +995,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
995
995
|
k(" 发布应急/演练 "),
|
|
996
996
|
ie((i(), h("div", Pa, [
|
|
997
997
|
ie((i(), h("div", Ra, [
|
|
998
|
-
U(e(
|
|
998
|
+
U(e(xt), {
|
|
999
999
|
ref_key: "form",
|
|
1000
1000
|
ref: ee,
|
|
1001
1001
|
rules: Z.value,
|
|
@@ -1119,7 +1119,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1119
1119
|
"error-label": e(A).handleTimeNumTips
|
|
1120
1120
|
}, null, 8, ["modelValue", "disabled", "error", "error-label"]),
|
|
1121
1121
|
m("div", Da, [
|
|
1122
|
-
U(e(
|
|
1122
|
+
U(e(Bt), {
|
|
1123
1123
|
modelValue: e(n).handleTimeUnit,
|
|
1124
1124
|
"onUpdate:modelValue": a[14] || (a[14] = (o) => e(n).handleTimeUnit = o),
|
|
1125
1125
|
width: "120px",
|
|
@@ -1174,7 +1174,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1174
1174
|
btnType: "primary-text",
|
|
1175
1175
|
size: "large",
|
|
1176
1176
|
block: "",
|
|
1177
|
-
onClick: ge(
|
|
1177
|
+
onClick: ge(B, ["stop"]),
|
|
1178
1178
|
disabled: e(De)(e(n).location),
|
|
1179
1179
|
style: { "margin-left": "8px", "line-height": "unset" }
|
|
1180
1180
|
}, {
|
|
@@ -1230,10 +1230,10 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1230
1230
|
);
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
|
-
}),
|
|
1233
|
+
}), Ba = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-23d777e0"]]), yt = (v) => {
|
|
1234
1234
|
const { releaseType: g } = v, y = r(null);
|
|
1235
1235
|
return {
|
|
1236
|
-
ReleaseUrgent: () => we(
|
|
1236
|
+
ReleaseUrgent: () => we(Ba, { ref: y, releaseType: g }),
|
|
1237
1237
|
ReleaseUrgentRef: y
|
|
1238
1238
|
};
|
|
1239
1239
|
}, Ma = "v1", _a = `/api/emergency/manage/${Ma}`, Va = He(`${_a}`), Xa = Va.post("/user/page"), he = r([]), qa = { class: "select-list-container" }, Ha = { class: "check-text" }, Ka = { key: 0 }, Oa = { key: 1 }, Ya = { key: 2 }, Qa = {
|
|
@@ -1281,7 +1281,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1281
1281
|
/* TEXT */
|
|
1282
1282
|
))
|
|
1283
1283
|
])), [
|
|
1284
|
-
[e(
|
|
1284
|
+
[e(xe)]
|
|
1285
1285
|
])
|
|
1286
1286
|
]),
|
|
1287
1287
|
_: 1
|
|
@@ -1316,7 +1316,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1316
1316
|
d.value = d.value.filter((_) => _.id != N.id);
|
|
1317
1317
|
}, A = () => {
|
|
1318
1318
|
he.value = [], d.value = [];
|
|
1319
|
-
}, { selectListRef: S, selectListVue:
|
|
1319
|
+
}, { selectListRef: S, selectListVue: x } = Wa(n, A), w = async () => {
|
|
1320
1320
|
var R;
|
|
1321
1321
|
g.value = !0;
|
|
1322
1322
|
const N = {
|
|
@@ -1338,7 +1338,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1338
1338
|
p.value = 1, w();
|
|
1339
1339
|
}, M = (N) => {
|
|
1340
1340
|
p.value = 1, c.value = N, w();
|
|
1341
|
-
},
|
|
1341
|
+
}, B = (N) => {
|
|
1342
1342
|
p.value = N, w();
|
|
1343
1343
|
}, I = (N) => {
|
|
1344
1344
|
let _ = [], T = [];
|
|
@@ -1382,7 +1382,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1382
1382
|
"onUpdate:pageSize": _[3] || (_[3] = (T) => c.value = T),
|
|
1383
1383
|
onSizeChange: M,
|
|
1384
1384
|
onSelectionChange: I,
|
|
1385
|
-
onCurrentPageChange:
|
|
1385
|
+
onCurrentPageChange: B
|
|
1386
1386
|
}, {
|
|
1387
1387
|
default: q(() => [
|
|
1388
1388
|
U(e(Ge), {
|
|
@@ -1425,7 +1425,7 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1425
1425
|
])
|
|
1426
1426
|
]),
|
|
1427
1427
|
m("div", tl, [
|
|
1428
|
-
U(e(
|
|
1428
|
+
U(e(x))
|
|
1429
1429
|
])
|
|
1430
1430
|
])
|
|
1431
1431
|
]),
|
|
@@ -1458,10 +1458,10 @@ const Wt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAEgCAYAAABYRWE9AA
|
|
|
1458
1458
|
return g({
|
|
1459
1459
|
open: n,
|
|
1460
1460
|
close: A
|
|
1461
|
-
}), (S,
|
|
1461
|
+
}), (S, x) => (i(), h("div", sl, [
|
|
1462
1462
|
U(e(dt), {
|
|
1463
1463
|
modelValue: p.value,
|
|
1464
|
-
"onUpdate:modelValue":
|
|
1464
|
+
"onUpdate:modelValue": x[0] || (x[0] = (w) => p.value = w),
|
|
1465
1465
|
customClass: "select-org-user-dialog",
|
|
1466
1466
|
type: "basic",
|
|
1467
1467
|
size: "small",
|
|
@@ -1558,11 +1558,11 @@ const fl = { class: "select-map-dialog-box" }, hl = { style: { height: "100%" }
|
|
|
1558
1558
|
}), S = J(() => {
|
|
1559
1559
|
if (b.value && b.value.latitude)
|
|
1560
1560
|
return b.value.latitude;
|
|
1561
|
-
}),
|
|
1562
|
-
const [M,
|
|
1561
|
+
}), x = async (P) => {
|
|
1562
|
+
const [M, B] = await gl().run();
|
|
1563
1563
|
if (!M) {
|
|
1564
|
-
if (
|
|
1565
|
-
c.value =
|
|
1564
|
+
if (B && B.length && B.find((I) => I.enable)) {
|
|
1565
|
+
c.value = B.find((I) => I.enable), b.value.location = (P == null ? void 0 : P.location) ?? null, b.value.latitude = (P == null ? void 0 : P.latitude) ?? null, b.value.longitude = (P == null ? void 0 : P.longitude) ?? null, d.value = !0;
|
|
1566
1566
|
return;
|
|
1567
1567
|
}
|
|
1568
1568
|
vt.warning(t("请先完善第三方地图相关配置!"));
|
|
@@ -1570,16 +1570,16 @@ const fl = { class: "select-map-dialog-box" }, hl = { style: { height: "100%" }
|
|
|
1570
1570
|
}, w = () => {
|
|
1571
1571
|
d.value = !1, f("mapConfirm", null);
|
|
1572
1572
|
}, z = async () => {
|
|
1573
|
-
var
|
|
1573
|
+
var B, I, N;
|
|
1574
1574
|
let P = "", M = {};
|
|
1575
|
-
if (c.value.serviceProvider == 1 ? (M = (
|
|
1575
|
+
if (c.value.serviceProvider == 1 ? (M = (B = p.value) == null ? void 0 : B.getMapInfo(), P = M.address) : c.value.serviceProvider == 2 && (M = (I = V.value) == null ? void 0 : I.getMapInfo(), P = M.address), M && M.adCode) {
|
|
1576
1576
|
let _ = M.adCode.toString();
|
|
1577
1577
|
b.value.totalArea = [_.substring(0, 2), _.substring(0, 4), _.substring(0, 6)];
|
|
1578
1578
|
}
|
|
1579
1579
|
P ? (b.value.latitude = (M == null ? void 0 : M.latitude) || "", b.value.longitude = (M == null ? void 0 : M.longitude) || "", b.value.location = ((N = M == null ? void 0 : M.addressInfo) == null ? void 0 : N.name) || "") : b.value.location = "", f("mapConfirm", b.value), d.value = !1;
|
|
1580
1580
|
};
|
|
1581
1581
|
return g({
|
|
1582
|
-
openMapDialog:
|
|
1582
|
+
openMapDialog: x
|
|
1583
1583
|
}), (P, M) => (i(), h(
|
|
1584
1584
|
Ae,
|
|
1585
1585
|
null,
|
|
@@ -1588,7 +1588,7 @@ const fl = { class: "select-map-dialog-box" }, hl = { style: { height: "100%" }
|
|
|
1588
1588
|
m("div", fl, [
|
|
1589
1589
|
U(e(dt), {
|
|
1590
1590
|
modelValue: e(d),
|
|
1591
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
1591
|
+
"onUpdate:modelValue": M[0] || (M[0] = (B) => _e(d) ? d.value = B : d = B),
|
|
1592
1592
|
onClose: w,
|
|
1593
1593
|
title: e(t)("选择位置"),
|
|
1594
1594
|
height: 580,
|
|
@@ -1733,14 +1733,14 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1733
1733
|
navName: se("列表详情")
|
|
1734
1734
|
}));
|
|
1735
1735
|
};
|
|
1736
|
-
let
|
|
1737
|
-
const { error: z, data: P, loading: M, run:
|
|
1736
|
+
let x = r(0), w = r(0);
|
|
1737
|
+
const { error: z, data: P, loading: M, run: B } = pt(), I = async (o) => {
|
|
1738
1738
|
var C, Y;
|
|
1739
|
-
if (await
|
|
1740
|
-
|
|
1739
|
+
if (await B({ eventTypeCode: o }), z.value) {
|
|
1740
|
+
x.value = 0, w.value = 0;
|
|
1741
1741
|
return;
|
|
1742
1742
|
}
|
|
1743
|
-
|
|
1743
|
+
x.value = ((C = P.value) == null ? void 0 : C.unCompleted) || 0, w.value = ((Y = P.value) == null ? void 0 : Y.completed) || 0;
|
|
1744
1744
|
};
|
|
1745
1745
|
let N = r([]);
|
|
1746
1746
|
const { error: _, data: T, loading: R, run: H } = Ln(), Z = async (o) => {
|
|
@@ -1857,7 +1857,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1857
1857
|
}, {
|
|
1858
1858
|
default: q(() => [
|
|
1859
1859
|
$(
|
|
1860
|
-
E(e(se)("未完成")) + E(e(
|
|
1860
|
+
E(e(se)("未完成")) + E(e(x)) + "," + E(e(se)("已完成")) + E(e(w)),
|
|
1861
1861
|
1
|
|
1862
1862
|
/* TEXT */
|
|
1863
1863
|
)
|
|
@@ -1904,7 +1904,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
1904
1904
|
(i(!0), h(
|
|
1905
1905
|
Ae,
|
|
1906
1906
|
null,
|
|
1907
|
-
|
|
1907
|
+
Be(e(N), (F, be) => (i(), G(e(rt), {
|
|
1908
1908
|
header: F.title,
|
|
1909
1909
|
key: be + 1
|
|
1910
1910
|
}, {
|
|
@@ -2039,7 +2039,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2039
2039
|
]);
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
|
-
}), Nt = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-188623bc"]]), Il = { class: "emergency-panel-content" }, wl = { class: "event-header" },
|
|
2042
|
+
}), Nt = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-188623bc"]]), Il = { class: "emergency-panel-content" }, wl = { class: "event-header" }, xl = { style: { flex: "1", "min-width": "0", display: "flex", "align-items": "center" } }, Bl = { class: "title" }, Ml = {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
class: "repair-nav"
|
|
2045
2045
|
}, _l = { class: "nav-detail-tit" }, Vl = {
|
|
@@ -2073,7 +2073,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2073
2073
|
};
|
|
2074
2074
|
let S = () => {
|
|
2075
2075
|
};
|
|
2076
|
-
const
|
|
2076
|
+
const x = () => {
|
|
2077
2077
|
c.value.currentMenu === "releaseurgent" && (c.value = n.value);
|
|
2078
2078
|
try {
|
|
2079
2079
|
S();
|
|
@@ -2098,11 +2098,11 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2098
2098
|
navName: t(X === "1" ? "应急内容" : "演练内容"),
|
|
2099
2099
|
showNav: !0
|
|
2100
2100
|
};
|
|
2101
|
-
}, { ReleaseUrgent: M, ReleaseUrgentRef:
|
|
2101
|
+
}, { ReleaseUrgent: M, ReleaseUrgentRef: B } = yt({ releaseType: z }), I = () => {
|
|
2102
2102
|
c.value = n.value;
|
|
2103
2103
|
}, N = () => {
|
|
2104
2104
|
var X;
|
|
2105
|
-
(X =
|
|
2105
|
+
(X = B == null ? void 0 : B.value) == null || X.save();
|
|
2106
2106
|
}, _ = () => {
|
|
2107
2107
|
f("closePanel");
|
|
2108
2108
|
};
|
|
@@ -2133,10 +2133,10 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2133
2133
|
V.value = null, b.value = null;
|
|
2134
2134
|
}, Z = (X) => {
|
|
2135
2135
|
var K;
|
|
2136
|
-
(K =
|
|
2136
|
+
(K = B == null ? void 0 : B.value) == null || K.submitSelect(X);
|
|
2137
2137
|
}, { selectOrganizationAndUserVue: ee, selectOrganizationAndUserRef: W, selectData: Q } = bt(Z), Ne = (X) => {
|
|
2138
2138
|
var K;
|
|
2139
|
-
f("updatePanelActive", !0), X && ((K =
|
|
2139
|
+
f("updatePanelActive", !0), X && ((K = B == null ? void 0 : B.value) == null || K.mapConfirm(X));
|
|
2140
2140
|
}, { locationSelectVue: te, locationSelectRef: ae } = Ct(Ne), pe = (X) => {
|
|
2141
2141
|
var K;
|
|
2142
2142
|
(K = ae.value) == null || K.openMapDialog(X);
|
|
@@ -2164,8 +2164,8 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2164
2164
|
},
|
|
2165
2165
|
[
|
|
2166
2166
|
m("div", wl, [
|
|
2167
|
-
m("div",
|
|
2168
|
-
m("div",
|
|
2167
|
+
m("div", xl, [
|
|
2168
|
+
m("div", Bl, [
|
|
2169
2169
|
U(e(Je), {
|
|
2170
2170
|
text: e(c).titleName
|
|
2171
2171
|
}, null, 8, ["text"])
|
|
@@ -2206,7 +2206,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2206
2206
|
e(c).currentMenu === "releaseurgent" ? (i(), G(e(M), {
|
|
2207
2207
|
key: 2,
|
|
2208
2208
|
onOpenMapDialog: pe,
|
|
2209
|
-
onReleaseSuccess:
|
|
2209
|
+
onReleaseSuccess: x,
|
|
2210
2210
|
onOpenUserDialog: ye
|
|
2211
2211
|
})) : k("v-if", !0)
|
|
2212
2212
|
],
|
|
@@ -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),
|
|
2322
|
+
const p = r(null), V = r(null), b = r(null), n = r(null), A = r(null), S = r(null), x = r(null), w = r(null), z = r(null), P = r(null), M = r(null), B = r(null), I = r(null), N = r({
|
|
2323
2323
|
pointerX: 0,
|
|
2324
2324
|
pointerY: 0,
|
|
2325
2325
|
x: 0,
|
|
@@ -2338,10 +2338,10 @@ const lt = r(null), Ct = (v) => ({
|
|
|
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
|
}), Re(() => {
|
|
2343
2343
|
var s, u, l, a, L;
|
|
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,
|
|
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, w.value = n.value - (t.h === "auto" ? (L = c.value) == null ? void 0 : L.scrollHeight : t.h) - S.value, M.value = /* @__PURE__ */ new Map([
|
|
2345
2345
|
["mousemove", pe],
|
|
2346
2346
|
["mouseup", ae],
|
|
2347
2347
|
["mouseleave", ae],
|
|
@@ -2358,7 +2358,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2358
2358
|
top: S.value + "px",
|
|
2359
2359
|
left: A.value + "px",
|
|
2360
2360
|
zIndex: V.value
|
|
2361
|
-
})), R = J(() => b.value - A.value -
|
|
2361
|
+
})), R = J(() => b.value - A.value - x.value), H = J(() => n.value - S.value - w.value), Z = J(() => ({
|
|
2362
2362
|
width: R.value + "px",
|
|
2363
2363
|
height: H.value + "px"
|
|
2364
2364
|
})), ee = J(() => ({
|
|
@@ -2427,7 +2427,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2427
2427
|
}
|
|
2428
2428
|
({
|
|
2429
2429
|
newLeft: A.value,
|
|
2430
|
-
newRight:
|
|
2430
|
+
newRight: x.value,
|
|
2431
2431
|
newTop: S.value,
|
|
2432
2432
|
newBottom: w.value
|
|
2433
2433
|
} = D({ newLeft: a, newRight: L, newTop: u, newBottom: l })), f("dragging", ee.value);
|
|
@@ -2443,10 +2443,10 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2443
2443
|
return;
|
|
2444
2444
|
z.value = !0;
|
|
2445
2445
|
const a = typeof u.pageX < "u" ? u.pageX : u.touches[0].pageX, L = typeof u.pageY < "u" ? u.pageY : u.touches[0].pageY;
|
|
2446
|
-
Le({ pointerX: a, pointerY: L }),
|
|
2446
|
+
Le({ pointerX: a, pointerY: L }), B.value = s, _.value = Se();
|
|
2447
2447
|
}, re = (s) => {
|
|
2448
2448
|
let u = N.value.top, l = N.value.bottom, a = N.value.left, L = N.value.right;
|
|
2449
|
-
switch (
|
|
2449
|
+
switch (B.value[0]) {
|
|
2450
2450
|
case "b":
|
|
2451
2451
|
l = N.value.bottom + s.y, t.snapToGrid && (l = n.value - Math.round((n.value - l) / t.gridY) * t.gridY);
|
|
2452
2452
|
break;
|
|
@@ -2454,7 +2454,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2454
2454
|
u = N.value.top - s.y, t.snapToGrid && (u = Math.round(u / t.gridY) * t.gridY);
|
|
2455
2455
|
break;
|
|
2456
2456
|
}
|
|
2457
|
-
switch (
|
|
2457
|
+
switch (B.value[1]) {
|
|
2458
2458
|
case "r":
|
|
2459
2459
|
L = N.value.right + s.x, t.snapToGrid && (L = b.value - Math.round((b.value - L) / t.gridX) * t.gridX);
|
|
2460
2460
|
break;
|
|
@@ -2467,7 +2467,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2467
2467
|
newRight: L,
|
|
2468
2468
|
newTop: u,
|
|
2469
2469
|
newBottom: l
|
|
2470
|
-
})), A.value = a,
|
|
2470
|
+
})), A.value = a, x.value = L, S.value = u, w.value = l, f("resizing", ee.value);
|
|
2471
2471
|
}, Te = () => {
|
|
2472
2472
|
z.value = !1, N.value = {
|
|
2473
2473
|
pointerX: 0,
|
|
@@ -2483,7 +2483,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2483
2483
|
bottom: { min: null, max: null }
|
|
2484
2484
|
}, f("resizing", ee.value), f("resizestop", ee.value);
|
|
2485
2485
|
}, Le = ({ pointerX: s, pointerY: u }) => {
|
|
2486
|
-
N.value.pointerX = s, N.value.pointerY = u, N.value.left = A.value, N.value.right =
|
|
2486
|
+
N.value.pointerX = s, N.value.pointerY = u, N.value.left = A.value, N.value.right = x.value, N.value.top = S.value, N.value.bottom = w.value, N.value.width = R.value, N.value.height = H.value, I.value = R.value / H.value;
|
|
2487
2487
|
}, ke = () => ({
|
|
2488
2488
|
left: { min: 0, max: b.value - R.value },
|
|
2489
2489
|
right: { min: 0, max: b.value - R.value },
|
|
@@ -2495,7 +2495,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2495
2495
|
t.aspectRatio && (l / u > I.value ? u = l / I.value : l = I.value * u);
|
|
2496
2496
|
const a = {
|
|
2497
2497
|
left: { min: s, max: A.value + (R.value - l) },
|
|
2498
|
-
right: { min: s, max:
|
|
2498
|
+
right: { min: s, max: x.value + (R.value - l) },
|
|
2499
2499
|
top: { min: s, max: S.value + (H.value - u) },
|
|
2500
2500
|
bottom: { min: s, max: w.value + (H.value - u) }
|
|
2501
2501
|
};
|
|
@@ -2506,25 +2506,25 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2506
2506
|
max: A.value + (H.value - u) / 2 * I.value * 2
|
|
2507
2507
|
},
|
|
2508
2508
|
right: {
|
|
2509
|
-
min:
|
|
2510
|
-
max:
|
|
2509
|
+
min: x.value - Math.min(S.value, w.value) * I.value * 2,
|
|
2510
|
+
max: x.value + (H.value - u) / 2 * I.value * 2
|
|
2511
2511
|
},
|
|
2512
2512
|
top: {
|
|
2513
|
-
min: S.value - Math.min(A.value,
|
|
2513
|
+
min: S.value - Math.min(A.value, x.value) / I.value * 2,
|
|
2514
2514
|
max: S.value + (R.value - l) / 2 / I.value * 2
|
|
2515
2515
|
},
|
|
2516
2516
|
bottom: {
|
|
2517
|
-
min: w.value - Math.min(A.value,
|
|
2517
|
+
min: w.value - Math.min(A.value, x.value) / I.value * 2,
|
|
2518
2518
|
max: w.value + (R.value - l) / 2 / I.value * 2
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
|
-
|
|
2521
|
+
B.value[0] === "m" ? (a.left = {
|
|
2522
2522
|
min: Math.max(a.left.min, L.left.min),
|
|
2523
2523
|
max: Math.min(a.left.max, L.left.max)
|
|
2524
2524
|
}, a.right = {
|
|
2525
2525
|
min: Math.max(a.right.min, L.right.min),
|
|
2526
2526
|
max: Math.min(a.right.max, L.right.max)
|
|
2527
|
-
}) :
|
|
2527
|
+
}) : B.value[1] === "m" && (a.top = {
|
|
2528
2528
|
min: Math.max(a.top.min, L.top.min),
|
|
2529
2529
|
max: Math.min(a.top.max, L.top.max)
|
|
2530
2530
|
}, a.bottom = {
|
|
@@ -2546,13 +2546,13 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2546
2546
|
};
|
|
2547
2547
|
}, O = (s) => {
|
|
2548
2548
|
let { newLeft: u, newRight: l, newTop: a, newBottom: L } = s, o = b.value - u - l, C = n.value - a - L;
|
|
2549
|
-
if (
|
|
2549
|
+
if (B.value[1] === "m") {
|
|
2550
2550
|
const Y = C - N.value.height;
|
|
2551
2551
|
u -= Y * I.value / 2, l -= Y * I.value / 2;
|
|
2552
|
-
} else if (
|
|
2552
|
+
} else if (B.value[0] === "m") {
|
|
2553
2553
|
const Y = o - N.value.width;
|
|
2554
2554
|
a -= Y / I.value / 2, L -= Y / I.value / 2;
|
|
2555
|
-
} else o / C > I.value ? (o = I.value * C,
|
|
2555
|
+
} else o / C > I.value ? (o = I.value * C, B.value[1] === "l" ? u = b.value - l - o : l = b.value - u - o) : (C = o / I.value, B.value[0] === "t" ? a = n.value - L - C : L = n.value - a - C);
|
|
2556
2556
|
return { newLeft: u, newRight: l, newTop: a, newBottom: L };
|
|
2557
2557
|
};
|
|
2558
2558
|
return me(
|
|
@@ -2598,7 +2598,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2598
2598
|
if (z.value || P.value || s === R.value)
|
|
2599
2599
|
return;
|
|
2600
2600
|
const l = "mr", a = u - s;
|
|
2601
|
-
ve(l, { pageX:
|
|
2601
|
+
ve(l, { pageX: x.value, pageY: S.value + H.value / 2 }, !0), re({ x: a, y: 0 }), Ue(() => {
|
|
2602
2602
|
Te();
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
@@ -2615,7 +2615,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2615
2615
|
), me(
|
|
2616
2616
|
() => t.parentW,
|
|
2617
2617
|
(s) => {
|
|
2618
|
-
|
|
2618
|
+
x.value = s - R.value - A.value, b.value = s;
|
|
2619
2619
|
}
|
|
2620
2620
|
), me(
|
|
2621
2621
|
() => t.parentH,
|
|
@@ -2626,7 +2626,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2626
2626
|
top: S,
|
|
2627
2627
|
bottom: w,
|
|
2628
2628
|
left: A,
|
|
2629
|
-
right:
|
|
2629
|
+
right: x
|
|
2630
2630
|
}), (s, u) => (i(), h(
|
|
2631
2631
|
"div",
|
|
2632
2632
|
{
|
|
@@ -2656,7 +2656,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2656
2656
|
(i(!0), h(
|
|
2657
2657
|
Ae,
|
|
2658
2658
|
null,
|
|
2659
|
-
|
|
2659
|
+
Be(s.sticks, (l) => (i(), h("div", {
|
|
2660
2660
|
class: Me(["vdr-stick", ["vdr-stick-" + l, s.isResizable ? "" : "not-resizable"]]),
|
|
2661
2661
|
onMousedown: ge((a) => ve(l, a), ["stop", "prevent"]),
|
|
2662
2662
|
onTouchstart: ge((a) => ve(l, a), ["stop", "prevent"]),
|
|
@@ -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),
|
|
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), w = r(0), z = r(0), P = r(0), M = r(0), B = Yt();
|
|
2680
2680
|
r([]), r({});
|
|
2681
2681
|
const I = r(null), N = r(null), _ = r(null), T = r(null), R = r(48), H = r(0), Z = J(() => document.body.clientHeight || 800);
|
|
2682
2682
|
J(() => window.screen.width * 0.4 || 500);
|
|
@@ -2724,7 +2724,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2724
2724
|
D.top < 0 && (P.value = 0, y.value && (y.value.top = 0));
|
|
2725
2725
|
};
|
|
2726
2726
|
Re(() => {
|
|
2727
|
-
t.value = !0,
|
|
2727
|
+
t.value = !0, B != null && B.query, Q.value.top = j(Q.value.top), Q.value.right = j(Q.value.right), Q.value.width = j(Q.value.width), Q.value.height = j(Q.value.height), W.value = JSON.parse(JSON.stringify(Q.value)), window.onresize = () => {
|
|
2728
2728
|
setTimeout(() => {
|
|
2729
2729
|
de(!0);
|
|
2730
2730
|
}, 300);
|
|
@@ -2775,7 +2775,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2775
2775
|
const s = document.getElementById("urgent-panel-link-dialog-test");
|
|
2776
2776
|
s && (D = s.getBoundingClientRect().top, O = s.getBoundingClientRect().left), b.value = document.documentElement.clientHeight - D, n.value = document.documentElement.clientWidth - O;
|
|
2777
2777
|
}, de = (D) => {
|
|
2778
|
-
Se(), D ? (W.value.top = Q.value.top, W.value.right = Q.value.right,
|
|
2778
|
+
Se(), D ? (W.value.top = Q.value.top, W.value.right = Q.value.right, x.value = W.value.width, w.value = W.value.height, A.value = Q.value.minWidth, S.value = Q.value.minHeight, z.value = n.value - W.value.right - W.value.width, P.value = W.value.top) : (x.value = W.value.width, w.value = W.value.height, z.value = n.value - W.value.right - W.value.width, P.value = W.value.top), M.value = JSON.parse(JSON.stringify(z.value)), t.value = !1;
|
|
2779
2779
|
};
|
|
2780
2780
|
return g({
|
|
2781
2781
|
urgentPanelShow: Te,
|
|
@@ -2809,7 +2809,7 @@ const lt = r(null), Ct = (v) => ({
|
|
|
2809
2809
|
"is-active": V.value,
|
|
2810
2810
|
"parent-h": b.value,
|
|
2811
2811
|
"parent-w": n.value,
|
|
2812
|
-
w:
|
|
2812
|
+
w: x.value,
|
|
2813
2813
|
h: w.value,
|
|
2814
2814
|
minh: S.value,
|
|
2815
2815
|
minw: A.value,
|
|
@@ -2907,15 +2907,15 @@ const Tt = () => {
|
|
|
2907
2907
|
限: { "zh-CN": "限", en: "Limit" },
|
|
2908
2908
|
位: { "zh-CN": "位", en: "Digits" },
|
|
2909
2909
|
单选: { "zh-CN": "单选", en: "Single Choice" },
|
|
2910
|
-
应急成员不能为空: { "zh-CN": "应急成员不能为空", en: "Emergency
|
|
2911
|
-
应急负责人不能为空: { "zh-CN": "应急负责人不能为空", en: "Emergency
|
|
2910
|
+
应急成员不能为空: { "zh-CN": "应急成员不能为空", en: "Emergency Members Cannot be Empty" },
|
|
2911
|
+
应急负责人不能为空: { "zh-CN": "应急负责人不能为空", en: "Emergency Leader Cannot be Empty" },
|
|
2912
2912
|
个字符: { "zh-CN": "个字符", en: "Characters" },
|
|
2913
2913
|
汉字: { "zh-CN": "汉字", en: "Chinese Characters" },
|
|
2914
|
-
首尾不允许为空外: { "zh-CN": "首尾不允许为空外", en: "Leading
|
|
2914
|
+
首尾不允许为空外: { "zh-CN": "首尾不允许为空外", en: "Leading and Trailing Are Not Allowed to be Empty" },
|
|
2915
2915
|
支持任意字符: { "zh-CN": "支持任意字符", en: "Support Any Characters" },
|
|
2916
2916
|
支持手动录入也支持从地图上选择位置: {
|
|
2917
2917
|
"zh-CN": "支持手动录入也支持从地图上选择位置",
|
|
2918
|
-
en: "Support Manual Entry
|
|
2918
|
+
en: "Support Manual Entry and Selecting Location From Map"
|
|
2919
2919
|
},
|
|
2920
2920
|
发布成功: { "zh-CN": "发布成功", en: "Release Successful" },
|
|
2921
2921
|
选择位置: { "zh-CN": "选择位置", en: "Select Location" },
|
|
@@ -2968,21 +2968,21 @@ const Tt = () => {
|
|
|
2968
2968
|
维修记录: { "zh-CN": "维修记录", en: "Repair Records" },
|
|
2969
2969
|
"请先完善第三方地图相关配置!": {
|
|
2970
2970
|
"zh-CN": "请先完善第三方地图相关配置!",
|
|
2971
|
-
en: "Please
|
|
2971
|
+
en: "Please Complete Third-Party Map Configuration First!"
|
|
2972
2972
|
},
|
|
2973
2973
|
"非必填,支持上传png/jpg格式,最多支持上传3张,每张图片最大不超过50M": {
|
|
2974
2974
|
"zh-CN": "非必填,支持上传png/jpg格式,最多支持上传3张,每张图片最大不超过50M",
|
|
2975
|
-
en: "Optional,
|
|
2975
|
+
en: "Optional, Supports Png/Jpg Uploads, Up to 3 Images, Each Up to 50mb"
|
|
2976
2976
|
},
|
|
2977
|
-
"必填,正整数型,限5位": { "zh-CN": "必填,正整数型,限5位", en: "Required,
|
|
2978
|
-
"必填,单选": { "zh-CN": "必填,单选", en: "Required,
|
|
2977
|
+
"必填,正整数型,限5位": { "zh-CN": "必填,正整数型,限5位", en: "Required, Positive Integer, Up to 5 Digits" },
|
|
2978
|
+
"必填,单选": { "zh-CN": "必填,单选", en: "Required, Single Choice" },
|
|
2979
2979
|
"必填,限20个字符/汉字,首尾不允许为空外,支持任意字符": {
|
|
2980
2980
|
"zh-CN": "必填,限20个字符/汉字,首尾不允许为空外,支持任意字符",
|
|
2981
|
-
en: "Required,
|
|
2981
|
+
en: "Required, Up to 20 Characters/Chinese Characters, No Leading or Trailing Spaces, Any Character"
|
|
2982
2982
|
},
|
|
2983
2983
|
"必填,支持手动录入也支持从地图上选择位置": {
|
|
2984
2984
|
"zh-CN": "必填,支持手动录入也支持从地图上选择位置",
|
|
2985
|
-
en: "Required,
|
|
2985
|
+
en: "Required, Supports Manual Input or Map Selection"
|
|
2986
2986
|
},
|
|
2987
2987
|
"搜索姓名/账号": { "zh-CN": "搜索姓名/账号", en: "Search Name/Account" }
|
|
2988
2988
|
};
|