hy-dispatch-ui-v3 0.2.60 → 0.2.62

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.
Files changed (80) hide show
  1. package/dist/tailwind.css +70 -8
  2. package/es/api/device.mjs +18 -0
  3. package/es/api/sypct.mjs +18 -0
  4. package/es/api/task.mjs +18 -0
  5. package/es/bussiness/hyMapAearchPlace/index.mjs +6 -0
  6. package/es/bussiness/hyMapAearchPlace/js/index.mjs +653 -0
  7. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +347 -0
  8. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +99 -0
  9. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  10. package/es/bussiness/index.mjs +1 -0
  11. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +22 -3
  12. package/es/components/hyButton/style/button.scss +1 -1
  13. package/es/components/hyConfigProvider/configProvider.vue.mjs +4 -0
  14. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
  15. package/es/components/hyDialog/dialog.vue.mjs +24 -4
  16. package/es/components/hyForm/cpns/locationSelect.vue.mjs +3 -1
  17. package/es/components/hyMap/map.vue.mjs +10 -3
  18. package/es/components/hyMenu/menu.vue.mjs +38 -23
  19. package/es/components/hyMenu/style/menu.scss +3 -1
  20. package/es/components/hyOrgCascader/js/index.mjs +2 -2
  21. package/es/components/hySearch/cpns/searchItem.vue.mjs +17 -1
  22. package/es/components/hyTable/table.vue.mjs +8 -1
  23. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -59
  24. package/es/components/hyTableForm/js/index.mjs +8 -58
  25. package/es/components/hyTableForm/tableForm.vue.mjs +9 -3
  26. package/es/components/hyVideoPlayer/js/index.mjs +0 -1
  27. package/es/hooks/index.mjs +1 -0
  28. package/es/hooks/useApi.mjs +2 -2
  29. package/es/hooks/useGlobalConfig.mjs +6 -1
  30. package/es/hooks/useMapConfig.mjs +18 -0
  31. package/es/index.mjs +3 -0
  32. package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  33. package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  34. package/es/style/element/hy-element.scss +10 -1
  35. package/es/utils/form.mjs +5 -1
  36. package/es/utils/handler.mjs +5 -0
  37. package/es/utils/index.mjs +1 -0
  38. package/es/utils/map/js/webgis.mjs +1 -1
  39. package/es/utils/tree.mjs +1 -0
  40. package/es/version.mjs +1 -1
  41. package/lib/api/device.js +20 -0
  42. package/lib/api/sypct.js +20 -0
  43. package/lib/api/task.js +20 -0
  44. package/lib/bussiness/hyMapAearchPlace/index.js +11 -0
  45. package/lib/bussiness/hyMapAearchPlace/js/index.js +655 -0
  46. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +351 -0
  47. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +103 -0
  48. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  49. package/lib/bussiness/index.js +2 -0
  50. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +22 -3
  51. package/lib/components/hyButton/style/button.scss +1 -1
  52. package/lib/components/hyConfigProvider/configProvider.vue.js +4 -0
  53. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
  54. package/lib/components/hyDialog/dialog.vue.js +23 -3
  55. package/lib/components/hyForm/cpns/locationSelect.vue.js +3 -1
  56. package/lib/components/hyMap/map.vue.js +10 -3
  57. package/lib/components/hyMenu/menu.vue.js +37 -22
  58. package/lib/components/hyMenu/style/menu.scss +3 -1
  59. package/lib/components/hyOrgCascader/js/index.js +2 -2
  60. package/lib/components/hySearch/cpns/searchItem.vue.js +16 -0
  61. package/lib/components/hyTable/table.vue.js +8 -1
  62. package/lib/components/hyTableForm/batchTableForm.vue.js +33 -56
  63. package/lib/components/hyTableForm/js/index.js +7 -58
  64. package/lib/components/hyTableForm/tableForm.vue.js +8 -2
  65. package/lib/components/hyVideoPlayer/js/index.js +0 -1
  66. package/lib/hooks/index.js +3 -0
  67. package/lib/hooks/useApi.js +2 -2
  68. package/lib/hooks/useGlobalConfig.js +5 -0
  69. package/lib/hooks/useMapConfig.js +21 -0
  70. package/lib/index.js +36 -26
  71. package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  72. package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  73. package/lib/style/element/hy-element.scss +10 -1
  74. package/lib/utils/form.js +4 -0
  75. package/lib/utils/handler.js +5 -0
  76. package/lib/utils/index.js +5 -0
  77. package/lib/utils/map/js/webgis.js +1 -0
  78. package/lib/utils/tree.js +10 -0
  79. package/lib/version.js +1 -1
  80. package/package.json +1 -1
@@ -0,0 +1,351 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var VirtualList = require('vue3-virtual-scroll-list');
7
+ var elementPlus = require('element-plus');
8
+ var index = require('./js/index.js');
9
+ var mapAearchPlaceItem = require('./mapAearchPlaceItem.vue.js');
10
+ var useLocale = require('../../hooks/useLocale.js');
11
+ var useMixins = require('../../hooks/useMixins.js');
12
+ var index$1 = require('../../components/hyTooltip/index.js');
13
+ var index$2 = require('../../components/hyInput/index.js');
14
+ var index$3 = require('../../components/hyIcon/index.js');
15
+ var useMapConfig = require('../../hooks/useMapConfig.js');
16
+
17
+ import "./style/mapAearchPlace.scss";
18
+
19
+ const __default__ = vue.defineComponent({
20
+ name: "HyMapAearchPlace"
21
+ });
22
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
23
+ props: {
24
+ selectIdList: {
25
+ type: Array,
26
+ default: () => [1, 4, 5, 6]
27
+ },
28
+ searchSvgName: {
29
+ type: String,
30
+ default: "dispatch-share-v3-base-search"
31
+ },
32
+ map: {
33
+ type: Object,
34
+ default: () => ({})
35
+ },
36
+ hyMap: {
37
+ type: Object,
38
+ default: () => ({})
39
+ },
40
+ onSelectMarker: {
41
+ type: Function
42
+ },
43
+ setMarkerToMap: {
44
+ type: Function
45
+ },
46
+ mapConfig: {
47
+ type: Object,
48
+ default: () => {
49
+ const { mapConfig } = useMapConfig.useMapConfig();
50
+ return mapConfig.value || {};
51
+ }
52
+ }
53
+ },
54
+ emits: [],
55
+ setup(__props, { expose: __expose, emit: __emit }) {
56
+ const props = __props;
57
+ const emits = __emit;
58
+ const { t } = useLocale.useLocale();
59
+ const {
60
+ searchAddressTypeList,
61
+ nextPageParams,
62
+ lnglat,
63
+ lnglatList,
64
+ customCoordinate,
65
+ searchResultList,
66
+ searchAddressType,
67
+ placeholder,
68
+ searchAddress,
69
+ valid,
70
+ size,
71
+ page,
72
+ noMore,
73
+ loading,
74
+ colorObject,
75
+ timeOut,
76
+ isFocus,
77
+ queryMarkerPoint,
78
+ showItem,
79
+ disabled,
80
+ commonOptions,
81
+ mapCoordinate,
82
+ mapCoordinateName,
83
+ setSelectList,
84
+ lnglatCheckFn,
85
+ onFocus,
86
+ onBlur,
87
+ lnglatClick,
88
+ queryMarkerPointDelete,
89
+ setQueryMarkerPoint,
90
+ mapJumpLocationFn,
91
+ unbindVehicleFn,
92
+ throttle,
93
+ load,
94
+ searchAddressTypeFn,
95
+ resetFn,
96
+ getData,
97
+ addressRequestFn,
98
+ keepDecimal,
99
+ getVehicleList,
100
+ getTaskList,
101
+ organizationPageFn,
102
+ patrolPointFn,
103
+ titleFn,
104
+ placeholderFn
105
+ } = useMixins.useMixins({ props, emits, t }, [index.useMapAearchPlace]);
106
+ __expose({});
107
+ return (_ctx, _cache) => {
108
+ return vue.openBlock(), vue.createElementBlock(
109
+ "div",
110
+ {
111
+ class: vue.normalizeClass(["hy-map-aearch-place", { "is-focus": vue.unref(isFocus) }])
112
+ },
113
+ [
114
+ vue.createElementVNode("div", { class: "hy-map-aearch-place-container" }, [
115
+ vue.createElementVNode("div", { class: "w-full flex items-center" }, [
116
+ vue.createElementVNode("div", { class: "w-0 flex-1 flex" }, [
117
+ vue.createVNode(vue.unref(elementPlus.ElSelect), {
118
+ modelValue: vue.unref(searchAddressType),
119
+ "onUpdate:modelValue": ($event) => vue.isRef(searchAddressType) ? searchAddressType.value = $event : null,
120
+ size: "default",
121
+ class: "!w-[37%] box-border border rounded-[6px] flex-shrink-0",
122
+ style: { "border-color": "var(--input-border)" },
123
+ placeholder: "\u8BF7\u9009\u62E9",
124
+ options: vue.unref(searchAddressTypeList),
125
+ onChange: vue.unref(searchAddressTypeFn),
126
+ onFocus: vue.unref(onFocus),
127
+ onBlur: vue.unref(onBlur)
128
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange", "onFocus", "onBlur"]),
129
+ vue.createVNode(vue.unref(index$1.HyTooltip), {
130
+ "open-delay": 500,
131
+ content: vue.unref(placeholder),
132
+ placement: "bottom-start"
133
+ }, {
134
+ default: vue.withCtx(() => [
135
+ vue.withDirectives(vue.createVNode(vue.unref(index$2.HyInput), {
136
+ modelValue: vue.unref(searchAddress),
137
+ "onUpdate:modelValue": ($event) => vue.isRef(searchAddress) ? searchAddress.value = $event : null,
138
+ size: "small",
139
+ clearable: "",
140
+ class: "hy-map-aearch-place-input",
141
+ style: { "border-color": "var(--input-border)" },
142
+ placeholder: vue.unref(placeholder),
143
+ onInput: ($event) => vue.unref(throttle)(vue.unref(resetFn), 1e3)(),
144
+ onFocus: vue.unref(onFocus),
145
+ onBlur: vue.unref(onBlur)
146
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onInput", "onFocus", "onBlur"]), [
147
+ [vue.vShow, vue.unref(searchAddressType) !== 5]
148
+ ])
149
+ ]),
150
+ _: 1
151
+ /* STABLE */
152
+ }, 8, ["content"]),
153
+ vue.createCommentVNode(" \u7ECF\u7EAC\u5EA6 "),
154
+ vue.createVNode(vue.unref(index$1.HyTooltip), {
155
+ "open-delay": 500,
156
+ content: "\u7EAC\u5EA6",
157
+ placement: "bottom-start"
158
+ }, {
159
+ default: vue.withCtx(() => [
160
+ vue.withDirectives(vue.createVNode(vue.unref(index$2.HyInput), {
161
+ modelValue: vue.unref(lnglat).lng,
162
+ "onUpdate:modelValue": ($event) => vue.unref(lnglat).lng = $event,
163
+ size: "small",
164
+ clearable: "",
165
+ maxlength: "20",
166
+ class: "box-border rounded-[6px] border",
167
+ style: { "border-color": "var(--input-border)" },
168
+ placeholder: "\u7EAC\u5EA6",
169
+ onInput: ($event) => vue.unref(lnglatCheckFn)("lng"),
170
+ onFocus: vue.unref(onFocus),
171
+ onBlur: vue.unref(onBlur)
172
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput", "onFocus", "onBlur"]), [
173
+ [vue.vShow, vue.unref(searchAddressType) === 5]
174
+ ])
175
+ ]),
176
+ _: 1
177
+ /* STABLE */
178
+ }),
179
+ vue.createVNode(vue.unref(index$1.HyTooltip), {
180
+ "open-delay": 500,
181
+ content: "\u7ECF\u5EA6",
182
+ placement: "bottom-start"
183
+ }, {
184
+ default: vue.withCtx(() => [
185
+ vue.withDirectives(vue.createVNode(vue.unref(index$2.HyInput), {
186
+ modelValue: vue.unref(lnglat).lat,
187
+ "onUpdate:modelValue": ($event) => vue.unref(lnglat).lat = $event,
188
+ size: "small",
189
+ clearable: "",
190
+ maxlength: "20",
191
+ class: "box-border rounded-[6px] border",
192
+ style: { "border-color": "var(--input-border)" },
193
+ placeholder: "\u7ECF\u5EA6",
194
+ onInput: ($event) => vue.unref(lnglatCheckFn)("lat"),
195
+ onFocus: vue.unref(onFocus),
196
+ onBlur: vue.unref(onBlur)
197
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput", "onFocus", "onBlur"]), [
198
+ [vue.vShow, vue.unref(searchAddressType) === 5]
199
+ ])
200
+ ]),
201
+ _: 1
202
+ /* STABLE */
203
+ })
204
+ ]),
205
+ vue.createElementVNode("div", {
206
+ class: "w-[42px] h-[32px] flex items-center justify-center ml-1 rounded bg-background-3 clickBox",
207
+ onClick: vue.unref(resetFn)
208
+ }, [
209
+ vue.createVNode(vue.unref(index$3.HyIcon), {
210
+ "svg-name": __props.searchSvgName,
211
+ "class-name": "text-main"
212
+ }, null, 8, ["svg-name"])
213
+ ], 8, ["onClick"])
214
+ ]),
215
+ vue.withDirectives(vue.createElementVNode(
216
+ "div",
217
+ { class: "w-full h-[365px]" },
218
+ [
219
+ vue.createElementVNode("div", { class: "w-full flex items-center border-t border-b border-background-3 mt-1 py-2 px-2 box-border" }, [
220
+ vue.createVNode(vue.unref(index$3.HyIcon), {
221
+ "svg-name": "dispatch-share1-prompt",
222
+ "class-name": "!w-3 !h-3 text-auxiliary mr-1"
223
+ }),
224
+ vue.createElementVNode("span", { class: "text-xs text-auxiliary" }, "\u652F\u6301\u591A\u79CD\u5750\u6807\u7CFB\u89E3\u6790\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u5339\u914D\u3002")
225
+ ]),
226
+ vue.createElementVNode("div", { class: "w-full pt-2 box-border flex justify-center" }, [
227
+ vue.createElementVNode(
228
+ "span",
229
+ { class: "inline-block text-xs text-main px-2 py-1 border border-theme bg-[rgba(var(--hy-theme), 0.2)] rounded-[2px]" },
230
+ "\u5F53\u524D\u5730\u56FE\u5750\u6807\u7CFB\uFF1A" + vue.toDisplayString(vue.unref(mapCoordinateName)),
231
+ 1
232
+ /* TEXT */
233
+ )
234
+ ]),
235
+ (vue.openBlock(true), vue.createElementBlock(
236
+ vue.Fragment,
237
+ null,
238
+ vue.renderList(vue.unref(lnglatList), (lnglatItem, lnglatIndex) => {
239
+ return vue.openBlock(), vue.createElementBlock("div", {
240
+ key: lnglatIndex,
241
+ class: vue.normalizeClass(["flex items-center text-sm text-main border-b border-border rounded p-[10px] mt-[10px] hover:bg-background-3 clickBox", { "border-t": lnglatIndex === 0 }]),
242
+ onClick: ($event) => vue.unref(lnglatClick)(lnglatItem)
243
+ }, [
244
+ vue.createVNode(vue.unref(index$3.HyIcon), {
245
+ "svg-name": "dispatch-share1-maplocation",
246
+ class: "flex-shrink !w-[26px] !h-[26px]"
247
+ }),
248
+ vue.createElementVNode("div", { class: "w-0 flex-1 ml-[10px]" }, [
249
+ vue.createElementVNode("div", { class: "leading-[28px] text-main text-sm over_one_line" }, [
250
+ vue.unref(lnglatList) && vue.unref(lnglatList).length > 1 ? (vue.openBlock(), vue.createElementBlock("span", {
251
+ key: 0,
252
+ class: "font-bold"
253
+ }, "\u5750\u6807\u89E3\u6790")) : vue.createCommentVNode("v-if", true),
254
+ vue.createTextVNode(
255
+ " " + vue.toDisplayString(lnglatItem.titleName),
256
+ 1
257
+ /* TEXT */
258
+ )
259
+ ]),
260
+ vue.createElementVNode("div", { class: "text-xs text-auxiliary" }, [
261
+ vue.createElementVNode("div", null, [
262
+ vue.createElementVNode("span", null, "\u7ECF\u5EA6\uFF1A"),
263
+ vue.withDirectives(vue.createElementVNode(
264
+ "span",
265
+ { class: "text-danger-2" },
266
+ "\u5185\u5BB9\u9519\u8BEF",
267
+ 512
268
+ /* NEED_PATCH */
269
+ ), [
270
+ [vue.vShow, !vue.unref(lnglat).lngType && lnglatItem.lng]
271
+ ]),
272
+ vue.withDirectives(vue.createElementVNode(
273
+ "span",
274
+ null,
275
+ vue.toDisplayString(lnglatItem.lng || "\u8BF7\u8F93\u5165\u7ECF\u5EA6"),
276
+ 513
277
+ /* TEXT, NEED_PATCH */
278
+ ), [
279
+ [vue.vShow, vue.unref(lnglat).lngType || !lnglatItem.lng]
280
+ ])
281
+ ]),
282
+ vue.createElementVNode("div", null, [
283
+ vue.createElementVNode("span", null, "\u7EAC\u5EA6\uFF1A"),
284
+ vue.withDirectives(vue.createElementVNode(
285
+ "span",
286
+ { class: "text-danger-2" },
287
+ "\u5185\u5BB9\u9519\u8BEF",
288
+ 512
289
+ /* NEED_PATCH */
290
+ ), [
291
+ [vue.vShow, !vue.unref(lnglat).latType && lnglatItem.lat]
292
+ ]),
293
+ vue.withDirectives(vue.createElementVNode(
294
+ "span",
295
+ null,
296
+ vue.toDisplayString(lnglatItem.lat || "\u8BF7\u8F93\u5165\u7EAC\u5EA6"),
297
+ 513
298
+ /* TEXT, NEED_PATCH */
299
+ ), [
300
+ [vue.vShow, vue.unref(lnglat).latType || !lnglatItem.lat]
301
+ ])
302
+ ])
303
+ ])
304
+ ])
305
+ ], 10, ["onClick"]);
306
+ }),
307
+ 128
308
+ /* KEYED_FRAGMENT */
309
+ ))
310
+ ],
311
+ 512
312
+ /* NEED_PATCH */
313
+ ), [
314
+ [vue.vShow, vue.unref(searchAddressType) === 5]
315
+ ]),
316
+ vue.unref(searchResultList).length ? (vue.openBlock(), vue.createBlock(vue.unref(VirtualList), {
317
+ key: 0,
318
+ "data-key": "id",
319
+ "data-sources": vue.unref(searchResultList),
320
+ "data-component": mapAearchPlaceItem.default,
321
+ keeps: 10,
322
+ "extra-props": {
323
+ color: vue.unref(colorObject).success,
324
+ mapJumpLocationFn: vue.unref(mapJumpLocationFn),
325
+ unbindVehicleFn: vue.unref(unbindVehicleFn),
326
+ searchAddressType: vue.unref(searchAddressType),
327
+ longitudeTxt: "\u7EAC\u5EA6",
328
+ latitudeTxt: "\u7ECF\u5EA6"
329
+ },
330
+ "estimate-size": 88,
331
+ class: "w-full max-h-[400px] overflow-y-auto scroll-body",
332
+ onTobottom: vue.unref(load)
333
+ }, null, 8, ["data-sources", "extra-props", "onTobottom"])) : vue.createCommentVNode("v-if", true),
334
+ vue.unref(loading) ? (vue.openBlock(), vue.createElementBlock("p", {
335
+ key: 1,
336
+ class: "leading-[32px] flex items-center text-main text-xs"
337
+ }, " \u52A0\u8F7D\u4E2D... ")) : vue.createCommentVNode("v-if", true),
338
+ vue.unref(noMore) ? (vue.openBlock(), vue.createElementBlock("p", {
339
+ key: 2,
340
+ class: "leading-[32px] flex items-center text-main text-xs"
341
+ }, " \u6CA1\u6709\u66F4\u591A\u4E86 ")) : vue.createCommentVNode("v-if", true)
342
+ ])
343
+ ],
344
+ 2
345
+ /* CLASS */
346
+ );
347
+ };
348
+ }
349
+ });
350
+
351
+ exports.default = _sfc_main;
@@ -0,0 +1,103 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var index = require('../../components/hyIcon/index.js');
7
+
8
+ const _sfc_main = {
9
+ __name: "mapAearchPlaceItem",
10
+ props: {
11
+ mapJumpLocationFn: {
12
+ type: Function
13
+ },
14
+ index: {
15
+ type: Number,
16
+ default() {
17
+ return null;
18
+ }
19
+ },
20
+ searchAddressType: {
21
+ type: Number,
22
+ default() {
23
+ return 1;
24
+ }
25
+ },
26
+ source: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ }
31
+ }
32
+ },
33
+ setup(__props) {
34
+ return (_ctx, _cache) => {
35
+ return vue.openBlock(), vue.createElementBlock("li", {
36
+ class: "flex items-center css-text-no-select py-2 pl-2.5 border-b border-background-3 clickBox hover:bg-background-3",
37
+ onClick: ($event) => __props.mapJumpLocationFn(__props.source)
38
+ }, [
39
+ vue.createElementVNode("div", { class: "flex-shrink-0" }, [
40
+ __props.searchAddressType === 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
41
+ key: 0,
42
+ "svg-name": "dispatch-share1-maplocation"
43
+ })) : __props.searchAddressType === 4 ? (vue.openBlock(), vue.createElementBlock("div", {
44
+ key: 1,
45
+ class: "w-[26px] h-[26px] flex items-center border border-theme rounded-full bg-background-3 box-border"
46
+ }, [
47
+ vue.createElementVNode("img", {
48
+ src: __props.source.orgTypeIcon,
49
+ class: "max-w-full"
50
+ }, null, 8, ["src"])
51
+ ])) : vue.createCommentVNode("v-if", true)
52
+ ]),
53
+ vue.createElementVNode("div", { class: "w-0 flex-1 ml-2.5" }, [
54
+ vue.createElementVNode("div", { class: "text-sm text-main over_one_line font-bold" }, [
55
+ (vue.openBlock(true), vue.createElementBlock(
56
+ vue.Fragment,
57
+ null,
58
+ vue.renderList(__props.source.title, (row, rowIndex) => {
59
+ return vue.openBlock(), vue.createElementBlock(
60
+ "span",
61
+ {
62
+ key: rowIndex,
63
+ class: vue.normalizeClass([row.type === 2 ? "text-theme" : "text-auxiliary"])
64
+ },
65
+ vue.toDisplayString(row.content),
66
+ 3
67
+ /* TEXT, CLASS */
68
+ );
69
+ }),
70
+ 128
71
+ /* KEYED_FRAGMENT */
72
+ ))
73
+ ]),
74
+ vue.createElementVNode(
75
+ "div",
76
+ { class: "over_one_line text-xs text-main my-1" },
77
+ vue.toDisplayString(__props.source.address),
78
+ 1
79
+ /* TEXT */
80
+ ),
81
+ vue.createElementVNode("div", { class: "text-xs text-auxiliary" }, [
82
+ vue.createElementVNode(
83
+ "span",
84
+ null,
85
+ "\u7ECF\u5EA6\uFF1A" + vue.toDisplayString(__props.source.lng),
86
+ 1
87
+ /* TEXT */
88
+ ),
89
+ vue.createElementVNode(
90
+ "span",
91
+ { class: "ml-5" },
92
+ "\u7EAC\u5EA6\uFF1A" + vue.toDisplayString(__props.source.lat),
93
+ 1
94
+ /* TEXT */
95
+ )
96
+ ])
97
+ ])
98
+ ], 8, ["onClick"]);
99
+ };
100
+ }
101
+ };
102
+
103
+ exports.default = _sfc_main;
@@ -0,0 +1,71 @@
1
+ .hy-map-aearch-place {
2
+ width: 100%;
3
+ height: 40px;
4
+ position: relative;
5
+ .hy-map-aearch-place-container {
6
+ width: 100%;
7
+ min-width: 340px;
8
+ display: inline-flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ gap: 4px;
12
+ border: 1px solid rgba(var(--hy-border));
13
+ border-radius: 4px;
14
+ box-sizing: border-box;
15
+ padding: 2px 4px;
16
+ overflow: hidden;
17
+ background: rgba(var(--hy-background-2));
18
+ position: absolute;
19
+ left: 0;
20
+ top: 0;
21
+ z-index: 10;
22
+ &:hover,
23
+ &.focus {
24
+ border: 1px solid rgba(var(--hy-theme));
25
+ }
26
+
27
+ .hy-map-aearch-place-input {
28
+
29
+ .hy-el-input__inner::placeholder {
30
+ font-size: 12px;
31
+ }
32
+ .hy-el-input__wrapper {
33
+ padding-left: 8px;
34
+ padding-right: 4px;
35
+ background-color: transparent !important;
36
+ box-shadow: none;
37
+ border: none;
38
+ }
39
+ .hy-el-input-group__append {
40
+ color: rgb(var(--hy-main));
41
+ background-color: rgba(var(--hy-background-2));
42
+ box-shadow: none;
43
+ padding: 4px;
44
+ min-height: 100%;
45
+ }
46
+ }
47
+ }
48
+ &.is-focus .hy-map-aearch-place-container{
49
+ border: 1px solid rgba(var(--hy-theme));
50
+ }
51
+ }
52
+
53
+ /* 地图打点闪烁 */
54
+ .hy-map-aearch-place-twinkle-marker {
55
+ animation: hy-map-aearch-place-twinkle 1s ease-out;
56
+ animation-iteration-count: 3; /*次数 infinite(无限次)*/
57
+ animation-delay: 1s;
58
+ }
59
+
60
+ @keyframes hy-map-aearch-place-twinkle {
61
+ 0% {
62
+ opacity: 1;
63
+ }
64
+ 50% {
65
+ opacity: 0.2;
66
+ filter: none;
67
+ }
68
+ 100% {
69
+ opacity: 1;
70
+ }
71
+ }
@@ -1,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./hyAddDepartmentType/index.js');
4
+ var index$1 = require('./hyMapAearchPlace/index.js');
4
5
 
5
6
 
6
7
 
7
8
  exports.HyAddDepartmentType = index.HyAddDepartmentType;
9
+ exports.HyMapAearchPlace = index$1.HyMapAearchPlace;
@@ -82,11 +82,20 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
82
82
  beforeDataHandle: {
83
83
  type: Function
84
84
  },
85
+ // 外部整体数据处理
86
+ beforeDataListHandle: {
87
+ type: Function
88
+ },
85
89
  onExpandRowChange: {
86
90
  type: Function
87
91
  },
88
92
  submitHandler: {
89
93
  type: Function
94
+ },
95
+ // 是否显示进入添加按钮
96
+ showAddBtn: {
97
+ type: Boolean,
98
+ default: true
90
99
  }
91
100
  }, {
92
101
  "modelValue": { type: Boolean, default: false },
@@ -110,6 +119,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
110
119
  const HyDialogRef = vue.useTemplateRef("HyDialogRef");
111
120
  const currentStep = vue.ref(1);
112
121
  const isSubmitting = vue.ref(false);
122
+ const importing = vue.ref(false);
113
123
  const totalElements = vue.ref(0);
114
124
  const failedCount = vue.ref(0);
115
125
  const failedStatus = vue.ref(null);
@@ -124,15 +134,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
124
134
  }
125
135
  async function show() {
126
136
  currentStep.value = 1;
127
- failedCount.value = 0;
137
+ isSubmitting.value = false;
138
+ importing.value = false;
128
139
  totalElements.value = 0;
140
+ failedCount.value = 0;
129
141
  failedStatus.value = null;
130
142
  visible.value = true;
131
143
  }
132
144
  function onTableUploadingHandler(...args) {
145
+ importing.value = true;
133
146
  emits("uploading", ...args);
134
147
  }
135
148
  function onTableUploadedHandler(...args) {
149
+ importing.value = false;
136
150
  emits("uploaded", ...args);
137
151
  }
138
152
  function onTableResetHandler(...args) {
@@ -194,6 +208,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
194
208
  },
195
209
  submitDataSource: () => {
196
210
  return batchTableFormRef.value.submitDataSource();
211
+ },
212
+ setData: (source) => {
213
+ batchTableFormRef.value.setData(source);
197
214
  }
198
215
  });
199
216
  return (_ctx, _cache) => {
@@ -256,7 +273,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
256
273
  ])) : vue.createCommentVNode("v-if", true)
257
274
  ]),
258
275
  "operate-right-box": vue.withCtx(() => [
259
- currentStep.value === 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyButton), {
276
+ currentStep.value === 1 && !importing.value && __props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyButton), {
260
277
  key: 0,
261
278
  type: "primary",
262
279
  class: "!min-w-[120px]",
@@ -313,8 +330,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
313
330
  columnNum: __props.columnNum,
314
331
  size: __props.size,
315
332
  beforeDataHandle: __props.beforeDataHandle,
333
+ beforeDataListHandle: __props.beforeDataListHandle,
316
334
  onExpandRowChange: __props.onExpandRowChange,
317
335
  "submit-handler": __props.submitHandler,
336
+ showAddBtn: __props.showAddBtn,
318
337
  onUploading: onTableUploadingHandler,
319
338
  onUploaded: onTableUploadedHandler,
320
339
  onReset: onTableResetHandler,
@@ -333,7 +352,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
333
352
  ])
334
353
  };
335
354
  })
336
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "onExpandRowChange", "submit-handler"])) : vue.createCommentVNode("v-if", true)
355
+ ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn"])) : vue.createCommentVNode("v-if", true)
337
356
  ])
338
357
  ])
339
358
  ]),
@@ -18,7 +18,7 @@
18
18
  opacity: 0.55;
19
19
  }
20
20
  &.is-loading {
21
- cursor: default;
21
+ cursor: wait;
22
22
  }
23
23
  &.hy-button--large {
24
24
  height: 40px;
@@ -99,6 +99,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
99
99
  tooltip: {
100
100
  type: Object,
101
101
  required: false
102
+ },
103
+ mapConfig: {
104
+ type: Object,
105
+ required: false
102
106
  }
103
107
  },
104
108
  setup(__props) {
@@ -217,7 +217,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
217
217
  __props.showSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyButton), {
218
218
  key: 1,
219
219
  type: __props.submitType,
220
- disabled: loading.value,
220
+ loading: loading.value,
221
221
  onClick: onSubmitHandler
222
222
  }, {
223
223
  default: vue.withCtx(() => [
@@ -229,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
229
229
  ]),
230
230
  _: 1
231
231
  /* STABLE */
232
- }, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true)
232
+ }, 8, ["type", "loading"])) : vue.createCommentVNode("v-if", true)
233
233
  ])) : vue.createCommentVNode("v-if", true)
234
234
  ])
235
235
  ]),