hy-dispatch-ui-v3 0.2.66 → 0.2.68
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 +257 -21
- package/es/api/device.mjs +2 -3
- package/es/api/exportExcel.mjs +57 -0
- package/es/api/index.mjs +27 -16
- package/es/api/mapRail.mjs +31 -0
- package/es/api/organization.mjs +17 -9
- package/es/api/rule.mjs +30 -0
- package/es/api/sypct.mjs +2 -3
- package/es/api/task.mjs +2 -3
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
- package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +169 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -0
- package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
- package/es/bussiness/hyElectronicFence/index.mjs +13 -0
- package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/index.mjs +15 -0
- package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
- package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/es/bussiness/index.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
- package/es/components/hyAudioPlayer/js/index.mjs +9 -14
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
- package/es/components/hyButton/button.vue.mjs +18 -5
- package/es/components/hyButton/style/button.scss +50 -74
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
- package/es/components/hyCheckboxGroup/index.mjs +7 -0
- package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
- package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
- package/es/components/hyCutter/cutter.vue.mjs +9 -23
- package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
- package/es/components/hyDialog/dialog.vue.mjs +5 -9
- package/es/components/hyDialog/style/dialog.scss +12 -13
- package/es/components/hyDrawer/drawer.vue.mjs +100 -0
- package/es/components/hyDrawer/index.mjs +7 -0
- package/es/components/hyDrawer/style/drawer.scss +0 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
- package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
- package/es/components/hyForm/cpns/formItem.vue.mjs +149 -69
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +74 -28
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +4 -9
- package/es/components/hyForm/style/form.scss +4 -13
- package/es/components/hyIcon/icon.vue.mjs +3 -3
- package/es/components/hyIconBox/style/iconBox.scss +2 -6
- package/es/components/hyInput/inputSearch.vue.mjs +8 -11
- package/es/components/hyInput/style/inputSearch.scss +3 -0
- package/es/components/hyLoading/index.mjs +3 -5
- package/es/components/hyMap/js/index.mjs +35 -10
- package/es/components/hyMap/map.vue.mjs +30 -6
- package/es/components/hyMenu/style/menu.scss +5 -15
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
- package/es/components/hyOrgCascader/js/index.mjs +1 -5
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +31 -12
- package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
- package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/es/components/hySearch/cpns/searchItem.vue.mjs +409 -324
- package/es/components/hySearch/js/index.mjs +1 -4
- package/es/components/hySearch/js/useAppSearch.mjs +5 -10
- package/es/components/hySearch/search.vue.mjs +23 -20
- package/es/components/hySearch/style/search.scss +9 -0
- package/es/components/hyStatus/index.mjs +7 -0
- package/es/components/hyStatus/status.vue.mjs +110 -0
- package/es/components/hyStatus/style/status.scss +0 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
- package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +43 -34
- package/es/components/hyTable/js/index.mjs +67 -64
- package/es/components/hyTable/js/search.mjs +25 -1
- package/es/components/hyTable/js/useAppTable.mjs +3 -4
- package/es/components/hyTable/style/table.scss +8 -0
- package/es/components/hyTable/table.vue.mjs +68 -53
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +13 -6
- package/es/components/hyTableForm/batchTableForm.vue.mjs +26 -9
- package/es/components/hyTableForm/js/index.mjs +2 -8
- package/es/components/hyTableForm/js/useAppTableForm.mjs +3 -8
- package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/es/components/hyTableForm/style/tableForm.scss +3 -2
- package/es/components/hyTableForm/tableForm.vue.mjs +160 -70
- package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
- package/es/components/hyTree/js/index.mjs +113 -72
- package/es/components/hyTree/style/index.css +1 -1
- package/es/components/hyTree/tree.vue.mjs +21 -18
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
- package/es/components/hyVideoPlayer/js/index.mjs +14 -23
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
- package/es/components/index.mjs +3 -0
- package/es/hooks/index.mjs +6 -2
- package/es/hooks/useAudioPlayerConfig.mjs +1 -3
- package/es/hooks/useBaseMainStore.mjs +29 -0
- package/es/hooks/useCurrentBus.mjs +20 -0
- package/es/hooks/useDialog.mjs +327 -0
- package/es/hooks/useExportFile.mjs +133 -0
- package/es/hooks/useGlobalConfig.mjs +10 -6
- package/es/hooks/useLocale.mjs +22 -12
- package/es/hooks/usePermissionMap.mjs +1 -3
- package/es/hooks/useResizeHandler.mjs +1 -4
- package/es/hooks/useResizeObserver.mjs +3 -1
- package/es/hooks/useSubscribe.mjs +2 -2
- package/es/hooks/useUserAvatarMap.mjs +1 -3
- package/es/hooks/useVideoPlayerConfig.mjs +1 -3
- package/es/index.mjs +11 -2
- package/es/locale/{en.mjs → en_US.mjs} +79 -4
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +79 -2
- package/es/style/index.scss +0 -1
- package/es/style/tailwind.scss +7 -4
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +7 -10
- package/es/utils/handler.mjs +4 -8
- package/es/utils/input.mjs +8 -9
- package/es/utils/is.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +16 -53
- package/es/utils/map/hook/gaode.mjs +53 -33
- package/es/utils/map/hook/leafletjs.mjs +38 -82
- package/es/utils/map/index.mjs +3 -9
- package/es/utils/map/js/webgis.mjs +12 -12
- package/es/version.mjs +1 -1
- package/lib/api/device.js +2 -3
- package/lib/api/exportExcel.js +62 -0
- package/lib/api/index.js +27 -16
- package/lib/api/mapRail.js +34 -0
- package/lib/api/organization.js +17 -8
- package/lib/api/rule.js +33 -0
- package/lib/api/sypct.js +2 -3
- package/lib/api/task.js +2 -3
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
- package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
- package/lib/bussiness/hyElectronicFence/index.js +21 -0
- package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/index.js +24 -0
- package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
- package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/lib/bussiness/index.js +21 -10
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
- package/lib/components/hyAudioPlayer/js/index.js +9 -14
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
- package/lib/components/hyButton/button.vue.js +17 -4
- package/lib/components/hyButton/style/button.scss +50 -74
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
- package/lib/components/hyCheckboxGroup/index.js +12 -0
- package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
- package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
- package/lib/components/hyCutter/cutter.vue.js +8 -22
- package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
- package/lib/components/hyDialog/dialog.vue.js +5 -9
- package/lib/components/hyDialog/style/dialog.scss +12 -13
- package/lib/components/hyDrawer/drawer.vue.js +104 -0
- package/lib/components/hyDrawer/index.js +12 -0
- package/lib/components/hyDrawer/style/drawer.scss +0 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
- package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
- package/lib/components/hyForm/cpns/formItem.vue.js +148 -68
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +69 -23
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +4 -9
- package/lib/components/hyForm/style/form.scss +4 -13
- package/lib/components/hyIcon/icon.vue.js +3 -3
- package/lib/components/hyIconBox/style/iconBox.scss +2 -6
- package/lib/components/hyInput/inputSearch.vue.js +7 -10
- package/lib/components/hyInput/style/inputSearch.scss +3 -0
- package/lib/components/hyLoading/index.js +2 -4
- package/lib/components/hyMap/js/index.js +34 -9
- package/lib/components/hyMap/map.vue.js +29 -5
- package/lib/components/hyMenu/style/menu.scss +5 -15
- package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
- package/lib/components/hyOrgCascader/js/index.js +1 -5
- package/lib/components/hyOrgCascader/orgCascader.vue.js +29 -10
- package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
- package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +407 -322
- package/lib/components/hySearch/js/index.js +1 -4
- package/lib/components/hySearch/js/useAppSearch.js +5 -10
- package/lib/components/hySearch/search.vue.js +23 -20
- package/lib/components/hySearch/style/search.scss +9 -0
- package/lib/components/hyStatus/index.js +12 -0
- package/lib/components/hyStatus/status.vue.js +114 -0
- package/lib/components/hyStatus/style/status.scss +0 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
- package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
- package/lib/components/hyTable/cpns/virtualTable.vue.js +41 -32
- package/lib/components/hyTable/js/index.js +65 -61
- package/lib/components/hyTable/js/search.js +25 -1
- package/lib/components/hyTable/js/useAppTable.js +2 -3
- package/lib/components/hyTable/style/table.scss +8 -0
- package/lib/components/hyTable/table.vue.js +67 -52
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +13 -6
- package/lib/components/hyTableForm/batchTableForm.vue.js +26 -9
- package/lib/components/hyTableForm/js/index.js +2 -8
- package/lib/components/hyTableForm/js/useAppTableForm.js +3 -8
- package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/lib/components/hyTableForm/style/tableForm.scss +3 -2
- package/lib/components/hyTableForm/tableForm.vue.js +159 -69
- package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
- package/lib/components/hyTree/js/index.js +113 -72
- package/lib/components/hyTree/style/index.css +1 -1
- package/lib/components/hyTree/tree.vue.js +21 -18
- package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
- package/lib/components/hyVideoPlayer/js/index.js +14 -23
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
- package/lib/components/index.js +46 -40
- package/lib/hooks/index.js +17 -0
- package/lib/hooks/useAudioPlayerConfig.js +1 -3
- package/lib/hooks/useBaseMainStore.js +32 -0
- package/lib/hooks/useCurrentBus.js +23 -0
- package/lib/hooks/useDialog.js +331 -0
- package/lib/hooks/useExportFile.js +135 -0
- package/lib/hooks/useGlobalConfig.js +10 -6
- package/lib/hooks/useLocale.js +25 -11
- package/lib/hooks/usePermissionMap.js +1 -3
- package/lib/hooks/useResizeHandler.js +1 -4
- package/lib/hooks/useResizeObserver.js +3 -1
- package/lib/hooks/useSubscribe.js +2 -1
- package/lib/hooks/useUserAvatarMap.js +1 -3
- package/lib/hooks/useVideoPlayerConfig.js +1 -3
- package/lib/index.js +107 -73
- package/lib/locale/{en.js → en_US.js} +79 -4
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +79 -2
- package/lib/style/index.scss +0 -1
- package/lib/style/tailwind.scss +7 -4
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +6 -9
- package/lib/utils/handler.js +3 -7
- package/lib/utils/input.js +7 -8
- package/lib/utils/is.js +5 -3
- package/lib/utils/map/hook/bigMap.js +16 -53
- package/lib/utils/map/hook/gaode.js +53 -33
- package/lib/utils/map/hook/leafletjs.js +38 -82
- package/lib/utils/map/index.js +3 -9
- package/lib/utils/map/js/webgis.js +12 -12
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, useModel, ref, openBlock,
|
|
1
|
+
import { defineComponent, useTemplateRef, useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createBlock, renderList, createTextVNode, toDisplayString, mergeModels } from 'vue';
|
|
2
2
|
import '../index.mjs';
|
|
3
3
|
import { HyDialog } from '../hyDialog/index.mjs';
|
|
4
4
|
import { HyBatchTableForm } from '../hyTableForm/index.mjs';
|
|
@@ -198,8 +198,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
198
198
|
batchTableFormRef.value.submitDataSource();
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
+
function getIsSubmitting() {
|
|
202
|
+
return isSubmitting.value;
|
|
203
|
+
}
|
|
201
204
|
__expose({
|
|
202
205
|
show,
|
|
206
|
+
getIsSubmitting,
|
|
203
207
|
getTableDataSource: () => {
|
|
204
208
|
return batchTableFormRef.value.getTableDataSource();
|
|
205
209
|
},
|
|
@@ -217,159 +221,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
217
221
|
},
|
|
218
222
|
setDragLevelIndex: (dragLevel) => {
|
|
219
223
|
HyDialogRef.value.setDragLevelIndex(dragLevel);
|
|
224
|
+
},
|
|
225
|
+
async getOptions() {
|
|
226
|
+
if (batchTableFormRef.value) {
|
|
227
|
+
await batchTableFormRef.value.getOptions();
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
async getOptionsFields(keys) {
|
|
231
|
+
if (batchTableFormRef.value) {
|
|
232
|
+
await batchTableFormRef.value.getOptionsFields(keys);
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
async getOptionsError() {
|
|
236
|
+
if (batchTableFormRef.value) {
|
|
237
|
+
await batchTableFormRef.value.getOptionsError();
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
getOptionsByField(key) {
|
|
241
|
+
if (batchTableFormRef.value) {
|
|
242
|
+
return batchTableFormRef.value.getOptionsByField(key);
|
|
243
|
+
}
|
|
220
244
|
}
|
|
221
245
|
});
|
|
222
246
|
return (_ctx, _cache) => {
|
|
223
|
-
return openBlock(),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
key: 0,
|
|
278
|
-
type: "primary",
|
|
279
|
-
class: "!min-w-[120px]",
|
|
280
|
-
onClick: onNextStep
|
|
281
|
-
}, {
|
|
282
|
-
default: withCtx(() => [
|
|
283
|
-
createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
|
|
247
|
+
return openBlock(), createElementBlock(
|
|
248
|
+
Fragment,
|
|
249
|
+
null,
|
|
250
|
+
[
|
|
251
|
+
createCommentVNode(' v-model:loading="isSubmitting"'),
|
|
252
|
+
createVNode(unref(HyDialog), mergeProps({
|
|
253
|
+
ref_key: "HyDialogRef",
|
|
254
|
+
ref: HyDialogRef,
|
|
255
|
+
modelValue: visible.value,
|
|
256
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
257
|
+
title: __props.title,
|
|
258
|
+
width: __props.width,
|
|
259
|
+
"dialog-type": __props.dialogType,
|
|
260
|
+
"show-operate": true,
|
|
261
|
+
"show-submit": false,
|
|
262
|
+
"show-cancel": !isSubmitting.value,
|
|
263
|
+
ifShrink: __props.ifShrink,
|
|
264
|
+
ifDraggable: __props.ifDraggable
|
|
265
|
+
}, _ctx.$attrs, {
|
|
266
|
+
onOnMinimized: onMinimized,
|
|
267
|
+
onOnDialogMousedown: onDialogMousedown
|
|
268
|
+
}), createSlots({
|
|
269
|
+
"operate-left-box": withCtx(() => [
|
|
270
|
+
failedCount.value ? (openBlock(), createElementBlock("div", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "flex items-center gap-1.5 text-xs text-warning"
|
|
273
|
+
}, [
|
|
274
|
+
createVNode(unref(HyIcon), {
|
|
275
|
+
"svg-name": "dispatch-share1-prompt",
|
|
276
|
+
class: "!w-3 !h-3"
|
|
277
|
+
}),
|
|
278
|
+
failedStatus.value === "validate" ? (openBlock(), createElementBlock(
|
|
279
|
+
"span",
|
|
280
|
+
{ key: 0 },
|
|
281
|
+
"\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
|
|
282
|
+
1
|
|
283
|
+
/* TEXT */
|
|
284
|
+
)) : (openBlock(), createElementBlock(
|
|
285
|
+
"span",
|
|
286
|
+
{ key: 1 },
|
|
287
|
+
"\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
|
|
288
|
+
1
|
|
289
|
+
/* TEXT */
|
|
290
|
+
))
|
|
291
|
+
])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
|
|
292
|
+
key: 1,
|
|
293
|
+
class: "flex items-center gap-1.5 text-xs text-warning"
|
|
294
|
+
}, [
|
|
295
|
+
createVNode(unref(HyIcon), {
|
|
296
|
+
"svg-name": "dispatch-share1-prompt",
|
|
297
|
+
class: "!w-3 !h-3"
|
|
298
|
+
}),
|
|
299
|
+
createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
|
|
300
|
+
])) : createCommentVNode("v-if", true)
|
|
284
301
|
]),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
key: 1,
|
|
289
|
-
disabled: !isSubmitting.value,
|
|
290
|
-
content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
|
|
291
|
-
}, {
|
|
292
|
-
default: withCtx(() => [
|
|
293
|
-
createVNode(unref(HyButton), {
|
|
302
|
+
"operate-right-box": withCtx(() => [
|
|
303
|
+
currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
|
|
304
|
+
key: 0,
|
|
294
305
|
type: "primary",
|
|
295
|
-
loading: isSubmitting.value,
|
|
296
306
|
class: "!min-w-[120px]",
|
|
297
|
-
onClick:
|
|
307
|
+
onClick: onNextStep
|
|
308
|
+
}, {
|
|
309
|
+
default: withCtx(() => [
|
|
310
|
+
createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
/* STABLE */
|
|
314
|
+
})) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
315
|
+
key: 1,
|
|
316
|
+
disabled: !isSubmitting.value,
|
|
317
|
+
content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
|
|
298
318
|
}, {
|
|
299
319
|
default: withCtx(() => [
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
320
|
+
createVNode(unref(HyButton), {
|
|
321
|
+
type: "primary",
|
|
322
|
+
loading: isSubmitting.value,
|
|
323
|
+
class: "!min-w-[120px]",
|
|
324
|
+
onClick: onSubmitHandler
|
|
325
|
+
}, {
|
|
326
|
+
default: withCtx(() => [
|
|
327
|
+
createTextVNode(
|
|
328
|
+
toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
|
|
329
|
+
1
|
|
330
|
+
/* TEXT */
|
|
331
|
+
)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
/* STABLE */
|
|
335
|
+
}, 8, ["loading"])
|
|
305
336
|
]),
|
|
306
337
|
_: 1
|
|
307
338
|
/* STABLE */
|
|
308
|
-
}, 8, ["
|
|
339
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
309
340
|
]),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
341
|
+
default: withCtx(() => [
|
|
342
|
+
createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
|
|
343
|
+
renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
|
|
344
|
+
createElementVNode("div", { class: "flex-grow h-0" }, [
|
|
345
|
+
visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
|
|
346
|
+
key: 0,
|
|
347
|
+
ref_key: "batchTableFormRef",
|
|
348
|
+
ref: batchTableFormRef,
|
|
349
|
+
step: currentStep.value,
|
|
350
|
+
"onUpdate:step": ($event) => currentStep.value = $event,
|
|
351
|
+
tableColumns: __props.tableColumns,
|
|
352
|
+
formColumns: __props.formColumns,
|
|
353
|
+
rules: __props.rules,
|
|
354
|
+
emptyText: __props.emptyText,
|
|
355
|
+
fontSize: __props.fontSize,
|
|
356
|
+
rowClickExpand: __props.rowClickExpand,
|
|
357
|
+
columnNum: __props.columnNum,
|
|
358
|
+
size: __props.size,
|
|
359
|
+
beforeDataHandle: __props.beforeDataHandle,
|
|
360
|
+
beforeDataListHandle: __props.beforeDataListHandle,
|
|
361
|
+
onExpandRowChange: __props.onExpandRowChange,
|
|
362
|
+
"submit-handler": __props.submitHandler,
|
|
363
|
+
showAddBtn: __props.showAddBtn,
|
|
364
|
+
onTableDataChange: tableDataChange,
|
|
365
|
+
onUploading: onTableUploadingHandler,
|
|
366
|
+
onUploaded: onTableUploadedHandler,
|
|
367
|
+
onReset: onTableResetHandler,
|
|
368
|
+
onValidate: onTableValidateHandler,
|
|
369
|
+
onSubmitting: onTableSubmittingHandler,
|
|
370
|
+
onSubmit: onTableSubmitHandler,
|
|
371
|
+
onSubmitProgress: onSubmitProgressHandler,
|
|
372
|
+
onOptionsStatus: _ctx.$attrs.onOptionsStatus
|
|
373
|
+
}, createSlots({
|
|
374
|
+
_: 2
|
|
375
|
+
/* DYNAMIC */
|
|
376
|
+
}, [
|
|
377
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
378
|
+
return {
|
|
379
|
+
name: slotName,
|
|
380
|
+
fn: withCtx((scope) => [
|
|
381
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
|
|
382
|
+
])
|
|
383
|
+
};
|
|
384
|
+
})
|
|
385
|
+
]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn", "onOptionsStatus"])) : createCommentVNode("v-if", true)
|
|
386
|
+
])
|
|
387
|
+
])
|
|
388
|
+
]),
|
|
389
|
+
_: 2
|
|
390
|
+
/* DYNAMIC */
|
|
391
|
+
}, [
|
|
392
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
393
|
+
return {
|
|
394
|
+
name: slotName,
|
|
395
|
+
fn: withCtx((scope) => [
|
|
396
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
|
|
397
|
+
])
|
|
398
|
+
};
|
|
399
|
+
})
|
|
400
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"])
|
|
401
|
+
],
|
|
402
|
+
2112
|
|
403
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
404
|
+
);
|
|
373
405
|
};
|
|
374
406
|
}
|
|
375
407
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, normalizeClass, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading } from '@element-plus/icons-vue';
|
|
4
4
|
import '../index.mjs';
|
|
@@ -41,6 +41,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
41
41
|
// 链接按钮
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: false
|
|
44
|
+
},
|
|
45
|
+
isDot: {
|
|
46
|
+
// 是否显示小红点
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
emits: ["click"],
|
|
@@ -75,7 +80,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
75
80
|
}
|
|
76
81
|
]]
|
|
77
82
|
}, _ctx.$attrs, { onClick: handleClick }), [
|
|
78
|
-
renderSlot(_ctx.$slots, "default")
|
|
83
|
+
renderSlot(_ctx.$slots, "default"),
|
|
84
|
+
__props.isDot ? (openBlock(), createElementBlock("div", {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
|
|
87
|
+
})) : createCommentVNode("v-if", true)
|
|
79
88
|
], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
|
|
80
89
|
key: 1,
|
|
81
90
|
type: "button",
|
|
@@ -121,12 +130,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
121
130
|
}, {
|
|
122
131
|
default: withCtx(() => [
|
|
123
132
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
124
|
-
createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
|
|
133
|
+
createElementVNode("div", { class: "h-full flex items-center text-main px-3 box-border" }, [
|
|
125
134
|
!__props.loading ? renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
126
135
|
__props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
|
|
127
136
|
key: 0,
|
|
128
137
|
"svg-name": __props.svgName,
|
|
129
|
-
|
|
138
|
+
class: "w-[14px] h-[14px] text-main mr-2"
|
|
130
139
|
}, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
|
|
131
140
|
], void 0, 0) : (openBlock(), createBlock(unref(ElIcon), {
|
|
132
141
|
key: 1,
|
|
@@ -156,7 +165,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
156
165
|
],
|
|
157
166
|
2
|
|
158
167
|
/* CLASS */
|
|
159
|
-
)
|
|
168
|
+
),
|
|
169
|
+
__props.isDot ? (openBlock(), createElementBlock("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
|
|
172
|
+
})) : createCommentVNode("v-if", true)
|
|
160
173
|
], 10, ["disabled"]));
|
|
161
174
|
};
|
|
162
175
|
}
|