hy-dispatch-ui-v3 0.2.62 → 0.2.64
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 +4 -5
- package/es/api/device.mjs +1 -0
- package/es/api/index.mjs +1 -0
- package/es/api/sypct.mjs +1 -0
- package/es/api/task.mjs +1 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
- package/es/components/hyAudioPlayer/index.mjs +1 -0
- package/es/components/hyAudioPlayer/js/index.mjs +5 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +4 -0
- package/es/components/hyBatchUploadDialog/index.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +3 -2
- package/es/components/hyButton/index.mjs +1 -0
- package/es/components/hyButton/style/button.scss +9 -2
- package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
- package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
- package/es/components/hyConfirmDialog/index.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +5 -2
- package/es/components/hyCutter/index.mjs +1 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyDatePicker/index.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +99 -28
- package/es/components/hyDialog/index.mjs +1 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +5 -1
- package/es/components/hyForm/form.vue.mjs +9 -3
- package/es/components/hyForm/index.mjs +1 -0
- package/es/components/hyForm/js/index.mjs +3 -1
- package/es/components/hyForm/js/useAppForm.mjs +4 -2
- package/es/components/hyIcon/icon.vue.mjs +2 -1
- package/es/components/hyIcon/index.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyIconBox/index.mjs +1 -0
- package/es/components/hyInput/index.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +3 -1
- package/es/components/hyInput/inputSearch.vue.mjs +2 -1
- package/es/components/hyLoading/index.mjs +41 -0
- package/es/components/hyMap/index.mjs +1 -0
- package/es/components/hyMap/js/index.mjs +82 -0
- package/es/components/hyMap/map.vue.mjs +1 -0
- package/es/components/hyMenu/index.mjs +1 -0
- package/es/components/hyMenu/menu.vue.mjs +4 -0
- package/es/components/hyNoPermissions/index.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
- package/es/components/hyNoPermissionsMap/index.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
- package/es/components/hyOrgCascader/index.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +2 -0
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
- package/es/components/hyRadioGroup/index.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
- package/es/components/hySearch/index.mjs +1 -0
- package/es/components/hySearch/js/index.mjs +4 -2
- package/es/components/hySearch/js/useAppSearch.mjs +4 -2
- package/es/components/hySearch/search.vue.mjs +3 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +27 -45
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +80 -28
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +9 -5
- package/es/components/hyTable/table.vue.mjs +16 -8
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -7
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +36 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
- package/es/components/hyTimePicker/index.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
- package/es/components/hyTooltip/index.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
- package/es/components/hyTree/index.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +49 -14
- package/es/components/hyTree/tree.vue.mjs +13 -6
- package/es/components/hyUserAvatar/index.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/index.mjs +1 -0
- package/es/components/hyVideoPlayer/js/index.mjs +7 -2
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
- package/es/components/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +1 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +6 -0
- package/es/locale/en.mjs +1 -2
- package/es/locale/zh_CN.mjs +1 -2
- package/es/make-installer.mjs +1 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +2 -1
- package/es/utils/handler.mjs +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/input.mjs +1 -0
- package/es/utils/is.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +3 -2
- package/es/utils/map/hook/gaode.mjs +2 -2
- package/es/utils/map/hook/leafletjs.mjs +7 -1
- package/es/utils/map/index.mjs +12 -0
- package/es/utils/map/js/webgis.mjs +4 -1
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/sypct.js +1 -0
- package/lib/api/task.js +1 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
- package/lib/components/hyAudioPlayer/index.js +1 -0
- package/lib/components/hyAudioPlayer/js/index.js +5 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +4 -0
- package/lib/components/hyBatchUploadDialog/index.js +1 -0
- package/lib/components/hyButton/button.vue.js +2 -1
- package/lib/components/hyButton/index.js +1 -0
- package/lib/components/hyButton/style/button.scss +9 -2
- package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
- package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
- package/lib/components/hyConfirmDialog/index.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +3 -0
- package/lib/components/hyCutter/index.js +1 -0
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyDatePicker/index.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +97 -26
- package/lib/components/hyDialog/index.js +1 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
- package/lib/components/hyForm/cpns/locationSelect.vue.js +5 -1
- package/lib/components/hyForm/form.vue.js +9 -3
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/index.js +3 -1
- package/lib/components/hyForm/js/useAppForm.js +3 -1
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIcon/index.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyIconBox/index.js +1 -0
- package/lib/components/hyInput/index.js +1 -0
- package/lib/components/hyInput/input.vue.js +2 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyLoading/index.js +47 -0
- package/lib/components/hyMap/index.js +1 -0
- package/lib/components/hyMap/js/index.js +82 -0
- package/lib/components/hyMap/map.vue.js +1 -0
- package/lib/components/hyMenu/index.js +1 -0
- package/lib/components/hyMenu/menu.vue.js +4 -0
- package/lib/components/hyNoPermissions/index.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
- package/lib/components/hyNoPermissionsMap/index.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
- package/lib/components/hyOrgCascader/index.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +2 -0
- package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
- package/lib/components/hyRadioGroup/index.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hySearch/js/index.js +3 -1
- package/lib/components/hySearch/js/useAppSearch.js +4 -2
- package/lib/components/hySearch/search.vue.js +3 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +25 -43
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +79 -27
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +8 -4
- package/lib/components/hyTable/table.vue.js +15 -7
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -6
- package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +36 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +12 -10
- package/lib/components/hyTimePicker/index.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
- package/lib/components/hyTooltip/index.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +2 -0
- package/lib/components/hyTree/index.js +1 -0
- package/lib/components/hyTree/js/index.js +48 -13
- package/lib/components/hyTree/tree.vue.js +13 -6
- package/lib/components/hyUserAvatar/index.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
- package/lib/components/hyVideoPlayer/index.js +1 -0
- package/lib/components/hyVideoPlayer/js/index.js +7 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
- package/lib/components/index.js +56 -53
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +70 -61
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +1 -0
- package/lib/utils/handler.js +2 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/input.js +1 -0
- package/lib/utils/is.js +1 -0
- package/lib/utils/map/hook/bigMap.js +3 -2
- package/lib/utils/map/hook/gaode.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +7 -1
- package/lib/utils/map/index.js +12 -0
- package/lib/utils/map/js/webgis.js +4 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
package/es/utils/map/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import Leafletjs from './hook/leafletjs.mjs';
|
|
|
3
3
|
import bigMap from './hook/bigMap.mjs';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
import hyCommon, { Common } from 'hy-common';
|
|
6
|
+
import '../../hooks/index.mjs';
|
|
6
7
|
import { useApi } from '../../hooks/useApi.mjs';
|
|
7
8
|
|
|
8
9
|
const scriptPromises = new globalThis.Map();
|
|
@@ -146,6 +147,7 @@ function loadScript(url) {
|
|
|
146
147
|
return promise;
|
|
147
148
|
}
|
|
148
149
|
function bmInit() {
|
|
150
|
+
;
|
|
149
151
|
(function() {
|
|
150
152
|
var originalInitTile = window.BM.GridLayer.prototype._initTile;
|
|
151
153
|
window.BM.GridLayer.include({
|
|
@@ -259,6 +261,8 @@ class InitMap extends EventEmitter {
|
|
|
259
261
|
// 自定义 Circle
|
|
260
262
|
Circle(latLngList, option) {
|
|
261
263
|
option = {
|
|
264
|
+
opacity: 1,
|
|
265
|
+
weight: 1,
|
|
262
266
|
...option,
|
|
263
267
|
radius: option.radius,
|
|
264
268
|
color: option.color,
|
|
@@ -272,6 +276,8 @@ class InitMap extends EventEmitter {
|
|
|
272
276
|
// 自定义 Polygon
|
|
273
277
|
Polygon(pathList = [], option) {
|
|
274
278
|
option = {
|
|
279
|
+
opacity: 1,
|
|
280
|
+
weight: 1,
|
|
275
281
|
...option,
|
|
276
282
|
color: option.color,
|
|
277
283
|
opacity: option.opacity,
|
|
@@ -296,6 +302,8 @@ class InitMap extends EventEmitter {
|
|
|
296
302
|
// 自定义 Polyline
|
|
297
303
|
Polyline(latLngList, option) {
|
|
298
304
|
option = {
|
|
305
|
+
opacity: 1,
|
|
306
|
+
weight: 1,
|
|
299
307
|
closeOnClick: false,
|
|
300
308
|
...option,
|
|
301
309
|
color: option.color,
|
|
@@ -320,6 +328,10 @@ class InitMap extends EventEmitter {
|
|
|
320
328
|
RangingTool(options = {}, map) {
|
|
321
329
|
return this.map.RangingTool(options, map);
|
|
322
330
|
}
|
|
331
|
+
// 地图图层
|
|
332
|
+
layerGroup(map, markers = []) {
|
|
333
|
+
return this.map.layerGroup(map, markers);
|
|
334
|
+
}
|
|
323
335
|
}
|
|
324
336
|
|
|
325
337
|
export { InitMap, setMapServer, setPoiServer };
|
package/es/version.mjs
CHANGED
package/lib/api/device.js
CHANGED
package/lib/api/index.js
CHANGED
package/lib/api/sypct.js
CHANGED
package/lib/api/task.js
CHANGED
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../hooks/index.js');
|
|
6
7
|
var elementPlus = require('element-plus');
|
|
7
|
-
var index
|
|
8
|
+
var index = require('../../api/index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../../components/index.js');
|
|
8
11
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
10
|
-
var useMixins = require('../../hooks/useMixins.js');
|
|
11
|
-
var index = require('../../components/hyDialog/index.js');
|
|
12
|
-
var index$1 = require('../../components/hyIcon/index.js');
|
|
13
|
-
var index$2 = require('../../components/hyButton/index.js');
|
|
14
|
-
var index$3 = require('../../components/hyCutter/index.js');
|
|
15
13
|
var file = require('../../utils/file.js');
|
|
14
|
+
var useMixins = require('../../hooks/useMixins.js');
|
|
15
|
+
var index$1 = require('../../components/hyDialog/index.js');
|
|
16
|
+
var index$2 = require('../../components/hyIcon/index.js');
|
|
17
|
+
var index$3 = require('../../components/hyButton/index.js');
|
|
18
|
+
var index$4 = require('../../components/hyCutter/index.js');
|
|
16
19
|
|
|
17
20
|
const __default__ = vue.defineComponent({
|
|
18
21
|
name: "HyAddDepartmentType"
|
|
@@ -92,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
92
95
|
if (!hy.form.value.icon) {
|
|
93
96
|
hy.form.value.iconKey = null;
|
|
94
97
|
}
|
|
95
|
-
index
|
|
98
|
+
index.saveApi("organization/orgType", {
|
|
96
99
|
...hy.form.value,
|
|
97
100
|
icon: null
|
|
98
101
|
}).then((res) => {
|
|
@@ -169,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
169
172
|
});
|
|
170
173
|
return (_ctx, _cache) => {
|
|
171
174
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
172
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), {
|
|
175
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyDialog), {
|
|
173
176
|
ref_key: "HyDialogRef",
|
|
174
177
|
ref: HyDialogRef,
|
|
175
178
|
modelValue: vue.unref(visible),
|
|
@@ -238,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
238
241
|
fit: "contain",
|
|
239
242
|
class: "w-[44px] h-[44px]",
|
|
240
243
|
src: vue.unref(form).icon
|
|
241
|
-
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
244
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyIcon), {
|
|
242
245
|
key: 1,
|
|
243
246
|
"svg-name": "ops-file-empty-head",
|
|
244
247
|
class: "text-auxiliary !w-[42px] !h-[42px]"
|
|
@@ -310,7 +313,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
310
313
|
}, 8, ["model", "rules"])
|
|
311
314
|
]),
|
|
312
315
|
vue.createElementVNode("div", { class: "flex items-center justify-center mt-5" }, [
|
|
313
|
-
vue.createVNode(vue.unref(index$
|
|
316
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
314
317
|
class: "!min-w-[120px]",
|
|
315
318
|
onClick: vue.unref(onClose)
|
|
316
319
|
}, {
|
|
@@ -324,7 +327,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
324
327
|
_: 1
|
|
325
328
|
/* STABLE */
|
|
326
329
|
}, 8, ["onClick"]),
|
|
327
|
-
vue.createVNode(vue.unref(index$
|
|
330
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
328
331
|
type: "primary",
|
|
329
332
|
class: "!min-w-[120px]",
|
|
330
333
|
onClick: vue.unref(submit)
|
|
@@ -343,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
343
346
|
])
|
|
344
347
|
]),
|
|
345
348
|
vue.unref(visible) ? (vue.openBlock(), vue.createBlock(
|
|
346
|
-
vue.unref(index$
|
|
349
|
+
vue.unref(index$4.HyCutter),
|
|
347
350
|
{
|
|
348
351
|
key: 0,
|
|
349
352
|
ref_key: "HyCutterRef",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var addDepartmentType = require('./addDepartmentType.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyAddDepartmentType = handler.withInstall(addDepartmentType.default);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var mapAearchPlace = require('./mapAearchPlace.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyMapAearchPlace = handler.withInstall(mapAearchPlace.default);
|
|
@@ -6,10 +6,11 @@ var index$1 = require('../../../api/index.js');
|
|
|
6
6
|
var task = require('../../../api/task.js');
|
|
7
7
|
var device = require('../../../api/device.js');
|
|
8
8
|
var sypct = require('../../../api/sypct.js');
|
|
9
|
+
require('../../../utils/index.js');
|
|
9
10
|
var webgis = require('../../../utils/map/js/webgis.js');
|
|
10
11
|
var index = require('../../../utils/map/index.js');
|
|
11
|
-
var input = require('../../../utils/input.js');
|
|
12
12
|
var is = require('../../../utils/is.js');
|
|
13
|
+
var input = require('../../../utils/input.js');
|
|
13
14
|
|
|
14
15
|
const CoordinateDict = {
|
|
15
16
|
0: "WGS84",
|
|
@@ -24,32 +25,6 @@ const CoordinateMap = {
|
|
|
24
25
|
const useMapAearchPlace = (hy) => {
|
|
25
26
|
const { props, emits, t } = hy;
|
|
26
27
|
const poiServer = index.setPoiServer(props.mapConfig);
|
|
27
|
-
const searchAddressTypeList = vue.ref([
|
|
28
|
-
{ label: "\u5730\u7406\u5730\u5740", value: 1 },
|
|
29
|
-
// 水源点: 2
|
|
30
|
-
// 防火单位: 3
|
|
31
|
-
{
|
|
32
|
-
label: "\u90E8\u95E8\u540D\u79F0",
|
|
33
|
-
value: 4,
|
|
34
|
-
permission: "operator_departmentManage"
|
|
35
|
-
},
|
|
36
|
-
{ label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
|
|
37
|
-
{
|
|
38
|
-
label: "\u67E5\u5DE1\u67E5\u70B9",
|
|
39
|
-
value: 6,
|
|
40
|
-
permission: "mission_patrolInspectionTask"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "\u4EFB\u52A1\u540D\u79F0",
|
|
44
|
-
value: 7,
|
|
45
|
-
permission: "mission_commonTasks"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "\u67E5\u8BE2\u8F66\u8F86",
|
|
49
|
-
value: 8,
|
|
50
|
-
permission: "commands_dutyStatus"
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
28
|
const nextPageParams = vue.ref(null);
|
|
54
29
|
const lnglat = vue.ref({
|
|
55
30
|
lng: null,
|
|
@@ -93,20 +68,43 @@ const useMapAearchPlace = (hy) => {
|
|
|
93
68
|
const mapCoordinateName = vue.computed(() => {
|
|
94
69
|
return CoordinateDict[hy.mapCoordinate.value];
|
|
95
70
|
});
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
71
|
+
const searchAddressTypeList = vue.computed(() => {
|
|
72
|
+
const selectIdSet = props.selectIdList.reduce((value, id) => {
|
|
73
|
+
value.add(id);
|
|
74
|
+
return value;
|
|
75
|
+
}, /* @__PURE__ */ new Set());
|
|
76
|
+
return [
|
|
77
|
+
{ label: "\u5730\u7406\u5730\u5740", value: 1 },
|
|
78
|
+
// 水源点: 2
|
|
79
|
+
// 防火单位: 3
|
|
80
|
+
{
|
|
81
|
+
label: "\u90E8\u95E8\u540D\u79F0",
|
|
82
|
+
value: 4,
|
|
83
|
+
permission: "operator_departmentManage"
|
|
84
|
+
},
|
|
85
|
+
{ label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
|
|
86
|
+
{
|
|
87
|
+
label: "\u67E5\u5DE1\u67E5\u70B9",
|
|
88
|
+
value: 6,
|
|
89
|
+
permission: "mission_patrolInspectionTask"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "\u4EFB\u52A1\u540D\u79F0",
|
|
93
|
+
value: 7,
|
|
94
|
+
permission: "mission_commonTasks"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "\u67E5\u8BE2\u8F66\u8F86",
|
|
98
|
+
value: 8,
|
|
99
|
+
permission: "commands_dutyStatus"
|
|
104
100
|
}
|
|
101
|
+
].filter((item) => {
|
|
102
|
+
if (!item.permission && !is.isPermission(item.permission)) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return selectIdSet.has(item.value);
|
|
105
106
|
});
|
|
106
|
-
|
|
107
|
-
hy.searchAddressType.value = selectList[0].value;
|
|
108
|
-
hy.selectList = selectList;
|
|
109
|
-
}
|
|
107
|
+
});
|
|
110
108
|
async function lnglatCheckFn(content) {
|
|
111
109
|
input.onlyNumber(hy.lnglat.value, content);
|
|
112
110
|
await vue.nextTick();
|
|
@@ -627,7 +625,6 @@ const useMapAearchPlace = (hy) => {
|
|
|
627
625
|
commonOptions,
|
|
628
626
|
mapCoordinate,
|
|
629
627
|
mapCoordinateName,
|
|
630
|
-
setSelectList,
|
|
631
628
|
lnglatCheckFn,
|
|
632
629
|
onFocus,
|
|
633
630
|
onBlur,
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var VirtualList = require('vue3-virtual-scroll-list');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
|
+
require('../../hooks/index.js');
|
|
9
|
+
require('../../components/index.js');
|
|
8
10
|
var index = require('./js/index.js');
|
|
9
11
|
var mapAearchPlaceItem = require('./mapAearchPlaceItem.vue.js');
|
|
10
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
@@ -80,7 +82,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
80
82
|
commonOptions,
|
|
81
83
|
mapCoordinate,
|
|
82
84
|
mapCoordinateName,
|
|
83
|
-
setSelectList,
|
|
84
85
|
lnglatCheckFn,
|
|
85
86
|
onFocus,
|
|
86
87
|
onBlur,
|
|
@@ -103,6 +104,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
103
104
|
titleFn,
|
|
104
105
|
placeholderFn
|
|
105
106
|
} = useMixins.useMixins({ props, emits, t }, [index.useMapAearchPlace]);
|
|
107
|
+
vue.watch(
|
|
108
|
+
() => searchAddressTypeList.value,
|
|
109
|
+
() => {
|
|
110
|
+
if (!searchAddressType.value) {
|
|
111
|
+
searchAddressType.value = searchAddressType.value[0];
|
|
112
|
+
searchAddressTypeFn();
|
|
113
|
+
} else {
|
|
114
|
+
const index = searchAddressTypeList.value.findIndex((item) => {
|
|
115
|
+
return searchAddressType.value === item.value;
|
|
116
|
+
});
|
|
117
|
+
if (index === -1) {
|
|
118
|
+
searchAddressType.value = searchAddressType.value[0];
|
|
119
|
+
searchAddressTypeFn();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{ immediate: true, deep: true }
|
|
124
|
+
);
|
|
106
125
|
__expose({});
|
|
107
126
|
return (_ctx, _cache) => {
|
|
108
127
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -127,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
127
146
|
onBlur: vue.unref(onBlur)
|
|
128
147
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange", "onFocus", "onBlur"]),
|
|
129
148
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
130
|
-
"
|
|
149
|
+
"show-after": 500,
|
|
131
150
|
content: vue.unref(placeholder),
|
|
132
151
|
placement: "bottom-start"
|
|
133
152
|
}, {
|
|
@@ -152,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
152
171
|
}, 8, ["content"]),
|
|
153
172
|
vue.createCommentVNode(" \u7ECF\u7EAC\u5EA6 "),
|
|
154
173
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
155
|
-
"
|
|
174
|
+
"show-after": 500,
|
|
156
175
|
content: "\u7EAC\u5EA6",
|
|
157
176
|
placement: "bottom-start"
|
|
158
177
|
}, {
|
|
@@ -177,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
177
196
|
/* STABLE */
|
|
178
197
|
}),
|
|
179
198
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
180
|
-
"
|
|
199
|
+
"show-after": 500,
|
|
181
200
|
content: "\u7ECF\u5EA6",
|
|
182
201
|
placement: "bottom-start"
|
|
183
202
|
}, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../components/index.js');
|
|
6
7
|
var index = require('../../components/hyIcon/index.js');
|
|
7
8
|
|
|
8
9
|
const _sfc_main = {
|
|
@@ -31,6 +32,7 @@ const _sfc_main = {
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
setup(__props) {
|
|
35
|
+
const props = __props;
|
|
34
36
|
return (_ctx, _cache) => {
|
|
35
37
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
36
38
|
class: "flex items-center css-text-no-select py-2 pl-2.5 border-b border-background-3 clickBox hover:bg-background-3",
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../hooks/index.js');
|
|
8
|
+
require('../../utils/index.js');
|
|
9
|
+
require('../index.js');
|
|
7
10
|
var mediaLoading = require('../hyVideoPlayer/cpns/mediaLoading.vue.js');
|
|
8
11
|
var index = require('./js/index.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var audioPlayer = require('./audioPlayer.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyAudioPlayer = handler.withInstall(audioPlayer.default);
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
+
require('dayjs');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
require('../../../utils/index.js');
|
|
5
8
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
6
9
|
var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
|
|
7
10
|
var date = require('../../../utils/date.js');
|
|
@@ -243,7 +246,8 @@ const useAudioPlayer = (hy) => {
|
|
|
243
246
|
document.removeEventListener("fullscreenchange", fullscreenchangeHandler);
|
|
244
247
|
}
|
|
245
248
|
function fullscreenchangeHandler(e) {
|
|
246
|
-
if (document.fullscreenElement)
|
|
249
|
+
if (document.fullscreenElement) {
|
|
250
|
+
} else {
|
|
247
251
|
isFullScreen.value = false;
|
|
248
252
|
}
|
|
249
253
|
}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../index.js');
|
|
8
9
|
var index = require('../hyDialog/index.js');
|
|
9
10
|
var index$1 = require('../hyTableForm/index.js');
|
|
10
11
|
var index$2 = require('../hyButton/index.js');
|
|
@@ -211,6 +212,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
211
212
|
},
|
|
212
213
|
setData: (source) => {
|
|
213
214
|
batchTableFormRef.value.setData(source);
|
|
215
|
+
},
|
|
216
|
+
setDragLevelIndex: (dragLevel) => {
|
|
217
|
+
HyDialogRef.value.setDragLevelIndex(dragLevel);
|
|
214
218
|
}
|
|
215
219
|
});
|
|
216
220
|
return (_ctx, _cache) => {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var batchUploadDialog = require('./batchUploadDialog.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyBatchUploadDialog = handler.withInstall(batchUploadDialog.default);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../index.js');
|
|
8
9
|
var index = require('../hyTooltip/index.js');
|
|
9
10
|
var index$1 = require('../hyIcon/index.js');
|
|
10
11
|
|
|
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
123
124
|
}, {
|
|
124
125
|
default: vue.withCtx(() => [
|
|
125
126
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
126
|
-
vue.createElementVNode("div", { class: "flex items-center text-main px-3" }, [
|
|
127
|
+
vue.createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
|
|
127
128
|
!__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
128
129
|
__props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
129
130
|
key: 0,
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
color: inherit;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
font-size: 14px;
|
|
11
|
-
padding: 2px;
|
|
12
|
-
border: 1px solid transparent;
|
|
13
11
|
box-sizing: border-box;
|
|
12
|
+
border-radius: 4px;
|
|
14
13
|
|
|
15
14
|
&:disabled,
|
|
16
15
|
&.is-disabled {
|
|
@@ -35,6 +34,8 @@
|
|
|
35
34
|
|
|
36
35
|
&.hy-button_default {
|
|
37
36
|
background: rgba(94, 157, 180, 0.32);
|
|
37
|
+
border: 1px solid rgba(94, 157, 180, 1);
|
|
38
|
+
box-shadow: 0px 0px 0px 2px rgba(94, 157, 180, 0.5);
|
|
38
39
|
|
|
39
40
|
.hy-button__border {
|
|
40
41
|
background: linear-gradient(
|
|
@@ -99,6 +100,8 @@
|
|
|
99
100
|
|
|
100
101
|
&.hy-button_function {
|
|
101
102
|
background: rgba(45, 242, 255, 0.32);
|
|
103
|
+
border: 1px solid rgba(45, 242, 255, 1);
|
|
104
|
+
box-shadow: 0px 0px 0px 2px rgba(45, 242, 255, 0.5);
|
|
102
105
|
|
|
103
106
|
.hy-button__border {
|
|
104
107
|
background: linear-gradient(
|
|
@@ -163,6 +166,8 @@
|
|
|
163
166
|
|
|
164
167
|
&.hy-button_addTo {
|
|
165
168
|
background: rgba(44, 232, 152, 0.32);
|
|
169
|
+
border: 1px solid rgba(44, 232, 152, 1);
|
|
170
|
+
box-shadow: 0px 0px 0px 2px rgba(44, 232, 152, 0.5);
|
|
166
171
|
|
|
167
172
|
.hy-button__border {
|
|
168
173
|
background: linear-gradient(
|
|
@@ -227,6 +232,8 @@
|
|
|
227
232
|
|
|
228
233
|
&.hy-button_delete {
|
|
229
234
|
background: rgba(255, 77, 77, 0.32);
|
|
235
|
+
border: 1px solid rgba(255, 77, 77, 1);
|
|
236
|
+
box-shadow: 0px 0px 0px 2px rgba(255, 77, 77, 0.5);
|
|
230
237
|
|
|
231
238
|
.hy-button__border {
|
|
232
239
|
background: linear-gradient(
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var ElementLocale = require('element-plus/es/locales.mjs');
|
|
8
|
+
require('../../hooks/index.js');
|
|
8
9
|
var useGlobalConfig = require('../../hooks/useGlobalConfig.js');
|
|
9
10
|
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var configProvider = require('./configProvider.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyConfigProvider = handler.withInstall(configProvider.default);
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../hooks/index.js');
|
|
8
|
+
require('../index.js');
|
|
7
9
|
var useLocale = require('../../hooks/useLocale.js');
|
|
8
10
|
var index = require('../hyIcon/index.js');
|
|
9
11
|
var index$1 = require('../hyButton/index.js');
|
|
@@ -202,6 +204,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
202
204
|
key: 0,
|
|
203
205
|
type: __props.cancelType,
|
|
204
206
|
disabled: loading.value,
|
|
207
|
+
class: "min-w-[120px]",
|
|
205
208
|
onClick: onCancelHandler
|
|
206
209
|
}, {
|
|
207
210
|
default: vue.withCtx(() => [
|
|
@@ -218,6 +221,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
218
221
|
key: 1,
|
|
219
222
|
type: __props.submitType,
|
|
220
223
|
loading: loading.value,
|
|
224
|
+
class: "min-w-[120px]",
|
|
221
225
|
onClick: onSubmitHandler
|
|
222
226
|
}, {
|
|
223
227
|
default: vue.withCtx(() => [
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../hooks/index.js');
|
|
6
7
|
var useApi = require('../../hooks/useApi.js');
|
|
8
|
+
require('../index.js');
|
|
7
9
|
var confirmDialog = require('./confirmDialog.vue.js');
|
|
8
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
9
10
|
var useGlobalConfig = require('../../hooks/useGlobalConfig.js');
|
|
10
11
|
var index = require('../hyConfigProvider/index.js');
|
|
12
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
11
13
|
|
|
12
14
|
function appConfirmMethod(config) {
|
|
13
15
|
let container = document.createDocumentFragment();
|
|
@@ -87,11 +89,11 @@ confirmDialog.default.danger = (props) => {
|
|
|
87
89
|
const { t } = useLocale.useLocale();
|
|
88
90
|
return appConfirmMethod({
|
|
89
91
|
dialogTitle: t("dialog.dangerousOperation"),
|
|
90
|
-
titleClass: "text-danger",
|
|
92
|
+
titleClass: "text-danger-2",
|
|
91
93
|
title: t("dialog.prompt"),
|
|
92
94
|
content: t("dialog.content"),
|
|
93
95
|
submitType: "danger",
|
|
94
|
-
iconColor: "rgb(var(--hy-danger))",
|
|
96
|
+
iconColor: "rgb(var(--hy-danger-2))",
|
|
95
97
|
...props
|
|
96
98
|
});
|
|
97
99
|
};
|
|
@@ -6,6 +6,9 @@ var vue = require('vue');
|
|
|
6
6
|
var vueCropper = require('vue-cropper');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
8
|
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../index.js');
|
|
11
|
+
require('../../hooks/index.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
10
13
|
var file = require('../../utils/file.js');
|
|
11
14
|
var index = require('../hyDialog/index.js');
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../utils/index.js');
|
|
8
|
+
require('../../hooks/index.js');
|
|
7
9
|
var useLocale = require('../../hooks/useLocale.js');
|
|
8
10
|
var date = require('../../utils/date.js');
|
|
9
11
|
var is = require('../../utils/is.js');
|