zhihao-ui 1.2.32 → 1.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{BaseItem-BFxwaTMt.js → BaseItem-Dok2Aus9.js} +1 -1
- package/dist/es/{DatePicker-Ci7cvNBv.js → DatePicker-DJuI_Emt.js} +1 -1
- package/dist/es/{DetailHeader-CjOQGsUf.js → DetailHeader-DKjKORoT.js} +1 -1
- package/dist/es/{DetailSubTitle-D0yLSSyv.js → DetailSubTitle-zqhDyrw7.js} +1 -1
- package/dist/es/{DiyDataTable-BF1_jzWq.js → DiyDataTable-0J0XHWOg.js} +1 -1
- package/dist/es/{EditInfoPair-BJQiTE2F.js → EditInfoPair-BCrdjdwr.js} +2 -2
- package/dist/es/{FileWrapper-x299zfxX.js → FileWrapper-DwI3Gpd7.js} +3 -3
- package/dist/es/{Grid-CXOlWZvI.js → Grid-BEBnaQkh.js} +1 -1
- package/dist/es/{InfoPair-DIGArRxD.js → InfoPair-8ibzEbk8.js} +2 -2
- package/dist/es/{Input-DhjDFkPC.js → Input-CWfFyiHL.js} +2 -2
- package/dist/es/{Loading-BUKmsH3_.js → Loading-nlPpGN-L.js} +4 -4
- package/dist/es/{Map-DOYV-j68.js → Map-zDBSTbli.js} +60 -60
- package/dist/es/{MoneyInput-CPvzXyjc.js → MoneyInput-BUtchReq.js} +6 -6
- package/dist/es/{PageHeadPanel-BAkSI9xv.js → PageHeadPanel-Bw6wb6jF.js} +4 -4
- package/dist/es/{Table-C0SJnAXO.js → Table-Ce83Xr3L.js} +194 -198
- package/dist/es/{ToolTips-BFpd9Tho.js → ToolTips-D7B0F-bQ.js} +8 -8
- package/dist/es/index.js +18 -18
- package/dist/index.css +1 -1
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +2 -2
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, useSlots as T, inject as z, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as i, withCtx as d, createElementVNode as h, normalizeClass as m, normalizeStyle as W, resolveDynamicComponent as k, createElementBlock as o, toDisplayString as s, renderSlot as S, Fragment as v, withModifiers as V, createTextVNode as f, createVNode as p, createCommentVNode as O } from "vue";
|
|
2
2
|
import { E as D, a as Z, d as g } from "./vendor-Bonn9k5m.js";
|
|
3
|
-
import { Z as G } from "./Grid-
|
|
3
|
+
import { Z as G } from "./Grid-BEBnaQkh.js";
|
|
4
4
|
import { w as U } from "./utils-hD_p7bGY.js";
|
|
5
5
|
const b = "--", X = "YYYY-MM-DDTHH:mm:ss", x = "YYYY-MM-DDT23:59:59", ee = "YYYY-MM-DD", le = "https://static.zhihaoscm.cn/", _ = { key: 1 }, H = {
|
|
6
6
|
key: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as u, createElementBlock as h, normalizeClass as d, createVNode as g, unref as _, mergeProps as A } from "vue";
|
|
2
2
|
import { h as D, e as E } from "./vendor-Bonn9k5m.js";
|
|
3
|
-
import { D as p, a as M, L as f, b as T } from "./BaseItem-
|
|
3
|
+
import { D as p, a as M, L as f, b as T } from "./BaseItem-Dok2Aus9.js";
|
|
4
4
|
import { w as b } from "./utils-hD_p7bGY.js";
|
|
5
5
|
const i = (e, t = M) => e ? D(e).format(t).replace("Invalid date", p) : p, O = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
|
|
6
6
|
function P(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, useSlots as _, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as D, createCommentVNode as g } from "vue";
|
|
2
|
-
import { D as v } from "./BaseItem-
|
|
2
|
+
import { D as v } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { _ as k } from "./Button-BbUxF68h.js";
|
|
4
4
|
import { w as y } from "./utils-hD_p7bGY.js";
|
|
5
5
|
const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class: "detail-header--left" }, H = { class: "title common-title" }, M = { class: "info-pair--label" }, $ = { class: "info-pair--value" }, C = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as o, createElementBlock as s, createElementVNode as l, createTextVNode as a, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as d } from "vue";
|
|
2
|
-
import { D as u } from "./BaseItem-
|
|
2
|
+
import { D as u } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { w as f } from "./utils-hD_p7bGY.js";
|
|
4
4
|
const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Z, useModel as z, ref as D, openBlock as n, createBlock as v, unref as s, withCtx as p, createVNode as g, createElementBlock as h, Fragment as C, renderList as P, normalizeClass as V, toDisplayString as c, renderSlot as R, createTextVNode as x, createCommentVNode as k, createElementVNode as w, mergeModels as X } from "vue";
|
|
2
|
-
import { D as $ } from "./BaseItem-
|
|
2
|
+
import { D as $ } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { g as b, i as A, j, k as K, l as E, m as T, n as G, o as F, b as M } from "./vendor-Bonn9k5m.js";
|
|
4
4
|
import { _ as J } from "./Button-BbUxF68h.js";
|
|
5
5
|
import { w as Q } from "./utils-hD_p7bGY.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as d, unref as m } from "vue";
|
|
2
|
-
import { D as f } from "./BaseItem-
|
|
2
|
+
import { D as f } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { _ } from "./Button-BbUxF68h.js";
|
|
4
4
|
import { w as u } from "./utils-hD_p7bGY.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
|
|
@@ -30,7 +30,7 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
|
|
|
30
30
|
], 2)
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}), V = /* @__PURE__ */ _(I, [["__scopeId", "data-v-
|
|
33
|
+
}), V = /* @__PURE__ */ _(I, [["__scopeId", "data-v-c62707eb"]]), N = u(V);
|
|
34
34
|
export {
|
|
35
35
|
N as Z
|
|
36
36
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as i, createElementBlock as o, toDisplayString as n, createCommentVNode as s, createElementVNode as t, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
|
|
2
|
-
import { D as w } from "./BaseItem-
|
|
2
|
+
import { D as w } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { E as y } from "./vendor-Bonn9k5m.js";
|
|
4
4
|
import { _ as h } from "./Button-BbUxF68h.js";
|
|
5
5
|
import { w as v } from "./utils-hD_p7bGY.js";
|
|
@@ -71,7 +71,7 @@ const k = { class: "file_wrapper" }, x = {
|
|
|
71
71
|
])
|
|
72
72
|
]));
|
|
73
73
|
}
|
|
74
|
-
}), E = /* @__PURE__ */ h(D, [["__scopeId", "data-v-
|
|
74
|
+
}), E = /* @__PURE__ */ h(D, [["__scopeId", "data-v-d98ece31"]]), U = v(E);
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
U as Z
|
|
77
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as W, onBeforeMount as Z, useSlots as j, ref as u, computed as I, onMounted as S, onActivated as H, onUnmounted as U, onDeactivated as N, provide as g, watch as $, onBeforeUpdate as T, onUpdated as O, openBlock as L, createElementBlock as k, normalizeStyle as z, renderSlot as M, useAttrs as q, inject as v, watchEffect as F, withDirectives as J, vShow as K, reactive as Q } from "vue";
|
|
2
|
-
import { g as V } from "./Table-
|
|
2
|
+
import { g as V } from "./Table-Ce83Xr3L.js";
|
|
3
3
|
import { w as D } from "./utils-hD_p7bGY.js";
|
|
4
4
|
const X = /* @__PURE__ */ W({
|
|
5
5
|
name: "Grid",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as i, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as f } from "vue";
|
|
2
|
-
import { D as d } from "./BaseItem-
|
|
2
|
+
import { D as d } from "./BaseItem-Dok2Aus9.js";
|
|
3
3
|
import { _ } from "./Button-BbUxF68h.js";
|
|
4
4
|
import { w as u } from "./utils-hD_p7bGY.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
|
|
@@ -30,7 +30,7 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
|
|
|
30
30
|
], 2)
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}), V = /* @__PURE__ */ _(E, [["__scopeId", "data-v-
|
|
33
|
+
}), V = /* @__PURE__ */ _(E, [["__scopeId", "data-v-5a1b0655"]]), N = u(V);
|
|
34
34
|
export {
|
|
35
35
|
N as Z
|
|
36
36
|
};
|
|
@@ -37,7 +37,7 @@ const A = /* @__PURE__ */ b({
|
|
|
37
37
|
]), 1040, ["modelValue", "size"])
|
|
38
38
|
], 2));
|
|
39
39
|
}
|
|
40
|
-
}), H = /* @__PURE__ */ U(A, [["__scopeId", "data-v-
|
|
40
|
+
}), H = /* @__PURE__ */ U(A, [["__scopeId", "data-v-ce1df798"]]), G = Z(H), L = /* @__PURE__ */ b({
|
|
41
41
|
name: "zh-input-number",
|
|
42
42
|
__name: "InputNumber",
|
|
43
43
|
props: {
|
|
@@ -80,7 +80,7 @@ const A = /* @__PURE__ */ b({
|
|
|
80
80
|
]), 1040, ["model-value"])
|
|
81
81
|
], 6));
|
|
82
82
|
}
|
|
83
|
-
}), O = /* @__PURE__ */ U(L, [["__scopeId", "data-v-
|
|
83
|
+
}), O = /* @__PURE__ */ U(L, [["__scopeId", "data-v-920e8405"]]), J = Z(O);
|
|
84
84
|
export {
|
|
85
85
|
O as I,
|
|
86
86
|
G as Z,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as t, openBlock as
|
|
1
|
+
import { defineComponent as t, openBlock as s, createElementBlock as a, createElementVNode as o } from "vue";
|
|
2
2
|
import { _ as e } from "./Button-BbUxF68h.js";
|
|
3
3
|
import { w as i } from "./utils-hD_p7bGY.js";
|
|
4
|
-
const
|
|
4
|
+
const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
|
|
5
5
|
name: "zh-loading",
|
|
6
6
|
__name: "Loading",
|
|
7
7
|
setup(p) {
|
|
8
|
-
return (_, n) => (
|
|
8
|
+
return (_, n) => (s(), a("div", d, n[0] || (n[0] = [
|
|
9
9
|
o("div", { class: "loading-wrap" }, [
|
|
10
10
|
o("span", { class: "dot dot-spin" }, [
|
|
11
11
|
o("i"),
|
|
@@ -16,7 +16,7 @@ const r = { class: "loading-box" }, c = /* @__PURE__ */ t({
|
|
|
16
16
|
], -1)
|
|
17
17
|
])));
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), c = /* @__PURE__ */ e(r, [["__scopeId", "data-v-d30f17c3"]]), g = i(c);
|
|
20
20
|
export {
|
|
21
21
|
g as Z
|
|
22
22
|
};
|
|
@@ -4,7 +4,7 @@ var I = (e, t, n) => D(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { defineComponent, inject, useModel, ref, watch, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, toDisplayString, createCommentVNode, mergeModels, nextTick, onMounted, normalizeClass, renderSlot, createBlock, provide } from "vue";
|
|
5
5
|
import { p as getArea, q as getLength, V as VectorSource, r as VectorLayer, S as Style, C as CircleStyle, F as Fill, s as Stroke, D as Draw, O as Overlay, u as unByKey, t as ElSelect, v as ElOption, w as fromLonLat, P as Point, x as transform, y as Feature, T as Text, I as Icon, z as Translate, A as toLonLat, B as transformExtent, h as hooks, L as LineString, G as Polyline, H as getVectorContext, i as cloneDeep, J as GeoJSON, W as WebGLPointsLayer, K as Circle, M as buffer, N as ScaleLine$1, Q as MultiPoint, R as getCenter, U as TileLayer, X as XYZ, Y as Map$1, Z as View } from "./vendor-Bonn9k5m.js";
|
|
6
6
|
import { _ as _export_sfc } from "./Button-BbUxF68h.js";
|
|
7
|
-
import { g as getForegroundColor } from "./DatePicker-
|
|
7
|
+
import { g as getForegroundColor } from "./DatePicker-DJuI_Emt.js";
|
|
8
8
|
import { w as withInstall } from "./utils-hD_p7bGY.js";
|
|
9
9
|
var BaseMapType = /* @__PURE__ */ ((e) => (e[e.vector = 0] = "vector", e[e.satellite = 1] = "satellite", e))(BaseMapType || {}), CAR_COLOR = /* @__PURE__ */ ((e) => (e[e.BLUE = 1] = "BLUE", e[e.YELLOW = 2] = "YELLOW", e[e.Y_GREEN = 3] = "Y_GREEN", e))(CAR_COLOR || {}), DEVICE_TYPE = /* @__PURE__ */ ((e) => (e[e.HOST = 1] = "HOST", e[e.TALK = 2] = "TALK", e[e.STORAGE = 3] = "STORAGE", e[e.INTERNET = 4] = "INTERNET", e[e.CAMERA = 5] = "CAMERA", e[e.LOAD = 6] = "LOAD", e))(DEVICE_TYPE || {}), LENGTH_UNIT = /* @__PURE__ */ ((e) => (e[e.M = 1] = "M", e[e.KM = 2] = "KM", e[e.NM = 3] = "NM", e))(LENGTH_UNIT || {}), SWITCH_BTN = /* @__PURE__ */ ((e) => (e.Camera = "camera", e.Mobile = "mobile", e.WaterGauge = "waterGauge", e))(SWITCH_BTN || {}), SHIP_SAIL_STATUS = /* @__PURE__ */ ((e) => (e[e.发动机使用中 = 0] = "发动机使用中", e[e.锚泊 = 1] = "锚泊", e[e.未操作 = 2] = "未操作", e[e.操纵能力受限 = 3] = "操纵能力受限", e[e.吃水受限 = 4] = "吃水受限", e[e.系泊 = 5] = "系泊", e[e.搁浅 = 6] = "搁浅", e[e.从事捕捞 = 7] = "从事捕捞", e[e.航行中 = 8] = "航行中", e[e.留作将来修正导航状态 = 9] = "留作将来修正导航状态", e[e.高速船留用 = 10] = "高速船留用", e[e.机动船尾推作业 = 11] = "机动船尾推作业", e[e.机动船顶推或侧推作业 = 12] = "机动船顶推或侧推作业", e[e.飞翼船留用 = 13] = "飞翼船留用", e[e.现行的 = 14] = "现行的", e[e.未定义 = 15] = "未定义", e))(SHIP_SAIL_STATUS || {});
|
|
10
10
|
class ShipMapData {
|
|
@@ -243,7 +243,7 @@ const formatLength = function(e, t) {
|
|
|
243
243
|
r("close");
|
|
244
244
|
};
|
|
245
245
|
return watch(() => l, () => {
|
|
246
|
-
l && !c.value && (M(), F());
|
|
246
|
+
l.value && !c.value && (M(), F());
|
|
247
247
|
}, { deep: !0, immediate: !0 }), t({
|
|
248
248
|
addInteraction: F,
|
|
249
249
|
removeInteraction: C
|
|
@@ -299,7 +299,7 @@ const formatLength = function(e, t) {
|
|
|
299
299
|
])
|
|
300
300
|
])) : createCommentVNode("", !0);
|
|
301
301
|
}
|
|
302
|
-
}), Measure = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
302
|
+
}), Measure = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b36b46d6"]]), mapInstance$8 = ref(), renderMarkerSetInstance = (e) => mapInstance$8.value = e, markerPosition = ref(""), marker = ref(), createIconStyle = (e) => new Style({
|
|
303
303
|
image: new Icon({
|
|
304
304
|
src: CDN_URL + "map/poi-marker-default.png",
|
|
305
305
|
anchor: [0.5, 1]
|
|
@@ -494,7 +494,8 @@ const multiplyPixelRatio = (e) => {
|
|
|
494
494
|
});
|
|
495
495
|
}, getTopLeftPoint = (e) => [e[0], e[3]], getBottomLeftPoint = (e) => [e[2], e[3]], getBottomRightPoint = (e) => [e[2], e[1]], getTopRighttPoint = (e) => [e[0], e[1]];
|
|
496
496
|
function calculateBounds(e, t, n, o, r) {
|
|
497
|
-
let l, i, s, c
|
|
497
|
+
let l, i, s, c;
|
|
498
|
+
const d = e[0], m = e[1];
|
|
498
499
|
switch (t) {
|
|
499
500
|
case 0:
|
|
500
501
|
l = d + r, i = l + n, c = m - r, s = c - o;
|
|
@@ -524,7 +525,7 @@ function calculateBounds(e, t, n, o, r) {
|
|
|
524
525
|
return [Math.min(l, i), Math.min(s, c), Math.max(l, i), Math.max(s, c) + 1];
|
|
525
526
|
}
|
|
526
527
|
function calculateAnchorPoint(e, t, n = 70, o = 20, r = 20) {
|
|
527
|
-
|
|
528
|
+
const l = [0, 0];
|
|
528
529
|
switch (t) {
|
|
529
530
|
case 0:
|
|
530
531
|
l[0] = e[0] + r, l[1] = e[1] - r - o / 2;
|
|
@@ -568,13 +569,16 @@ function drawLabelBody(e, t, n) {
|
|
|
568
569
|
e.save(), o && (e.font = o);
|
|
569
570
|
let f = e.measureText(s).width + 2 * r;
|
|
570
571
|
(c || d) && (f += l + 4 * r), e.restore();
|
|
571
|
-
let p
|
|
572
|
+
let p;
|
|
573
|
+
const y = 20;
|
|
574
|
+
let v = -1;
|
|
575
|
+
const g = l + 3 * r;
|
|
572
576
|
if (m)
|
|
573
577
|
for (let M = 0; M < 8; M++) {
|
|
574
578
|
p = calculateBounds(i, M, f, g, m);
|
|
575
579
|
let S = !1;
|
|
576
580
|
for (let b = 0; b < t.length; ++b) {
|
|
577
|
-
|
|
581
|
+
const C = t[b].bounds, F = [
|
|
578
582
|
C[0] - y,
|
|
579
583
|
C[1] - y,
|
|
580
584
|
C[2] + y,
|
|
@@ -593,7 +597,7 @@ function drawLabelBody(e, t, n) {
|
|
|
593
597
|
else
|
|
594
598
|
v = 0, p = calculateBounds(i, v, f, g, m);
|
|
595
599
|
if (u && v === -1 && (v = 0), p && v > -1) {
|
|
596
|
-
|
|
600
|
+
const M = getBottomLeftPoint(p), S = getTopRighttPoint(p);
|
|
597
601
|
return {
|
|
598
602
|
center: i,
|
|
599
603
|
x: calculateAnchorPoint(i, v, f, g, m),
|
|
@@ -613,14 +617,14 @@ const drawText = (e, t) => {
|
|
|
613
617
|
let [c, d] = n;
|
|
614
618
|
if (l) {
|
|
615
619
|
e.font = "22px map-iconfont";
|
|
616
|
-
|
|
620
|
+
const m = getIconFont(l.icon);
|
|
617
621
|
e.fillStyle = l.color, e.fillText(m, c + labelOutSize - 4, d + 4), c += 22;
|
|
618
622
|
}
|
|
619
623
|
if (i != null && i.length) {
|
|
620
624
|
e.font = "12px map-iconfont", e.fillStyle = "#3370ff";
|
|
621
|
-
|
|
625
|
+
const m = e.measureText(o).width + 6;
|
|
622
626
|
i.forEach((u, f) => {
|
|
623
|
-
|
|
627
|
+
const p = getIconFont(u), y = 20 * f;
|
|
624
628
|
e.fillText(p, c + m + y, d);
|
|
625
629
|
});
|
|
626
630
|
}
|
|
@@ -643,13 +647,11 @@ const drawText = (e, t) => {
|
|
|
643
647
|
e.lineTo(n[u][0], n[u][1]);
|
|
644
648
|
l && e.closePath(), o && (e.strokeStyle = o, e.stroke()), r && l && (m && (e.globalAlpha = m), e.fillStyle = r, e.fill()), e.restore();
|
|
645
649
|
}
|
|
646
|
-
}
|
|
647
|
-
let intervalId = [];
|
|
648
|
-
const drawLabel = (e, t, n) => {
|
|
650
|
+
}, intervalId = [], drawLabel = (e, t, n) => {
|
|
649
651
|
var u, f;
|
|
650
652
|
let { center: o, text: r, color: l, textColor: i, bgColor: s, leftIcon: c, rightIcons: d, type: m } = t;
|
|
651
653
|
if (o && r) {
|
|
652
|
-
|
|
654
|
+
const p = {
|
|
653
655
|
font: labelFont,
|
|
654
656
|
labelOutSize,
|
|
655
657
|
labelHeight,
|
|
@@ -659,10 +661,9 @@ const drawLabel = (e, t, n) => {
|
|
|
659
661
|
selected: t.selected
|
|
660
662
|
};
|
|
661
663
|
(u = t.blinkColors) != null && u.length && (s = t.fill, i = getForegroundColor(t.fill));
|
|
662
|
-
|
|
664
|
+
const y = drawLabelBody(e, n, p);
|
|
663
665
|
if (y) {
|
|
664
|
-
const { x: v, bounds: g, l: M } = y;
|
|
665
|
-
let S = [getTopLeftPoint(g), getBottomLeftPoint(g), getBottomRightPoint(g), getTopRighttPoint(g)];
|
|
666
|
+
const { x: v, bounds: g, l: M } = y, S = [getTopLeftPoint(g), getBottomLeftPoint(g), getBottomRightPoint(g), getTopRighttPoint(g)];
|
|
666
667
|
n.find((w) => w.name === r) || n.push(y), drawPolygon(e, {
|
|
667
668
|
points: [o, v],
|
|
668
669
|
strokeColor: l,
|
|
@@ -720,11 +721,13 @@ function gcj02ToWgs84(e) {
|
|
|
720
721
|
if (outOfChina(t, n))
|
|
721
722
|
return `${t.toFixed(6)}, ${n.toFixed(6)}`;
|
|
722
723
|
{
|
|
723
|
-
let o = transformLat(t - 105, n - 35), r = transformLng(t - 105, n - 35)
|
|
724
|
+
let o = transformLat(t - 105, n - 35), r = transformLng(t - 105, n - 35);
|
|
725
|
+
const l = n / 180 * PI;
|
|
726
|
+
let i = Math.sin(l);
|
|
724
727
|
i = 1 - ee * i * i;
|
|
725
|
-
|
|
728
|
+
const s = Math.sqrt(i);
|
|
726
729
|
o = o * 180 / (a * (1 - ee) / (i * s) * PI), r = r * 180 / (a / s * Math.cos(l) * PI);
|
|
727
|
-
|
|
730
|
+
const c = n + o, d = t + r;
|
|
728
731
|
return `${(t * 2 - d).toFixed(6)}, ${(n * 2 - c).toFixed(6)}`;
|
|
729
732
|
}
|
|
730
733
|
}
|
|
@@ -749,7 +752,8 @@ function lonLatToMercator(e) {
|
|
|
749
752
|
return n = n * equatorialCircumference / 180, [t, n];
|
|
750
753
|
}
|
|
751
754
|
function mercatorToLonLat(e, t = "lonlat") {
|
|
752
|
-
|
|
755
|
+
const n = { lon: 0, lat: 0 }, o = e[0] / equatorialCircumference * 180;
|
|
756
|
+
let r = e[1] / equatorialCircumference * 180;
|
|
753
757
|
return r = 180 / Math.PI * (2 * Math.atan(Math.exp(r * Math.PI / 180)) - Math.PI / 2), n.lon = o, n.lat = r, t === "lonlat" ? n : [o, r];
|
|
754
758
|
}
|
|
755
759
|
function calculateBoundingBox(e) {
|
|
@@ -772,10 +776,9 @@ const transformUtils = {
|
|
|
772
776
|
const o = e[t];
|
|
773
777
|
if (!o) return;
|
|
774
778
|
allTracks.value[t] = o, trackList$1.value = [], trackList$1.value = o.map((c, d) => (c.center = [c.lon, c.lat], c.centerPoint = transformUtils.lonLatToMercator(c.center), c.id = t, c.index = d, c.time = hooks(c.createdAt).format("YYYY-MM-DD HH:mm:ss"), c));
|
|
775
|
-
|
|
779
|
+
const r = trackList$1.value.map((c) => c.centerPoint);
|
|
776
780
|
if (r.length >= 2) {
|
|
777
|
-
|
|
778
|
-
const d = new Feature({ geometry: c });
|
|
781
|
+
const c = new LineString(r), d = new Feature({ geometry: c });
|
|
779
782
|
d.setStyle(
|
|
780
783
|
new Style({
|
|
781
784
|
stroke: new Stroke({
|
|
@@ -867,19 +870,19 @@ const moveFeature = (e, t) => {
|
|
|
867
870
|
}), (n = mapInstance$7.value) == null || n.addLayer(vectorLayer), moveFeatureHandler = (o) => moveFeature(o, t), startAnimation();
|
|
868
871
|
}, renderPoint = (e) => {
|
|
869
872
|
if (!mapInstance$7.value) return;
|
|
870
|
-
|
|
873
|
+
const t = trackList$1.value || [];
|
|
871
874
|
if (!(t && t.length > 1)) return [];
|
|
872
|
-
|
|
875
|
+
const n = { 16: 24, 17: 15, default: 4 }, o = [], r = t.length;
|
|
873
876
|
for (let s = 0; s < r; s++) {
|
|
874
877
|
t[s].index = s;
|
|
875
|
-
|
|
878
|
+
const c = mapInstance$7.value.getPixelFromCoordinate(t[s].centerPoint);
|
|
876
879
|
if (c) {
|
|
877
880
|
let d = c.concat(c);
|
|
878
881
|
d = adjustBounds(d, [20, 20]);
|
|
879
|
-
|
|
882
|
+
const m = mapInstance$7.value.getView().getZoom();
|
|
880
883
|
if (!m) return;
|
|
881
884
|
if (m > 15) {
|
|
882
|
-
|
|
885
|
+
const f = n[m] || n.default;
|
|
883
886
|
d = adjustBounds(d, [f, f]);
|
|
884
887
|
}
|
|
885
888
|
let u = !0;
|
|
@@ -896,7 +899,7 @@ const moveFeature = (e, t) => {
|
|
|
896
899
|
const l = getIconStyle(stopIcon), i = getIconStyle(slowIcon);
|
|
897
900
|
o.forEach((s, c) => {
|
|
898
901
|
var u, f;
|
|
899
|
-
|
|
902
|
+
const d = new Feature({
|
|
900
903
|
geometry: new Point(s.centerPoint)
|
|
901
904
|
});
|
|
902
905
|
d.set("type", "track_point"), d.set("data", s), d.setStyle([
|
|
@@ -922,11 +925,11 @@ const moveFeature = (e, t) => {
|
|
|
922
925
|
if (m.set("type", "track_label"), m.set("track_label_index", c), m.setStyle(
|
|
923
926
|
setTrackLabelStyle(s, e)
|
|
924
927
|
), trackLineVectorSource.value.addFeature(m), typeof s == "object" && s.hasOwnProperty("state")) {
|
|
925
|
-
|
|
928
|
+
const p = new Feature({
|
|
926
929
|
geometry: new Point(s.centerPoint)
|
|
927
930
|
});
|
|
928
931
|
p.set("type", "track_icon");
|
|
929
|
-
|
|
932
|
+
const y = new Style({
|
|
930
933
|
text: new Text({
|
|
931
934
|
font: "Normal 22px map-iconfont",
|
|
932
935
|
text: getIconFont(dropletsIcon),
|
|
@@ -941,18 +944,19 @@ const moveFeature = (e, t) => {
|
|
|
941
944
|
const n = e.length;
|
|
942
945
|
n || (e.push(trackList$1.value[0]), e.push(trackList$1.value[trackList$1.value.length - 1]));
|
|
943
946
|
for (let o = 0; o < n - 1; o++) {
|
|
944
|
-
let r
|
|
947
|
+
let r;
|
|
948
|
+
const l = e[o], i = (e[o + 1].index + l.index) / 2;
|
|
945
949
|
if (i % 2 === 0)
|
|
946
950
|
r = trackList$1.value[i].centerPoint;
|
|
947
951
|
else {
|
|
948
|
-
|
|
952
|
+
const s = trackList$1.value[Math.floor(i)], c = trackList$1.value[Math.ceil(i)];
|
|
949
953
|
if (s && c) {
|
|
950
|
-
|
|
954
|
+
const [d, m] = s.centerPoint, [u, f] = c.centerPoint;
|
|
951
955
|
r = [(d + u) / 2, (m + f) / 2];
|
|
952
956
|
}
|
|
953
957
|
}
|
|
954
958
|
if (r) {
|
|
955
|
-
|
|
959
|
+
const s = new Feature({
|
|
956
960
|
geometry: new Point(r)
|
|
957
961
|
});
|
|
958
962
|
s.set("type", "track_arrow"), s.setStyle(
|
|
@@ -974,7 +978,7 @@ const moveFeature = (e, t) => {
|
|
|
974
978
|
}, renderIconPoint = () => {
|
|
975
979
|
const e = "", t = "#fcdc3f", n = "#ff0000";
|
|
976
980
|
(trackList$1.value.length < 2 ? [trackList$1.value[0]] : [trackList$1.value[0], trackList$1.value[trackList$1.value.length - 1]]).forEach((r) => {
|
|
977
|
-
|
|
981
|
+
const l = new Feature({
|
|
978
982
|
geometry: new Point(r.centerPoint)
|
|
979
983
|
});
|
|
980
984
|
l.set("type", "track_begin"), l.set("data", r);
|
|
@@ -1114,8 +1118,8 @@ const moveFeature = (e, t) => {
|
|
|
1114
1118
|
}, drawHeading = (e, t, n) => {
|
|
1115
1119
|
const [o, r] = n[0], l = getShipDirectPath(t);
|
|
1116
1120
|
if (l) {
|
|
1117
|
-
|
|
1118
|
-
|
|
1121
|
+
const i = l.map(function(s) {
|
|
1122
|
+
const [c, d] = s;
|
|
1119
1123
|
return [c + o, d + r];
|
|
1120
1124
|
});
|
|
1121
1125
|
if (e.save(), e.beginPath(), t.angle > 0) {
|
|
@@ -1125,7 +1129,7 @@ const moveFeature = (e, t) => {
|
|
|
1125
1129
|
}
|
|
1126
1130
|
e.moveTo(o, r);
|
|
1127
1131
|
for (let s = 1; s < i.length; s++) {
|
|
1128
|
-
|
|
1132
|
+
const [c, d] = i[s];
|
|
1129
1133
|
e.lineTo(c, d);
|
|
1130
1134
|
}
|
|
1131
1135
|
e.strokeStyle = "#000", e.lineWidth = 1, e.stroke(), e.restore();
|
|
@@ -1141,8 +1145,7 @@ const moveFeature = (e, t) => {
|
|
|
1141
1145
|
const [o, r] = n, l = o - 0, i = r - 0, s = t.name;
|
|
1142
1146
|
let c;
|
|
1143
1147
|
t.leftIconColor && (c = { color: t.leftIconColor, icon: "" });
|
|
1144
|
-
|
|
1145
|
-
const m = {
|
|
1148
|
+
const d = getShipCustomIcon(t), m = {
|
|
1146
1149
|
id: t.id,
|
|
1147
1150
|
center: [l, i],
|
|
1148
1151
|
text: s,
|
|
@@ -1164,10 +1167,11 @@ const moveFeature = (e, t) => {
|
|
|
1164
1167
|
let l = cloneDeep(shipShapeModel);
|
|
1165
1168
|
return l = l.map(([i, s]) => [i * r, s * o]), l;
|
|
1166
1169
|
}, getShipDirectPath = (e) => {
|
|
1167
|
-
|
|
1170
|
+
const { speed: t, hdg: n, cog: o } = e;
|
|
1171
|
+
let r = "", l = null;
|
|
1168
1172
|
if (t && t > 1 && (n !== null && n != 511 && o !== null ? o - n >= 3 ? r = "left" : o - n <= -3 ? r = "right" : r = "front" : r = "front", r && t))
|
|
1169
|
-
for (
|
|
1170
|
-
|
|
1173
|
+
for (const i in speedCondition) {
|
|
1174
|
+
const s = speedCondition[i];
|
|
1171
1175
|
if (t >= s[0] && t < s[1]) {
|
|
1172
1176
|
l = shipDirectPath[r][i];
|
|
1173
1177
|
break;
|
|
@@ -1175,7 +1179,7 @@ const moveFeature = (e, t) => {
|
|
|
1175
1179
|
}
|
|
1176
1180
|
return l;
|
|
1177
1181
|
}, getShipCustomIcon = (e) => {
|
|
1178
|
-
|
|
1182
|
+
const t = [];
|
|
1179
1183
|
return e.existDevice && t.push(""), e.existMobile && t.push(""), e.existWaterGauge && t.push(""), t || [];
|
|
1180
1184
|
}, mapInstance$5 = ref(), renderShipSetInstance = (e) => mapInstance$5.value = e;
|
|
1181
1185
|
let shipsMarkerList = [], shipsVectorSource, largeAmountShipsSource;
|
|
@@ -1264,7 +1268,7 @@ const renderShips = (e) => {
|
|
|
1264
1268
|
let t = cloneDeep(e);
|
|
1265
1269
|
return t = t.filter((n) => {
|
|
1266
1270
|
var r;
|
|
1267
|
-
|
|
1271
|
+
const o = getFilterItem(n).every(({ btnShow: l, value: i }) => l ? !!i : !0);
|
|
1268
1272
|
return (switchBtnShow.value.camera || switchBtnShow.value.mobile || switchBtnShow.value.waterGauge) && ((r = selectedShipData.value) == null ? void 0 : r.id) === n.id && clearSelectFeature(), o;
|
|
1269
1273
|
}), t;
|
|
1270
1274
|
}, getFilterItem = (e) => [
|
|
@@ -1368,7 +1372,7 @@ const renderShips = (e) => {
|
|
|
1368
1372
|
}), document.addEventListener("mousemove", function(v) {
|
|
1369
1373
|
var g;
|
|
1370
1374
|
if (f) {
|
|
1371
|
-
|
|
1375
|
+
const M = (g = mapInstance$4.value) == null ? void 0 : g.getCoordinateFromPixel([v.clientX - y[0], v.clientY - y[1]]), S = M[0] - p[0], b = M[1] - p[1];
|
|
1372
1376
|
i.setPosition([p[0] + S, p[1] + b]);
|
|
1373
1377
|
}
|
|
1374
1378
|
}), document.addEventListener("mouseup", function() {
|
|
@@ -1381,8 +1385,7 @@ const renderShips = (e) => {
|
|
|
1381
1385
|
var f, p;
|
|
1382
1386
|
(f = mapInstance$4.value) == null || f.removeOverlay(i), (p = l.parentNode) == null || p.removeChild(l);
|
|
1383
1387
|
});
|
|
1384
|
-
|
|
1385
|
-
const d = (u = mapInstance$4.value) == null ? void 0 : u.getCoordinateFromPixel(c);
|
|
1388
|
+
const c = JSON.parse(JSON.stringify(t)), d = (u = mapInstance$4.value) == null ? void 0 : u.getCoordinateFromPixel(c);
|
|
1386
1389
|
return i.setPosition(d), i;
|
|
1387
1390
|
}, mapInstance$3 = ref(), renderTrackSetInstance = (e) => mapInstance$3.value = e, showTracks = ref([]), trackList = ref([]);
|
|
1388
1391
|
ref(null);
|
|
@@ -1395,7 +1398,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
|
|
|
1395
1398
|
((m = showTracks.value) == null ? void 0 : m.findIndex((u) => u.id === e)) < 0 && showTracks.value.push({ id: e, length: "" });
|
|
1396
1399
|
return;
|
|
1397
1400
|
}
|
|
1398
|
-
|
|
1401
|
+
const l = {};
|
|
1399
1402
|
t.forEach((u) => {
|
|
1400
1403
|
u.state ? u.state = Number(u.state) : delete u.state;
|
|
1401
1404
|
}), trackId.value = e, l[e] = t, trackList.value = t;
|
|
@@ -1628,7 +1631,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
|
|
|
1628
1631
|
}
|
|
1629
1632
|
}), (r, l) => (openBlock(), createElementBlock("div", _hoisted_1$2));
|
|
1630
1633
|
}
|
|
1631
|
-
}), ScaleLine = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
1634
|
+
}), ScaleLine = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8c27b246"]]), _hoisted_1$1 = { class: "zoom" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1632
1635
|
__name: "zoomControl",
|
|
1633
1636
|
props: {
|
|
1634
1637
|
map: {
|
|
@@ -1656,7 +1659,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
|
|
|
1656
1659
|
}, "-")
|
|
1657
1660
|
]));
|
|
1658
1661
|
}
|
|
1659
|
-
}), ZoomControl = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
1662
|
+
}), ZoomControl = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f6b3b87d"]]), _hoisted_1 = { class: "copyright" }, _hoisted_2 = { class: "tdt-control-copyright tdt-control" }, _hoisted_3 = ["src"], _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1660
1663
|
__name: "copyright",
|
|
1661
1664
|
setup(e) {
|
|
1662
1665
|
return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -1824,10 +1827,7 @@ const addInteraction = (e) => {
|
|
|
1824
1827
|
draw.on("drawstart", function(l) {
|
|
1825
1828
|
var i;
|
|
1826
1829
|
layerState = "drawn", sketch = l.feature, n = (i = sketch.getGeometry()) == null ? void 0 : i.on("change", function(s) {
|
|
1827
|
-
const c = s.target;
|
|
1828
|
-
let d = formatUtils.formatArea(c, LENGTH_UNIT.NM);
|
|
1829
|
-
const u = c.getCoordinates()[0], f = new LineString([u[u.length - 2], u[u.length - 1]]);
|
|
1830
|
-
let p = formatUtils.formatLength(f, LENGTH_UNIT.NM);
|
|
1830
|
+
const c = s.target, d = formatUtils.formatArea(c, LENGTH_UNIT.NM), u = c.getCoordinates()[0], f = new LineString([u[u.length - 2], u[u.length - 1]]), p = formatUtils.formatLength(f, LENGTH_UNIT.NM);
|
|
1831
1831
|
if (lineLimitError = Number(getLength(f) / 1e3) > 150, validateSquareLimit(u), measureTooltipElement && d && (measureTooltipElement.innerHTML = `
|
|
1832
1832
|
<span class="text">面积:${d}${lineLimitError || squareLimitError ? '<span class="error pl-12">超出可以绘画的距离</span>' : ""}</span>
|
|
1833
1833
|
`), helpTooltipElement && d) {
|
|
@@ -1943,7 +1943,7 @@ const setPointStyle = (e, t, n) => {
|
|
|
1943
1943
|
renderer: (s, c) => {
|
|
1944
1944
|
const d = c.context;
|
|
1945
1945
|
d.save();
|
|
1946
|
-
|
|
1946
|
+
const m = 1;
|
|
1947
1947
|
d.scale(m, m);
|
|
1948
1948
|
let [u, f] = s;
|
|
1949
1949
|
u = u / m, f = f / m, d.font = "12px Arial";
|
|
@@ -2277,7 +2277,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2277
2277
|
createVNode(Copyright)
|
|
2278
2278
|
], 512));
|
|
2279
2279
|
}
|
|
2280
|
-
}), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2280
|
+
}), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26faf1d8"]]), ZhMap = withInstall(Map);
|
|
2281
2281
|
export {
|
|
2282
2282
|
CDN_URL as C,
|
|
2283
2283
|
DEFAULT_VALUE as D,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { v as $, d as k } from "./DatePicker-
|
|
1
|
+
import { defineComponent as i, useModel as d, computed as f, ref as v, openBlock as c, createBlock as y, unref as V, withCtx as n, createVNode as b, mergeProps as I, createSlots as M, renderList as w, renderSlot as B, normalizeProps as N, guardReactiveProps as g, mergeModels as m } from "vue";
|
|
2
|
+
import { v as $, d as k } from "./DatePicker-DJuI_Emt.js";
|
|
3
3
|
import { $ as P } from "./vendor-Bonn9k5m.js";
|
|
4
|
-
import { I as T } from "./Input-
|
|
4
|
+
import { I as T } from "./Input-CWfFyiHL.js";
|
|
5
5
|
import { _ } from "./Button-BbUxF68h.js";
|
|
6
6
|
import { w as z } from "./utils-hD_p7bGY.js";
|
|
7
|
-
const C = /* @__PURE__ */
|
|
7
|
+
const C = /* @__PURE__ */ i({
|
|
8
8
|
name: "zh-money-input",
|
|
9
9
|
__name: "MoneyInput",
|
|
10
10
|
props: /* @__PURE__ */ m({
|
|
@@ -17,7 +17,7 @@ const C = /* @__PURE__ */ d({
|
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ m(["update:modelValue"], ["update:modelValue"]),
|
|
19
19
|
setup(s, { emit: U }) {
|
|
20
|
-
const a = s, e =
|
|
20
|
+
const a = s, e = d(s, "modelValue"), u = f(() => {
|
|
21
21
|
if (e.value)
|
|
22
22
|
return $(e.value) && Number(e.value) >= 1e3 ? k(Number(e.value)) : "";
|
|
23
23
|
}), r = v(!1);
|
|
@@ -47,7 +47,7 @@ const C = /* @__PURE__ */ d({
|
|
|
47
47
|
_: 3
|
|
48
48
|
}, 8, ["content", "visible"]));
|
|
49
49
|
}
|
|
50
|
-
}), S = /* @__PURE__ */ _(C, [["__scopeId", "data-v-
|
|
50
|
+
}), S = /* @__PURE__ */ _(C, [["__scopeId", "data-v-632c1920"]]), L = z(S);
|
|
51
51
|
export {
|
|
52
52
|
L as Z
|
|
53
53
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, toRefs as m, openBlock as h, createElementBlock as u, createElementVNode as e, toDisplayString as s, unref as a, renderSlot as f } from "vue";
|
|
2
2
|
import { _ as g } from "./Button-BbUxF68h.js";
|
|
3
3
|
import { w as v } from "./utils-hD_p7bGY.js";
|
|
4
|
-
const P = { class: "page-head" }, x = { class: "left-wrap" },
|
|
4
|
+
const P = { class: "page-head" }, x = { class: "left-wrap" }, S = { class: "page-name" }, b = { class: "value" }, w = { class: "other-inform" }, H = { class: "label" }, k = { class: "value mg-r-24" }, B = { class: "status" }, E = /* @__PURE__ */ i({
|
|
5
5
|
name: "zh-page-head-panel",
|
|
6
6
|
__name: "PageHeadPanel",
|
|
7
7
|
props: {
|
|
@@ -11,10 +11,10 @@ const P = { class: "page-head" }, x = { class: "left-wrap" }, b = { class: "page
|
|
|
11
11
|
const n = o, { name: l, no: c, status: d, extendLabel: r, extendValue: p } = m(n.dataSource);
|
|
12
12
|
return (_, t) => (h(), u("div", P, [
|
|
13
13
|
e("div", x, [
|
|
14
|
-
e("span",
|
|
14
|
+
e("span", S, s(a(l)), 1),
|
|
15
15
|
e("div", null, [
|
|
16
16
|
t[0] || (t[0] = e("span", { class: "label mg-l-16" }, "编号", -1)),
|
|
17
|
-
e("span",
|
|
17
|
+
e("span", b, s(a(c)), 1)
|
|
18
18
|
])
|
|
19
19
|
]),
|
|
20
20
|
e("div", w, [
|
|
@@ -26,7 +26,7 @@ const P = { class: "page-head" }, x = { class: "left-wrap" }, b = { class: "page
|
|
|
26
26
|
])
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
|
-
}), I = /* @__PURE__ */ g(E, [["__scopeId", "data-v-
|
|
29
|
+
}), I = /* @__PURE__ */ g(E, [["__scopeId", "data-v-9f56969d"]]), z = v(I);
|
|
30
30
|
export {
|
|
31
31
|
z as Z
|
|
32
32
|
};
|