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