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
package/dist/tailwind.css
CHANGED
|
@@ -293,6 +293,10 @@
|
|
|
293
293
|
z-index: 600;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
.float-left {
|
|
297
|
+
float: left;
|
|
298
|
+
}
|
|
299
|
+
|
|
296
300
|
.\!my-4 {
|
|
297
301
|
margin-top: 1rem !important;
|
|
298
302
|
margin-bottom: 1rem !important;
|
|
@@ -333,6 +337,11 @@
|
|
|
333
337
|
margin-bottom: 0.5rem;
|
|
334
338
|
}
|
|
335
339
|
|
|
340
|
+
.my-\[10px\] {
|
|
341
|
+
margin-top: 10px;
|
|
342
|
+
margin-bottom: 10px;
|
|
343
|
+
}
|
|
344
|
+
|
|
336
345
|
.\!ml-auto {
|
|
337
346
|
margin-left: auto !important;
|
|
338
347
|
}
|
|
@@ -365,6 +374,10 @@
|
|
|
365
374
|
margin-bottom: 1rem;
|
|
366
375
|
}
|
|
367
376
|
|
|
377
|
+
.mb-\[10px\] {
|
|
378
|
+
margin-bottom: 10px;
|
|
379
|
+
}
|
|
380
|
+
|
|
368
381
|
.mb-\[14px\] {
|
|
369
382
|
margin-bottom: 14px;
|
|
370
383
|
}
|
|
@@ -453,6 +466,10 @@
|
|
|
453
466
|
margin-right: 1.25rem;
|
|
454
467
|
}
|
|
455
468
|
|
|
469
|
+
.mr-\[4px\] {
|
|
470
|
+
margin-right: 4px;
|
|
471
|
+
}
|
|
472
|
+
|
|
456
473
|
.mt-0\.5 {
|
|
457
474
|
margin-top: 0.125rem;
|
|
458
475
|
}
|
|
@@ -477,6 +494,10 @@
|
|
|
477
494
|
margin-top: 1rem;
|
|
478
495
|
}
|
|
479
496
|
|
|
497
|
+
.mt-5 {
|
|
498
|
+
margin-top: 1.25rem;
|
|
499
|
+
}
|
|
500
|
+
|
|
480
501
|
.mt-\[10px\] {
|
|
481
502
|
margin-top: 10px;
|
|
482
503
|
}
|
|
@@ -594,6 +615,10 @@
|
|
|
594
615
|
height: 80px !important;
|
|
595
616
|
}
|
|
596
617
|
|
|
618
|
+
.\!h-full {
|
|
619
|
+
height: 100% !important;
|
|
620
|
+
}
|
|
621
|
+
|
|
597
622
|
.h-0 {
|
|
598
623
|
height: 0px;
|
|
599
624
|
}
|
|
@@ -662,6 +687,10 @@
|
|
|
662
687
|
height: 280px;
|
|
663
688
|
}
|
|
664
689
|
|
|
690
|
+
.h-\[30\%\] {
|
|
691
|
+
height: 30%;
|
|
692
|
+
}
|
|
693
|
+
|
|
665
694
|
.h-\[30px\] {
|
|
666
695
|
height: 30px;
|
|
667
696
|
}
|
|
@@ -690,6 +719,10 @@
|
|
|
690
719
|
height: 38px;
|
|
691
720
|
}
|
|
692
721
|
|
|
722
|
+
.h-\[400px\] {
|
|
723
|
+
height: 400px;
|
|
724
|
+
}
|
|
725
|
+
|
|
693
726
|
.h-\[40px\] {
|
|
694
727
|
height: 40px;
|
|
695
728
|
}
|
|
@@ -714,6 +747,10 @@
|
|
|
714
747
|
height: 500px;
|
|
715
748
|
}
|
|
716
749
|
|
|
750
|
+
.h-\[50px\] {
|
|
751
|
+
height: 50px;
|
|
752
|
+
}
|
|
753
|
+
|
|
717
754
|
.h-\[52px\] {
|
|
718
755
|
height: 52px;
|
|
719
756
|
}
|
|
@@ -866,6 +903,10 @@
|
|
|
866
903
|
width: 50%;
|
|
867
904
|
}
|
|
868
905
|
|
|
906
|
+
.w-14 {
|
|
907
|
+
width: 3.5rem;
|
|
908
|
+
}
|
|
909
|
+
|
|
869
910
|
.w-2 {
|
|
870
911
|
width: 0.5rem;
|
|
871
912
|
}
|
|
@@ -958,6 +999,10 @@
|
|
|
958
999
|
width: 68px;
|
|
959
1000
|
}
|
|
960
1001
|
|
|
1002
|
+
.w-\[70px\] {
|
|
1003
|
+
width: 70px;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
961
1006
|
.w-\[80px\] {
|
|
962
1007
|
width: 80px;
|
|
963
1008
|
}
|
|
@@ -1002,6 +1047,10 @@
|
|
|
1002
1047
|
flex-shrink: 0;
|
|
1003
1048
|
}
|
|
1004
1049
|
|
|
1050
|
+
.shrink-0 {
|
|
1051
|
+
flex-shrink: 0;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1005
1054
|
.flex-grow {
|
|
1006
1055
|
flex-grow: 1;
|
|
1007
1056
|
}
|
|
@@ -1168,12 +1217,20 @@
|
|
|
1168
1217
|
overflow-y: auto;
|
|
1169
1218
|
}
|
|
1170
1219
|
|
|
1220
|
+
.overflow-x-hidden {
|
|
1221
|
+
overflow-x: hidden;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1171
1224
|
.truncate {
|
|
1172
1225
|
overflow: hidden;
|
|
1173
1226
|
text-overflow: ellipsis;
|
|
1174
1227
|
white-space: nowrap;
|
|
1175
1228
|
}
|
|
1176
1229
|
|
|
1230
|
+
.overflow-ellipsis {
|
|
1231
|
+
text-overflow: ellipsis;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1177
1234
|
.whitespace-nowrap {
|
|
1178
1235
|
white-space: nowrap;
|
|
1179
1236
|
}
|
|
@@ -1218,6 +1275,10 @@
|
|
|
1218
1275
|
border-radius: 0.125rem;
|
|
1219
1276
|
}
|
|
1220
1277
|
|
|
1278
|
+
.rounded-xl {
|
|
1279
|
+
border-radius: 0.75rem;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1221
1282
|
.border {
|
|
1222
1283
|
border-width: 1px;
|
|
1223
1284
|
}
|
|
@@ -1238,10 +1299,6 @@
|
|
|
1238
1299
|
border-bottom-width: 1px;
|
|
1239
1300
|
}
|
|
1240
1301
|
|
|
1241
|
-
.border-l {
|
|
1242
|
-
border-left-width: 1px;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
1302
|
.border-r {
|
|
1246
1303
|
border-right-width: 1px;
|
|
1247
1304
|
}
|
|
@@ -1343,10 +1400,6 @@
|
|
|
1343
1400
|
background-color: rgba(var(--hy-success),0.28);
|
|
1344
1401
|
}
|
|
1345
1402
|
|
|
1346
|
-
.bg-\[rgba\(var\(--hy-theme\)\2c 0\.2\)\] {
|
|
1347
|
-
background-color: rgba(var(--hy-theme),0.2);
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
1403
|
.bg-\[rgba\(var\(--hy-theme\)\2c 0\.28\)\] {
|
|
1351
1404
|
background-color: rgba(var(--hy-theme),0.28);
|
|
1352
1405
|
}
|
|
@@ -1455,6 +1508,11 @@
|
|
|
1455
1508
|
padding-right: 0px;
|
|
1456
1509
|
}
|
|
1457
1510
|
|
|
1511
|
+
.px-1 {
|
|
1512
|
+
padding-left: 0.25rem;
|
|
1513
|
+
padding-right: 0.25rem;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1458
1516
|
.px-1\.5 {
|
|
1459
1517
|
padding-left: 0.375rem;
|
|
1460
1518
|
padding-right: 0.375rem;
|
|
@@ -1500,6 +1558,11 @@
|
|
|
1500
1558
|
padding-right: 14px;
|
|
1501
1559
|
}
|
|
1502
1560
|
|
|
1561
|
+
.px-\[15px\] {
|
|
1562
|
+
padding-left: 15px;
|
|
1563
|
+
padding-right: 15px;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1503
1566
|
.px-\[34px\] {
|
|
1504
1567
|
padding-left: 34px;
|
|
1505
1568
|
padding-right: 34px;
|
|
@@ -1659,6 +1722,10 @@
|
|
|
1659
1722
|
padding-top: 0.75rem;
|
|
1660
1723
|
}
|
|
1661
1724
|
|
|
1725
|
+
.pt-4 {
|
|
1726
|
+
padding-top: 1rem;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1662
1729
|
.pt-5 {
|
|
1663
1730
|
padding-top: 1.25rem;
|
|
1664
1731
|
}
|
|
@@ -1743,6 +1810,10 @@
|
|
|
1743
1810
|
line-height: 32px;
|
|
1744
1811
|
}
|
|
1745
1812
|
|
|
1813
|
+
.leading-\[50px\] {
|
|
1814
|
+
line-height: 50px;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1746
1817
|
.\!text-danger-2 {
|
|
1747
1818
|
--tw-text-opacity: 1 !important;
|
|
1748
1819
|
color: rgb(var(--hy-danger-2), var(--tw-text-opacity, 1)) !important;
|
|
@@ -1801,6 +1872,12 @@
|
|
|
1801
1872
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1802
1873
|
}
|
|
1803
1874
|
|
|
1875
|
+
.shadow-\[0_0_10px_0_rgb\(var\(--hy-background\)\)\] {
|
|
1876
|
+
--tw-shadow: 0 0 10px 0 rgb(var(--hy-background));
|
|
1877
|
+
--tw-shadow-colored: 0 0 10px 0 var(--tw-shadow-color);
|
|
1878
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1804
1881
|
.shadow-\[0_0_4px_0\] {
|
|
1805
1882
|
--tw-shadow: 0 0 4px 0;
|
|
1806
1883
|
--tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);
|
|
@@ -1813,6 +1890,12 @@
|
|
|
1813
1890
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1814
1891
|
}
|
|
1815
1892
|
|
|
1893
|
+
.shadow-\[0px_0px_6px_0px_rgba\(var\(--hy-background-3\)\2c 1\)\] {
|
|
1894
|
+
--tw-shadow: 0px 0px 6px 0px rgba(var(--hy-background-3),1);
|
|
1895
|
+
--tw-shadow-colored: 0px 0px 6px 0px var(--tw-shadow-color);
|
|
1896
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1816
1899
|
.shadow-success {
|
|
1817
1900
|
--tw-shadow-color: rgb(var(--hy-success), 1);
|
|
1818
1901
|
--tw-shadow: var(--tw-shadow-colored);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import '../hooks/index.mjs';
|
|
2
|
+
import { unref } from 'vue';
|
|
3
|
+
import { useApi } from '../hooks/useApi.mjs';
|
|
4
|
+
|
|
5
|
+
function reverseGeocodingApi(params) {
|
|
6
|
+
const { api } = useApi();
|
|
7
|
+
const http = unref(api);
|
|
8
|
+
return http.post("/common/reverseGeocoding", params, {
|
|
9
|
+
isJSON: true
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function commonReverseGeocodingApi(params) {
|
|
13
|
+
const { api } = useApi();
|
|
14
|
+
const http = unref(api);
|
|
15
|
+
return http.post("/common/reverseGeocoding", params, { isJSON: true });
|
|
16
|
+
}
|
|
17
|
+
function commonWarningTypeApi(params) {
|
|
18
|
+
const { api } = useApi();
|
|
19
|
+
const http = unref(api);
|
|
20
|
+
return http.post("/common/warningType", params);
|
|
21
|
+
}
|
|
22
|
+
function commonDeviceFaultCodeApi(params) {
|
|
23
|
+
const { api } = useApi();
|
|
24
|
+
const http = unref(api);
|
|
25
|
+
return http.post("/common/deviceFaultCode", params);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { commonDeviceFaultCodeApi, commonReverseGeocodingApi, commonWarningTypeApi, reverseGeocodingApi };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick,
|
|
1
|
+
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createVNode, createElementVNode, withDirectives, withModifiers, vShow, toDisplayString } from 'vue';
|
|
2
2
|
import { useDialog, useDialogIsEdit } from '../../hooks/useDialog.mjs';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../../components/index.mjs';
|
|
5
|
-
import { ElMessage } from 'element-plus';
|
|
5
|
+
import { ElMessage, ElUpload, ElImage } from 'element-plus';
|
|
6
6
|
import { saveApi } from '../../api/index.mjs';
|
|
7
7
|
import '../../utils/index.mjs';
|
|
8
8
|
import * as index from './locale/index.mjs';
|
|
@@ -60,7 +60,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
function beforeAvatarUpload2(file) {
|
|
61
61
|
const width = 44;
|
|
62
62
|
const height = 44;
|
|
63
|
-
const _this = this;
|
|
64
63
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
65
64
|
if (!isLt2M) {
|
|
66
65
|
ElMessage.error($t$1("imageUploadFailedLogoSizeWithin2M"));
|
|
@@ -119,7 +118,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
118
|
ElMessage.success($t$1("operationSuccessful"));
|
|
120
119
|
nextTick(() => {
|
|
121
120
|
emit("on-submit", hy.formModel.value.id ? null : 1);
|
|
122
|
-
currentBus.emit("departmentTypeOperation", {
|
|
121
|
+
currentBus.value.emit("departmentTypeOperation", {
|
|
123
122
|
method: "onSubmit",
|
|
124
123
|
param: hy.formModel.value.id ? null : 1
|
|
125
124
|
});
|
|
@@ -220,131 +219,120 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
219
|
minimizedShow
|
|
221
220
|
});
|
|
222
221
|
return (_ctx, _cache) => {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
null,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
]
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
class: "w-[60px] h-[60px]",
|
|
283
|
-
src: unref(formModel).icon
|
|
284
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
285
|
-
key: 1,
|
|
286
|
-
"svg-name": "ops-file-empty-head",
|
|
287
|
-
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
288
|
-
})),
|
|
289
|
-
createElementVNode(
|
|
290
|
-
"span",
|
|
291
|
-
{ class: "uploadTips text-center" },
|
|
292
|
-
toDisplayString($t$1("upload")),
|
|
293
|
-
1
|
|
294
|
-
/* TEXT */
|
|
295
|
-
)
|
|
296
|
-
])
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
/* STABLE */
|
|
300
|
-
}, 8, ["before-upload", "http-request"]),
|
|
301
|
-
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
222
|
+
return openBlock(), createBlock(unref(HyDialog), mergeProps({
|
|
223
|
+
ref_key: "HyDialogRef",
|
|
224
|
+
ref: HyDialogRef,
|
|
225
|
+
modelValue: unref(dialogVisible),
|
|
226
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
227
|
+
loading: unref(loading),
|
|
228
|
+
"onUpdate:loading": ($event) => isRef(loading) ? loading.value = $event : null,
|
|
229
|
+
"if-shrink": true,
|
|
230
|
+
width: "310px"
|
|
231
|
+
}, _ctx.$attrs, {
|
|
232
|
+
title: unref(formModel).id ? $t$1("editDepartmentType") : $t$1("addDepartmentType"),
|
|
233
|
+
"on-submit": unref(onSubmit),
|
|
234
|
+
"on-cancel": unref(onClose),
|
|
235
|
+
"on-close": unref(onClose),
|
|
236
|
+
"operate-class": "w-full justify-center",
|
|
237
|
+
onOnMinimized: unref(onMinimized),
|
|
238
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
239
|
+
}), {
|
|
240
|
+
default: withCtx(() => [
|
|
241
|
+
createVNode(unref(HyForm), {
|
|
242
|
+
ref_key: "formRef",
|
|
243
|
+
ref: formRef,
|
|
244
|
+
"column-num": 1,
|
|
245
|
+
model: unref(formModel),
|
|
246
|
+
columns: unref(formColumns)
|
|
247
|
+
}, {
|
|
248
|
+
companyNameSlot: withCtx(() => [
|
|
249
|
+
createElementVNode("div", { class: "flex flex-row departmentTypeOperation" }, [
|
|
250
|
+
createVNode(unref(ElUpload), {
|
|
251
|
+
class: "w-[80px] flex items-center justify-center upload_box",
|
|
252
|
+
accept: ".png,.jpg,.gif",
|
|
253
|
+
"before-upload": unref(beforeAvatarUpload),
|
|
254
|
+
"http-request": unref(handleHttpRequestImg),
|
|
255
|
+
action: "",
|
|
256
|
+
"show-file-list": false
|
|
257
|
+
}, {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
withDirectives(createElementVNode("div", {
|
|
260
|
+
class: "delete_box flex items-center justify-center",
|
|
261
|
+
onClick: withModifiers(($event) => unref(setHeadImg)(null), ["stop"])
|
|
262
|
+
}, [
|
|
263
|
+
createVNode(unref(HyIcon), {
|
|
264
|
+
"svg-name": "ops-button-delete",
|
|
265
|
+
class: "svg_box"
|
|
266
|
+
})
|
|
267
|
+
], 8, ["onClick"]), [
|
|
268
|
+
[vShow, unref(formModel).icon]
|
|
269
|
+
]),
|
|
270
|
+
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
271
|
+
unref(formModel).icon ? (openBlock(), createBlock(unref(ElImage), {
|
|
272
|
+
key: 0,
|
|
273
|
+
fit: "contain",
|
|
274
|
+
class: "w-[60px] h-[60px]",
|
|
275
|
+
src: unref(formModel).icon
|
|
276
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
277
|
+
key: 1,
|
|
278
|
+
"svg-name": "ops-file-empty-head",
|
|
279
|
+
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
280
|
+
})),
|
|
302
281
|
createElementVNode(
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
toDisplayString($t$1("
|
|
306
|
-
1
|
|
307
|
-
/* TEXT */
|
|
308
|
-
),
|
|
309
|
-
createElementVNode(
|
|
310
|
-
"div",
|
|
311
|
-
null,
|
|
312
|
-
toDisplayString($t$1("iconSize44px")) + "*44px",
|
|
313
|
-
1
|
|
314
|
-
/* TEXT */
|
|
315
|
-
),
|
|
316
|
-
createElementVNode(
|
|
317
|
-
"div",
|
|
318
|
-
null,
|
|
319
|
-
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
282
|
+
"span",
|
|
283
|
+
{ class: "uploadTips text-center" },
|
|
284
|
+
toDisplayString($t$1("upload")),
|
|
320
285
|
1
|
|
321
286
|
/* TEXT */
|
|
322
287
|
)
|
|
323
288
|
])
|
|
324
|
-
])
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
/* STABLE */
|
|
292
|
+
}, 8, ["before-upload", "http-request"]),
|
|
293
|
+
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
294
|
+
createElementVNode(
|
|
295
|
+
"div",
|
|
296
|
+
null,
|
|
297
|
+
toDisplayString($t$1("pleaseUploadDepartmentTypeIcon")),
|
|
298
|
+
1
|
|
299
|
+
/* TEXT */
|
|
300
|
+
),
|
|
301
|
+
createElementVNode(
|
|
302
|
+
"div",
|
|
303
|
+
null,
|
|
304
|
+
toDisplayString($t$1("iconSize44px")) + "*44px",
|
|
305
|
+
1
|
|
306
|
+
/* TEXT */
|
|
307
|
+
),
|
|
308
|
+
createElementVNode(
|
|
309
|
+
"div",
|
|
310
|
+
null,
|
|
311
|
+
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
312
|
+
1
|
|
313
|
+
/* TEXT */
|
|
314
|
+
)
|
|
315
|
+
])
|
|
316
|
+
])
|
|
340
317
|
]),
|
|
341
318
|
_: 1
|
|
342
319
|
/* STABLE */
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
320
|
+
}, 8, ["model", "columns"]),
|
|
321
|
+
createVNode(
|
|
322
|
+
unref(HyCutter),
|
|
323
|
+
{
|
|
324
|
+
ref_key: "HyCutterRef",
|
|
325
|
+
ref: HyCutterRef,
|
|
326
|
+
"show-upload": false
|
|
327
|
+
},
|
|
328
|
+
null,
|
|
329
|
+
512
|
|
330
|
+
/* NEED_PATCH */
|
|
331
|
+
)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
/* STABLE */
|
|
335
|
+
}, 16, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "on-submit", "on-cancel", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
348
336
|
};
|
|
349
337
|
}
|
|
350
338
|
});
|