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