hy-dispatch-ui-v3 0.2.76 → 0.2.78
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 +91 -8
- package/es/api/common.mjs +28 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
- package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
- package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
- package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
- package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
- package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
- package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
- package/es/bussiness/hyFilePlayback/index.mjs +8 -0
- package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
- package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
- package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
- package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
- package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
- package/es/bussiness/index.mjs +3 -2
- package/es/components/hyCutter/cutter.vue.mjs +2 -2
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
- package/es/components/hyForm/js/index.mjs +2 -8
- package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
- package/es/components/hySearch/js/index.mjs +1 -35
- package/es/components/hySearch/js/useAppSearch.mjs +3 -3
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
- package/es/components/hyTable/js/index.mjs +44 -4
- package/es/components/hyTable/js/search.mjs +0 -6
- package/es/components/hyTable/table.vue.mjs +47 -30
- package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
- package/es/components-map.mjs +19 -10
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useBaseMainStore.mjs +16 -5
- package/es/hooks/useCurrentBus.mjs +5 -4
- package/es/hooks/useDialog.mjs +2 -2
- package/es/hooks/useGlobalConfig.mjs +26 -16
- package/es/hooks/useVersionControl.mjs +34 -0
- package/es/index.mjs +7 -4
- package/es/locale/en_US.mjs +1 -0
- package/es/locale/zh_CN.mjs +1 -0
- package/es/style/index.scss +2 -2
- package/es/utils/file.mjs +1 -2
- package/es/utils/form.mjs +70 -7
- package/es/utils/index.mjs +3 -2
- package/es/utils/map/hook/leafletjs.mjs +4 -0
- package/es/utils/map/index.mjs +4 -0
- package/es/utils/timeUtils.mjs +95 -0
- package/es/utils/useUiComponent.mjs +34 -0
- package/es/version.mjs +1 -1
- package/lib/api/common.js +33 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
- package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
- package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
- package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
- package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
- package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
- package/lib/bussiness/hyFilePlayback/index.js +13 -0
- package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
- package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
- package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
- package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
- package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
- package/lib/bussiness/index.js +19 -16
- package/lib/components/hyCutter/cutter.vue.js +2 -2
- package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
- package/lib/components/hyForm/js/index.js +0 -7
- package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
- package/lib/components/hySearch/js/index.js +0 -36
- package/lib/components/hySearch/js/useAppSearch.js +3 -3
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
- package/lib/components/hyTable/js/index.js +45 -3
- package/lib/components/hyTable/js/search.js +0 -6
- package/lib/components/hyTable/table.vue.js +46 -29
- package/lib/components/hyTooltip/tooltip.vue.js +13 -5
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
- package/lib/components-map.js +19 -10
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/useBaseMainStore.js +15 -4
- package/lib/hooks/useCurrentBus.js +4 -3
- package/lib/hooks/useDialog.js +2 -2
- package/lib/hooks/useGlobalConfig.js +25 -15
- package/lib/hooks/useVersionControl.js +38 -0
- package/lib/index.js +75 -57
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/zh_CN.js +1 -0
- package/lib/style/index.scss +2 -2
- package/lib/utils/file.js +1 -2
- package/lib/utils/form.js +72 -6
- package/lib/utils/index.js +12 -1
- package/lib/utils/map/hook/leafletjs.js +4 -0
- package/lib/utils/map/index.js +4 -0
- package/lib/utils/timeUtils.js +105 -0
- package/lib/utils/useUiComponent.js +37 -0
- package/lib/version.js +1 -1
- package/package.json +113 -58
- package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
- package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
function formatNumber(n) {
|
|
2
|
+
n = n.toString();
|
|
3
|
+
return n[1] ? n : "0" + n;
|
|
4
|
+
}
|
|
5
|
+
function getToday(cutOff = "-") {
|
|
6
|
+
const dateObj = /* @__PURE__ */ new Date();
|
|
7
|
+
return formatDay(dateObj).join(cutOff);
|
|
8
|
+
}
|
|
9
|
+
function getNextDays({ today, daysCount, cutOff = "-" }) {
|
|
10
|
+
if (!today) {
|
|
11
|
+
today = getToday("/");
|
|
12
|
+
}
|
|
13
|
+
const dateObj = new Date(today);
|
|
14
|
+
const arr = [formatDay(dateObj).join(cutOff)];
|
|
15
|
+
for (let i = 0; i < daysCount; i++) {
|
|
16
|
+
const days = dateObj.setDate(dateObj.getDate() + 1);
|
|
17
|
+
arr.push(formatDay(new Date(days)).join(cutOff));
|
|
18
|
+
}
|
|
19
|
+
return arr;
|
|
20
|
+
}
|
|
21
|
+
function getBeforeDays({ today, daysCount, cutOff = "-" }) {
|
|
22
|
+
if (!today) {
|
|
23
|
+
today = getToday("/");
|
|
24
|
+
}
|
|
25
|
+
const dateObj = new Date(today);
|
|
26
|
+
const arr = [formatDay(dateObj).join(cutOff)];
|
|
27
|
+
for (let i = 0; i < daysCount; i++) {
|
|
28
|
+
const days = dateObj.setDate(dateObj.getDate() - 1);
|
|
29
|
+
arr.push(formatDay(new Date(days)).join(cutOff));
|
|
30
|
+
}
|
|
31
|
+
return arr;
|
|
32
|
+
}
|
|
33
|
+
function formatDay(dateObj) {
|
|
34
|
+
const year = dateObj.getFullYear();
|
|
35
|
+
const month = formatNumber(dateObj.getMonth() + 1);
|
|
36
|
+
const date = formatNumber(dateObj.getDate());
|
|
37
|
+
return [year, month, date];
|
|
38
|
+
}
|
|
39
|
+
function formatTime(dateObj) {
|
|
40
|
+
const h = dateObj.getHours();
|
|
41
|
+
let m = dateObj.getMinutes();
|
|
42
|
+
let s = dateObj.getSeconds();
|
|
43
|
+
if (m < 10) {
|
|
44
|
+
m = "0" + m;
|
|
45
|
+
}
|
|
46
|
+
if (s < 10) {
|
|
47
|
+
s = "0" + s;
|
|
48
|
+
}
|
|
49
|
+
return [h, m, s];
|
|
50
|
+
}
|
|
51
|
+
function getCurDtm(cutOff = "-") {
|
|
52
|
+
return getToday(cutOff) + " " + formatTime(/* @__PURE__ */ new Date()).join(":");
|
|
53
|
+
}
|
|
54
|
+
function formatSeconds(value) {
|
|
55
|
+
let theTime = parseInt(value);
|
|
56
|
+
let middle = 0;
|
|
57
|
+
let hour = 0;
|
|
58
|
+
if (theTime > 60) {
|
|
59
|
+
middle = parseInt(theTime / 60);
|
|
60
|
+
theTime = parseInt(theTime % 60);
|
|
61
|
+
if (middle > 60) {
|
|
62
|
+
hour = parseInt(middle / 60);
|
|
63
|
+
middle = parseInt(middle % 60);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
let result = "" + parseInt(theTime);
|
|
67
|
+
if (theTime < 10) {
|
|
68
|
+
result = `00:0${parseInt(theTime)}`;
|
|
69
|
+
} else {
|
|
70
|
+
result = `00:${parseInt(theTime)}`;
|
|
71
|
+
}
|
|
72
|
+
if (middle > 0) {
|
|
73
|
+
result = `${parseInt(theTime)}`;
|
|
74
|
+
if (middle < 10) {
|
|
75
|
+
result = "0" + parseInt(middle) + ":" + result;
|
|
76
|
+
} else {
|
|
77
|
+
result = "" + parseInt(middle) + ":" + result;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (hour > 0) {
|
|
81
|
+
result = "" + parseInt(hour) + ":" + result;
|
|
82
|
+
}
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
function formatHoursToHM(hours) {
|
|
86
|
+
hours = parseFloat(hours);
|
|
87
|
+
if (hours == null || isNaN(hours)) {
|
|
88
|
+
return { hour: 0, minute: 0 };
|
|
89
|
+
}
|
|
90
|
+
const hour = Math.floor(hours);
|
|
91
|
+
const minute = Math.floor((hours - hour) * 60);
|
|
92
|
+
return { hour, minute };
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { formatDay, formatHoursToHM, formatNumber, formatSeconds, formatTime, getBeforeDays, getCurDtm, getNextDays, getToday };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineAsyncComponent } from 'vue';
|
|
2
|
+
import '../hooks/index.mjs';
|
|
3
|
+
import { useVersionControl } from '../hooks/useVersionControl.mjs';
|
|
4
|
+
|
|
5
|
+
function useUiComponent(componentName) {
|
|
6
|
+
const { componentsMap, versionStore } = useVersionControl();
|
|
7
|
+
const currentComponentsMap = componentsMap?.value;
|
|
8
|
+
const currentVersionStore = versionStore?.value;
|
|
9
|
+
if (currentComponentsMap && currentVersionStore) {
|
|
10
|
+
return defineAsyncComponent(() => {
|
|
11
|
+
const versionedName = currentVersionStore.getUiComponentName(componentName);
|
|
12
|
+
if (currentComponentsMap[versionedName]) {
|
|
13
|
+
return currentComponentsMap[versionedName]();
|
|
14
|
+
} else {
|
|
15
|
+
console.warn(`[useUiComponent] \u672A\u627E\u5230\u7248\u672C\u5316\u7EC4\u4EF6: ${versionedName}\uFF0C\u5C1D\u8BD5\u4F7F\u7528\u9ED8\u8BA4\u7EC4\u4EF6`);
|
|
16
|
+
if (currentComponentsMap[componentName]) {
|
|
17
|
+
return currentComponentsMap[componentName]();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
throw new Error(`[useUiComponent] \u7EC4\u4EF6 ${componentName} \u5728 componentsMap \u4E2D\u4E0D\u5B58\u5728`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
throw new Error(`[useUiComponent] useUiComponent('${componentName}') \u9700\u8981\u901A\u8FC7 HyConfigProvider \u63D0\u4F9B componentsMap \u548C versionStore`);
|
|
24
|
+
return {
|
|
25
|
+
currentComponentsMap,
|
|
26
|
+
currentVersionStore
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function isMultiVersionMode() {
|
|
30
|
+
const { componentsMap, versionStore } = useVersionControl();
|
|
31
|
+
return !!(componentsMap?.value && versionStore?.value);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { isMultiVersionMode, useUiComponent };
|
package/es/version.mjs
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../hooks/index.js');
|
|
4
|
+
var vue = require('vue');
|
|
5
|
+
var useApi = require('../hooks/useApi.js');
|
|
6
|
+
|
|
7
|
+
function reverseGeocodingApi(params) {
|
|
8
|
+
const { api } = useApi.useApi();
|
|
9
|
+
const http = vue.unref(api);
|
|
10
|
+
return http.post("/common/reverseGeocoding", params, {
|
|
11
|
+
isJSON: true
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function commonReverseGeocodingApi(params) {
|
|
15
|
+
const { api } = useApi.useApi();
|
|
16
|
+
const http = vue.unref(api);
|
|
17
|
+
return http.post("/common/reverseGeocoding", params, { isJSON: true });
|
|
18
|
+
}
|
|
19
|
+
function commonWarningTypeApi(params) {
|
|
20
|
+
const { api } = useApi.useApi();
|
|
21
|
+
const http = vue.unref(api);
|
|
22
|
+
return http.post("/common/warningType", params);
|
|
23
|
+
}
|
|
24
|
+
function commonDeviceFaultCodeApi(params) {
|
|
25
|
+
const { api } = useApi.useApi();
|
|
26
|
+
const http = vue.unref(api);
|
|
27
|
+
return http.post("/common/deviceFaultCode", params);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.commonDeviceFaultCodeApi = commonDeviceFaultCodeApi;
|
|
31
|
+
exports.commonReverseGeocodingApi = commonReverseGeocodingApi;
|
|
32
|
+
exports.commonWarningTypeApi = commonWarningTypeApi;
|
|
33
|
+
exports.reverseGeocodingApi = reverseGeocodingApi;
|
|
@@ -64,7 +64,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
64
|
function beforeAvatarUpload2(file) {
|
|
65
65
|
const width = 44;
|
|
66
66
|
const height = 44;
|
|
67
|
-
const _this = this;
|
|
68
67
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
69
68
|
if (!isLt2M) {
|
|
70
69
|
elementPlus.ElMessage.error($t("imageUploadFailedLogoSizeWithin2M"));
|
|
@@ -123,7 +122,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
123
122
|
elementPlus.ElMessage.success($t("operationSuccessful"));
|
|
124
123
|
vue.nextTick(() => {
|
|
125
124
|
emit("on-submit", hy.formModel.value.id ? null : 1);
|
|
126
|
-
currentBus.emit("departmentTypeOperation", {
|
|
125
|
+
currentBus.value.emit("departmentTypeOperation", {
|
|
127
126
|
method: "onSubmit",
|
|
128
127
|
param: hy.formModel.value.id ? null : 1
|
|
129
128
|
});
|
|
@@ -224,131 +223,120 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
224
223
|
minimizedShow
|
|
225
224
|
});
|
|
226
225
|
return (_ctx, _cache) => {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
vue.
|
|
231
|
-
null,
|
|
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
|
-
|
|
278
|
-
|
|
279
|
-
]
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
class: "w-[60px] h-[60px]",
|
|
287
|
-
src: vue.unref(formModel).icon
|
|
288
|
-
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyIcon), {
|
|
289
|
-
key: 1,
|
|
290
|
-
"svg-name": "ops-file-empty-head",
|
|
291
|
-
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
292
|
-
})),
|
|
293
|
-
vue.createElementVNode(
|
|
294
|
-
"span",
|
|
295
|
-
{ class: "uploadTips text-center" },
|
|
296
|
-
vue.toDisplayString($t("upload")),
|
|
297
|
-
1
|
|
298
|
-
/* TEXT */
|
|
299
|
-
)
|
|
300
|
-
])
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
/* STABLE */
|
|
304
|
-
}, 8, ["before-upload", "http-request"]),
|
|
305
|
-
vue.createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
226
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.HyDialog), vue.mergeProps({
|
|
227
|
+
ref_key: "HyDialogRef",
|
|
228
|
+
ref: HyDialogRef,
|
|
229
|
+
modelValue: vue.unref(dialogVisible),
|
|
230
|
+
"onUpdate:modelValue": ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
231
|
+
loading: vue.unref(loading),
|
|
232
|
+
"onUpdate:loading": ($event) => vue.isRef(loading) ? loading.value = $event : null,
|
|
233
|
+
"if-shrink": true,
|
|
234
|
+
width: "310px"
|
|
235
|
+
}, _ctx.$attrs, {
|
|
236
|
+
title: vue.unref(formModel).id ? $t("editDepartmentType") : $t("addDepartmentType"),
|
|
237
|
+
"on-submit": vue.unref(onSubmit),
|
|
238
|
+
"on-cancel": vue.unref(onClose),
|
|
239
|
+
"on-close": vue.unref(onClose),
|
|
240
|
+
"operate-class": "w-full justify-center",
|
|
241
|
+
onOnMinimized: vue.unref(onMinimized),
|
|
242
|
+
onOnDialogMousedown: ($event) => vue.unref(setDragLevelIndex)("HyDialogRef")
|
|
243
|
+
}), {
|
|
244
|
+
default: vue.withCtx(() => [
|
|
245
|
+
vue.createVNode(vue.unref(index$3.HyForm), {
|
|
246
|
+
ref_key: "formRef",
|
|
247
|
+
ref: formRef,
|
|
248
|
+
"column-num": 1,
|
|
249
|
+
model: vue.unref(formModel),
|
|
250
|
+
columns: vue.unref(formColumns)
|
|
251
|
+
}, {
|
|
252
|
+
companyNameSlot: vue.withCtx(() => [
|
|
253
|
+
vue.createElementVNode("div", { class: "flex flex-row departmentTypeOperation" }, [
|
|
254
|
+
vue.createVNode(vue.unref(elementPlus.ElUpload), {
|
|
255
|
+
class: "w-[80px] flex items-center justify-center upload_box",
|
|
256
|
+
accept: ".png,.jpg,.gif",
|
|
257
|
+
"before-upload": vue.unref(beforeAvatarUpload),
|
|
258
|
+
"http-request": vue.unref(handleHttpRequestImg),
|
|
259
|
+
action: "",
|
|
260
|
+
"show-file-list": false
|
|
261
|
+
}, {
|
|
262
|
+
default: vue.withCtx(() => [
|
|
263
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
|
264
|
+
class: "delete_box flex items-center justify-center",
|
|
265
|
+
onClick: vue.withModifiers(($event) => vue.unref(setHeadImg)(null), ["stop"])
|
|
266
|
+
}, [
|
|
267
|
+
vue.createVNode(vue.unref(index$4.HyIcon), {
|
|
268
|
+
"svg-name": "ops-button-delete",
|
|
269
|
+
class: "svg_box"
|
|
270
|
+
})
|
|
271
|
+
], 8, ["onClick"]), [
|
|
272
|
+
[vue.vShow, vue.unref(formModel).icon]
|
|
273
|
+
]),
|
|
274
|
+
vue.createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
275
|
+
vue.unref(formModel).icon ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
|
|
276
|
+
key: 0,
|
|
277
|
+
fit: "contain",
|
|
278
|
+
class: "w-[60px] h-[60px]",
|
|
279
|
+
src: vue.unref(formModel).icon
|
|
280
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.HyIcon), {
|
|
281
|
+
key: 1,
|
|
282
|
+
"svg-name": "ops-file-empty-head",
|
|
283
|
+
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
284
|
+
})),
|
|
306
285
|
vue.createElementVNode(
|
|
307
|
-
"
|
|
308
|
-
|
|
309
|
-
vue.toDisplayString($t("
|
|
310
|
-
1
|
|
311
|
-
/* TEXT */
|
|
312
|
-
),
|
|
313
|
-
vue.createElementVNode(
|
|
314
|
-
"div",
|
|
315
|
-
null,
|
|
316
|
-
vue.toDisplayString($t("iconSize44px")) + "*44px",
|
|
317
|
-
1
|
|
318
|
-
/* TEXT */
|
|
319
|
-
),
|
|
320
|
-
vue.createElementVNode(
|
|
321
|
-
"div",
|
|
322
|
-
null,
|
|
323
|
-
vue.toDisplayString($t("ifNoIconUseTheDefaultIcon")),
|
|
286
|
+
"span",
|
|
287
|
+
{ class: "uploadTips text-center" },
|
|
288
|
+
vue.toDisplayString($t("upload")),
|
|
324
289
|
1
|
|
325
290
|
/* TEXT */
|
|
326
291
|
)
|
|
327
292
|
])
|
|
328
|
-
])
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
/* STABLE */
|
|
296
|
+
}, 8, ["before-upload", "http-request"]),
|
|
297
|
+
vue.createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
298
|
+
vue.createElementVNode(
|
|
299
|
+
"div",
|
|
300
|
+
null,
|
|
301
|
+
vue.toDisplayString($t("pleaseUploadDepartmentTypeIcon")),
|
|
302
|
+
1
|
|
303
|
+
/* TEXT */
|
|
304
|
+
),
|
|
305
|
+
vue.createElementVNode(
|
|
306
|
+
"div",
|
|
307
|
+
null,
|
|
308
|
+
vue.toDisplayString($t("iconSize44px")) + "*44px",
|
|
309
|
+
1
|
|
310
|
+
/* TEXT */
|
|
311
|
+
),
|
|
312
|
+
vue.createElementVNode(
|
|
313
|
+
"div",
|
|
314
|
+
null,
|
|
315
|
+
vue.toDisplayString($t("ifNoIconUseTheDefaultIcon")),
|
|
316
|
+
1
|
|
317
|
+
/* TEXT */
|
|
318
|
+
)
|
|
319
|
+
])
|
|
320
|
+
])
|
|
344
321
|
]),
|
|
345
322
|
_: 1
|
|
346
323
|
/* STABLE */
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
324
|
+
}, 8, ["model", "columns"]),
|
|
325
|
+
vue.createVNode(
|
|
326
|
+
vue.unref(index$5.HyCutter),
|
|
327
|
+
{
|
|
328
|
+
ref_key: "HyCutterRef",
|
|
329
|
+
ref: HyCutterRef,
|
|
330
|
+
"show-upload": false
|
|
331
|
+
},
|
|
332
|
+
null,
|
|
333
|
+
512
|
|
334
|
+
/* NEED_PATCH */
|
|
335
|
+
)
|
|
336
|
+
]),
|
|
337
|
+
_: 1
|
|
338
|
+
/* STABLE */
|
|
339
|
+
}, 16, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "on-submit", "on-cancel", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
352
340
|
};
|
|
353
341
|
}
|
|
354
342
|
});
|