hy-dispatch-ui-v3 0.2.77 → 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/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +5 -8
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -125
- package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
- package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
- 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/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/index.mjs +2 -0
- 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 +2 -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 +19 -18
- package/es/index.mjs +5 -2
- 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 +59 -5
- 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/version.mjs +1 -1
- package/lib/api/common.js +33 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +3 -6
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -124
- package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
- package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
- 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/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/index.js +18 -14
- 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 +2 -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 +18 -17
- package/lib/index.js +70 -55
- 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 +61 -4
- 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/version.js +1 -1
- package/package.json +14 -1
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,8 +219,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
219
|
minimizedShow
|
|
221
220
|
});
|
|
222
221
|
return (_ctx, _cache) => {
|
|
223
|
-
const _component_el_image = resolveComponent("el-image");
|
|
224
|
-
const _component_el_upload = resolveComponent("el-upload");
|
|
225
222
|
return openBlock(), createBlock(unref(HyDialog), mergeProps({
|
|
226
223
|
ref_key: "HyDialogRef",
|
|
227
224
|
ref: HyDialogRef,
|
|
@@ -250,7 +247,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
250
247
|
}, {
|
|
251
248
|
companyNameSlot: withCtx(() => [
|
|
252
249
|
createElementVNode("div", { class: "flex flex-row departmentTypeOperation" }, [
|
|
253
|
-
createVNode(
|
|
250
|
+
createVNode(unref(ElUpload), {
|
|
254
251
|
class: "w-[80px] flex items-center justify-center upload_box",
|
|
255
252
|
accept: ".png,.jpg,.gif",
|
|
256
253
|
"before-upload": unref(beforeAvatarUpload),
|
|
@@ -271,7 +268,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
268
|
[vShow, unref(formModel).icon]
|
|
272
269
|
]),
|
|
273
270
|
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
274
|
-
unref(formModel).icon ? (openBlock(), createBlock(
|
|
271
|
+
unref(formModel).icon ? (openBlock(), createBlock(unref(ElImage), {
|
|
275
272
|
key: 0,
|
|
276
273
|
fit: "contain",
|
|
277
274
|
class: "w-[60px] h-[60px]",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick, resolveComponent, openBlock,
|
|
1
|
+
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick, resolveComponent, 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';
|
|
@@ -119,7 +119,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
ElMessage.success($t$1("operationSuccessful"));
|
|
120
120
|
nextTick(() => {
|
|
121
121
|
emit("on-submit", hy.formModel.value.id ? null : 1);
|
|
122
|
-
currentBus.emit("departmentTypeOperation", {
|
|
122
|
+
currentBus.value.emit("departmentTypeOperation", {
|
|
123
123
|
method: "onSubmit",
|
|
124
124
|
param: hy.formModel.value.id ? null : 1
|
|
125
125
|
});
|
|
@@ -220,139 +220,122 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
minimizedShow
|
|
221
221
|
});
|
|
222
222
|
return (_ctx, _cache) => {
|
|
223
|
-
const _component_Test = resolveComponent("Test");
|
|
224
223
|
const _component_el_image = resolveComponent("el-image");
|
|
225
224
|
const _component_el_upload = resolveComponent("el-upload");
|
|
226
|
-
return openBlock(),
|
|
227
|
-
|
|
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
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
]),
|
|
286
|
-
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
287
|
-
unref(formModel).icon ? (openBlock(), createBlock(_component_el_image, {
|
|
288
|
-
key: 0,
|
|
289
|
-
fit: "contain",
|
|
290
|
-
class: "w-[60px] h-[60px]",
|
|
291
|
-
src: unref(formModel).icon
|
|
292
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
293
|
-
key: 1,
|
|
294
|
-
"svg-name": "ops-file-empty-head",
|
|
295
|
-
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
296
|
-
})),
|
|
297
|
-
createElementVNode(
|
|
298
|
-
"span",
|
|
299
|
-
{ class: "uploadTips text-center" },
|
|
300
|
-
toDisplayString($t$1("upload")),
|
|
301
|
-
1
|
|
302
|
-
/* TEXT */
|
|
303
|
-
)
|
|
304
|
-
])
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
/* STABLE */
|
|
308
|
-
}, 8, ["before-upload", "http-request"]),
|
|
309
|
-
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
310
|
-
createElementVNode(
|
|
311
|
-
"div",
|
|
312
|
-
null,
|
|
313
|
-
toDisplayString($t$1("pleaseUploadDepartmentTypeIcon")),
|
|
314
|
-
1
|
|
315
|
-
/* TEXT */
|
|
316
|
-
),
|
|
225
|
+
return openBlock(), createBlock(unref(HyDialog), mergeProps({
|
|
226
|
+
ref_key: "HyDialogRef",
|
|
227
|
+
ref: HyDialogRef,
|
|
228
|
+
modelValue: unref(dialogVisible),
|
|
229
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
230
|
+
loading: unref(loading),
|
|
231
|
+
"onUpdate:loading": ($event) => isRef(loading) ? loading.value = $event : null,
|
|
232
|
+
"if-shrink": true,
|
|
233
|
+
width: "310px"
|
|
234
|
+
}, _ctx.$attrs, {
|
|
235
|
+
title: unref(formModel).id ? $t$1("editDepartmentType") : $t$1("addDepartmentType"),
|
|
236
|
+
"on-submit": unref(onSubmit),
|
|
237
|
+
"on-cancel": unref(onClose),
|
|
238
|
+
"on-close": unref(onClose),
|
|
239
|
+
"operate-class": "w-full justify-center",
|
|
240
|
+
onOnMinimized: unref(onMinimized),
|
|
241
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
242
|
+
}), {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
createVNode(unref(HyForm), {
|
|
245
|
+
ref_key: "formRef",
|
|
246
|
+
ref: formRef,
|
|
247
|
+
"column-num": 1,
|
|
248
|
+
model: unref(formModel),
|
|
249
|
+
columns: unref(formColumns)
|
|
250
|
+
}, {
|
|
251
|
+
companyNameSlot: withCtx(() => [
|
|
252
|
+
createElementVNode("div", { class: "flex flex-row departmentTypeOperation" }, [
|
|
253
|
+
createVNode(_component_el_upload, {
|
|
254
|
+
class: "w-[80px] flex items-center justify-center upload_box",
|
|
255
|
+
accept: ".png,.jpg,.gif",
|
|
256
|
+
"before-upload": unref(beforeAvatarUpload),
|
|
257
|
+
"http-request": unref(handleHttpRequestImg),
|
|
258
|
+
action: "",
|
|
259
|
+
"show-file-list": false
|
|
260
|
+
}, {
|
|
261
|
+
default: withCtx(() => [
|
|
262
|
+
withDirectives(createElementVNode("div", {
|
|
263
|
+
class: "delete_box flex items-center justify-center",
|
|
264
|
+
onClick: withModifiers(($event) => unref(setHeadImg)(null), ["stop"])
|
|
265
|
+
}, [
|
|
266
|
+
createVNode(unref(HyIcon), {
|
|
267
|
+
"svg-name": "ops-button-delete",
|
|
268
|
+
class: "svg_box"
|
|
269
|
+
})
|
|
270
|
+
], 8, ["onClick"]), [
|
|
271
|
+
[vShow, unref(formModel).icon]
|
|
272
|
+
]),
|
|
273
|
+
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
274
|
+
unref(formModel).icon ? (openBlock(), createBlock(_component_el_image, {
|
|
275
|
+
key: 0,
|
|
276
|
+
fit: "contain",
|
|
277
|
+
class: "w-[60px] h-[60px]",
|
|
278
|
+
src: unref(formModel).icon
|
|
279
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
280
|
+
key: 1,
|
|
281
|
+
"svg-name": "ops-file-empty-head",
|
|
282
|
+
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
283
|
+
})),
|
|
317
284
|
createElementVNode(
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
toDisplayString($t$1("
|
|
321
|
-
1
|
|
322
|
-
/* TEXT */
|
|
323
|
-
),
|
|
324
|
-
createElementVNode(
|
|
325
|
-
"div",
|
|
326
|
-
null,
|
|
327
|
-
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
285
|
+
"span",
|
|
286
|
+
{ class: "uploadTips text-center" },
|
|
287
|
+
toDisplayString($t$1("upload")),
|
|
328
288
|
1
|
|
329
289
|
/* TEXT */
|
|
330
290
|
)
|
|
331
291
|
])
|
|
332
|
-
])
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
/* STABLE */
|
|
295
|
+
}, 8, ["before-upload", "http-request"]),
|
|
296
|
+
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
297
|
+
createElementVNode(
|
|
298
|
+
"div",
|
|
299
|
+
null,
|
|
300
|
+
toDisplayString($t$1("pleaseUploadDepartmentTypeIcon")),
|
|
301
|
+
1
|
|
302
|
+
/* TEXT */
|
|
303
|
+
),
|
|
304
|
+
createElementVNode(
|
|
305
|
+
"div",
|
|
306
|
+
null,
|
|
307
|
+
toDisplayString($t$1("iconSize44px")) + "*44px",
|
|
308
|
+
1
|
|
309
|
+
/* TEXT */
|
|
310
|
+
),
|
|
311
|
+
createElementVNode(
|
|
312
|
+
"div",
|
|
313
|
+
null,
|
|
314
|
+
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
315
|
+
1
|
|
316
|
+
/* TEXT */
|
|
317
|
+
)
|
|
318
|
+
])
|
|
319
|
+
])
|
|
348
320
|
]),
|
|
349
321
|
_: 1
|
|
350
322
|
/* STABLE */
|
|
351
|
-
},
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
323
|
+
}, 8, ["model", "columns"]),
|
|
324
|
+
createVNode(
|
|
325
|
+
unref(HyCutter),
|
|
326
|
+
{
|
|
327
|
+
ref_key: "HyCutterRef",
|
|
328
|
+
ref: HyCutterRef,
|
|
329
|
+
"show-upload": false
|
|
330
|
+
},
|
|
331
|
+
null,
|
|
332
|
+
512
|
|
333
|
+
/* NEED_PATCH */
|
|
334
|
+
)
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
/* STABLE */
|
|
338
|
+
}, 16, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "on-submit", "on-cancel", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
356
339
|
};
|
|
357
340
|
}
|
|
358
341
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var en_US = {
|
|
2
2
|
departmentIcon: "Department Icon",
|
|
3
|
-
upload: "Upload",
|
|
4
|
-
pleaseUploadDepartmentTypeIcon: "Please upload department type icon",
|
|
5
|
-
iconSize44px: "Icon size 44px",
|
|
6
|
-
ifNoIconUseTheDefaultIcon: "If no icon, use the default icon",
|
|
7
3
|
departmentTypeName: "Department Type Name",
|
|
8
|
-
pleaseEnterTheDepartmentTypeName: "Please
|
|
9
|
-
imageUploadFailedLogoSizeWithin2M: "Image
|
|
4
|
+
pleaseEnterTheDepartmentTypeName: "Please Enter The Department Type Name",
|
|
5
|
+
imageUploadFailedLogoSizeWithin2M: "Image Upload Failed, Logo Size Within 2M",
|
|
6
|
+
operationSuccessful: "Operation Successful",
|
|
10
7
|
editDepartmentType: "Edit Department Type",
|
|
11
8
|
addDepartmentType: "Add Department Type",
|
|
12
|
-
|
|
9
|
+
upload: "Upload",
|
|
10
|
+
pleaseUploadDepartmentTypeIcon: "Please Upload Department Type Icon",
|
|
11
|
+
iconSize44px: "Icon Size 44px",
|
|
12
|
+
ifNoIconUseTheDefaultIcon: "If No Icon, Use The Default Icon"
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { en_US as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var zh_CN = {
|
|
2
2
|
departmentIcon: "\u90E8\u95E8\u56FE\u6807",
|
|
3
|
-
upload: "\u4E0A \u4F20",
|
|
4
|
-
pleaseUploadDepartmentTypeIcon: "\u8BF7\u4E0A\u4F20\u90E8\u95E8\u7C7B\u578B\u56FE\u6807",
|
|
5
|
-
iconSize44px: "\u56FE\u6807\u5C3A\u5BF844px",
|
|
6
|
-
ifNoIconUseTheDefaultIcon: "\u82E5\u65E0\u56FE\u6807\u5219\u4F7F\u7528\u9ED8\u8BA4\u56FE\u6807",
|
|
7
3
|
departmentTypeName: "\u90E8\u95E8\u7C7B\u578B\u540D\u79F0",
|
|
8
4
|
pleaseEnterTheDepartmentTypeName: "\u8BF7\u8F93\u5165\u90E8\u95E8\u7C7B\u578B\u540D\u79F0",
|
|
9
|
-
imageUploadFailedLogoSizeWithin2M: "\u56FE\u7247\u4E0A\u4F20\u5931\u8D25\
|
|
5
|
+
imageUploadFailedLogoSizeWithin2M: "\u56FE\u7247\u4E0A\u4F20\u5931\u8D25,logo\u5927\u5C0F2M\u4EE5\u5185\u3002",
|
|
6
|
+
operationSuccessful: "\u64CD\u4F5C\u6210\u529F",
|
|
10
7
|
editDepartmentType: "\u7F16\u8F91\u90E8\u95E8\u7C7B\u578B",
|
|
11
8
|
addDepartmentType: "\u6DFB\u52A0\u90E8\u95E8\u7C7B\u578B",
|
|
12
|
-
|
|
9
|
+
upload: "\u4E0A \u4F20",
|
|
10
|
+
pleaseUploadDepartmentTypeIcon: "\u8BF7\u4E0A\u4F20\u90E8\u95E8\u7C7B\u578B\u56FE\u6807",
|
|
11
|
+
iconSize44px: "\u56FE\u6807\u5C3A\u5BF844px",
|
|
12
|
+
ifNoIconUseTheDefaultIcon: "\u82E5\u65E0\u56FE\u6807\u5219\u4F7F\u7528\u9ED8\u8BA4\u56FE\u6807"
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { zh_CN as default };
|