hy-dispatch-ui-v3 0.2.61 → 0.2.63
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 +70 -5
- package/es/api/device.mjs +19 -0
- package/es/api/index.mjs +2 -1
- package/es/api/sypct.mjs +19 -0
- package/es/api/task.mjs +19 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +7 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +650 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +366 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +101 -0
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/es/bussiness/index.mjs +1 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
- package/es/components/hyAudioPlayer/index.mjs +1 -0
- package/es/components/hyAudioPlayer/js/index.mjs +5 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +23 -3
- package/es/components/hyBatchUploadDialog/index.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +3 -2
- package/es/components/hyButton/index.mjs +1 -0
- package/es/components/hyButton/style/button.scss +10 -3
- package/es/components/hyConfigProvider/configProvider.vue.mjs +6 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +6 -2
- package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
- package/es/components/hyConfirmDialog/index.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +5 -2
- package/es/components/hyCutter/index.mjs +1 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyDatePicker/index.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +98 -14
- package/es/components/hyDialog/index.mjs +1 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +6 -1
- package/es/components/hyForm/form.vue.mjs +3 -0
- package/es/components/hyForm/index.mjs +1 -0
- package/es/components/hyForm/js/index.mjs +3 -1
- package/es/components/hyForm/js/useAppForm.mjs +4 -2
- package/es/components/hyIcon/icon.vue.mjs +2 -1
- package/es/components/hyIcon/index.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyIconBox/index.mjs +1 -0
- package/es/components/hyInput/index.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +3 -1
- package/es/components/hyInput/inputSearch.vue.mjs +2 -1
- package/es/components/hyLoading/index.mjs +41 -0
- package/es/components/hyMap/index.mjs +1 -0
- package/es/components/hyMap/js/index.mjs +82 -0
- package/es/components/hyMap/map.vue.mjs +11 -3
- package/es/components/hyMenu/index.mjs +1 -0
- package/es/components/hyMenu/menu.vue.mjs +4 -0
- package/es/components/hyNoPermissions/index.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
- package/es/components/hyNoPermissionsMap/index.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
- package/es/components/hyOrgCascader/index.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +2 -0
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
- package/es/components/hyRadioGroup/index.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
- package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -2
- package/es/components/hySearch/index.mjs +1 -0
- package/es/components/hySearch/js/index.mjs +4 -2
- package/es/components/hySearch/js/useAppSearch.mjs +4 -2
- package/es/components/hySearch/search.vue.mjs +3 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +7 -2
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +10 -10
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +5 -2
- package/es/components/hyTable/table.vue.mjs +11 -1
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- package/es/components/hyTableForm/batchTableForm.vue.mjs +41 -61
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +13 -27
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +12 -4
- package/es/components/hyTimePicker/index.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
- package/es/components/hyTooltip/index.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
- package/es/components/hyTree/index.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +15 -2
- package/es/components/hyTree/tree.vue.mjs +9 -4
- package/es/components/hyUserAvatar/index.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/index.mjs +1 -0
- package/es/components/hyVideoPlayer/js/index.mjs +7 -2
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
- package/es/components/index.mjs +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +6 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useMapConfig.mjs +18 -0
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +8 -0
- package/es/locale/en.mjs +1 -2
- package/es/locale/zh_CN.mjs +1 -2
- package/es/make-installer.mjs +1 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/es/style/element/hy-element.scss +10 -1
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +6 -1
- package/es/utils/handler.mjs +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/input.mjs +1 -0
- package/es/utils/is.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +3 -2
- package/es/utils/map/hook/gaode.mjs +2 -2
- package/es/utils/map/hook/leafletjs.mjs +7 -1
- package/es/utils/map/index.mjs +12 -0
- package/es/utils/map/js/webgis.mjs +5 -2
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +21 -0
- package/lib/api/index.js +2 -1
- package/lib/api/sypct.js +21 -0
- package/lib/api/task.js +21 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +12 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +652 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +370 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +105 -0
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/lib/bussiness/index.js +2 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
- package/lib/components/hyAudioPlayer/index.js +1 -0
- package/lib/components/hyAudioPlayer/js/index.js +5 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +23 -3
- package/lib/components/hyBatchUploadDialog/index.js +1 -0
- package/lib/components/hyButton/button.vue.js +2 -1
- package/lib/components/hyButton/index.js +1 -0
- package/lib/components/hyButton/style/button.scss +10 -3
- package/lib/components/hyConfigProvider/configProvider.vue.js +5 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +6 -2
- package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
- package/lib/components/hyConfirmDialog/index.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +3 -0
- package/lib/components/hyCutter/index.js +1 -0
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyDatePicker/index.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +96 -12
- package/lib/components/hyDialog/index.js +1 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
- package/lib/components/hyForm/cpns/locationSelect.vue.js +6 -1
- package/lib/components/hyForm/form.vue.js +3 -0
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/index.js +3 -1
- package/lib/components/hyForm/js/useAppForm.js +3 -1
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIcon/index.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyIconBox/index.js +1 -0
- package/lib/components/hyInput/index.js +1 -0
- package/lib/components/hyInput/input.vue.js +2 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyLoading/index.js +47 -0
- package/lib/components/hyMap/index.js +1 -0
- package/lib/components/hyMap/js/index.js +82 -0
- package/lib/components/hyMap/map.vue.js +11 -3
- package/lib/components/hyMenu/index.js +1 -0
- package/lib/components/hyMenu/menu.vue.js +4 -0
- package/lib/components/hyNoPermissions/index.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
- package/lib/components/hyNoPermissionsMap/index.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
- package/lib/components/hyOrgCascader/index.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +2 -0
- package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
- package/lib/components/hyRadioGroup/index.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +18 -0
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hySearch/js/index.js +3 -1
- package/lib/components/hySearch/js/useAppSearch.js +4 -2
- package/lib/components/hySearch/search.vue.js +3 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -1
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +9 -9
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +4 -1
- package/lib/components/hyTable/table.vue.js +11 -1
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +42 -62
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +12 -27
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +19 -11
- package/lib/components/hyTimePicker/index.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
- package/lib/components/hyTooltip/index.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +2 -0
- package/lib/components/hyTree/index.js +1 -0
- package/lib/components/hyTree/js/index.js +14 -1
- package/lib/components/hyTree/tree.vue.js +9 -4
- package/lib/components/hyUserAvatar/index.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
- package/lib/components/hyVideoPlayer/index.js +1 -0
- package/lib/components/hyVideoPlayer/js/index.js +7 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
- package/lib/components/index.js +56 -53
- package/lib/hooks/index.js +3 -0
- package/lib/hooks/useGlobalConfig.js +5 -0
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useMapConfig.js +21 -0
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +73 -59
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/lib/style/element/hy-element.scss +10 -1
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +5 -0
- package/lib/utils/handler.js +2 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/input.js +1 -0
- package/lib/utils/is.js +1 -0
- package/lib/utils/map/hook/bigMap.js +3 -2
- package/lib/utils/map/hook/gaode.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +7 -1
- package/lib/utils/map/index.js +12 -0
- package/lib/utils/map/js/webgis.js +5 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
package/dist/tailwind.css
CHANGED
|
@@ -295,6 +295,11 @@
|
|
|
295
295
|
margin-bottom: 0px;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
.my-1 {
|
|
299
|
+
margin-top: 0.25rem;
|
|
300
|
+
margin-bottom: 0.25rem;
|
|
301
|
+
}
|
|
302
|
+
|
|
298
303
|
.my-1\.5 {
|
|
299
304
|
margin-top: 0.375rem;
|
|
300
305
|
margin-bottom: 0.375rem;
|
|
@@ -360,6 +365,10 @@
|
|
|
360
365
|
margin-left: 0.5rem;
|
|
361
366
|
}
|
|
362
367
|
|
|
368
|
+
.ml-2\.5 {
|
|
369
|
+
margin-left: 0.625rem;
|
|
370
|
+
}
|
|
371
|
+
|
|
363
372
|
.ml-3 {
|
|
364
373
|
margin-left: 0.75rem;
|
|
365
374
|
}
|
|
@@ -368,6 +377,14 @@
|
|
|
368
377
|
margin-left: 1rem;
|
|
369
378
|
}
|
|
370
379
|
|
|
380
|
+
.ml-5 {
|
|
381
|
+
margin-left: 1.25rem;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ml-\[10px\] {
|
|
385
|
+
margin-left: 10px;
|
|
386
|
+
}
|
|
387
|
+
|
|
371
388
|
.ml-\[4px\] {
|
|
372
389
|
margin-left: 4px;
|
|
373
390
|
}
|
|
@@ -508,6 +525,10 @@
|
|
|
508
525
|
height: 24px !important;
|
|
509
526
|
}
|
|
510
527
|
|
|
528
|
+
.\!h-\[26px\] {
|
|
529
|
+
height: 26px !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
511
532
|
.\!h-\[40px\] {
|
|
512
533
|
height: 40px !important;
|
|
513
534
|
}
|
|
@@ -572,6 +593,10 @@
|
|
|
572
593
|
height: 24px;
|
|
573
594
|
}
|
|
574
595
|
|
|
596
|
+
.h-\[26px\] {
|
|
597
|
+
height: 26px;
|
|
598
|
+
}
|
|
599
|
+
|
|
575
600
|
.h-\[280px\] {
|
|
576
601
|
height: 280px;
|
|
577
602
|
}
|
|
@@ -588,6 +613,10 @@
|
|
|
588
613
|
height: 364px;
|
|
589
614
|
}
|
|
590
615
|
|
|
616
|
+
.h-\[365px\] {
|
|
617
|
+
height: 365px;
|
|
618
|
+
}
|
|
619
|
+
|
|
591
620
|
.h-\[36px\] {
|
|
592
621
|
height: 36px;
|
|
593
622
|
}
|
|
@@ -624,6 +653,10 @@
|
|
|
624
653
|
height: 54px;
|
|
625
654
|
}
|
|
626
655
|
|
|
656
|
+
.h-\[60px\] {
|
|
657
|
+
height: 60px;
|
|
658
|
+
}
|
|
659
|
+
|
|
627
660
|
.h-\[96vh\] {
|
|
628
661
|
height: 96vh;
|
|
629
662
|
}
|
|
@@ -632,6 +665,10 @@
|
|
|
632
665
|
height: 100%;
|
|
633
666
|
}
|
|
634
667
|
|
|
668
|
+
.max-h-\[400px\] {
|
|
669
|
+
max-height: 400px;
|
|
670
|
+
}
|
|
671
|
+
|
|
635
672
|
.max-h-\[500px\] {
|
|
636
673
|
max-height: 500px;
|
|
637
674
|
}
|
|
@@ -700,6 +737,10 @@
|
|
|
700
737
|
width: 24px !important;
|
|
701
738
|
}
|
|
702
739
|
|
|
740
|
+
.\!w-\[26px\] {
|
|
741
|
+
width: 26px !important;
|
|
742
|
+
}
|
|
743
|
+
|
|
703
744
|
.\!w-\[37\%\] {
|
|
704
745
|
width: 37% !important;
|
|
705
746
|
}
|
|
@@ -772,6 +813,10 @@
|
|
|
772
813
|
width: 22px;
|
|
773
814
|
}
|
|
774
815
|
|
|
816
|
+
.w-\[26px\] {
|
|
817
|
+
width: 26px;
|
|
818
|
+
}
|
|
819
|
+
|
|
775
820
|
.w-\[30px\] {
|
|
776
821
|
width: 30px;
|
|
777
822
|
}
|
|
@@ -816,6 +861,10 @@
|
|
|
816
861
|
min-width: 120px !important;
|
|
817
862
|
}
|
|
818
863
|
|
|
864
|
+
.min-w-\[120px\] {
|
|
865
|
+
min-width: 120px;
|
|
866
|
+
}
|
|
867
|
+
|
|
819
868
|
.min-w-full {
|
|
820
869
|
min-width: 100%;
|
|
821
870
|
}
|
|
@@ -828,6 +877,10 @@
|
|
|
828
877
|
max-width: 300px;
|
|
829
878
|
}
|
|
830
879
|
|
|
880
|
+
.max-w-full {
|
|
881
|
+
max-width: 100%;
|
|
882
|
+
}
|
|
883
|
+
|
|
831
884
|
.flex-1 {
|
|
832
885
|
flex: 1 1 0%;
|
|
833
886
|
}
|
|
@@ -1259,6 +1312,11 @@
|
|
|
1259
1312
|
padding-bottom: 0.25rem;
|
|
1260
1313
|
}
|
|
1261
1314
|
|
|
1315
|
+
.py-2 {
|
|
1316
|
+
padding-top: 0.5rem;
|
|
1317
|
+
padding-bottom: 0.5rem;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1262
1320
|
.py-4 {
|
|
1263
1321
|
padding-top: 1rem;
|
|
1264
1322
|
padding-bottom: 1rem;
|
|
@@ -1289,6 +1347,10 @@
|
|
|
1289
1347
|
padding-bottom: 27px;
|
|
1290
1348
|
}
|
|
1291
1349
|
|
|
1350
|
+
.pl-2\.5 {
|
|
1351
|
+
padding-left: 0.625rem;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1292
1354
|
.pl-3 {
|
|
1293
1355
|
padding-left: 0.75rem;
|
|
1294
1356
|
}
|
|
@@ -1413,6 +1475,14 @@
|
|
|
1413
1475
|
line-height: 20px;
|
|
1414
1476
|
}
|
|
1415
1477
|
|
|
1478
|
+
.leading-\[28px\] {
|
|
1479
|
+
line-height: 28px;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.leading-\[32px\] {
|
|
1483
|
+
line-height: 32px;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1416
1486
|
.text-\[var\(--hy-el-text-color-disabled\)\] {
|
|
1417
1487
|
color: var(--hy-el-text-color-disabled);
|
|
1418
1488
|
}
|
|
@@ -1422,11 +1492,6 @@
|
|
|
1422
1492
|
color: rgb(var(--hy-auxiliary), var(--tw-text-opacity, 1));
|
|
1423
1493
|
}
|
|
1424
1494
|
|
|
1425
|
-
.text-danger {
|
|
1426
|
-
--tw-text-opacity: 1;
|
|
1427
|
-
color: rgb(var(--hy-danger), var(--tw-text-opacity, 1));
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
1495
|
.text-danger-2 {
|
|
1431
1496
|
--tw-text-opacity: 1;
|
|
1432
1497
|
color: rgb(var(--hy-danger-2), var(--tw-text-opacity, 1));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../hooks/index.mjs';
|
|
2
|
+
import { unref } from 'vue';
|
|
3
|
+
import { useLocale } from '../hooks/useLocale.mjs';
|
|
4
|
+
import { useApi } from '../hooks/useApi.mjs';
|
|
5
|
+
|
|
6
|
+
function detailApi(deviceId) {
|
|
7
|
+
return new Promise((resolve, reject) => {
|
|
8
|
+
const { t } = useLocale();
|
|
9
|
+
const { api } = useApi();
|
|
10
|
+
const http = unref(api);
|
|
11
|
+
http.post("device/detail", { deviceId }).then((res) => {
|
|
12
|
+
resolve(res);
|
|
13
|
+
}).catch((res) => {
|
|
14
|
+
reject(new Error(t("interfaceError")));
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { detailApi };
|
package/es/api/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import '../hooks/index.mjs';
|
|
1
2
|
import { unref } from 'vue';
|
|
2
|
-
import { useApi } from '../hooks/useApi.mjs';
|
|
3
3
|
import { useLocale } from '../hooks/useLocale.mjs';
|
|
4
|
+
import { useApi } from '../hooks/useApi.mjs';
|
|
4
5
|
|
|
5
6
|
const { t } = useLocale();
|
|
6
7
|
function selectApi(controller, params) {
|
package/es/api/sypct.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../hooks/index.mjs';
|
|
2
|
+
import { unref } from 'vue';
|
|
3
|
+
import { useLocale } from '../hooks/useLocale.mjs';
|
|
4
|
+
import { useApi } from '../hooks/useApi.mjs';
|
|
5
|
+
|
|
6
|
+
function unbindCphmTaskApi(params) {
|
|
7
|
+
return new Promise((resolve, reject) => {
|
|
8
|
+
const { t } = useLocale();
|
|
9
|
+
const { api } = useApi();
|
|
10
|
+
const http = unref(api);
|
|
11
|
+
http.post("sypct/task/cphmUnBind", params).then((res) => {
|
|
12
|
+
resolve(res);
|
|
13
|
+
}).catch((res) => {
|
|
14
|
+
reject(new Error(t("interfaceError")));
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { unbindCphmTaskApi };
|
package/es/api/task.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../hooks/index.mjs';
|
|
2
|
+
import { unref } from 'vue';
|
|
3
|
+
import { useLocale } from '../hooks/useLocale.mjs';
|
|
4
|
+
import { useApi } from '../hooks/useApi.mjs';
|
|
5
|
+
|
|
6
|
+
function childTaskFindAllApi(params) {
|
|
7
|
+
return new Promise((resolve, reject) => {
|
|
8
|
+
const { t } = useLocale();
|
|
9
|
+
const { api } = useApi();
|
|
10
|
+
const http = unref(api);
|
|
11
|
+
http.post("gdwj/task/taskOrg/childTaskFindAll", params).then((res) => {
|
|
12
|
+
resolve(res);
|
|
13
|
+
}).catch((res) => {
|
|
14
|
+
reject(new Error(t("interfaceError")));
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { childTaskFindAllApi };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, createCommentVNode, createElementVNode, createVNode, toDisplayString, createTextVNode
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, createCommentVNode, createElementVNode, createVNode, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
+
import '../../hooks/index.mjs';
|
|
3
|
+
import { ElMessage, ElForm, ElFormItem, ElUpload, ElImage } from 'element-plus';
|
|
3
4
|
import { saveApi } from '../../api/index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import '../../components/index.mjs';
|
|
4
7
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
8
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
9
|
+
import { fileUpload } from '../../utils/file.mjs';
|
|
6
10
|
import { useMixins } from '../../hooks/useMixins.mjs';
|
|
7
11
|
import { HyDialog } from '../../components/hyDialog/index.mjs';
|
|
8
12
|
import { HyIcon } from '../../components/hyIcon/index.mjs';
|
|
9
13
|
import { HyButton } from '../../components/hyButton/index.mjs';
|
|
10
14
|
import { HyCutter } from '../../components/hyCutter/index.mjs';
|
|
11
|
-
import { fileUpload } from '../../utils/file.mjs';
|
|
12
15
|
|
|
13
16
|
const __default__ = defineComponent({
|
|
14
17
|
name: "HyAddDepartmentType"
|