zhihao-ui 1.2.32 → 1.2.34
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-DwoIxH38.js} +1 -1
- package/dist/es/{DatePicker-Ci7cvNBv.js → DatePicker-BkfvEDok.js} +1 -1
- package/dist/es/{DetailHeader-CjOQGsUf.js → DetailHeader-CmvLT5jU.js} +1 -1
- package/dist/es/{DetailSubTitle-D0yLSSyv.js → DetailSubTitle-BXjqx7Gl.js} +1 -1
- package/dist/es/{DiyDataTable-BF1_jzWq.js → DiyDataTable-02Fvx4gj.js} +1 -1
- package/dist/es/{EditInfoPair-BJQiTE2F.js → EditInfoPair-2lOiJK1x.js} +2 -2
- package/dist/es/{FileWrapper-x299zfxX.js → FileWrapper-oSb83fz-.js} +3 -3
- package/dist/es/{Grid-CXOlWZvI.js → Grid-CHKAGBr9.js} +36 -37
- package/dist/es/{InfoPair-DIGArRxD.js → InfoPair-CDbyplp2.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-CWXp1qnd.js} +105 -102
- package/dist/es/MoneyInput-BGmF3L2m.js +53 -0
- package/dist/es/{PageHeadPanel-BAkSI9xv.js → PageHeadPanel-Bw6wb6jF.js} +4 -4
- package/dist/es/{Table-C0SJnAXO.js → Table-D8EshRWb.js} +196 -200
- package/dist/es/ToolTips-Beib4mGU.js +31 -0
- package/dist/es/index.js +62 -59
- package/dist/index.css +1 -1
- package/dist/types/components/Button/types.d.ts +1 -7
- package/dist/types/components/Grid/Grid.vue.d.ts +0 -3
- package/dist/types/components/Grid/index.d.ts +0 -15
- package/dist/types/components/Grid/types.d.ts +0 -1
- package/dist/types/components/Map/Map.vue.d.ts +2 -0
- package/dist/types/components/Map/components/copyright.vue.d.ts +30 -1
- package/dist/types/components/Map/index.d.ts +10 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +2 -2
- package/dist/types/components/Map/types.d.ts +4 -0
- package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +2 -6
- package/dist/types/components/MoneyInput/index.d.ts +3 -13
- package/dist/types/components/Table/types.d.ts +1 -0
- package/dist/types/components/ToolTips/ToolTips.vue.d.ts +28 -19
- package/dist/types/components/ToolTips/index.d.ts +21 -21
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +7 -7
- package/package.json +45 -45
- package/dist/es/MoneyInput-CPvzXyjc.js +0 -53
- package/dist/es/ToolTips-BFpd9Tho.js +0 -37
- package/dist/types/components/Map/components/fullscreen.vue.d.ts +0 -14
- package/dist/types/components/Table/Table.vue.d.ts +0 -986
- package/dist/types/components/Table/index.d.ts +0 -2948
- package/dist/types/components/utils/color.d.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var I = (e, t, n) =>
|
|
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";
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var O = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var I = (e, t, n) => O(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent, inject, useModel, ref, watch, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, toDisplayString, createCommentVNode, mergeModels, nextTick, onMounted, normalizeClass, renderSlot, createBlock, useCssVars, computed, 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-BkfvEDok.js";
|
|
8
8
|
import { w as withInstall } from "./utils-hD_p7bGY.js";
|
|
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 || {});
|
|
9
|
+
var BaseMapType = /* @__PURE__ */ ((e) => (e[e.vector = 0] = "vector", e[e.satellite = 1] = "satellite", e))(BaseMapType || {}), SEARCH_TYPE = /* @__PURE__ */ ((e) => (e[e.SEARCH_SHIP = 0] = "SEARCH_SHIP", e[e.SEARCH_PORT = 1] = "SEARCH_PORT", e[e.SEARCH_CUSTOM = 2] = "SEARCH_CUSTOM", e))(SEARCH_TYPE || {}), COPY_RIGHT_TYPE = /* @__PURE__ */ ((e) => (e[e.HORIZONTAL = 0] = "HORIZONTAL", e[e.VERTICAL = 1] = "VERTICAL", e))(COPY_RIGHT_TYPE || {}), 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 {
|
|
11
11
|
constructor(t, n, o, r, l, i, s, c, d, m, u, f, p, y, v, g, M, S, b, C, F, x, h, w) {
|
|
12
12
|
I(this, "id");
|
|
@@ -120,7 +120,7 @@ const formatLength = function(e, t) {
|
|
|
120
120
|
}, _hoisted_1$4 = {
|
|
121
121
|
key: 0,
|
|
122
122
|
class: "measure-panel"
|
|
123
|
-
}, _hoisted_2$2 = { class: "d-flex justify-content-between align-content-start w-100" }, _hoisted_3$
|
|
123
|
+
}, _hoisted_2$2 = { class: "d-flex justify-content-between align-content-start w-100" }, _hoisted_3$1 = { class: "measure-history-list" }, _hoisted_4 = { class: "left-panel" }, _hoisted_5 = { class: "text index" }, _hoisted_6 = { class: "text" }, _hoisted_7 = ["onClick"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
124
124
|
__name: "measure",
|
|
125
125
|
props: /* @__PURE__ */ mergeModels({
|
|
126
126
|
viewMode: {}
|
|
@@ -198,19 +198,19 @@ const formatLength = function(e, t) {
|
|
|
198
198
|
S.on("drawstart", function(V) {
|
|
199
199
|
var N;
|
|
200
200
|
m = V.feature;
|
|
201
|
-
let
|
|
202
|
-
L = (N = m.getGeometry()) == null ? void 0 : N.on("change", function(
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
|
|
201
|
+
let P;
|
|
202
|
+
L = (N = m.getGeometry()) == null ? void 0 : N.on("change", function(R) {
|
|
203
|
+
const $ = R.target;
|
|
204
|
+
let A = formatUtils.formatLength($, Number(i.value));
|
|
205
|
+
P = $.getLastCoordinate(), p && A && (p.innerHTML = A), y.setPosition(P);
|
|
206
206
|
});
|
|
207
207
|
}), S.on("drawend", function() {
|
|
208
|
-
var V,
|
|
209
|
-
p && (p.className = "ol-tooltip ol-tooltip-static ol-tooltip-measure"), p != null && p.innerHTML && (s.value.push(p == null ? void 0 : p.innerHTML), p.innerHTML = `${p.innerHTML}<div class="ol-tooltip-delete-button" data-index="${((V = s.value) == null ? void 0 : V.length) - 1}"><i class="map-iconfont icon-delete"></i></div>`), (
|
|
210
|
-
var
|
|
208
|
+
var V, P;
|
|
209
|
+
p && (p.className = "ol-tooltip ol-tooltip-static ol-tooltip-measure"), p != null && p.innerHTML && (s.value.push(p == null ? void 0 : p.innerHTML), p.innerHTML = `${p.innerHTML}<div class="ol-tooltip-delete-button" data-index="${((V = s.value) == null ? void 0 : V.length) - 1}"><i class="map-iconfont icon-delete"></i></div>`), (P = document.querySelector(".ol-tooltip-delete-button:last-child")) == null || P.addEventListener("click", (N) => {
|
|
210
|
+
var $;
|
|
211
211
|
N.preventDefault(), N.stopPropagation();
|
|
212
|
-
const
|
|
213
|
-
|
|
212
|
+
const R = ($ = N.target) == null ? void 0 : $.getAttribute("data-index");
|
|
213
|
+
R && w(R);
|
|
214
214
|
}), y.setOffset([0, -7]), m = null, p = null, h(), L && unByKey(L);
|
|
215
215
|
});
|
|
216
216
|
}
|
|
@@ -233,17 +233,17 @@ const formatLength = function(e, t) {
|
|
|
233
233
|
}), (L = o.value) == null || L.addOverlay(y);
|
|
234
234
|
}
|
|
235
235
|
const w = (L) => {
|
|
236
|
-
var V,
|
|
236
|
+
var V, P;
|
|
237
237
|
s.value[L] && s.value.splice(L, 1);
|
|
238
238
|
const T = document.querySelectorAll(".ol-tooltip.ol-tooltip-static.ol-tooltip-measure");
|
|
239
|
-
T[L] && ((
|
|
239
|
+
T[L] && ((P = (V = T[L]) == null ? void 0 : V.parentNode) == null || P.removeChild(T[L]));
|
|
240
240
|
const E = d.getFeatures();
|
|
241
241
|
E[L] && d.removeFeature(E[L]);
|
|
242
242
|
}, k = () => {
|
|
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
|
|
@@ -279,7 +279,7 @@ const formatLength = function(e, t) {
|
|
|
279
279
|
_: 1
|
|
280
280
|
}, 8, ["modelValue"])
|
|
281
281
|
]),
|
|
282
|
-
createElementVNode("div", _hoisted_3$
|
|
282
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
283
283
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E, V) => (openBlock(), createElementBlock("div", {
|
|
284
284
|
class: "measure-history-item",
|
|
285
285
|
key: V
|
|
@@ -291,7 +291,7 @@ const formatLength = function(e, t) {
|
|
|
291
291
|
]),
|
|
292
292
|
createElementVNode("div", {
|
|
293
293
|
class: "delete-button",
|
|
294
|
-
onClick: (
|
|
294
|
+
onClick: (P) => w(V)
|
|
295
295
|
}, T[4] || (T[4] = [
|
|
296
296
|
createElementVNode("i", { class: "map-iconfont icon-delete" }, null, -1)
|
|
297
297
|
]), 8, _hoisted_7)
|
|
@@ -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;
|
|
@@ -1486,7 +1489,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
|
|
|
1486
1489
|
}, _hoisted_1$3 = {
|
|
1487
1490
|
key: 0,
|
|
1488
1491
|
class: "more-tool-panel"
|
|
1489
|
-
}, _hoisted_2$1 = { class: "switch-buttons" }, _hoisted_3
|
|
1492
|
+
}, _hoisted_2$1 = { class: "switch-buttons" }, _hoisted_3 = { class: "tool-components" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1490
1493
|
__name: "toolPanel",
|
|
1491
1494
|
props: {
|
|
1492
1495
|
vehicleMode: {},
|
|
@@ -1601,7 +1604,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, r = "ship")
|
|
|
1601
1604
|
]), 2)
|
|
1602
1605
|
], 64))
|
|
1603
1606
|
], 2),
|
|
1604
|
-
createElementVNode("div", _hoisted_3
|
|
1607
|
+
createElementVNode("div", _hoisted_3, [
|
|
1605
1608
|
i.value ? (openBlock(), createBlock(Measure, {
|
|
1606
1609
|
key: 0,
|
|
1607
1610
|
ref_key: "measureRef",
|
|
@@ -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,27 +1659,26 @@ 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 = ["src", "width"], _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1660
1663
|
__name: "copyright",
|
|
1664
|
+
props: {
|
|
1665
|
+
type: { default: COPY_RIGHT_TYPE.HORIZONTAL }
|
|
1666
|
+
},
|
|
1661
1667
|
setup(e) {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
n[1] || (n[1] = createElementVNode("div", {
|
|
1674
|
-
id: "dataSource",
|
|
1675
|
-
class: "tdt-control data-source"
|
|
1676
|
-
}, "数据来源:自然资源部 & NavInfo", -1))
|
|
1668
|
+
useCssVars((l) => ({
|
|
1669
|
+
38018819: r.value
|
|
1670
|
+
}));
|
|
1671
|
+
const t = e, n = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "map/tdt-copyright-h.svg" : "map/tdt-copyright-v.svg"), o = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "400px" : "168px"), r = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "auto auto 0 5px" : "0 auto auto 5px");
|
|
1672
|
+
return (l, i) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1673
|
+
createElementVNode("img", {
|
|
1674
|
+
src: unref(CDN_URL) + n.value,
|
|
1675
|
+
width: o.value,
|
|
1676
|
+
class: "logo",
|
|
1677
|
+
alt: ""
|
|
1678
|
+
}, null, 8, _hoisted_2)
|
|
1677
1679
|
]));
|
|
1678
1680
|
}
|
|
1679
|
-
}), Copyright = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1681
|
+
}), Copyright = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-edd264ae"]]), dotImage$1 = new Image();
|
|
1680
1682
|
dotImage$1.src = `${CDN_URL}/map/truck-dot.svg`;
|
|
1681
1683
|
dotImage$1.crossOrigin = "anonymous";
|
|
1682
1684
|
const dotActiveImage$1 = new Image();
|
|
@@ -1824,10 +1826,7 @@ const addInteraction = (e) => {
|
|
|
1824
1826
|
draw.on("drawstart", function(l) {
|
|
1825
1827
|
var i;
|
|
1826
1828
|
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);
|
|
1829
|
+
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
1830
|
if (lineLimitError = Number(getLength(f) / 1e3) > 150, validateSquareLimit(u), measureTooltipElement && d && (measureTooltipElement.innerHTML = `
|
|
1832
1831
|
<span class="text">面积:${d}${lineLimitError || squareLimitError ? '<span class="error pl-12">超出可以绘画的距离</span>' : ""}</span>
|
|
1833
1832
|
`), helpTooltipElement && d) {
|
|
@@ -1943,7 +1942,7 @@ const setPointStyle = (e, t, n) => {
|
|
|
1943
1942
|
renderer: (s, c) => {
|
|
1944
1943
|
const d = c.context;
|
|
1945
1944
|
d.save();
|
|
1946
|
-
|
|
1945
|
+
const m = 1;
|
|
1947
1946
|
d.scale(m, m);
|
|
1948
1947
|
let [u, f] = s;
|
|
1949
1948
|
u = u / m, f = f / m, d.font = "12px Arial";
|
|
@@ -2099,7 +2098,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2099
2098
|
vehicleMode: {},
|
|
2100
2099
|
viewMode: {},
|
|
2101
2100
|
mmsi: {},
|
|
2102
|
-
shipData: {}
|
|
2101
|
+
shipData: {},
|
|
2102
|
+
logoType: {}
|
|
2103
2103
|
},
|
|
2104
2104
|
emits: ["zoomChanged", "extentChanged"],
|
|
2105
2105
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -2166,10 +2166,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2166
2166
|
const k = h.calculateExtent(o.value.getSize());
|
|
2167
2167
|
k && w && F(k, w);
|
|
2168
2168
|
}, C = (h) => {
|
|
2169
|
-
var L, T, E, V,
|
|
2169
|
+
var L, T, E, V, P;
|
|
2170
2170
|
d.value = h, g(h < mapZoom.shipGreenDotMax);
|
|
2171
2171
|
const w = (L = o.value) == null ? void 0 : L.getLayers(), k = c.vehicleMode === "ship" ? w == null ? void 0 : w.getArray().find((N) => N.ol_uid === p.greenMark.ol_uid) : void 0;
|
|
2172
|
-
showTrackLayer.value ? (f.value = !1, k == null || k.setVisible(!1), (T = shipsLayer.value) == null || T.setVisible(!1), (E = largeAmountShipsLayer.value) == null || E.setVisible(!1)) : !m.value && u.value && h <= mapZoom.shipGreenDotMax ? (f.value = !0, k == null || k.setVisible(!0), (V = shipsLayer.value) == null || V.setVisible(!1), (
|
|
2172
|
+
showTrackLayer.value ? (f.value = !1, k == null || k.setVisible(!1), (T = shipsLayer.value) == null || T.setVisible(!1), (E = largeAmountShipsLayer.value) == null || E.setVisible(!1)) : !m.value && u.value && h <= mapZoom.shipGreenDotMax ? (f.value = !0, k == null || k.setVisible(!0), (V = shipsLayer.value) == null || V.setVisible(!1), (P = largeAmountShipsLayer.value) == null || P.setVisible(!1)) : (f.value = !1, k == null || k.setVisible(!1)), s("zoomChanged", h);
|
|
2173
2173
|
}, F = (h, w) => {
|
|
2174
2174
|
const k = transform([h[0], h[1]], projection.mercator, projection.data), L = transform([h[2], h[3]], projection.mercator, projection.data);
|
|
2175
2175
|
s("extentChanged", { extent: [k, L], zoom: w });
|
|
@@ -2274,17 +2274,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2274
2274
|
ref: i
|
|
2275
2275
|
}, null, 512)
|
|
2276
2276
|
], 64)) : createCommentVNode("", !0),
|
|
2277
|
-
createVNode(Copyright)
|
|
2277
|
+
createVNode(Copyright, { type: h.logoType }, null, 8, ["type"])
|
|
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-8c8bbb09"]]), ZhMap = withInstall(Map);
|
|
2281
2281
|
export {
|
|
2282
|
+
BaseMapType as B,
|
|
2282
2283
|
CDN_URL as C,
|
|
2283
2284
|
DEFAULT_VALUE as D,
|
|
2284
2285
|
LOG_DATE_FORMAT as L,
|
|
2286
|
+
SEARCH_TYPE as S,
|
|
2285
2287
|
ZhMap as Z,
|
|
2286
2288
|
mapDefaultCenter as a,
|
|
2287
2289
|
baseMap as b,
|
|
2290
|
+
COPY_RIGHT_TYPE as c,
|
|
2288
2291
|
mapZoom as m,
|
|
2289
2292
|
projection as p,
|
|
2290
2293
|
renderShipsLimit as r,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as p, useModel as d, computed as i, ref as f, openBlock as v, createBlock as c, unref as y, withCtx as n, createVNode as V, mergeProps as b, createSlots as I, renderList as M, renderSlot as w, normalizeProps as B, guardReactiveProps as N, mergeModels as g } from "vue";
|
|
2
|
+
import { v as $, d as k } from "./DatePicker-BkfvEDok.js";
|
|
3
|
+
import { $ as P } from "./vendor-Bonn9k5m.js";
|
|
4
|
+
import { I as T } from "./Input-CWfFyiHL.js";
|
|
5
|
+
import { _ as z } from "./Button-BbUxF68h.js";
|
|
6
|
+
import { w as C } from "./utils-hD_p7bGY.js";
|
|
7
|
+
const S = /* @__PURE__ */ p({
|
|
8
|
+
name: "zh-money-input",
|
|
9
|
+
__name: "MoneyInput",
|
|
10
|
+
props: /* @__PURE__ */ g({
|
|
11
|
+
style: {},
|
|
12
|
+
class: {},
|
|
13
|
+
showTooltip: { type: Boolean, default: !0 }
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(s) {
|
|
20
|
+
const a = s, e = d(s, "modelValue"), u = i(() => {
|
|
21
|
+
if (e.value)
|
|
22
|
+
return $(e.value) && Number(e.value) >= 1e3 ? k(Number(e.value)) : "";
|
|
23
|
+
}), r = f(!1);
|
|
24
|
+
return (t, o) => (v(), c(y(P), {
|
|
25
|
+
effect: "dark",
|
|
26
|
+
content: u.value,
|
|
27
|
+
placement: "top",
|
|
28
|
+
visible: t.showTooltip && r.value && !!u.value
|
|
29
|
+
}, {
|
|
30
|
+
default: n(() => [
|
|
31
|
+
V(T, b(t.$attrs, {
|
|
32
|
+
modelValue: e.value,
|
|
33
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.value = l),
|
|
34
|
+
style: a.style,
|
|
35
|
+
class: a.class,
|
|
36
|
+
onFocus: o[1] || (o[1] = () => r.value = !0),
|
|
37
|
+
onBlur: o[2] || (o[2] = () => r.value = !1)
|
|
38
|
+
}), I({ _: 2 }, [
|
|
39
|
+
M(Object.keys(t.$slots), (l) => ({
|
|
40
|
+
name: l,
|
|
41
|
+
fn: n((m) => [
|
|
42
|
+
w(t.$slots, l, B(N(m)), void 0, !0)
|
|
43
|
+
])
|
|
44
|
+
}))
|
|
45
|
+
]), 1040, ["modelValue", "style", "class"])
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 8, ["content", "visible"]));
|
|
49
|
+
}
|
|
50
|
+
}), U = /* @__PURE__ */ z(S, [["__scopeId", "data-v-cfd94d9e"]]), L = C(U);
|
|
51
|
+
export {
|
|
52
|
+
L as Z
|
|
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
|
};
|