hy-dispatch-ui-v3 0.2.83 → 0.2.85
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/tailwind.css +54 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +5 -0
- package/es/bussiness/hyDeviceTree/js/index.mjs +15 -5
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.install.mjs +6 -0
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +113 -0
- package/es/bussiness/hySelectDeviceTree/index.mjs +7 -0
- package/es/bussiness/hySelectDeviceTree/js/index.mjs +35 -0
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.install.mjs +6 -0
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +163 -0
- package/es/bussiness/hySelectDeviceTree/style/selectDeviceTree.scss +0 -0
- package/es/bussiness/index.mjs +1 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +493 -426
- package/es/components/hyForm/form.vue.mjs +12 -0
- package/es/components/hyIcon/icon.vue.mjs +10 -4
- package/es/components/hyMap/js/index.mjs +1 -0
- package/es/components-map.mjs +1 -0
- package/es/index.mjs +2 -0
- package/es/utils/device.mjs +42 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +103 -124
- package/es/utils/map/hook/gaode.mjs +3 -0
- package/es/utils/map/hook/leafletjs.mjs +78 -113
- package/es/utils/map/index.mjs +4 -4
- package/es/utils/map/js/mapProxy.mjs +24 -5
- package/es/version.mjs +1 -1
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +5 -0
- package/lib/bussiness/hyDeviceTree/js/index.js +15 -5
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.install.js +6 -0
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +117 -0
- package/lib/bussiness/hySelectDeviceTree/index.js +12 -0
- package/lib/bussiness/hySelectDeviceTree/js/index.js +37 -0
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.install.js +6 -0
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +167 -0
- package/lib/bussiness/hySelectDeviceTree/style/selectDeviceTree.scss +0 -0
- package/lib/bussiness/index.js +4 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +492 -425
- package/lib/components/hyForm/form.vue.js +12 -0
- package/lib/components/hyIcon/icon.vue.js +10 -4
- package/lib/components/hyMap/js/index.js +1 -0
- package/lib/components-map.js +1 -0
- package/lib/index.js +24 -20
- package/lib/utils/device.js +44 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/map/hook/bigMap.js +102 -123
- package/lib/utils/map/hook/gaode.js +3 -0
- package/lib/utils/map/hook/leafletjs.js +77 -112
- package/lib/utils/map/index.js +4 -4
- package/lib/utils/map/js/mapProxy.js +24 -4
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -63,6 +63,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
63
63
|
type: String,
|
|
64
64
|
default: "default"
|
|
65
65
|
// default-默认 tableForm-表格表单
|
|
66
|
+
},
|
|
67
|
+
labelPosition: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: "top"
|
|
70
|
+
},
|
|
71
|
+
labelWidth: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: ""
|
|
66
74
|
}
|
|
67
75
|
},
|
|
68
76
|
emits: ["on-allMapSelect", "complete", "optionsStatus"],
|
|
@@ -90,6 +98,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
90
98
|
const isTableForm = vue.computed(() => props.business === "tableForm");
|
|
91
99
|
const locationSelectRef = vue.useTemplateRef("locationSelectRef");
|
|
92
100
|
const allMapSelect = vue.ref(false);
|
|
101
|
+
const labelPosition = vue.computed(() => {
|
|
102
|
+
return ["left", "right", "top"].includes(props.labelPosition) ? props.labelPosition : "top";
|
|
103
|
+
});
|
|
93
104
|
function setMapSize() {
|
|
94
105
|
allMapSelect.value = !allMapSelect.value;
|
|
95
106
|
emits("on-allMapSelect", allMapSelect.value);
|
|
@@ -135,6 +146,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
135
146
|
index.formContextKey,
|
|
136
147
|
vue.reactive({
|
|
137
148
|
...vue.toRefs(props),
|
|
149
|
+
labelPosition,
|
|
138
150
|
emits,
|
|
139
151
|
addField,
|
|
140
152
|
removeField,
|
|
@@ -25,14 +25,20 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
25
25
|
className: {
|
|
26
26
|
type: String,
|
|
27
27
|
default: ""
|
|
28
|
+
},
|
|
29
|
+
ensureHyIcon: {
|
|
30
|
+
type: Function,
|
|
31
|
+
default: () => {
|
|
32
|
+
const { ensureHyIcon } = useEnsureHyIcon.useEnsureHyIcon();
|
|
33
|
+
return ensureHyIcon;
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
setup(__props) {
|
|
31
38
|
const props = __props;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
vue.
|
|
35
|
-
vue.watch(() => props.svgName, ensureHyIcon);
|
|
39
|
+
if (props.ensureHyIcon) {
|
|
40
|
+
vue.onMounted(() => props.ensureHyIcon(props.svgName));
|
|
41
|
+
vue.watch(() => props.svgName, props.ensureHyIcon);
|
|
36
42
|
}
|
|
37
43
|
const iconName = vue.computed(() => `#${props.prefix}${props.svgName}`);
|
|
38
44
|
const svgClass = vue.computed(() => {
|
|
@@ -145,6 +145,7 @@ const useAppMapWrapper = (hy) => {
|
|
|
145
145
|
maxZoom: mapConfig.maxZoom || 18,
|
|
146
146
|
center: { lat: userInfo?.lat || 22.553681, lng: userInfo?.lng || 113.931936 },
|
|
147
147
|
zoom: mapConfig.zoom || 14,
|
|
148
|
+
satelliteMap: mapConfig.satelliteMap,
|
|
148
149
|
completeCallbacks: () => {
|
|
149
150
|
vue.nextTick(() => {
|
|
150
151
|
emits("complete", hy.hyMap.value, hy.map.value);
|
package/lib/components-map.js
CHANGED
|
@@ -17,5 +17,6 @@ module.exports = {
|
|
|
17
17
|
HyRuleFenceDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog'),
|
|
18
18
|
HyRuleSettingDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog'),
|
|
19
19
|
HySetRuleAggregationAlarmDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog'),
|
|
20
|
+
HySelectDeviceTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hySelectDeviceTree/selectDeviceTree'),
|
|
20
21
|
HyUserTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyUserTree/userTree'),
|
|
21
22
|
}
|
package/lib/index.js
CHANGED
|
@@ -45,15 +45,16 @@ var index$x = require('./bussiness/hyPlanGroupDeviceTree/index.js');
|
|
|
45
45
|
var index$y = require('./components/hyRadioGroup/index.js');
|
|
46
46
|
var index$z = require('./bussiness/hyRuleSetting/index.js');
|
|
47
47
|
var index$A = require('./components/hySearch/index.js');
|
|
48
|
-
var index$B = require('./
|
|
49
|
-
var index$C = require('./components/
|
|
50
|
-
var index$D = require('./components/
|
|
51
|
-
var index$E = require('./components/
|
|
52
|
-
var index$F = require('./components/
|
|
53
|
-
var index$G = require('./components/
|
|
54
|
-
var index$H = require('./
|
|
55
|
-
var index$I = require('./
|
|
56
|
-
var index$J = require('./
|
|
48
|
+
var index$B = require('./bussiness/hySelectDeviceTree/index.js');
|
|
49
|
+
var index$C = require('./components/hyStatus/index.js');
|
|
50
|
+
var index$D = require('./components/hyTable/index.js');
|
|
51
|
+
var index$E = require('./components/hyTableActionButton/index.js');
|
|
52
|
+
var index$F = require('./components/hyTour/index.js');
|
|
53
|
+
var index$G = require('./components/hyTree/index.js');
|
|
54
|
+
var index$H = require('./components/hyUserAvatar/index.js');
|
|
55
|
+
var index$I = require('./bussiness/hyUserTree/index.js');
|
|
56
|
+
var index$J = require('./components/hyVideoPlayer/index.js');
|
|
57
|
+
var index$K = require('./utils/map/index.js');
|
|
57
58
|
var permission = require('./utils/permission.js');
|
|
58
59
|
var crypto = require('./utils/crypto.js');
|
|
59
60
|
var file = require('./utils/file.js');
|
|
@@ -66,6 +67,7 @@ var useApi = require('./hooks/useApi.js');
|
|
|
66
67
|
var input = require('./utils/input.js');
|
|
67
68
|
var timeUtils = require('./utils/timeUtils.js');
|
|
68
69
|
var date = require('./utils/date.js');
|
|
70
|
+
var device = require('./utils/device.js');
|
|
69
71
|
var is = require('./utils/is.js');
|
|
70
72
|
var sharedContent = require('./utils/sharedContent.js');
|
|
71
73
|
var useAudioPlayerConfig = require('./hooks/useAudioPlayerConfig.js');
|
|
@@ -157,17 +159,18 @@ exports.HyRuleSetting = index$z.HyRuleSetting;
|
|
|
157
159
|
exports.HyRuleSettingDialog = index$z.HyRuleSettingDialog;
|
|
158
160
|
exports.HySetRuleAggregationAlarmDialog = index$z.HySetRuleAggregationAlarmDialog;
|
|
159
161
|
exports.HySearch = index$A.HySearch;
|
|
160
|
-
exports.
|
|
161
|
-
exports.
|
|
162
|
-
exports.
|
|
163
|
-
exports.
|
|
164
|
-
exports.
|
|
165
|
-
exports.
|
|
166
|
-
exports.
|
|
167
|
-
exports.
|
|
168
|
-
exports.
|
|
169
|
-
exports.
|
|
170
|
-
exports.
|
|
162
|
+
exports.HySelectDeviceTree = index$B.HySelectDeviceTree;
|
|
163
|
+
exports.HyStatus = index$C.HyStatus;
|
|
164
|
+
exports.HyTable = index$D.HyTable;
|
|
165
|
+
exports.HyTableActionButton = index$E.HyTableActionButton;
|
|
166
|
+
exports.HyTour = index$F.HyTour;
|
|
167
|
+
exports.HyTree = index$G.HyTree;
|
|
168
|
+
exports.HyUserAvatar = index$H.HyUserAvatar;
|
|
169
|
+
exports.HyUserTree = index$I.HyUserTree;
|
|
170
|
+
exports.HyVideoPlayer = index$J.HyVideoPlayer;
|
|
171
|
+
exports.InitMap = index$K.InitMap;
|
|
172
|
+
exports.setMapServer = index$K.setMapServer;
|
|
173
|
+
exports.setPoiServer = index$K.setPoiServer;
|
|
171
174
|
exports.PERMISSION = permission.PERMISSION;
|
|
172
175
|
exports.base64Decrypt = crypto.base64Decrypt;
|
|
173
176
|
exports.encryptToBase64 = crypto.encryptToBase64;
|
|
@@ -228,6 +231,7 @@ exports.getNextDays = timeUtils.getNextDays;
|
|
|
228
231
|
exports.getToday = timeUtils.getToday;
|
|
229
232
|
exports.formatDuration = date.formatDuration;
|
|
230
233
|
exports.getDefaultValueFormatByType = date.getDefaultValueFormatByType;
|
|
234
|
+
exports.getDeviceTypeIcon = device.getDeviceTypeIcon;
|
|
231
235
|
exports.isArray = is.isArray;
|
|
232
236
|
exports.isBoolean = is.isBoolean;
|
|
233
237
|
exports.isEmpty = is.isEmpty;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../hooks/index.js');
|
|
4
|
+
var useBaseMainStore = require('../hooks/useBaseMainStore.js');
|
|
5
|
+
|
|
6
|
+
function getDeviceTypeIcon(device = {}, onlineState) {
|
|
7
|
+
const { baseMainStore } = useBaseMainStore.useBaseMainStore();
|
|
8
|
+
const key = baseMainStore.value.getters.getDeviceTypeIcon(device, onlineState);
|
|
9
|
+
const deviceTypeV3Json = {
|
|
10
|
+
"tree-icon-law-enforcement-2": "dispatch-share-v3-sip-law-enforcement",
|
|
11
|
+
"tree-icon-dispatching-desk-2": "map-tree-dispatching-desk",
|
|
12
|
+
"tree-icon-duty-desk-2": "map-tree-duty-desk",
|
|
13
|
+
"tree-icon-phone-2": "map-tree-phone",
|
|
14
|
+
"tree-icon-control-the-ball-2": "map-tree-control-the-ball",
|
|
15
|
+
"tree-icon-ipc-2": "map-tree-ipc",
|
|
16
|
+
"tree-icon-safety-hat-2": "map-tree-safety-hat",
|
|
17
|
+
"tree-icon-flashlight-2": "map-tree-flashlight",
|
|
18
|
+
"tree-icon-work-card-2": "map-marker-marker-device-v2",
|
|
19
|
+
"tree-icon-vehicle-2": "map-tree-vehicle",
|
|
20
|
+
"tree-icon-uav-2": "map-tree-uav",
|
|
21
|
+
"tree-icon-obd-2": "map-tree-obd",
|
|
22
|
+
"tree-icon-walkie-talkie-2": "map-tree-walkie-talkie",
|
|
23
|
+
"tree-icon-law-enforcement-3": "map-tree-law-enforcement-v2",
|
|
24
|
+
"tree-icon-smartwatch": "map-tree-smartwatch",
|
|
25
|
+
"tree-icon-law-enforcement-off-line-2": "lawEnforcement_offLine",
|
|
26
|
+
"tree-icon-dispatching-desk-off-line-2": "dispatchingDesk_offLine",
|
|
27
|
+
"tree-icon-duty-desk-offline": "dutyDesk_offLine",
|
|
28
|
+
"tree-icon-phone-off-line-2": "phone_offLine",
|
|
29
|
+
"tree-icon-control-the-ball-off-line-2": "controlTheBall_offLine",
|
|
30
|
+
"tree-icon-safety-hat-off-line-2": "safetyHat_offLine",
|
|
31
|
+
"tree-icon-flashlight-off-line-2": "flashlight_offLine",
|
|
32
|
+
"tree-icon-work-card-off-line-2": "workCard_offLine",
|
|
33
|
+
"tree-icon-vehicle-off-line-2": "vehicle_offLine",
|
|
34
|
+
"tree-icon-uav-off-line-2": "uav_offLine",
|
|
35
|
+
"tree-icon-ipc-off-line-2": "ipc_offLine",
|
|
36
|
+
"tree-icon-obd-off-line-2": "obd_offLine",
|
|
37
|
+
"tree-icon-law-enforcement-3-off-line": "lawEnforcementV2_offLine",
|
|
38
|
+
"tree-icon-smartwatch-off-line": "smartwatch_offLine",
|
|
39
|
+
"tree-icon-walkie-talkie-off-line-2": "walkieTalkie_offLine"
|
|
40
|
+
};
|
|
41
|
+
return deviceTypeV3Json[`${key}`] || key;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.getDeviceTypeIcon = getDeviceTypeIcon;
|
package/lib/utils/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var index = require('./map/index.js');
|
|
|
13
13
|
require('./tree.js');
|
|
14
14
|
var sharedContent = require('./sharedContent.js');
|
|
15
15
|
var timeUtils = require('./timeUtils.js');
|
|
16
|
+
var device = require('./device.js');
|
|
16
17
|
var hyVirtualTree = require('hy-virtual-tree');
|
|
17
18
|
|
|
18
19
|
|
|
@@ -89,6 +90,7 @@ exports.getBeforeDays = timeUtils.getBeforeDays;
|
|
|
89
90
|
exports.getCurDtm = timeUtils.getCurDtm;
|
|
90
91
|
exports.getNextDays = timeUtils.getNextDays;
|
|
91
92
|
exports.getToday = timeUtils.getToday;
|
|
93
|
+
exports.getDeviceTypeIcon = device.getDeviceTypeIcon;
|
|
92
94
|
Object.defineProperty(exports, "setGlobalTreeConfig", {
|
|
93
95
|
enumerable: true,
|
|
94
96
|
get: function () { return hyVirtualTree.setGlobalTreeConfig; }
|