zhihao-ui 1.2.25 → 1.2.27
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/{BaseInfo-DCB7xgRw.js → BaseInfo-XETJaruy.js} +1 -1
- package/dist/es/{Button-Va8xfPJd.js → Button-CzjgaPIL.js} +2 -2
- package/dist/es/{DatePicker-BrD1XS6-.js → DatePicker-DNgii92T.js} +2 -2
- package/dist/es/{DetailHeader-C13bJw_K.js → DetailHeader-C7L01g9Z.js} +3 -3
- package/dist/es/{DetailSubTitle-BgbefcLD.js → DetailSubTitle-ChWfR3qA.js} +2 -2
- package/dist/es/{Dialog-CnqJMaPI.js → Dialog-Cky8TKRM.js} +33 -28
- package/dist/es/{DiyDataTable-BqAwjS3F.js → DiyDataTable-D1s7-cdV.js} +18 -17
- package/dist/es/{EditInfoPair-XiseN2F2.js → EditInfoPair-C0EG8kUd.js} +3 -3
- package/dist/es/{FileWrapper-CAwHicjK.js → FileWrapper-CmvheBNp.js} +4 -4
- package/dist/es/{Grid-CshEwvAH.js → Grid-CfJ_U3gi.js} +1 -1
- package/dist/es/{InfoPair-DhVT8u-f.js → InfoPair-JA1pAAyP.js} +3 -3
- package/dist/es/{Input-CeiPnMtt.js → Input-12ajHBoj.js} +3 -3
- package/dist/es/{Loading-bv2DpqBO.js → Loading-CHji9tKE.js} +2 -2
- package/dist/es/{Map-DhceUygQ.js → Map-Drzg1DDm.js} +65 -63
- package/dist/es/{MessageBox-2Vpy3Mva.js → MessageBox-1NCCwju7.js} +2 -2
- package/dist/es/{MoneyInput-Deg1aj66.js → MoneyInput-PI2K9BeH.js} +9 -9
- package/dist/es/{PageHeadPanel-BWjWkx8n.js → PageHeadPanel-CBDItYUC.js} +2 -2
- package/dist/es/{Table-CQjp8H9A.js → Table-BBWU5wYF.js} +5 -5
- package/dist/es/{ToolTips-Bw2lHQxC.js → ToolTips-BBCd543g.js} +3 -3
- package/dist/es/index.js +21 -21
- package/dist/es/{utils-D-zYpBSZ.js → utils-BIGjF-zg.js} +3 -3
- package/dist/es/{vendor-gTOtiVzA.js → vendor-BhAIOWbw.js} +39 -38
- package/dist/index.css +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -2,12 +2,12 @@ var B = Object.defineProperty;
|
|
|
2
2
|
var R = (e, t, o) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var I = (e, t, o) => R(e, typeof t != "symbol" ? t + "" : t, o);
|
|
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
|
-
import { n as getArea, o as getLength, V as VectorSource, p as VectorLayer, S as Style, C as CircleStyle, F as Fill, q as Stroke, D as Draw, O as Overlay, u as unByKey, r as ElSelect, s as ElOption, T as Text, t as fromLonLat, v as transformExtent, h as hooks, L as LineString, w as Feature, P as Point, x as Polyline, y as getVectorContext, e as cloneDeep, G as GeoJSON, W as WebGLPointsLayer, z as
|
|
6
|
-
import { _ as _export_sfc } from "./Button-
|
|
7
|
-
import { w as withInstall } from "./utils-
|
|
5
|
+
import { n as getArea, o as getLength, V as VectorSource, p as VectorLayer, S as Style, C as CircleStyle, F as Fill, q as Stroke, D as Draw, O as Overlay, u as unByKey, r as ElSelect, s as ElOption, T as Text, t as fromLonLat, v as transformExtent, h as hooks, L as LineString, w as Feature, P as Point, x as Polyline, y as getVectorContext, e as cloneDeep, G as GeoJSON, W as WebGLPointsLayer, z as Circle, A as transform, B as buffer, H as ScaleLine$1, I as Icon, J as Translate, K as toLonLat, M as MultiPoint, N as getCenter, Q as TileLayer, X as XYZ, R as Map$1, U as View } from "./vendor-BhAIOWbw.js";
|
|
6
|
+
import { _ as _export_sfc } from "./Button-CzjgaPIL.js";
|
|
7
|
+
import { w as withInstall } from "./utils-BIGjF-zg.js";
|
|
8
8
|
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 || {});
|
|
9
9
|
class ShipMapData {
|
|
10
|
-
constructor(t, o, n, r, l, i, s, c, d, m, u, f, p, y, h, g, L, T, b, C,
|
|
10
|
+
constructor(t, o, n, r, l, i, s, c, d, m, u, f, p, y, h, g, L, T, b, C, x, v, S) {
|
|
11
11
|
I(this, "id");
|
|
12
12
|
// mmsi
|
|
13
13
|
I(this, "mmsi");
|
|
@@ -48,7 +48,7 @@ class ShipMapData {
|
|
|
48
48
|
I(this, "existMobile");
|
|
49
49
|
I(this, "existWaterGauge");
|
|
50
50
|
I(this, "selected");
|
|
51
|
-
this.id = t, this.mmsi = o, this.fill = n, this.shipType = r, this.name = l, this.length = i, this.breadth = s, this.lon = c, this.lat = d, this.createdAt = m, this.speed = u, this.from = f, this.sailStatus = p, this.hdg = y, this.cog = h, this.posType = g, this.type = L, this.angle = T, this.leftIconColor = b, this.existDevice = C, this.existMobile =
|
|
51
|
+
this.id = t, this.mmsi = o, this.fill = n, this.shipType = r, this.name = l, this.length = i, this.breadth = s, this.lon = c, this.lat = d, this.createdAt = m, this.speed = u, this.from = f, this.sailStatus = p, this.hdg = y, this.cog = h, this.posType = g, this.type = L, this.angle = T, this.leftIconColor = b, this.existDevice = C, this.existMobile = x, this.existWaterGauge = v, this.selected = S;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
const formatLength = function(e, t) {
|
|
@@ -172,16 +172,16 @@ const formatLength = function(e, t) {
|
|
|
172
172
|
var k, M;
|
|
173
173
|
if (n.value) {
|
|
174
174
|
if (s.value = [], document.querySelectorAll(".ol-tooltip.ol-tooltip-static").forEach((E) => {
|
|
175
|
-
var
|
|
176
|
-
(
|
|
175
|
+
var F;
|
|
176
|
+
(F = E == null ? void 0 : E.parentNode) == null || F.removeChild(E);
|
|
177
177
|
}), d.clear(), T) {
|
|
178
|
-
const E = n.value.getInteractions().getArray().find((
|
|
178
|
+
const E = n.value.getInteractions().getArray().find((F) => F.ol_uid === T.ol_uid);
|
|
179
179
|
E && ((k = n.value) == null || k.removeInteraction(E));
|
|
180
180
|
}
|
|
181
181
|
(M = n.value) == null || M.removeLayer(h), u != null && u.parentNode && u.parentNode.removeChild(u), p != null && p.parentNode && p.parentNode.removeChild(p);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function x() {
|
|
185
185
|
var M, E;
|
|
186
186
|
C(), (M = n.value) == null || M.addLayer(h), T = new Draw({
|
|
187
187
|
source: d,
|
|
@@ -191,9 +191,9 @@ const formatLength = function(e, t) {
|
|
|
191
191
|
}
|
|
192
192
|
}), (E = n.value) == null || E.addInteraction(T), S(), v();
|
|
193
193
|
let k;
|
|
194
|
-
T.on("drawstart", function(
|
|
194
|
+
T.on("drawstart", function(F) {
|
|
195
195
|
var N;
|
|
196
|
-
m =
|
|
196
|
+
m = F.feature;
|
|
197
197
|
let P;
|
|
198
198
|
k = (N = m.getGeometry()) == null ? void 0 : N.on("change", function(A) {
|
|
199
199
|
const $ = A.target;
|
|
@@ -223,19 +223,19 @@ const formatLength = function(e, t) {
|
|
|
223
223
|
}), (k = n.value) == null || k.addOverlay(y);
|
|
224
224
|
}
|
|
225
225
|
const w = (k) => {
|
|
226
|
-
var
|
|
226
|
+
var F, P;
|
|
227
227
|
s.value[k] && s.value.splice(k, 1);
|
|
228
228
|
const M = document.querySelectorAll(".ol-tooltip.ol-tooltip-static.ol-tooltip-measure");
|
|
229
|
-
M[k] && ((P = (
|
|
229
|
+
M[k] && ((P = (F = M[k]) == null ? void 0 : F.parentNode) == null || P.removeChild(M[k]));
|
|
230
230
|
const E = d.getFeatures();
|
|
231
231
|
E[k] && d.removeFeature(E[k]);
|
|
232
232
|
}, V = () => {
|
|
233
233
|
r("close");
|
|
234
234
|
};
|
|
235
235
|
return watch(() => l, () => {
|
|
236
|
-
l && !c.value && (L(),
|
|
236
|
+
l && !c.value && (L(), x());
|
|
237
237
|
}, { deep: !0, immediate: !0 }), t({
|
|
238
|
-
addInteraction:
|
|
238
|
+
addInteraction: x,
|
|
239
239
|
removeInteraction: C
|
|
240
240
|
}), (k, M) => l.value && k.viewMode !== "WxMiniprogram" ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
241
241
|
createElementVNode("div", { class: "header" }, [
|
|
@@ -270,18 +270,18 @@ const formatLength = function(e, t) {
|
|
|
270
270
|
}, 8, ["modelValue"])
|
|
271
271
|
]),
|
|
272
272
|
createElementVNode("div", _hoisted_3$2, [
|
|
273
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E,
|
|
273
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (E, F) => (openBlock(), createElementBlock("div", {
|
|
274
274
|
class: "measure-history-item",
|
|
275
|
-
key:
|
|
275
|
+
key: F
|
|
276
276
|
}, [
|
|
277
277
|
createElementVNode("div", _hoisted_4, [
|
|
278
278
|
M[3] || (M[3] = createElementVNode("i", { class: "map-iconfont icon-line" }, null, -1)),
|
|
279
|
-
createElementVNode("span", _hoisted_5, "线段" + toDisplayString(
|
|
279
|
+
createElementVNode("span", _hoisted_5, "线段" + toDisplayString(F + 1), 1),
|
|
280
280
|
createElementVNode("span", _hoisted_6, toDisplayString(E), 1)
|
|
281
281
|
]),
|
|
282
282
|
createElementVNode("div", {
|
|
283
283
|
class: "delete-button",
|
|
284
|
-
onClick: (P) => w(
|
|
284
|
+
onClick: (P) => w(F)
|
|
285
285
|
}, M[4] || (M[4] = [
|
|
286
286
|
createElementVNode("i", { class: "map-iconfont icon-delete" }, null, -1)
|
|
287
287
|
]), 8, _hoisted_7)
|
|
@@ -291,13 +291,13 @@ const formatLength = function(e, t) {
|
|
|
291
291
|
}
|
|
292
292
|
}), Measure = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-d566fd81"]]), CDN_URL = "https://static.zhihaoscm.cn/", tiandituKey = "a6e8f78974f2581f2ca00485b40c948f", baseMap = {
|
|
293
293
|
// 矢量底图
|
|
294
|
-
tiandituTile: `
|
|
294
|
+
tiandituTile: `https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}`,
|
|
295
295
|
// 矢量注记
|
|
296
|
-
tiandituTileMark: `
|
|
296
|
+
tiandituTileMark: `https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}`,
|
|
297
297
|
// 影像底图
|
|
298
|
-
tiandituImgTile: `
|
|
298
|
+
tiandituImgTile: `https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}`,
|
|
299
299
|
// 影像注记
|
|
300
|
-
tiandituImgTileMark: `
|
|
300
|
+
tiandituImgTileMark: `https://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}`,
|
|
301
301
|
// 绿点图
|
|
302
302
|
greenTile: `${CDN_URL}/map/tile/{z}/{x}/{y}.png`
|
|
303
303
|
}, mapZoom = {
|
|
@@ -322,7 +322,7 @@ const formatLength = function(e, t) {
|
|
|
322
322
|
shipModelMin: 13,
|
|
323
323
|
// 船形图标最大渲染层级
|
|
324
324
|
shipModelMax: 18
|
|
325
|
-
},
|
|
325
|
+
}, mapDefaultCenter = [114.84, 30.52], projection = {
|
|
326
326
|
// 经纬度 源数据 地理坐标 WGS84
|
|
327
327
|
data: "EPSG:4326",
|
|
328
328
|
// 墨卡托投影坐标 渲染坐标
|
|
@@ -374,8 +374,8 @@ const multiplyPixelRatio = (e) => {
|
|
|
374
374
|
return function(v, S) {
|
|
375
375
|
return (i(S, v) + 180) % 360;
|
|
376
376
|
}(u, f);
|
|
377
|
-
const y = l(u), h = l(f), g = r(y[0]), L = r(h[0]), T = r(y[1]), b = r(h[1]), C = Math.sin(L - g) * Math.cos(b),
|
|
378
|
-
return n(Math.atan2(C,
|
|
377
|
+
const y = l(u), h = l(f), g = r(y[0]), L = r(h[0]), T = r(y[1]), b = r(h[1]), C = Math.sin(L - g) * Math.cos(b), x = Math.cos(T) * Math.sin(b) - Math.sin(T) * Math.cos(b) * Math.cos(L - g);
|
|
378
|
+
return n(Math.atan2(C, x));
|
|
379
379
|
}
|
|
380
380
|
function s(u) {
|
|
381
381
|
return !isNaN(u) && u !== null && !Array.isArray(u);
|
|
@@ -499,13 +499,13 @@ function drawLabelBody(e, t, o) {
|
|
|
499
499
|
p = calculateBounds(i, L, f, g, m);
|
|
500
500
|
let T = !1;
|
|
501
501
|
for (let b = 0; b < t.length; ++b) {
|
|
502
|
-
let C = t[b].bounds,
|
|
502
|
+
let C = t[b].bounds, x = [
|
|
503
503
|
C[0] - y,
|
|
504
504
|
C[1] - y,
|
|
505
505
|
C[2] + y,
|
|
506
506
|
C[3] + y
|
|
507
507
|
];
|
|
508
|
-
if (p && isOverlapping(p,
|
|
508
|
+
if (p && isOverlapping(p, x)) {
|
|
509
509
|
T = !0;
|
|
510
510
|
break;
|
|
511
511
|
}
|
|
@@ -601,14 +601,14 @@ const drawText = (e, t) => {
|
|
|
601
601
|
fillColor: s,
|
|
602
602
|
shouldClosePath: !0
|
|
603
603
|
});
|
|
604
|
-
const [b, C] = h,
|
|
604
|
+
const [b, C] = h, x = {
|
|
605
605
|
center: [b, C + labelOutSize + labelHeight + 1],
|
|
606
606
|
text: r,
|
|
607
607
|
textColor: i,
|
|
608
608
|
leftIcon: c,
|
|
609
609
|
rightIcons: d
|
|
610
610
|
};
|
|
611
|
-
drawText(e,
|
|
611
|
+
drawText(e, x);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
return null;
|
|
@@ -1080,39 +1080,40 @@ const renderShips = (e) => {
|
|
|
1080
1080
|
selectSingleShipMarker(selectedShipData.value);
|
|
1081
1081
|
}).then((i) => {
|
|
1082
1082
|
}), !(!t || t < mapZoom.shipGreenDotMax) && (allShips.value = e, !hiddenOrther.value))
|
|
1083
|
-
return t >= mapZoom.shipGreenDotMax && t < mapZoom.shipModelMin
|
|
1083
|
+
return t >= mapZoom.shipGreenDotMax && t < mapZoom.shipModelMin ? ((o = shipsLayer.value) == null || o.setVisible(!1), (n = largeAmountShipsLayer.value) == null || n.setVisible(!0), renderLargeAmountShips(e)) : ((r = largeAmountShipsLayer.value) == null || r.setVisible(!1), (l = shipsLayer.value) == null || l.setVisible(!0), renderShipsMarker(e));
|
|
1084
1084
|
}, renderLargeAmountShips = (e) => {
|
|
1085
1085
|
if (!mapInstance$6.value) return;
|
|
1086
|
-
const t = e.map((
|
|
1086
|
+
const t = e.map((o) => ({
|
|
1087
1087
|
type: "Feature",
|
|
1088
1088
|
geometry: {
|
|
1089
1089
|
type: "Point",
|
|
1090
|
-
coordinates: [
|
|
1090
|
+
coordinates: [o.lon, o.lat]
|
|
1091
1091
|
},
|
|
1092
|
-
properties:
|
|
1092
|
+
properties: o
|
|
1093
1093
|
}));
|
|
1094
|
-
largeAmountShipsSource == null || largeAmountShipsSource.clear(), largeAmountShipsSource = new VectorSource({
|
|
1094
|
+
return largeAmountShipsSource == null || largeAmountShipsSource.clear(), largeAmountShipsSource = new VectorSource({
|
|
1095
1095
|
features: new GeoJSON().readFeatures({
|
|
1096
1096
|
type: "FeatureCollection",
|
|
1097
1097
|
features: t
|
|
1098
1098
|
}, {
|
|
1099
1099
|
featureProjection: projection.mercator
|
|
1100
1100
|
})
|
|
1101
|
-
})
|
|
1102
|
-
const o = [
|
|
1103
|
-
"case",
|
|
1104
|
-
["==", ["get", "existMobile"], 1],
|
|
1105
|
-
// 假设 type1 对应红色
|
|
1106
|
-
"#D9001C",
|
|
1107
|
-
"#04C900"
|
|
1108
|
-
];
|
|
1109
|
-
return largeAmountShipsLayer.value = new WebGLPointsLayer({
|
|
1101
|
+
}), largeAmountShipsLayer.value = new WebGLPointsLayer({
|
|
1110
1102
|
source: largeAmountShipsSource,
|
|
1111
1103
|
style: {
|
|
1112
1104
|
"shape-points": 3,
|
|
1113
1105
|
"shape-radius": 9,
|
|
1114
|
-
"shape-fill-color":
|
|
1115
|
-
|
|
1106
|
+
"shape-fill-color": [
|
|
1107
|
+
"case",
|
|
1108
|
+
["==", ["get", "fill"], "#D9001C"],
|
|
1109
|
+
"#D9001C",
|
|
1110
|
+
// 如果 fill 是 #D9001C,返回红色
|
|
1111
|
+
["==", ["get", "fill"], "#04C900"],
|
|
1112
|
+
"#04C900",
|
|
1113
|
+
// 如果 fill 是 #04C900,返回绿色
|
|
1114
|
+
"#04C900"
|
|
1115
|
+
// 默认颜色(绿色)
|
|
1116
|
+
],
|
|
1116
1117
|
"shape-rotate-with-view": !1,
|
|
1117
1118
|
"shape-rotation": [
|
|
1118
1119
|
"+",
|
|
@@ -1129,26 +1130,27 @@ const renderShips = (e) => {
|
|
|
1129
1130
|
}
|
|
1130
1131
|
}), mapInstance$6.value.addLayer(largeAmountShipsLayer.value), largeAmountShipsLayer.value;
|
|
1131
1132
|
}, renderShipsMarker = (e) => {
|
|
1133
|
+
var o;
|
|
1132
1134
|
if (!mapInstance$6.value) return;
|
|
1133
1135
|
deleteAllShipMarkers();
|
|
1134
1136
|
let t = convertShipMapData(e);
|
|
1135
1137
|
if (t = customFilterShips(t), !!(t != null && t.length))
|
|
1136
|
-
return t.forEach((
|
|
1137
|
-
const
|
|
1138
|
-
geometry: new Point(fromLonLat(
|
|
1139
|
-
});
|
|
1140
|
-
l.set("data",
|
|
1141
|
-
setShipStyle(!1
|
|
1138
|
+
return t.forEach((n, r) => {
|
|
1139
|
+
const l = [n.lon, n.lat], i = new Feature({
|
|
1140
|
+
geometry: new Point(fromLonLat(l))
|
|
1141
|
+
}), s = 1;
|
|
1142
|
+
i.set("clickGeometry", new Circle(fromLonLat(l), s)), i.set("data", n), i.set("index", r), i.setStyle(
|
|
1143
|
+
setShipStyle(!1)
|
|
1142
1144
|
), shipsMarkerList.push({
|
|
1143
|
-
ship:
|
|
1144
|
-
lonlat:
|
|
1145
|
-
feature:
|
|
1145
|
+
ship: n,
|
|
1146
|
+
lonlat: l,
|
|
1147
|
+
feature: i
|
|
1146
1148
|
});
|
|
1147
1149
|
}), shipsVectorSource = new VectorSource({
|
|
1148
|
-
features: shipsMarkerList.map((
|
|
1150
|
+
features: shipsMarkerList.map((n) => n.feature)
|
|
1149
1151
|
}), shipsLayer.value = new VectorLayer({
|
|
1150
1152
|
source: shipsVectorSource
|
|
1151
|
-
}), mapInstance$6.value.addLayer(shipsLayer.value), shipsLayer.value;
|
|
1153
|
+
}), (o = mapInstance$6.value) == null || o.addLayer(shipsLayer.value), shipsLayer.value;
|
|
1152
1154
|
}, customFilterShips = (e) => {
|
|
1153
1155
|
let t = cloneDeep(e);
|
|
1154
1156
|
return t = t.filter((o) => {
|
|
@@ -1500,10 +1502,10 @@ const setTruckStyle = (e, t, o, n) => new Style({
|
|
|
1500
1502
|
o === CAR_COLOR.YELLOW ? (h = 176, L = "#FFC81E", T = "rgba(0,0,0,0.88)") : o === CAR_COLOR.Y_GREEN && (f = 200, h = 196, L = "#8FED7C", T = "rgba(0,0,0,0.88)"), n != null && n.length && (f += n.length * 56), fillRectRadius(i, m, u, f, p, y), fillRectRadius(i, m + 2, u + 2, h, g, L), o === CAR_COLOR.Y_GREEN && fillRectRadius(i, m + 2, u + 2, 68, g, "#FFC81E"), i.save(), i.restore(), i.fillStyle = T, i.font = "bold 28px Arial", i.textAlign = "left", i.textBaseline = "middle";
|
|
1501
1503
|
const b = `${t.slice(0, 2) + " · " + t.slice(2)}`;
|
|
1502
1504
|
if (i.fillText(b, m + 12, u + 32), i.save(), i.restore(), n != null && n.length) {
|
|
1503
|
-
const
|
|
1505
|
+
const x = i.measureText(b).width + 12;
|
|
1504
1506
|
let v = 0;
|
|
1505
1507
|
n.forEach((S) => {
|
|
1506
|
-
S === DEVICE_TYPE.CAMERA && (i.drawImage(cameraImage, c - 54 +
|
|
1508
|
+
S === DEVICE_TYPE.CAMERA && (i.drawImage(cameraImage, c - 54 + x + v * 56, d - 64, 50, 50), ++v), S === DEVICE_TYPE.LOAD && (i.drawImage(loadImage, c - 54 + x + v * 56, d - 64, 50, 50), ++v);
|
|
1507
1509
|
});
|
|
1508
1510
|
}
|
|
1509
1511
|
const C = dotImage;
|
|
@@ -1904,13 +1906,13 @@ const addInteraction = (e) => {
|
|
|
1904
1906
|
const v = n.value.getView(), S = v.getZoom();
|
|
1905
1907
|
S && C(S);
|
|
1906
1908
|
const w = v.calculateExtent(n.value.getSize());
|
|
1907
|
-
w && S &&
|
|
1909
|
+
w && S && x(w, S);
|
|
1908
1910
|
}, C = (v) => {
|
|
1909
|
-
var V, k, M, E,
|
|
1911
|
+
var V, k, M, E, F;
|
|
1910
1912
|
d.value = v, g(v < mapZoom.shipGreenDotMax);
|
|
1911
1913
|
const S = (V = n.value) == null ? void 0 : V.getLayers(), w = c.vehicleMode === "ship" ? S == null ? void 0 : S.getArray().find((P) => P.ol_uid === p.greenMark.ol_uid) : void 0;
|
|
1912
|
-
showTrackLayer.value ? (f.value = !1, w == null || w.setVisible(!1), (k = shipsLayer.value) == null || k.setVisible(!1), (M = largeAmountShipsLayer.value) == null || M.setVisible(!1)) : !m.value && u.value && v <= mapZoom.shipGreenDotMax ? (f.value = !0, w == null || w.setVisible(!0), (E = shipsLayer.value) == null || E.setVisible(!1), (
|
|
1913
|
-
},
|
|
1914
|
+
showTrackLayer.value ? (f.value = !1, w == null || w.setVisible(!1), (k = shipsLayer.value) == null || k.setVisible(!1), (M = largeAmountShipsLayer.value) == null || M.setVisible(!1)) : !m.value && u.value && v <= mapZoom.shipGreenDotMax ? (f.value = !0, w == null || w.setVisible(!0), (E = shipsLayer.value) == null || E.setVisible(!1), (F = largeAmountShipsLayer.value) == null || F.setVisible(!1)) : (f.value = !1, w == null || w.setVisible(!1)), s("zoomChanged", v);
|
|
1915
|
+
}, x = (v, S) => {
|
|
1914
1916
|
const w = transform([v[0], v[1]], projection.mercator, projection.data), V = transform([v[2], v[3]], projection.mercator, projection.data);
|
|
1915
1917
|
s("extentChanged", { extent: [w, V], zoom: S });
|
|
1916
1918
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as d, useModel as i, 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 k, d as P } from "./DatePicker-
|
|
3
|
-
import {
|
|
4
|
-
import { I as
|
|
5
|
-
import { _
|
|
6
|
-
import { w as
|
|
7
|
-
const
|
|
2
|
+
import { v as k, d as P } from "./DatePicker-DNgii92T.js";
|
|
3
|
+
import { Z as T } from "./vendor-BhAIOWbw.js";
|
|
4
|
+
import { I as Z } from "./Input-12ajHBoj.js";
|
|
5
|
+
import { _ } from "./Button-CzjgaPIL.js";
|
|
6
|
+
import { w as $ } from "./utils-BIGjF-zg.js";
|
|
7
|
+
const z = /* @__PURE__ */ d({
|
|
8
8
|
name: "zh-money-input",
|
|
9
9
|
__name: "MoneyInput",
|
|
10
10
|
props: /* @__PURE__ */ m({
|
|
@@ -16,7 +16,7 @@ const C = /* @__PURE__ */ d({
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ m(["update:modelValue"], ["update:modelValue"]),
|
|
19
|
-
setup(s, { emit:
|
|
19
|
+
setup(s, { emit: S }) {
|
|
20
20
|
const a = s, e = i(s, "modelValue"), u = f(() => {
|
|
21
21
|
if (e.value)
|
|
22
22
|
return k(e.value) && Number(e.value) >= 1e3 ? P(Number(e.value)) : "";
|
|
@@ -28,7 +28,7 @@ const C = /* @__PURE__ */ d({
|
|
|
28
28
|
visible: t.showTooltip && r.value && !!u.value
|
|
29
29
|
}, {
|
|
30
30
|
default: n(() => [
|
|
31
|
-
b(
|
|
31
|
+
b(Z, I(t.$attrs, {
|
|
32
32
|
modelValue: e.value,
|
|
33
33
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.value = l),
|
|
34
34
|
style: a.style,
|
|
@@ -47,7 +47,7 @@ const C = /* @__PURE__ */ d({
|
|
|
47
47
|
_: 3
|
|
48
48
|
}, 8, ["content", "visible"]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), C = /* @__PURE__ */ _(z, [["__scopeId", "data-v-d97e0edf"]]), L = $(C);
|
|
51
51
|
export {
|
|
52
52
|
L as Z
|
|
53
53
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { _ as g } from "./Button-
|
|
3
|
-
import { w as v } from "./utils-
|
|
2
|
+
import { _ as g } from "./Button-CzjgaPIL.js";
|
|
3
|
+
import { w as v } from "./utils-BIGjF-zg.js";
|
|
4
4
|
const P = { class: "page-head" }, x = { class: "left-wrap" }, b = { class: "page-name" }, S = { 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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { reactive as X, computed as O, toRefs as Ae, ref as M, defineComponent as ne, useCssVars as dt, inject as Ke, openBlock as S, createElementBlock as L, createBlock as F, resolveDynamicComponent as de, mergeProps as J, withKeys as pt, unref as p, createSlots as pe, withCtx as C, Fragment as H, renderList as he, renderSlot as A, createElementVNode as B, toDisplayString as Q, createVNode as w, withModifiers as ht, normalizeClass as Ue, createCommentVNode as I, createTextVNode as Z, useSlots as je, isVNode as ft, normalizeProps as Ne, guardReactiveProps as We, nextTick as fe, onMounted as mt, onActivated as gt, onDeactivated as vt, onUnmounted as bt, watch as yt, provide as Ct, resolveDirective as St, withDirectives as Ce, vShow as wt, toHandlers as _t } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { D as ee, C as Wt } from "./DatePicker-
|
|
4
|
-
import { _ as le, Z as we } from "./Button-
|
|
5
|
-
import { _ as xt } from "./Dialog-
|
|
6
|
-
import { w as qt } from "./utils-
|
|
2
|
+
import { _ as xe, $ as kt, a0 as Pt, a1 as qe, a2 as Tt, f as $t, a3 as Et, j as Bt, a4 as zt, Z as me, E as ke, a5 as ge, a6 as It, a7 as Mt, i as oe, a8 as Lt, a9 as Dt, aa as Ft, ab as He, ac as Ze, e as q, g as Ge, ad as De, ae as Ot, af as Je, ag as Vt, ah as Rt, ai as At, aj as Kt, m as Se, ak as Ut, d as jt, al as Nt, am as Fe, an as Oe } from "./vendor-BhAIOWbw.js";
|
|
3
|
+
import { D as ee, C as Wt } from "./DatePicker-DNgii92T.js";
|
|
4
|
+
import { _ as le, Z as we } from "./Button-CzjgaPIL.js";
|
|
5
|
+
import { _ as xt } from "./Dialog-Cky8TKRM.js";
|
|
6
|
+
import { w as qt } from "./utils-BIGjF-zg.js";
|
|
7
7
|
const Ht = (g, c = {}, a = !0, f, m, y = (t) => t) => {
|
|
8
8
|
const t = X({
|
|
9
9
|
// 表格数据
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as r, createBlock as l, unref as s, withCtx as a, renderSlot as c, createElementVNode as i } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as f } from "./Button-
|
|
4
|
-
import { w as d } from "./utils-
|
|
2
|
+
import { Z as m } from "./vendor-BhAIOWbw.js";
|
|
3
|
+
import { _ as f } from "./Button-CzjgaPIL.js";
|
|
4
|
+
import { w as d } from "./utils-BIGjF-zg.js";
|
|
5
5
|
const u = /* @__PURE__ */ p({
|
|
6
6
|
name: "zh-tool-tips",
|
|
7
7
|
__name: "ToolTips",
|
package/dist/es/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { m as o } from "./utils-
|
|
2
|
-
import { a as r, b as a } from "./Button-
|
|
3
|
-
import { Z as m } from "./DatePicker-
|
|
4
|
-
import { Z as t } from "./DetailSubTitle-
|
|
5
|
-
import { Z } from "./Dialog-
|
|
6
|
-
import { Z as s } from "./EditInfoPair-
|
|
7
|
-
import { Z as i } from "./FileWrapper-
|
|
8
|
-
import { Z as p } from "./Grid-
|
|
9
|
-
import { Z as e } from "./InfoPair-
|
|
10
|
-
import { Z as f, a as h } from "./Input-
|
|
11
|
-
import { Z as n } from "./Loading-
|
|
12
|
-
import { Z as l, a as u, b as D, c as I } from "./MessageBox-
|
|
13
|
-
import { Z as P } from "./MoneyInput-
|
|
14
|
-
import { Z as T } from "./PageHeadPanel-
|
|
15
|
-
import { Z as b } from "./ToolTips-
|
|
16
|
-
import { Z as d } from "./BaseInfo-
|
|
17
|
-
import { Z as c } from "./DetailHeader-
|
|
18
|
-
import { Z as g } from "./DiyDataTable-
|
|
19
|
-
import { D as R } from "./DiyDataTable-
|
|
20
|
-
import { Z as B } from "./Map-
|
|
21
|
-
import { Z as x } from "./Table-
|
|
1
|
+
import { m as o } from "./utils-BIGjF-zg.js";
|
|
2
|
+
import { a as r, b as a } from "./Button-CzjgaPIL.js";
|
|
3
|
+
import { Z as m } from "./DatePicker-DNgii92T.js";
|
|
4
|
+
import { Z as t } from "./DetailSubTitle-ChWfR3qA.js";
|
|
5
|
+
import { Z } from "./Dialog-Cky8TKRM.js";
|
|
6
|
+
import { Z as s } from "./EditInfoPair-C0EG8kUd.js";
|
|
7
|
+
import { Z as i } from "./FileWrapper-CmvheBNp.js";
|
|
8
|
+
import { Z as p } from "./Grid-CfJ_U3gi.js";
|
|
9
|
+
import { Z as e } from "./InfoPair-JA1pAAyP.js";
|
|
10
|
+
import { Z as f, a as h } from "./Input-12ajHBoj.js";
|
|
11
|
+
import { Z as n } from "./Loading-CHji9tKE.js";
|
|
12
|
+
import { Z as l, a as u, b as D, c as I } from "./MessageBox-1NCCwju7.js";
|
|
13
|
+
import { Z as P } from "./MoneyInput-PI2K9BeH.js";
|
|
14
|
+
import { Z as T } from "./PageHeadPanel-CBDItYUC.js";
|
|
15
|
+
import { Z as b } from "./ToolTips-BBCd543g.js";
|
|
16
|
+
import { Z as d } from "./BaseInfo-XETJaruy.js";
|
|
17
|
+
import { Z as c } from "./DetailHeader-C7L01g9Z.js";
|
|
18
|
+
import { Z as g } from "./DiyDataTable-D1s7-cdV.js";
|
|
19
|
+
import { D as R } from "./DiyDataTable-D1s7-cdV.js";
|
|
20
|
+
import { Z as B } from "./Map-Drzg1DDm.js";
|
|
21
|
+
import { Z as x } from "./Table-BBWU5wYF.js";
|
|
22
22
|
const A = [
|
|
23
23
|
d,
|
|
24
24
|
r,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { ao as t } from "./vendor-BhAIOWbw.js";
|
|
2
|
+
function n(a) {
|
|
3
3
|
return (s) => t(a, (r) => {
|
|
4
4
|
s.use(r);
|
|
5
5
|
});
|
|
@@ -9,6 +9,6 @@ const e = (a) => (a.install = (l) => {
|
|
|
9
9
|
l.component(s, a);
|
|
10
10
|
}, a);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
n as m,
|
|
13
13
|
e as w
|
|
14
14
|
};
|
|
@@ -51014,59 +51014,60 @@ ms(Av, {
|
|
|
51014
51014
|
Ve.mount(new tV());
|
|
51015
51015
|
Ve.mount(Av, kv);
|
|
51016
51016
|
export {
|
|
51017
|
-
|
|
51018
|
-
|
|
51019
|
-
|
|
51017
|
+
Dr as $,
|
|
51018
|
+
xh as A,
|
|
51019
|
+
_h as B,
|
|
51020
51020
|
$u as C,
|
|
51021
51021
|
LV as D,
|
|
51022
51022
|
No as E,
|
|
51023
51023
|
Bo as F,
|
|
51024
51024
|
VV as G,
|
|
51025
|
-
|
|
51025
|
+
HV as H,
|
|
51026
51026
|
Ah as I,
|
|
51027
|
-
|
|
51028
|
-
|
|
51027
|
+
NV as J,
|
|
51028
|
+
OV as K,
|
|
51029
51029
|
hr as L,
|
|
51030
51030
|
Lu as M,
|
|
51031
|
-
|
|
51031
|
+
eo as N,
|
|
51032
51032
|
GV as O,
|
|
51033
51033
|
us as P,
|
|
51034
|
-
|
|
51035
|
-
|
|
51034
|
+
YV as Q,
|
|
51035
|
+
BV as R,
|
|
51036
51036
|
or as S,
|
|
51037
51037
|
nv as T,
|
|
51038
|
-
|
|
51038
|
+
es as U,
|
|
51039
51039
|
V8 as V,
|
|
51040
51040
|
WV as W,
|
|
51041
51041
|
jV as X,
|
|
51042
|
-
|
|
51043
|
-
|
|
51044
|
-
|
|
51042
|
+
DV as Y,
|
|
51043
|
+
ol as Z,
|
|
51044
|
+
er as _,
|
|
51045
51045
|
_V as a,
|
|
51046
|
-
|
|
51047
|
-
|
|
51048
|
-
|
|
51049
|
-
|
|
51050
|
-
|
|
51051
|
-
|
|
51052
|
-
|
|
51053
|
-
|
|
51054
|
-
|
|
51055
|
-
|
|
51056
|
-
|
|
51057
|
-
|
|
51058
|
-
|
|
51059
|
-
|
|
51060
|
-
|
|
51061
|
-
|
|
51062
|
-
|
|
51063
|
-
|
|
51064
|
-
|
|
51065
|
-
|
|
51066
|
-
|
|
51067
|
-
|
|
51068
|
-
|
|
51069
|
-
|
|
51046
|
+
xb as a0,
|
|
51047
|
+
Xn as a1,
|
|
51048
|
+
hp as a2,
|
|
51049
|
+
lV as a3,
|
|
51050
|
+
RV as a4,
|
|
51051
|
+
$e as a5,
|
|
51052
|
+
hV as a6,
|
|
51053
|
+
TV as a7,
|
|
51054
|
+
EV as a8,
|
|
51055
|
+
CV as a9,
|
|
51056
|
+
wV as aa,
|
|
51057
|
+
ZA as ab,
|
|
51058
|
+
Ve as ac,
|
|
51059
|
+
$a as ad,
|
|
51060
|
+
dV as ae,
|
|
51061
|
+
SV as af,
|
|
51062
|
+
gV as ag,
|
|
51063
|
+
KV as ah,
|
|
51064
|
+
fV as ai,
|
|
51065
|
+
cV as aj,
|
|
51066
|
+
AP as ak,
|
|
51067
|
+
Ks as al,
|
|
51068
|
+
uV as am,
|
|
51069
|
+
Yd as an,
|
|
51070
|
+
aV as ao,
|
|
51070
51071
|
yV as b,
|
|
51071
51072
|
bV as c,
|
|
51072
51073
|
MV as d,
|
|
@@ -51091,5 +51092,5 @@ export {
|
|
|
51091
51092
|
Qi as w,
|
|
51092
51093
|
UV as x,
|
|
51093
51094
|
$V as y,
|
|
51094
|
-
|
|
51095
|
+
Rh as z
|
|
51095
51096
|
};
|