hy-dispatch-ui-v3 0.2.67 → 0.2.69
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 +232 -20
- 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 +178 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +316 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +119 -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/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -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/hyButton/button.vue.mjs +2 -2
- package/es/components/hyButton/style/button.scss +48 -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 +75 -37
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +58 -24
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +5 -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 +29 -4
- package/es/components/hyMap/map.vue.mjs +17 -3
- 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 +25 -11
- 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 +33 -20
- package/es/components/hySearch/js/index.mjs +1 -4
- package/es/components/hySearch/js/useAppSearch.mjs +6 -10
- package/es/components/hySearch/search.vue.mjs +9 -16
- package/es/components/hySearch/style/search.scss +2 -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 +18 -28
- package/es/components/hyTable/js/index.mjs +56 -59
- 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 +35 -41
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
- package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
- package/es/components/hyTableForm/js/index.mjs +3 -11
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
- 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 +90 -46
- package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
- package/es/components/hyTree/js/index.mjs +13 -40
- package/es/components/hyTree/style/index.css +1 -1
- package/es/components/hyTree/tree.vue.mjs +17 -16
- 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} +81 -5
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +81 -3
- package/es/style/tailwind.scss +7 -3
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +19 -12
- package/es/utils/handler.mjs +4 -8
- package/es/utils/input.mjs +8 -9
- package/es/utils/map/hook/bigMap.mjs +14 -53
- package/es/utils/map/hook/gaode.mjs +5 -20
- package/es/utils/map/hook/leafletjs.mjs +23 -79
- package/es/utils/map/index.mjs +2 -8
- 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 +182 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +320 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +123 -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/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -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/hyButton/button.vue.js +2 -2
- package/lib/components/hyButton/style/button.scss +48 -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 +76 -38
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +53 -19
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +5 -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 +29 -4
- package/lib/components/hyMap/map.vue.js +17 -3
- 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 +23 -9
- 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 +33 -20
- package/lib/components/hySearch/js/index.js +1 -4
- package/lib/components/hySearch/js/useAppSearch.js +6 -10
- package/lib/components/hySearch/search.vue.js +9 -16
- package/lib/components/hySearch/style/search.scss +2 -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 +17 -27
- package/lib/components/hyTable/js/index.js +54 -57
- 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 +35 -41
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
- package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
- package/lib/components/hyTableForm/js/index.js +3 -11
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
- 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 +89 -45
- package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
- package/lib/components/hyTree/js/index.js +13 -40
- package/lib/components/hyTree/style/index.css +1 -1
- package/lib/components/hyTree/tree.vue.js +17 -16
- 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} +81 -5
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +81 -3
- package/lib/style/tailwind.scss +7 -3
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +17 -10
- package/lib/utils/handler.js +3 -7
- package/lib/utils/input.js +7 -8
- package/lib/utils/map/hook/bigMap.js +14 -53
- package/lib/utils/map/hook/gaode.js +5 -20
- package/lib/utils/map/hook/leafletjs.js +23 -79
- package/lib/utils/map/index.js +2 -8
- package/lib/utils/map/js/webgis.js +12 -12
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -9,10 +9,10 @@ require('../../utils/index.js');
|
|
|
9
9
|
var formItem = require('./cpns/formItem.vue.js');
|
|
10
10
|
var extraItem = require('./cpns/extraItem.vue.js');
|
|
11
11
|
var arrayItem = require('./cpns/arrayItem.vue.js');
|
|
12
|
+
var arrayItem2 = require('./cpns/arrayItem2.vue.js');
|
|
12
13
|
var locationSelect = require('./cpns/locationSelect.vue.js');
|
|
13
14
|
var index = require('./js/index.js');
|
|
14
15
|
var useAppForm = require('./js/useAppForm.js');
|
|
15
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
16
16
|
var is = require('../../utils/is.js');
|
|
17
17
|
|
|
18
18
|
import "./style/form.scss";
|
|
@@ -58,14 +58,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
58
58
|
showMessage: {
|
|
59
59
|
type: Boolean,
|
|
60
60
|
default: true
|
|
61
|
+
},
|
|
62
|
+
business: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "default"
|
|
65
|
+
// default-默认 tableForm-表格表单
|
|
61
66
|
}
|
|
62
67
|
},
|
|
63
|
-
emits: ["on-allMapSelect", "complete"],
|
|
68
|
+
emits: ["on-allMapSelect", "complete", "optionsStatus"],
|
|
64
69
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
65
70
|
const props = __props;
|
|
66
71
|
const emits = __emit;
|
|
67
|
-
const { t } = useLocale.useLocale();
|
|
68
72
|
const formTemplateRef = vue.useTemplateRef("formTemplateRef");
|
|
73
|
+
const validateTriggerId = vue.inject("validateTriggerId", vue.ref(0));
|
|
69
74
|
const formColumnMap = vue.computed(() => {
|
|
70
75
|
return (props.columns || []).reduce((map, column) => {
|
|
71
76
|
if (is.isArray(column.field)) {
|
|
@@ -82,6 +87,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
82
87
|
gridTemplateColumns: `repeat(${columnNum}, minmax(0, 1fr))`
|
|
83
88
|
};
|
|
84
89
|
});
|
|
90
|
+
const isTableForm = vue.computed(() => props.business === "tableForm");
|
|
85
91
|
const locationSelectRef = vue.useTemplateRef("locationSelectRef");
|
|
86
92
|
const allMapSelect = vue.ref(false);
|
|
87
93
|
function setMapSize() {
|
|
@@ -102,15 +108,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
102
108
|
};
|
|
103
109
|
function filterFields(fields2 = [], keys = []) {
|
|
104
110
|
const filterKeys = keys.map((prop) => is.isArray(prop) ? prop.join(".") : prop);
|
|
105
|
-
return filterKeys.length ? fields2.filter(
|
|
106
|
-
(field) => field.propString && filterKeys.includes(field.propString)
|
|
107
|
-
) : fields2;
|
|
111
|
+
return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
|
|
108
112
|
}
|
|
109
113
|
async function obtainOptionsFields(keys, isMountedLoad = false) {
|
|
110
114
|
const filteredFields = filterFields(fields, keys);
|
|
111
|
-
await Promise.allSettled(
|
|
112
|
-
filteredFields.map((field) => field.obtainOptions(isMountedLoad))
|
|
113
|
-
);
|
|
115
|
+
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
|
|
114
116
|
}
|
|
115
117
|
async function getOptions(isMountedLoad = false) {
|
|
116
118
|
await obtainOptionsFields([], isMountedLoad);
|
|
@@ -121,9 +123,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
121
123
|
emitOptionsStatus();
|
|
122
124
|
}
|
|
123
125
|
async function getOptionsError() {
|
|
124
|
-
const filteredFields = fields.filter(
|
|
125
|
-
(field) => field.propString && field.optionsError
|
|
126
|
-
);
|
|
126
|
+
const filteredFields = fields.filter((field) => field.propString && field.optionsError);
|
|
127
127
|
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
|
|
128
128
|
emitOptionsStatus();
|
|
129
129
|
}
|
|
@@ -143,6 +143,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
143
143
|
);
|
|
144
144
|
vue.onMounted(() => {
|
|
145
145
|
getOptions(true);
|
|
146
|
+
vue.watch(validateTriggerId, () => {
|
|
147
|
+
vue.unref(formTemplateRef).validate(() => {
|
|
148
|
+
});
|
|
149
|
+
});
|
|
146
150
|
});
|
|
147
151
|
__expose({
|
|
148
152
|
validate: async (callback) => {
|
|
@@ -176,10 +180,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
176
180
|
await vue.nextTick();
|
|
177
181
|
return vue.unref(formTemplateRef).getField(fields2);
|
|
178
182
|
},
|
|
179
|
-
setMarker: (latlng) => {
|
|
183
|
+
setMarker: async (latlng, getAddress = false) => {
|
|
180
184
|
if (locationSelectRef.value) {
|
|
181
|
-
is.isArray(locationSelectRef.value)
|
|
185
|
+
if (is.isArray(locationSelectRef.value)) {
|
|
186
|
+
await Promise.all(
|
|
187
|
+
locationSelectRef.value.map(
|
|
188
|
+
(item) => item.setMarker(latlng, getAddress)
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
} else {
|
|
192
|
+
await locationSelectRef.value.setMarker(latlng, getAddress);
|
|
193
|
+
}
|
|
182
194
|
}
|
|
195
|
+
return 200;
|
|
183
196
|
},
|
|
184
197
|
clearMarker: () => {
|
|
185
198
|
if (locationSelectRef.value) {
|
|
@@ -237,10 +250,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
237
250
|
"div",
|
|
238
251
|
{
|
|
239
252
|
key: 0,
|
|
240
|
-
class: vue.normalizeClass(["w-full flex items-center text-theme whitespace-nowrap relative mb-3 mt-1", [
|
|
241
|
-
__props.size === "small" ? "text-xs" : "text-sm",
|
|
242
|
-
allMapSelect.value ? "hidden" : ""
|
|
243
|
-
]]),
|
|
253
|
+
class: vue.normalizeClass(["w-full flex items-center text-theme whitespace-nowrap relative mb-3 mt-1", [__props.size === "small" ? "text-xs" : "text-sm", allMapSelect.value ? "hidden" : ""]]),
|
|
244
254
|
style: vue.normalizeStyle(vue.unref(index.columnItemStyle)(props, column))
|
|
245
255
|
},
|
|
246
256
|
[
|
|
@@ -301,7 +311,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
301
311
|
{ key: 2 },
|
|
302
312
|
[
|
|
303
313
|
vue.createCommentVNode(" \u8868\u5355\u6570\u7EC4 "),
|
|
304
|
-
vue.unref(index.columnShowHandler)(props, column) ? (vue.openBlock(), vue.createBlock(arrayItem.default, {
|
|
314
|
+
!isTableForm.value && vue.unref(index.columnShowHandler)(props, column) ? (vue.openBlock(), vue.createBlock(arrayItem.default, {
|
|
305
315
|
key: 0,
|
|
306
316
|
class: vue.normalizeClass([allMapSelect.value ? "hidden" : ""]),
|
|
307
317
|
model: __props.model,
|
|
@@ -325,6 +335,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
325
335
|
])
|
|
326
336
|
};
|
|
327
337
|
})
|
|
338
|
+
]), 1032, ["class", "model", "column", "rules", "columnNum", "loading", "disabled", "readonly", "size", "style"])) : isTableForm.value && vue.unref(index.columnShowHandler)(props, column) ? (vue.openBlock(), vue.createBlock(arrayItem2.default, {
|
|
339
|
+
key: 1,
|
|
340
|
+
class: vue.normalizeClass([allMapSelect.value ? "hidden" : ""]),
|
|
341
|
+
model: __props.model,
|
|
342
|
+
column,
|
|
343
|
+
rules: __props.rules,
|
|
344
|
+
columnNum: __props.columnNum,
|
|
345
|
+
loading: __props.loading,
|
|
346
|
+
disabled: __props.disabled,
|
|
347
|
+
readonly: __props.readonly,
|
|
348
|
+
size: __props.size,
|
|
349
|
+
style: vue.normalizeStyle(vue.unref(index.columnItemStyle)(props, column))
|
|
350
|
+
}, vue.createSlots({
|
|
351
|
+
_: 2
|
|
352
|
+
/* DYNAMIC */
|
|
353
|
+
}, [
|
|
354
|
+
vue.renderList(_ctx.$slots, (_, slotName) => {
|
|
355
|
+
return {
|
|
356
|
+
name: slotName,
|
|
357
|
+
fn: vue.withCtx((scope) => [
|
|
358
|
+
vue.renderSlot(_ctx.$slots, slotName, vue.mergeProps({ ref_for: true }, scope))
|
|
359
|
+
])
|
|
360
|
+
};
|
|
361
|
+
})
|
|
328
362
|
]), 1032, ["class", "model", "column", "rules", "columnNum", "loading", "disabled", "readonly", "size", "style"])) : vue.createCommentVNode("v-if", true)
|
|
329
363
|
],
|
|
330
364
|
64
|
|
@@ -90,9 +90,7 @@ function renderText(props, column = {}) {
|
|
|
90
90
|
}
|
|
91
91
|
if (/^(select|radio|checkbox)$/.test(type)) {
|
|
92
92
|
const optionList = optionsHandler(props, column);
|
|
93
|
-
const target = optionList.find(
|
|
94
|
-
(item) => item[fieldNames.value] === columnValue
|
|
95
|
-
);
|
|
93
|
+
const target = optionList.find((item) => item[fieldNames.value] === columnValue);
|
|
96
94
|
return target?.[fieldNames.label] || columnValue || "";
|
|
97
95
|
}
|
|
98
96
|
if (Array.isArray(field)) {
|
|
@@ -104,16 +102,14 @@ function renderText(props, column = {}) {
|
|
|
104
102
|
return columnValue || "";
|
|
105
103
|
}
|
|
106
104
|
function renderArrayItemLabel(props, column, index) {
|
|
107
|
-
const { t } = useLocale.useLocale();
|
|
108
105
|
const itemLabel = vue.unref(column.itemLabel);
|
|
109
106
|
if (is.isFunction(itemLabel)) return itemLabel(column, index);
|
|
110
|
-
return (itemLabel || t("form.dynamicFormItem")) + ` ${index + 1}`;
|
|
107
|
+
return (itemLabel || useLocale.$t("form.dynamicFormItem")) + ` ${index + 1}`;
|
|
111
108
|
}
|
|
112
109
|
function renderAddLabel(props, column) {
|
|
113
|
-
const { t } = useLocale.useLocale();
|
|
114
110
|
let addLabel = vue.unref(column.addLabel);
|
|
115
111
|
if (is.isFunction(addLabel)) return addLabel();
|
|
116
|
-
return addLabel || t("form.addFormItem");
|
|
112
|
+
return addLabel || useLocale.$t("form.addFormItem");
|
|
117
113
|
}
|
|
118
114
|
function optionsHandler(props, column) {
|
|
119
115
|
const options = vue.unref(column.attrs.options);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
require('../../../hooks/index.js');
|
|
5
4
|
require('../../../utils/index.js');
|
|
6
5
|
var form = require('../../../utils/form.js');
|
|
7
6
|
var handler = require('../../../utils/handler.js');
|
|
@@ -25,11 +24,12 @@ function appFormItemHandler(column = {}) {
|
|
|
25
24
|
return {
|
|
26
25
|
...column,
|
|
27
26
|
attrs: {
|
|
28
|
-
|
|
27
|
+
type: "text",
|
|
28
|
+
// maxlength: attrs.type === 'text' ? 255 : undefined,
|
|
29
29
|
...attrs
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
} else if (/^(radio|radio-group|checkbox|select|select-v2)$/.test(column.type)) {
|
|
32
|
+
} else if (/^(radio|radio-group|checkbox|checkbox-group|select|select-v2)$/.test(column.type)) {
|
|
33
33
|
return {
|
|
34
34
|
...column,
|
|
35
35
|
attrs: {
|
|
@@ -50,7 +50,7 @@ function appFormItemHandler(column = {}) {
|
|
|
50
50
|
};
|
|
51
51
|
} else if (/^(array)$/.test(column.type)) {
|
|
52
52
|
return {
|
|
53
|
-
height:
|
|
53
|
+
height: void 0,
|
|
54
54
|
emptyChildren: false,
|
|
55
55
|
...column,
|
|
56
56
|
children: (column.children || []).map((item) => appFormItemHandler(item))
|
|
@@ -83,11 +83,7 @@ const resetAppFormValue = (columns = [], obj = {}) => {
|
|
|
83
83
|
resetAppFormValue(item.children, obj);
|
|
84
84
|
} else if (Array.isArray(item.prop)) {
|
|
85
85
|
for (let i = 0; i < item.prop.length; i++) {
|
|
86
|
-
form.genValueByProp(
|
|
87
|
-
obj,
|
|
88
|
-
item.prop[i],
|
|
89
|
-
Array.isArray(value) ? value[i] : void 0
|
|
90
|
-
);
|
|
86
|
+
form.genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
|
|
91
87
|
}
|
|
92
88
|
} else {
|
|
93
89
|
form.genValueByProp(obj, item.prop, value);
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
transition: all 0.1s linear;
|
|
26
26
|
user-select: none;
|
|
27
27
|
z-index: 2;
|
|
28
|
+
box-sizing: border-box;
|
|
28
29
|
.hy-form-extra-arrow {
|
|
29
30
|
transform: rotateZ(90deg) rotateY(0deg);
|
|
30
31
|
transition: all 0.3s linear;
|
|
@@ -34,11 +35,7 @@
|
|
|
34
35
|
border-color: rgba(var(--hy-theme));
|
|
35
36
|
box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
|
|
36
37
|
& + .hy-form-extra-line {
|
|
37
|
-
background: radial-gradient(
|
|
38
|
-
circle,
|
|
39
|
-
rgba(var(--hy-theme), 1),
|
|
40
|
-
rgba(var(--hy-theme), 0)
|
|
41
|
-
);
|
|
38
|
+
background: radial-gradient(circle, rgba(var(--hy-theme), 1), rgba(var(--hy-theme), 0));
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
41
|
&.expand {
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
|
-
|
|
47
|
+
|
|
51
48
|
.hy-form-extra-line {
|
|
52
49
|
width: 100%;
|
|
53
50
|
height: 2px;
|
|
@@ -56,12 +53,6 @@
|
|
|
56
53
|
top: 50%;
|
|
57
54
|
transform: translateY(-50%);
|
|
58
55
|
pointer-events: none;
|
|
59
|
-
background: radial-gradient(
|
|
60
|
-
circle,
|
|
61
|
-
rgba(var(--hy-auxiliary), 1),
|
|
62
|
-
rgba(var(--hy-auxiliary), 0)
|
|
63
|
-
);
|
|
56
|
+
background: radial-gradient(circle, rgba(var(--hy-auxiliary), 1), rgba(var(--hy-auxiliary), 0));
|
|
64
57
|
}
|
|
65
58
|
}
|
|
66
|
-
|
|
67
|
-
|
|
@@ -36,11 +36,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
36
36
|
}
|
|
37
37
|
const iconName = vue.computed(() => `#${props.prefix}${props.svgName}`);
|
|
38
38
|
const svgClass = vue.computed(() => {
|
|
39
|
+
const classList = ["hy-icon"];
|
|
39
40
|
if (props.className) {
|
|
40
|
-
|
|
41
|
-
} else {
|
|
42
|
-
return "hy-icon";
|
|
41
|
+
classList.push(props.className);
|
|
43
42
|
}
|
|
43
|
+
return classList.filter(Boolean).join(" ");
|
|
44
44
|
});
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
46
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
@@ -14,14 +14,10 @@
|
|
|
14
14
|
user-select: none;
|
|
15
15
|
border-radius: 100%;
|
|
16
16
|
background:
|
|
17
|
-
radial-gradient(
|
|
18
|
-
142% 47% at 50% 119%,
|
|
19
|
-
rgb(var(--hy-theme), 0.5) 0%,
|
|
20
|
-
rgb(var(--hy-theme), 0) 100%
|
|
21
|
-
),
|
|
17
|
+
radial-gradient(142% 47% at 50% 119%, rgb(var(--hy-theme), 0.5) 0%, rgb(var(--hy-theme), 0) 100%),
|
|
22
18
|
rgb(var(--hy-background-3));
|
|
23
19
|
border: 1px solid rgb(var(--hy-auxiliary), 0.5);
|
|
24
20
|
box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
|
|
21
|
+
box-sizing: border-box;
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
|
-
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
6
|
+
require('../../index.js');
|
|
7
|
+
var index = require('./index.js');
|
|
8
|
+
var index$1 = require('../hyIcon/index.js');
|
|
9
9
|
|
|
10
10
|
import "./style/inputSearch.scss";
|
|
11
11
|
|
|
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
79
79
|
},
|
|
80
80
|
[
|
|
81
81
|
vue.renderSlot(_ctx.$slots, "before"),
|
|
82
|
-
vue.createVNode(
|
|
82
|
+
vue.createVNode(vue.unref(index.HyInput), vue.mergeProps({
|
|
83
83
|
ref_key: "inputRef",
|
|
84
84
|
ref: inputRef,
|
|
85
85
|
modelValue: modelValue.value,
|
|
@@ -108,12 +108,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
108
108
|
class: "w-[32px] h-[32px] flex-shrink-0 flex items-center justify-center bg-background-3 rounded-[2px] cursor-pointer",
|
|
109
109
|
onClick: onSearchQueryHandler
|
|
110
110
|
}, [
|
|
111
|
-
vue.createVNode(vue.unref(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
/* STABLE */
|
|
111
|
+
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
112
|
+
"svg-name": "dispatch-share-v3-base-search",
|
|
113
|
+
class: "w-[18px] h-[18px]"
|
|
117
114
|
})
|
|
118
115
|
])
|
|
119
116
|
],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
padding: 2px 4px;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
background: rgba(var(--hy-background-2));
|
|
13
|
+
box-sizing: border-box;
|
|
13
14
|
&:hover,
|
|
14
15
|
&.focus {
|
|
15
16
|
border: 1px solid rgba(var(--hy-theme));
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
& > .hy-el-input__wrapper {
|
|
22
23
|
padding-left: 8px;
|
|
23
24
|
padding-right: 4px;
|
|
25
|
+
box-sizing: border-box;
|
|
24
26
|
}
|
|
25
27
|
.hy-el-input__inner::placeholder {
|
|
26
28
|
font-size: 12px;
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
box-shadow: none;
|
|
35
37
|
padding: 4px;
|
|
36
38
|
min-height: 100%;
|
|
39
|
+
box-sizing: border-box;
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
}
|
|
@@ -24,8 +24,7 @@ const HyLoading = {
|
|
|
24
24
|
directive: {
|
|
25
25
|
...elementPlus.ElLoading.directive,
|
|
26
26
|
mounted: function(el, binding, vnode, prevVnode) {
|
|
27
|
-
|
|
28
|
-
el.setAttribute("element-loading-text", `${t("hy.loading")}...`);
|
|
27
|
+
el.setAttribute("element-loading-text", `${useLocale.$t("hy.loading")}...`);
|
|
29
28
|
el.setAttribute("element-loading-svg", loadingConfig.svg);
|
|
30
29
|
el.setAttribute("element-loading-svg-view-box", loadingConfig.svgViewBox);
|
|
31
30
|
el.setAttribute("element-loading-background", loadingConfig.background);
|
|
@@ -33,9 +32,8 @@ const HyLoading = {
|
|
|
33
32
|
}
|
|
34
33
|
},
|
|
35
34
|
service: function(options = {}) {
|
|
36
|
-
const { t } = useLocale.useLocale();
|
|
37
35
|
return elementPlus.ElLoading.service.call(this, {
|
|
38
|
-
text: `${t("hy.loading")}...`,
|
|
36
|
+
text: `${useLocale.$t("hy.loading")}...`,
|
|
39
37
|
...loadingConfig,
|
|
40
38
|
...options
|
|
41
39
|
});
|
|
@@ -7,10 +7,12 @@ const useAppMapWrapper = (hy) => {
|
|
|
7
7
|
const {
|
|
8
8
|
props: { mapConfig },
|
|
9
9
|
mapRef,
|
|
10
|
-
emits
|
|
10
|
+
emits,
|
|
11
|
+
isUnmounted
|
|
11
12
|
} = hy;
|
|
12
13
|
let hyMap = vue.shallowRef(null);
|
|
13
14
|
let map = vue.shallowRef(null);
|
|
15
|
+
let initTimer = null;
|
|
14
16
|
function newMap(mapType) {
|
|
15
17
|
const mapFilters = [
|
|
16
18
|
{
|
|
@@ -112,11 +114,27 @@ const useAppMapWrapper = (hy) => {
|
|
|
112
114
|
// },
|
|
113
115
|
// ], // 地图瓦片地址
|
|
114
116
|
});
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
if (initTimer) {
|
|
118
|
+
clearTimeout(initTimer);
|
|
119
|
+
}
|
|
120
|
+
initTimer = setTimeout(() => {
|
|
121
|
+
if (!isUnmounted.value) {
|
|
122
|
+
hy.initMap();
|
|
123
|
+
}
|
|
124
|
+
initTimer = null;
|
|
117
125
|
}, 800);
|
|
118
126
|
}
|
|
119
127
|
function initMap() {
|
|
128
|
+
if (isUnmounted.value || !mapRef.value) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const container = mapRef.value;
|
|
132
|
+
if (container) {
|
|
133
|
+
delete container._leaflet_id;
|
|
134
|
+
delete container._bm_id;
|
|
135
|
+
delete container._amap_id;
|
|
136
|
+
container.innerHTML = "";
|
|
137
|
+
}
|
|
120
138
|
hy.map.value = hy.hyMap.value.InitMap(mapRef.value, {
|
|
121
139
|
minZoom: mapConfig.minZoom || 8,
|
|
122
140
|
maxZoom: mapConfig.maxZoom || 18,
|
|
@@ -132,11 +150,18 @@ const useAppMapWrapper = (hy) => {
|
|
|
132
150
|
}
|
|
133
151
|
});
|
|
134
152
|
}
|
|
153
|
+
function clearInitTimer() {
|
|
154
|
+
if (initTimer) {
|
|
155
|
+
clearTimeout(initTimer);
|
|
156
|
+
initTimer = null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
135
159
|
return {
|
|
136
160
|
hyMap,
|
|
137
161
|
map,
|
|
138
162
|
newMap,
|
|
139
|
-
initMap
|
|
163
|
+
initMap,
|
|
164
|
+
clearInitTimer
|
|
140
165
|
};
|
|
141
166
|
};
|
|
142
167
|
|
|
@@ -41,11 +41,13 @@ const _sfc_main = {
|
|
|
41
41
|
const props = __props;
|
|
42
42
|
const emits = __emit;
|
|
43
43
|
const mapRef = vue.ref();
|
|
44
|
-
const
|
|
44
|
+
const isUnmounted = vue.ref(false);
|
|
45
|
+
const { newMap, map, hyMap, clearInitTimer } = useMixins.useMixins(
|
|
45
46
|
{
|
|
46
47
|
props,
|
|
47
48
|
emits,
|
|
48
|
-
mapRef
|
|
49
|
+
mapRef,
|
|
50
|
+
isUnmounted
|
|
49
51
|
},
|
|
50
52
|
[index.useAppMapWrapper]
|
|
51
53
|
);
|
|
@@ -55,9 +57,21 @@ const _sfc_main = {
|
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
vue.onBeforeUnmount(() => {
|
|
58
|
-
|
|
60
|
+
isUnmounted.value = true;
|
|
61
|
+
clearInitTimer();
|
|
62
|
+
try {
|
|
63
|
+
map.value?.removeMap();
|
|
64
|
+
} catch (error) {
|
|
65
|
+
console.warn("\u5730\u56FE\u5378\u8F7D\u8B66\u544A:", error);
|
|
66
|
+
}
|
|
59
67
|
map.value = null;
|
|
60
68
|
hyMap.value = null;
|
|
69
|
+
if (mapRef.value) {
|
|
70
|
+
mapRef.value.innerHTML = "";
|
|
71
|
+
delete mapRef.value._leaflet_id;
|
|
72
|
+
delete mapRef.value._bm_id;
|
|
73
|
+
delete mapRef.value._amap_id;
|
|
74
|
+
}
|
|
61
75
|
});
|
|
62
76
|
return (_ctx, _cache) => {
|
|
63
77
|
return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full box-border border-border border relative" }, [
|
|
@@ -10,12 +10,9 @@
|
|
|
10
10
|
transition: all 0.3s linear;
|
|
11
11
|
background:
|
|
12
12
|
linear-gradient(180deg, rgba(33, 58, 84, 0.3) 0.08%, #213a54 100%),
|
|
13
|
-
radial-gradient(
|
|
14
|
-
21% 31% at 150% 40%,
|
|
15
|
-
rgba(61, 98, 134, 0.5) 0%,
|
|
16
|
-
rgba(61, 98, 134, 0) 100%
|
|
17
|
-
);
|
|
13
|
+
radial-gradient(21% 31% at 150% 40%, rgba(61, 98, 134, 0.5) 0%, rgba(61, 98, 134, 0) 100%);
|
|
18
14
|
border-right: 1px solid rgba(var(--hy-border));
|
|
15
|
+
box-sizing: border-box;
|
|
19
16
|
|
|
20
17
|
.operator-menu-list {
|
|
21
18
|
width: 100%;
|
|
@@ -34,6 +31,7 @@
|
|
|
34
31
|
font-size: 16px;
|
|
35
32
|
position: relative;
|
|
36
33
|
cursor: pointer;
|
|
34
|
+
box-sizing: border-box;
|
|
37
35
|
|
|
38
36
|
.operator-label {
|
|
39
37
|
width: 100%;
|
|
@@ -72,11 +70,7 @@
|
|
|
72
70
|
position: absolute;
|
|
73
71
|
left: 0;
|
|
74
72
|
top: 3px;
|
|
75
|
-
background: linear-gradient(
|
|
76
|
-
90deg,
|
|
77
|
-
rgba(var(--hy-theme), 0) 2%,
|
|
78
|
-
rgba(var(--hy-theme), 0.4) 100%
|
|
79
|
-
);
|
|
73
|
+
background: linear-gradient(90deg, rgba(var(--hy-theme), 0) 2%, rgba(var(--hy-theme), 0.4) 100%);
|
|
80
74
|
border-radius: 0px 4px 4px 0px;
|
|
81
75
|
}
|
|
82
76
|
}
|
|
@@ -135,11 +129,7 @@
|
|
|
135
129
|
position: absolute;
|
|
136
130
|
left: 0;
|
|
137
131
|
top: 0;
|
|
138
|
-
background: linear-gradient(
|
|
139
|
-
90deg,
|
|
140
|
-
rgba(var(--hy-theme), 0) 2%,
|
|
141
|
-
rgba(var(--hy-theme), 0.4) 100%
|
|
142
|
-
);
|
|
132
|
+
background: linear-gradient(90deg, rgba(var(--hy-theme), 0) 2%, rgba(var(--hy-theme), 0.4) 100%);
|
|
143
133
|
//border-radius: 0px 4px 4px 0px;
|
|
144
134
|
}
|
|
145
135
|
}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../hooks/index.js');
|
|
7
7
|
require('../index.js');
|
|
8
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
9
8
|
var index = require('../hyIcon/index.js');
|
|
9
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
10
10
|
|
|
11
11
|
import "./style/noPermissions.scss";
|
|
12
12
|
|
|
@@ -24,7 +24,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
24
24
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emits = __emit;
|
|
27
|
-
const { t } = useLocale.useLocale();
|
|
28
27
|
__expose({});
|
|
29
28
|
return (_ctx, _cache) => {
|
|
30
29
|
return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
|
|
@@ -36,14 +35,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
36
35
|
vue.createElementVNode(
|
|
37
36
|
"p",
|
|
38
37
|
null,
|
|
39
|
-
vue.toDisplayString(vue.unref(t)("permissino.youDoNotHaveSubordinatePermissionsForThisModule")),
|
|
38
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("permissino.youDoNotHaveSubordinatePermissionsForThisModule")),
|
|
40
39
|
1
|
|
41
40
|
/* TEXT */
|
|
42
41
|
),
|
|
43
42
|
vue.createElementVNode(
|
|
44
43
|
"p",
|
|
45
44
|
null,
|
|
46
|
-
vue.toDisplayString(vue.unref(t)("permissino.pleaseContactTheAdministrator")),
|
|
45
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("permissino.pleaseContactTheAdministrator")),
|
|
47
46
|
1
|
|
48
47
|
/* TEXT */
|
|
49
48
|
)
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../hooks/index.js');
|
|
7
7
|
require('../index.js');
|
|
8
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
9
8
|
var index = require('../hyIcon/index.js');
|
|
9
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
10
10
|
|
|
11
11
|
import "./style/noPermissionsMap.scss";
|
|
12
12
|
|
|
@@ -24,7 +24,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
24
24
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emits = __emit;
|
|
27
|
-
const { t } = useLocale.useLocale();
|
|
28
27
|
__expose({});
|
|
29
28
|
return (_ctx, _cache) => {
|
|
30
29
|
return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
|
|
@@ -36,16 +35,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
36
35
|
vue.createElementVNode(
|
|
37
36
|
"p",
|
|
38
37
|
null,
|
|
39
|
-
vue.toDisplayString(vue.unref(t)("permissino.youDoNotHaveAMapConfigurationForThisModule")),
|
|
38
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("permissino.youDoNotHaveAMapConfigurationForThisModule")),
|
|
40
39
|
1
|
|
41
40
|
/* TEXT */
|
|
42
41
|
),
|
|
43
42
|
vue.createElementVNode(
|
|
44
43
|
"p",
|
|
45
44
|
null,
|
|
46
|
-
vue.toDisplayString(
|
|
47
|
-
"permissino.pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration"
|
|
48
|
-
)),
|
|
45
|
+
vue.toDisplayString(_ctx.t("permissino.pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration")),
|
|
49
46
|
1
|
|
50
47
|
/* TEXT */
|
|
51
48
|
)
|
|
@@ -15,11 +15,7 @@ function getOrgTreeSimple() {
|
|
|
15
15
|
}
|
|
16
16
|
cancelSource = Axios.CancelToken.source();
|
|
17
17
|
throttleFn = new Promise((resolve, reject) => {
|
|
18
|
-
vue.unref(api).post(
|
|
19
|
-
"organization/orgTreeSimple",
|
|
20
|
-
{},
|
|
21
|
-
{ cancelToken: cancelSource.token }
|
|
22
|
-
).then((res) => {
|
|
18
|
+
vue.unref(api).post("organization/orgTreeSimple", {}, { cancelToken: cancelSource.token }).then((res) => {
|
|
23
19
|
resolve(res.data);
|
|
24
20
|
throttleFn = null;
|
|
25
21
|
}).catch((err) => {
|