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
package/lib/api/rule.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../hooks/index.js');
|
|
5
|
+
var useApi = require('../hooks/useApi.js');
|
|
6
|
+
|
|
7
|
+
function assignedApi(params) {
|
|
8
|
+
return new Promise((resolve, reject) => {
|
|
9
|
+
const { api } = useApi.useApi();
|
|
10
|
+
const http = vue.unref(api);
|
|
11
|
+
http.post("rule/assign", params, { isJSON: true }).then((res) => {
|
|
12
|
+
resolve(res);
|
|
13
|
+
}).catch((err) => {
|
|
14
|
+
reject(err);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function ruleDictSaveApi(params) {
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
const { api } = useApi.useApi();
|
|
21
|
+
const http = vue.unref(api);
|
|
22
|
+
http.post("rule/ruleDict/gatherRuleDictSave", params, {
|
|
23
|
+
isJSON: true
|
|
24
|
+
}).then((res) => {
|
|
25
|
+
resolve(res);
|
|
26
|
+
}).catch((err) => {
|
|
27
|
+
reject(err);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.assignedApi = assignedApi;
|
|
33
|
+
exports.ruleDictSaveApi = ruleDictSaveApi;
|
package/lib/api/sypct.js
CHANGED
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
require('../hooks/index.js');
|
|
4
4
|
var vue = require('vue');
|
|
5
|
-
var useLocale = require('../hooks/useLocale.js');
|
|
6
5
|
var useApi = require('../hooks/useApi.js');
|
|
6
|
+
var useLocale = require('../hooks/useLocale.js');
|
|
7
7
|
|
|
8
8
|
function unbindCphmTaskApi(params) {
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
10
|
-
const { t } = useLocale.useLocale();
|
|
11
10
|
const { api } = useApi.useApi();
|
|
12
11
|
const http = vue.unref(api);
|
|
13
12
|
http.post("sypct/task/cphmUnBind", params).then((res) => {
|
|
14
13
|
resolve(res);
|
|
15
14
|
}).catch((res) => {
|
|
16
|
-
reject(new Error(t("interfaceError")));
|
|
15
|
+
reject(new Error(useLocale.$t("interfaceError")));
|
|
17
16
|
});
|
|
18
17
|
});
|
|
19
18
|
}
|
package/lib/api/task.js
CHANGED
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
require('../hooks/index.js');
|
|
4
4
|
var vue = require('vue');
|
|
5
|
-
var useLocale = require('../hooks/useLocale.js');
|
|
6
5
|
var useApi = require('../hooks/useApi.js');
|
|
6
|
+
var useLocale = require('../hooks/useLocale.js');
|
|
7
7
|
|
|
8
8
|
function childTaskFindAllApi(params) {
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
10
|
-
const { t } = useLocale.useLocale();
|
|
11
10
|
const { api } = useApi.useApi();
|
|
12
11
|
const http = vue.unref(api);
|
|
13
12
|
http.post("gdwj/task/taskOrg/childTaskFindAll", params).then((res) => {
|
|
14
13
|
resolve(res);
|
|
15
14
|
}).catch((res) => {
|
|
16
|
-
reject(new Error(t("interfaceError")));
|
|
15
|
+
reject(new Error(useLocale.$t("interfaceError")));
|
|
17
16
|
});
|
|
18
17
|
});
|
|
19
18
|
}
|
|
@@ -29,7 +29,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["on-submit", "onMinimized", "onDialogMousedown"],
|
|
31
31
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
32
|
-
const { t } = useLocale.useLocale();
|
|
33
32
|
const props = __props;
|
|
34
33
|
const emit = __emit;
|
|
35
34
|
const HyCutterRef = vue.useTemplateRef("HyCutterRef");
|
|
@@ -46,18 +45,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
46
45
|
typeName: [
|
|
47
46
|
{
|
|
48
47
|
required: true,
|
|
49
|
-
message: t("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
48
|
+
message: useLocale.$t("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
50
49
|
trigger: "blur"
|
|
51
50
|
}
|
|
52
51
|
]
|
|
53
52
|
});
|
|
54
|
-
const title2 = vue.ref(t("departmentType.addDepartmentType"));
|
|
53
|
+
const title2 = vue.ref(useLocale.$t("departmentType.addDepartmentType"));
|
|
55
54
|
function beforeAvatarUpload2(file) {
|
|
56
55
|
const width = 44;
|
|
57
56
|
const height = 44;
|
|
58
57
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
59
58
|
if (!isLt2M) {
|
|
60
|
-
elementPlus.ElMessage.error(t("departmentType.imageUploadFailedLogoSizeWithin2M"));
|
|
59
|
+
elementPlus.ElMessage.error(useLocale.$t("departmentType.imageUploadFailedLogoSizeWithin2M"));
|
|
61
60
|
return false;
|
|
62
61
|
}
|
|
63
62
|
HyCutterRef.value.open({
|
|
@@ -102,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
102
101
|
if (res.code === 200) {
|
|
103
102
|
emit2("on-submit", hy.form.value.id ? null : 1);
|
|
104
103
|
hy.visible.value = false;
|
|
105
|
-
elementPlus.ElMessage.success(t("videoPlayer.operationSuccessful"));
|
|
104
|
+
elementPlus.ElMessage.success(useLocale.$t("videoPlayer.operationSuccessful"));
|
|
106
105
|
}
|
|
107
106
|
});
|
|
108
107
|
}
|
|
@@ -191,8 +190,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
191
190
|
<div
|
|
192
191
|
class="box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative"
|
|
193
192
|
>
|
|
194
|
-
<span v-if="form.id">{{ t('editDepartmentType') }}</span>
|
|
195
|
-
<span v-else>{{ t('addDepartmentType') }}</span>
|
|
193
|
+
<span v-if="form.id">{{ $t('editDepartmentType') }}</span>
|
|
194
|
+
<span v-else>{{ $t('addDepartmentType') }}</span>
|
|
196
195
|
<div class="text-lg absolute right-4 cursor-pointer text-danger-2">
|
|
197
196
|
<HyIcon
|
|
198
197
|
svg-name="layout-dialog-close-v2"
|
|
@@ -219,7 +218,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
219
218
|
vue.createElementVNode(
|
|
220
219
|
"span",
|
|
221
220
|
{ class: "form-label" },
|
|
222
|
-
vue.toDisplayString(vue.unref(t)("departmentType.departmentIcon")),
|
|
221
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.departmentIcon")),
|
|
223
222
|
1
|
|
224
223
|
/* TEXT */
|
|
225
224
|
)
|
|
@@ -249,7 +248,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
249
248
|
vue.createElementVNode(
|
|
250
249
|
"span",
|
|
251
250
|
{ class: "uploadTips text-center" },
|
|
252
|
-
vue.toDisplayString(vue.unref(t)("departmentType.upload")),
|
|
251
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.upload")),
|
|
253
252
|
1
|
|
254
253
|
/* TEXT */
|
|
255
254
|
)
|
|
@@ -262,21 +261,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
262
261
|
vue.createElementVNode(
|
|
263
262
|
"div",
|
|
264
263
|
null,
|
|
265
|
-
vue.toDisplayString(vue.unref(t)("departmentType.pleaseUploadDepartmentTypeIcon")),
|
|
264
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.pleaseUploadDepartmentTypeIcon")),
|
|
266
265
|
1
|
|
267
266
|
/* TEXT */
|
|
268
267
|
),
|
|
269
268
|
vue.createElementVNode(
|
|
270
269
|
"div",
|
|
271
270
|
null,
|
|
272
|
-
vue.toDisplayString(vue.unref(t)("departmentType.iconSize44px")) + "*44px",
|
|
271
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.iconSize44px")) + "*44px",
|
|
273
272
|
1
|
|
274
273
|
/* TEXT */
|
|
275
274
|
),
|
|
276
275
|
vue.createElementVNode(
|
|
277
276
|
"div",
|
|
278
277
|
null,
|
|
279
|
-
vue.toDisplayString(vue.unref(t)("departmentType.ifNoIconUseTheDefaultIcon")),
|
|
278
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.ifNoIconUseTheDefaultIcon")),
|
|
280
279
|
1
|
|
281
280
|
/* TEXT */
|
|
282
281
|
)
|
|
@@ -291,7 +290,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
291
290
|
vue.createElementVNode(
|
|
292
291
|
"span",
|
|
293
292
|
{ class: "form-label" },
|
|
294
|
-
vue.toDisplayString(vue.unref(t)("departmentType.departmentTypeName")),
|
|
293
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.departmentTypeName")),
|
|
295
294
|
1
|
|
296
295
|
/* TEXT */
|
|
297
296
|
)
|
|
@@ -300,7 +299,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
300
299
|
vue.createVNode(_component_el_input, {
|
|
301
300
|
modelValue: vue.unref(form).typeName,
|
|
302
301
|
"onUpdate:modelValue": ($event) => vue.unref(form).typeName = $event,
|
|
303
|
-
placeholder: vue.unref(t)("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
302
|
+
placeholder: vue.unref(useLocale.$t)("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
304
303
|
clearable: ""
|
|
305
304
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
306
305
|
]),
|
|
@@ -319,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
319
318
|
}, {
|
|
320
319
|
default: vue.withCtx(() => [
|
|
321
320
|
vue.createTextVNode(
|
|
322
|
-
vue.toDisplayString(vue.unref(t)("departmentType.close")),
|
|
321
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.close")),
|
|
323
322
|
1
|
|
324
323
|
/* TEXT */
|
|
325
324
|
)
|
|
@@ -334,7 +333,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
334
333
|
}, {
|
|
335
334
|
default: vue.withCtx(() => [
|
|
336
335
|
vue.createTextVNode(
|
|
337
|
-
vue.toDisplayString(vue.unref(t)("departmentType.save")),
|
|
336
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("departmentType.save")),
|
|
338
337
|
1
|
|
339
338
|
/* TEXT */
|
|
340
339
|
)
|
|
@@ -365,8 +364,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
365
364
|
};
|
|
366
365
|
}
|
|
367
366
|
});
|
|
368
|
-
import "./style/addDepartmentType.scss?vue&type=style&index=0&src=
|
|
367
|
+
import "./style/addDepartmentType.scss?vue&type=style&index=0&src=4cb686f4&scoped=4cb686f4&lang.css";
|
|
369
368
|
|
|
370
|
-
var componnet = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
369
|
+
var componnet = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4cb686f4"]]);
|
|
371
370
|
|
|
372
371
|
exports.default = componnet;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
.emptyHead {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
color: rgba(var(--hy-auxiliary), 1);
|
|
3
|
+
height: 44px;
|
|
4
|
+
width: 44px;
|
|
5
|
+
background: var(--item-background-main-color);
|
|
6
|
+
box-shadow: 0 0 10px 2px var(--background-auxiliary-color);
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
border: 1px solid #454b5f;
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
span.uploadTips {
|
|
12
|
+
color: #fff;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 50%;
|
|
15
|
+
left: 50%;
|
|
4
16
|
width: 44px;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
span.uploadTips {
|
|
12
|
-
color: #fff;
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 50%;
|
|
15
|
-
left: 50%;
|
|
16
|
-
width: 44px;
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
line-height: 20px;
|
|
19
|
-
transform: translate(-50%, -50%);
|
|
20
|
-
opacity: 0;
|
|
21
|
-
transition: 0.5s;
|
|
22
|
-
}
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
transform: translate(-50%, -50%);
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transition: 0.5s;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
23
|
+
}
|
|
24
|
+
.emptyHead:hover {
|
|
25
|
+
img {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
span.uploadTips {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|