zhihao-ui 1.2.66 → 1.3.1
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-VzgiaCKn.js → BaseInfo-CqPKfZM2.js} +1 -1
- package/dist/es/{BaseItem-BtsARxvz.js → BaseItem-XXH5e7db.js} +3 -3
- package/dist/es/{Button-Dw3i74l2.js → Button-DLAiqJPu.js} +2 -2
- package/dist/es/DatePicker-DNED5PYV.js +57 -0
- package/dist/es/{DetailHeader-C5LjDuTv.js → DetailHeader-BCF-X9k8.js} +3 -3
- package/dist/es/{DetailSubTitle-ak2l4HyV.js → DetailSubTitle-Booxy4wf.js} +2 -2
- package/dist/es/{Dialog-Cw3E3ZU6.js → Dialog-gDiUEFNF.js} +3 -3
- package/dist/es/{DiyDataTable-Cgqys5z_.js → DiyDataTable-CPFSQBiW.js} +4 -4
- package/dist/es/{EditInfoPair-8SWkyWJC.js → EditInfoPair-BeQ_RjRC.js} +3 -3
- package/dist/es/{FileWrapper-BKxBr28L.js → FileWrapper-CyQAOj8M.js} +4 -4
- package/dist/es/{Grid-C8tYH4s7.js → Grid-DAZ59W8l.js} +2 -2
- package/dist/es/{InfoPair-C3obQrjB.js → InfoPair-D2gWOKNY.js} +3 -3
- package/dist/es/{Input-C3HDYWCC.js → Input-DCs9DGvN.js} +3 -3
- package/dist/es/{Loading-DfL7OJvd.js → Loading-tblIiyvu.js} +2 -2
- package/dist/es/Map-CWehCrKQ.js +1610 -0
- package/dist/es/{MessageBox-ByLWEDby.js → MessageBox-Bwv1ICSl.js} +2 -2
- package/dist/es/{MoneyInput-CxngoHAe.js → MoneyInput-BUho-aKW.js} +5 -5
- package/dist/es/{PageHeadPanel-d3ponlDx.js → PageHeadPanel-BBzYKasW.js} +2 -2
- package/dist/es/{Table-BufcZ4Wy.js → Table-m_nv-2IU.js} +41 -41
- package/dist/es/{ToolTips-D0FAOOvm.js → ToolTips-BrpfWKhV.js} +6 -6
- package/dist/es/index.js +60 -74
- package/dist/es/{utils-BSQSj8Ii.js → utils-sJ-t5B4u.js} +1 -1
- package/dist/es/{vendor-DaYdW1_n.js → vendor-BUg4XLGS.js} +25624 -29583
- package/dist/index.css +1 -1
- package/dist/types/components/Map/Map.vue.d.ts +94 -138
- package/dist/types/components/Map/components/zoomControl.vue.d.ts +1 -9
- package/dist/types/components/Map/config/global.d.ts +1 -0
- package/dist/types/components/Map/config/index.d.ts +43 -0
- package/dist/types/components/Map/config/map.d.ts +25 -0
- package/dist/types/components/Map/function/carTrack.d.ts +18 -0
- package/dist/types/components/Map/function/drawLine.d.ts +12 -0
- package/dist/types/components/Map/function/drawPolygon.d.ts +6 -0
- package/dist/types/components/Map/function/label.d.ts +9 -0
- package/dist/types/components/Map/function/layers.d.ts +7 -0
- package/dist/types/components/Map/function/map.d.ts +14 -0
- package/dist/types/components/Map/function/port.d.ts +10 -0
- package/dist/types/components/Map/function/props.d.ts +4 -0
- package/dist/types/components/Map/function/ship/index.d.ts +9 -0
- package/dist/types/components/Map/function/ship/label.d.ts +5 -0
- package/dist/types/components/Map/function/ship/style.d.ts +9 -0
- package/dist/types/components/Map/function/ship.d.ts +34 -0
- package/dist/types/components/Map/function/shipLabel.d.ts +25 -0
- package/dist/types/components/Map/function/shipOverlay.d.ts +12 -0
- package/dist/types/components/Map/function/shipTrack.d.ts +15 -0
- package/dist/types/components/Map/index.d.ts +301 -376
- package/dist/types/components/Map/interface/{entity/queryLicenseResponse.d.ts → carTrack.d.ts} +1 -17
- package/dist/types/components/Map/interface/index.d.ts +5 -13
- package/dist/types/components/Map/interface/label.d.ts +27 -0
- package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
- package/dist/types/components/Map/interface/{entity/shipInfoVo.d.ts → shipInfoVo.d.ts} +17 -15
- package/dist/types/components/Map/interface/{entity/shipTrack.d.ts → shipTrack.d.ts} +2 -1
- package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
- package/dist/types/components/Map/meta/index.d.ts +17 -0
- package/dist/types/components/Map/meta/ship.d.ts +26 -0
- package/dist/types/components/Map/types.d.ts +1 -13
- package/dist/types/components/Map/utils/cursor.d.ts +2 -0
- package/dist/types/components/Map/utils/events.d.ts +2 -0
- package/dist/types/components/Map/utils/overlay.d.ts +4 -0
- package/dist/types/components/Map/utils/rbush.d.ts +13 -0
- package/dist/types/components/Map/utils/track.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +113 -583
- package/package.json +1 -1
- package/dist/es/DatePicker-BCvYHlC7.js +0 -73
- package/dist/es/Map-BpqtL7_q.js +0 -2528
- package/dist/types/components/Map/components/copyright.vue.d.ts +0 -36
- package/dist/types/components/Map/components/measure.vue.d.ts +0 -23
- package/dist/types/components/Map/components/toolPanel.vue.d.ts +0 -40
- package/dist/types/components/Map/config.d.ts +0 -32
- package/dist/types/components/Map/enum/car.d.ts +0 -5
- package/dist/types/components/Map/enum/device.d.ts +0 -8
- package/dist/types/components/Map/enum/index.d.ts +0 -5
- package/dist/types/components/Map/enum/openLayers.d.ts +0 -10
- package/dist/types/components/Map/enum/ship.d.ts +0 -50
- package/dist/types/components/Map/interface/common/BaseEntity.d.ts +0 -29
- package/dist/types/components/Map/interface/common/page.d.ts +0 -34
- package/dist/types/components/Map/interface/entity/dashboard.d.ts +0 -16
- package/dist/types/components/Map/interface/entity/map.d.ts +0 -36
- package/dist/types/components/Map/interface/entity/point.d.ts +0 -10
- package/dist/types/components/Map/interface/entity/render.d.ts +0 -57
- package/dist/types/components/Map/interface/entity/ship.d.ts +0 -361
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +0 -27
- package/dist/types/components/Map/interface/entity/shipMarker.d.ts +0 -8
- package/dist/types/components/Map/interface/entity/vehicle.d.ts +0 -345
- package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +0 -20
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +0 -15
- package/dist/types/components/Map/render/canvasRender/geometry.d.ts +0 -22
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +0 -5
- package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +0 -10
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +0 -5
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +0 -12
- package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +0 -3
- package/dist/types/components/Map/render/drawPolygon.d.ts +0 -10
- package/dist/types/components/Map/render/renderDashboard.d.ts +0 -12
- package/dist/types/components/Map/render/renderMarker.d.ts +0 -7
- package/dist/types/components/Map/render/renderPoint.d.ts +0 -80
- package/dist/types/components/Map/render/renderShip.d.ts +0 -20
- package/dist/types/components/Map/render/renderTrack.d.ts +0 -12
- package/dist/types/components/Map/render/renderTruck.d.ts +0 -10
- package/dist/types/components/Map/utils/common.d.ts +0 -27
- package/dist/types/components/Map/utils/format.d.ts +0 -10
- package/dist/types/components/Map/utils/store.d.ts +0 -32
- package/dist/types/components/Map/utils/transform.d.ts +0 -44
package/dist/types/components/Map/interface/{entity/queryLicenseResponse.d.ts → carTrack.d.ts}
RENAMED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface SinoiovVehicleInfo {
|
|
1
|
+
export interface VehicleInfo {
|
|
4
2
|
/**
|
|
5
3
|
* 车牌号
|
|
6
4
|
*/
|
|
7
5
|
vno: string;
|
|
8
|
-
plateNumber: string;
|
|
9
6
|
/**
|
|
10
7
|
* 状态码
|
|
11
8
|
*/
|
|
@@ -70,17 +67,4 @@ export interface SinoiovVehicleInfo {
|
|
|
70
67
|
* 预计到达时间
|
|
71
68
|
*/
|
|
72
69
|
estimateArriveTime: string;
|
|
73
|
-
/**
|
|
74
|
-
* 车牌颜色
|
|
75
|
-
*/
|
|
76
|
-
vclColor?: number;
|
|
77
|
-
/**
|
|
78
|
-
* 地图渲染图标
|
|
79
|
-
*/
|
|
80
|
-
icons?: number[];
|
|
81
|
-
}
|
|
82
|
-
export interface SinoiovVehicleSnayiVehicleResponse {
|
|
83
|
-
vehicleInfo: SinoiovVehicleInfo;
|
|
84
|
-
deviceInfo?: SnayiVehicleInfoResponse;
|
|
85
|
-
videoCaptureUrl?: string;
|
|
86
70
|
}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export type { DrawTextOptions, DrawPolygonOptions, DrawLabelOptions, LeftIconOptions } from './entity/render';
|
|
7
|
-
export type { Ship, ShipQueryParam, ShipForm, AisTrackForm, CertificateFiles, ShipInfoForm, ShipUpdateForm, ImgType, BindParams, ShipBindDevice } from './entity/ship';
|
|
8
|
-
export type { ShipInfoVo } from './entity/shipInfoVo';
|
|
9
|
-
export { ShipMapData } from './entity/shipMapData';
|
|
10
|
-
export type { ShipMarker } from './entity/shipMarker';
|
|
11
|
-
export type { ShipTrack } from './entity/shipTrack';
|
|
12
|
-
export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel, QueryLicenseResponse, VehicleInfo } from './entity/vehicle';
|
|
13
|
-
export type { VehicleVo, VehicleInfoResponse } from './vo/vehicleVo';
|
|
1
|
+
export * from './shipInfoVo';
|
|
2
|
+
export * from './label';
|
|
3
|
+
export * from './carTrack';
|
|
4
|
+
export * from './mapProps';
|
|
5
|
+
export * from './wharfEntity';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ShipLabelData {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
lon: number;
|
|
5
|
+
lat: number;
|
|
6
|
+
blinking?: boolean;
|
|
7
|
+
blinkingColor?: string;
|
|
8
|
+
leftIcons?: string[];
|
|
9
|
+
rightIcons?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface LabelStyleOptions {
|
|
12
|
+
font?: string;
|
|
13
|
+
padding?: number;
|
|
14
|
+
iconSize?: number;
|
|
15
|
+
lineColor?: string;
|
|
16
|
+
blinkInterval?: number;
|
|
17
|
+
collisionPadding?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface LabelFeature {
|
|
20
|
+
id: string;
|
|
21
|
+
bounds: [number, number, number, number];
|
|
22
|
+
position: 'top' | 'right' | 'bottom' | 'left';
|
|
23
|
+
connectionPoints: {
|
|
24
|
+
start: [number, number];
|
|
25
|
+
end: [number, number];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Coordinate } from 'ol/coordinate';
|
|
2
|
+
|
|
3
|
+
export interface Props {
|
|
4
|
+
zoom?: number;
|
|
5
|
+
center?: Coordinate;
|
|
6
|
+
layerType?: 'vector' | 'satellite';
|
|
7
|
+
showGreenLayer?: boolean;
|
|
8
|
+
showScale?: boolean;
|
|
9
|
+
scaleLineUnit?: 'metric' | 'imperial' | 'nautical';
|
|
10
|
+
mapMoveEnd: (zoom: number) => void;
|
|
11
|
+
lineDrawEnd: (line: any) => void;
|
|
12
|
+
areaDrawEnd: (area: []) => void;
|
|
13
|
+
selectShip: (id: string) => void;
|
|
14
|
+
selectPort: (id: string) => void;
|
|
15
|
+
}
|
|
@@ -34,12 +34,10 @@ export interface ShipInfoVo {
|
|
|
34
34
|
* 船长
|
|
35
35
|
*/
|
|
36
36
|
len: number;
|
|
37
|
-
length?: number;
|
|
38
37
|
/**
|
|
39
38
|
* 船宽
|
|
40
39
|
*/
|
|
41
40
|
wid: number;
|
|
42
|
-
breadth?: number;
|
|
43
41
|
/**
|
|
44
42
|
* 吃水
|
|
45
43
|
*/
|
|
@@ -164,6 +162,18 @@ export interface ShipInfoVo {
|
|
|
164
162
|
* 净吨数
|
|
165
163
|
*/
|
|
166
164
|
tonPure: number;
|
|
165
|
+
/**
|
|
166
|
+
* 是否存在摄像头
|
|
167
|
+
*/
|
|
168
|
+
existDevice: number;
|
|
169
|
+
/**
|
|
170
|
+
* 是否维护水尺 1:是 0:否
|
|
171
|
+
*/
|
|
172
|
+
existWaterGauge: number;
|
|
173
|
+
/**
|
|
174
|
+
* 是否存在手机号
|
|
175
|
+
*/
|
|
176
|
+
existMobile: number;
|
|
167
177
|
/**
|
|
168
178
|
* 货仓状态
|
|
169
179
|
* {@link com.zhihaoscm.domain.meta.biz.DeviceCapturePicDef.RecognizeResult}
|
|
@@ -186,25 +196,17 @@ export interface ShipInfoVo {
|
|
|
186
196
|
*/
|
|
187
197
|
createTime: string;
|
|
188
198
|
/**
|
|
189
|
-
*
|
|
190
|
-
*/
|
|
191
|
-
leftIconColor: string;
|
|
192
|
-
/**
|
|
193
|
-
* 是否存在摄像头
|
|
199
|
+
* 是否关注
|
|
194
200
|
*/
|
|
195
|
-
|
|
201
|
+
isFollowed: number;
|
|
196
202
|
/**
|
|
197
|
-
*
|
|
203
|
+
* 散货船类型 {@link ShipDef.BulkCargoShipType}
|
|
198
204
|
*/
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* 是否存在手机号
|
|
202
|
-
*/
|
|
203
|
-
existMobile: number;
|
|
205
|
+
bulkCargoShipType: number;
|
|
204
206
|
/**
|
|
205
207
|
* 关注的船自定义后缀
|
|
206
208
|
*/
|
|
207
209
|
existName: number;
|
|
208
|
-
selected?: boolean;
|
|
209
210
|
blinkColors?: string[];
|
|
211
|
+
isSelected?: boolean;
|
|
210
212
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export interface ShipTrack {
|
|
5
5
|
id: string;
|
|
6
6
|
index: number;
|
|
7
|
+
cname: string;
|
|
7
8
|
/**
|
|
8
9
|
* 经度
|
|
9
10
|
*/
|
|
@@ -46,7 +47,7 @@ export interface ShipTrack {
|
|
|
46
47
|
/**
|
|
47
48
|
* 船舶航速分析(0 停,1 慢)
|
|
48
49
|
*/
|
|
49
|
-
state
|
|
50
|
+
state?: string | number;
|
|
50
51
|
/**
|
|
51
52
|
* 停留时间(航速分析中的停留时间,单位分钟)
|
|
52
53
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface WharfEntity {
|
|
2
|
+
id: number;
|
|
3
|
+
del: number;
|
|
4
|
+
createdBy: number;
|
|
5
|
+
createdTime: string;
|
|
6
|
+
updatedBy: number;
|
|
7
|
+
updatedTime: string;
|
|
8
|
+
name: string;
|
|
9
|
+
shortName: string;
|
|
10
|
+
area: number;
|
|
11
|
+
contactName: string;
|
|
12
|
+
phone: string;
|
|
13
|
+
provinceCode: string;
|
|
14
|
+
cityCode: string;
|
|
15
|
+
regionCode: string;
|
|
16
|
+
address: string;
|
|
17
|
+
latLon: string;
|
|
18
|
+
remark: string;
|
|
19
|
+
fullAddress: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum BASE_MAP_LINK {
|
|
2
|
+
vectorTile = "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=a6e8f78974f2581f2ca00485b40c948f",
|
|
3
|
+
vectorTileMark = "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=a6e8f78974f2581f2ca00485b40c948f",
|
|
4
|
+
satelliteImgTile = "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=a6e8f78974f2581f2ca00485b40c948f",
|
|
5
|
+
satelliteImgTileMark = "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=a6e8f78974f2581f2ca00485b40c948f",
|
|
6
|
+
greenTile = "https://static.zhihaoscm.cn//map/tile/{z}/{x}/{y}.png"
|
|
7
|
+
}
|
|
8
|
+
export declare enum LENGTH_UNIT {
|
|
9
|
+
M = 1,// m
|
|
10
|
+
KM = 2,// km
|
|
11
|
+
NM = 3
|
|
12
|
+
}
|
|
13
|
+
export declare const LENGTH_UNIT_LABEL: {
|
|
14
|
+
1: string;
|
|
15
|
+
2: string;
|
|
16
|
+
3: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum SHIP_SAIL_STATUS {
|
|
2
|
+
"发动机使用中" = 0,
|
|
3
|
+
"锚泊" = 1,
|
|
4
|
+
"未操作" = 2,
|
|
5
|
+
"操纵能力受限" = 3,
|
|
6
|
+
"吃水受限" = 4,
|
|
7
|
+
"系泊" = 5,
|
|
8
|
+
"搁浅" = 6,
|
|
9
|
+
"从事捕捞" = 7,
|
|
10
|
+
"航行中" = 8,
|
|
11
|
+
"留作将来修正导航状态" = 9,
|
|
12
|
+
"高速船留用" = 10,
|
|
13
|
+
"机动船尾推作业" = 11,
|
|
14
|
+
"机动船顶推或侧推作业" = 12,
|
|
15
|
+
"飞翼船留用" = 13,
|
|
16
|
+
"现行的" = 14,
|
|
17
|
+
"未定义" = 15
|
|
18
|
+
}
|
|
19
|
+
export declare enum SHIP_DIRECT {
|
|
20
|
+
'left' = "left",
|
|
21
|
+
'right' = "right",
|
|
22
|
+
'front' = "front",
|
|
23
|
+
'up' = "up",
|
|
24
|
+
'down' = "down",
|
|
25
|
+
'back' = "back"
|
|
26
|
+
}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
"vector" = 0,
|
|
3
|
-
"satellite" = 1
|
|
4
|
-
}
|
|
5
|
-
export declare enum SEARCH_TYPE {
|
|
6
|
-
SEARCH_SHIP = 0,
|
|
7
|
-
SEARCH_PORT = 1,
|
|
8
|
-
SEARCH_CUSTOM = 2
|
|
9
|
-
}
|
|
10
|
-
export declare enum COPY_RIGHT_TYPE {
|
|
11
|
-
HORIZONTAL = 0,
|
|
12
|
-
VERTICAL = 1
|
|
13
|
-
}
|
|
1
|
+
export * from './interface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as RBush } from 'rbush';
|
|
2
|
+
import { Feature, Map } from 'ol';
|
|
3
|
+
import { Coordinate } from 'ol/coordinate';
|
|
4
|
+
|
|
5
|
+
export declare const rtree: RBush<unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* 添加元素存储进Rush
|
|
8
|
+
* @param feature
|
|
9
|
+
* @param coords
|
|
10
|
+
* @param map
|
|
11
|
+
*/
|
|
12
|
+
export declare const addToRush: (feature: Feature, coords: Coordinate, map: Map) => void;
|
|
13
|
+
export declare const findAvailablePosition: (originalCoords: Coordinate, map: Map, maxRadius?: number) => number[] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|