giime 0.0.2 → 0.0.4
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/index.css +118 -118
- package/es/components/src/base/carousel/Carousel.vue.d.ts +5 -4
- package/es/components/src/base/carousel/index.d.ts +13 -12
- package/es/components/src/base/table/Table.vue.d.ts +3 -2
- package/es/components/src/base/table/index.d.ts +7 -6
- package/es/giime/version.d.ts +1 -1
- package/es/hooks/store/index.d.ts +1 -0
- package/es/hooks/store/useCurrencyList/index.d.ts +4 -4
- package/es/hooks/store/useLangList/index.d.ts +4 -4
- package/es/hooks/store/useLineList/index.d.ts +4 -4
- package/es/hooks/store/useOrgUserList/index.d.ts +119 -0
- package/es/hooks/store/usePlatformLineList/index.d.ts +4 -4
- package/es/index.css +118 -118
- package/es/packages/components/src/business/loginDialog/LoginDialog.vue2.mjs +22 -20
- package/es/packages/components/src/business/loginDialog/LoginDialog.vue2.mjs.map +1 -1
- package/es/packages/giime/index.mjs +1 -0
- package/es/packages/giime/index.mjs.map +1 -1
- package/es/packages/giime/version.mjs +1 -1
- package/es/packages/giime/version.mjs.map +1 -1
- package/es/packages/hooks/index.mjs +1 -0
- package/es/packages/hooks/index.mjs.map +1 -1
- package/es/packages/hooks/store/index.mjs +1 -0
- package/es/packages/hooks/store/index.mjs.map +1 -1
- package/es/packages/hooks/store/useCurrencyList/index.mjs +7 -7
- package/es/packages/hooks/store/useCurrencyList/index.mjs.map +1 -1
- package/es/packages/hooks/store/useLangList/index.mjs +7 -7
- package/es/packages/hooks/store/useLangList/index.mjs.map +1 -1
- package/es/packages/hooks/store/useLineList/index.mjs +7 -7
- package/es/packages/hooks/store/useLineList/index.mjs.map +1 -1
- package/es/packages/hooks/store/useOrgUserList/index.mjs +38 -0
- package/es/packages/hooks/store/useOrgUserList/index.mjs.map +1 -0
- package/es/packages/hooks/store/usePlatformLineList/index.mjs +7 -7
- package/es/packages/hooks/store/usePlatformLineList/index.mjs.map +1 -1
- package/es/packages/utils/src/http/createAxios.mjs +3 -2
- package/es/packages/utils/src/http/createAxios.mjs.map +1 -1
- package/lib/components/src/base/carousel/Carousel.vue.d.ts +5 -4
- package/lib/components/src/base/carousel/index.d.ts +13 -12
- package/lib/components/src/base/table/Table.vue.d.ts +3 -2
- package/lib/components/src/base/table/index.d.ts +7 -6
- package/lib/giime/version.d.ts +1 -1
- package/lib/hooks/store/index.d.ts +1 -0
- package/lib/hooks/store/useCurrencyList/index.d.ts +4 -4
- package/lib/hooks/store/useLangList/index.d.ts +4 -4
- package/lib/hooks/store/useLineList/index.d.ts +4 -4
- package/lib/hooks/store/useOrgUserList/index.d.ts +119 -0
- package/lib/hooks/store/usePlatformLineList/index.d.ts +4 -4
- package/lib/index.css +118 -118
- package/lib/packages/components/src/business/loginDialog/LoginDialog.vue2.js +22 -20
- package/lib/packages/components/src/business/loginDialog/LoginDialog.vue2.js.map +1 -1
- package/lib/packages/giime/index.js +2 -0
- package/lib/packages/giime/index.js.map +1 -1
- package/lib/packages/giime/version.js +1 -1
- package/lib/packages/giime/version.js.map +1 -1
- package/lib/packages/hooks/index.js +2 -0
- package/lib/packages/hooks/index.js.map +1 -1
- package/lib/packages/hooks/store/index.js +2 -0
- package/lib/packages/hooks/store/index.js.map +1 -1
- package/lib/packages/hooks/store/useCurrencyList/index.js +7 -7
- package/lib/packages/hooks/store/useCurrencyList/index.js.map +1 -1
- package/lib/packages/hooks/store/useLangList/index.js +7 -7
- package/lib/packages/hooks/store/useLangList/index.js.map +1 -1
- package/lib/packages/hooks/store/useLineList/index.js +7 -7
- package/lib/packages/hooks/store/useLineList/index.js.map +1 -1
- package/lib/packages/hooks/store/useOrgUserList/index.js +40 -0
- package/lib/packages/hooks/store/useOrgUserList/index.js.map +1 -0
- package/lib/packages/hooks/store/usePlatformLineList/index.js +7 -7
- package/lib/packages/hooks/store/usePlatformLineList/index.js.map +1 -1
- package/lib/packages/utils/src/http/createAxios.js +3 -2
- package/lib/packages/utils/src/http/createAxios.js.map +1 -1
- package/package.json +6 -2
package/es/index.css
CHANGED
|
@@ -1,3 +1,121 @@
|
|
|
1
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .cell {
|
|
2
|
+
white-space: pre-line !important;
|
|
3
|
+
}
|
|
4
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-tooltip {
|
|
5
|
+
white-space: nowrap !important;
|
|
6
|
+
}
|
|
7
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-scrollbar__bar.is-horizontal {
|
|
8
|
+
height: 12px;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
}
|
|
11
|
+
#table-page[data-v-5341bce5] .operate-wrap[data-v-5341bce5] {
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
#table-page[data-v-5341bce5] .el-button[data-v-5341bce5] {
|
|
15
|
+
margin: 0 3px !important;
|
|
16
|
+
}
|
|
17
|
+
@charset "UTF-8";
|
|
18
|
+
.drawer-title[data-v-2ca1bc9b] {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
border-bottom: 2px solid #f2f2f2;
|
|
21
|
+
margin: 0 -20px;
|
|
22
|
+
padding: 0 20px 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#column-group[data-v-2ca1bc9b] {
|
|
26
|
+
height: calc(100vh - 265px);
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar {
|
|
30
|
+
/*滚动条整体样式*/
|
|
31
|
+
width: 4px;
|
|
32
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
33
|
+
height: 1px;
|
|
34
|
+
}
|
|
35
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-thumb {
|
|
36
|
+
/*滚动条里面小方块*/
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
39
|
+
background: #999;
|
|
40
|
+
}
|
|
41
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-track {
|
|
42
|
+
/*滚动条里面轨道*/
|
|
43
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
44
|
+
border-radius: 10px;
|
|
45
|
+
background: #eee;
|
|
46
|
+
}
|
|
47
|
+
#column-group[data-v-2ca1bc9b] .column-checked[data-v-2ca1bc9b] {
|
|
48
|
+
margin-left: -36px;
|
|
49
|
+
}
|
|
50
|
+
#column-group[data-v-2ca1bc9b] [data-v-2ca1bc9b] .el-input__wrapper {
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
}
|
|
53
|
+
#column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
54
|
+
border-bottom: 1px solid #e5e7eb;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.column-class[data-v-2ca1bc9b] > ul[data-v-2ca1bc9b]:first-child {
|
|
58
|
+
padding-right: 4px;
|
|
59
|
+
}
|
|
60
|
+
.column-class[data-v-2ca1bc9b] #column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
61
|
+
border-bottom: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.drawer-footer-btn[data-v-2ca1bc9b] {
|
|
65
|
+
margin: 15px -20px -20px;
|
|
66
|
+
padding: 15px 20px;
|
|
67
|
+
}
|
|
68
|
+
@charset "UTF-8";
|
|
69
|
+
.drawer-title[data-v-75e95cd1] {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
border-bottom: 2px solid #f2f2f2;
|
|
72
|
+
margin: 0 -20px;
|
|
73
|
+
padding: 0 20px 20px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#column-group[data-v-75e95cd1] {
|
|
77
|
+
height: calc(100vh - 265px);
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
}
|
|
80
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar {
|
|
81
|
+
/*滚动条整体样式*/
|
|
82
|
+
width: 4px;
|
|
83
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
84
|
+
height: 1px;
|
|
85
|
+
}
|
|
86
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-thumb {
|
|
87
|
+
/*滚动条里面小方块*/
|
|
88
|
+
border-radius: 10px;
|
|
89
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
90
|
+
background: #999;
|
|
91
|
+
}
|
|
92
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-track {
|
|
93
|
+
/*滚动条里面轨道*/
|
|
94
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
95
|
+
border-radius: 10px;
|
|
96
|
+
background: #eee;
|
|
97
|
+
}
|
|
98
|
+
#column-group[data-v-75e95cd1] .column-checked[data-v-75e95cd1] {
|
|
99
|
+
margin-left: -36px;
|
|
100
|
+
}
|
|
101
|
+
#column-group[data-v-75e95cd1] [data-v-75e95cd1] .el-input__wrapper {
|
|
102
|
+
box-shadow: none;
|
|
103
|
+
}
|
|
104
|
+
#column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
105
|
+
border-bottom: 1px solid #e5e7eb;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.column-class[data-v-75e95cd1] > ul[data-v-75e95cd1]:first-child {
|
|
109
|
+
padding-right: 4px;
|
|
110
|
+
}
|
|
111
|
+
.column-class[data-v-75e95cd1] #column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
112
|
+
border-bottom: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.drawer-footer-btn[data-v-75e95cd1] {
|
|
116
|
+
margin: 15px -20px -20px;
|
|
117
|
+
padding: 15px 20px;
|
|
118
|
+
}
|
|
1
119
|
/*
|
|
2
120
|
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
|
|
3
121
|
*//*
|
|
@@ -484,122 +602,4 @@ video {
|
|
|
484
602
|
--tw-backdrop-opacity: ;
|
|
485
603
|
--tw-backdrop-saturate: ;
|
|
486
604
|
--tw-backdrop-sepia: ;
|
|
487
|
-
}
|
|
488
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .cell {
|
|
489
|
-
white-space: pre-line !important;
|
|
490
|
-
}
|
|
491
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-tooltip {
|
|
492
|
-
white-space: nowrap !important;
|
|
493
|
-
}
|
|
494
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-scrollbar__bar.is-horizontal {
|
|
495
|
-
height: 12px;
|
|
496
|
-
border-radius: 12px;
|
|
497
|
-
}
|
|
498
|
-
#table-page[data-v-5341bce5] .operate-wrap[data-v-5341bce5] {
|
|
499
|
-
text-align: center;
|
|
500
|
-
}
|
|
501
|
-
#table-page[data-v-5341bce5] .el-button[data-v-5341bce5] {
|
|
502
|
-
margin: 0 3px !important;
|
|
503
|
-
}
|
|
504
|
-
@charset "UTF-8";
|
|
505
|
-
.drawer-title[data-v-75e95cd1] {
|
|
506
|
-
font-size: 14px;
|
|
507
|
-
border-bottom: 2px solid #f2f2f2;
|
|
508
|
-
margin: 0 -20px;
|
|
509
|
-
padding: 0 20px 20px;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
#column-group[data-v-75e95cd1] {
|
|
513
|
-
height: calc(100vh - 265px);
|
|
514
|
-
overflow-y: auto;
|
|
515
|
-
}
|
|
516
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar {
|
|
517
|
-
/*滚动条整体样式*/
|
|
518
|
-
width: 4px;
|
|
519
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
520
|
-
height: 1px;
|
|
521
|
-
}
|
|
522
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-thumb {
|
|
523
|
-
/*滚动条里面小方块*/
|
|
524
|
-
border-radius: 10px;
|
|
525
|
-
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
526
|
-
background: #999;
|
|
527
|
-
}
|
|
528
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-track {
|
|
529
|
-
/*滚动条里面轨道*/
|
|
530
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
531
|
-
border-radius: 10px;
|
|
532
|
-
background: #eee;
|
|
533
|
-
}
|
|
534
|
-
#column-group[data-v-75e95cd1] .column-checked[data-v-75e95cd1] {
|
|
535
|
-
margin-left: -36px;
|
|
536
|
-
}
|
|
537
|
-
#column-group[data-v-75e95cd1] [data-v-75e95cd1] .el-input__wrapper {
|
|
538
|
-
box-shadow: none;
|
|
539
|
-
}
|
|
540
|
-
#column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
541
|
-
border-bottom: 1px solid #e5e7eb;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.column-class[data-v-75e95cd1] > ul[data-v-75e95cd1]:first-child {
|
|
545
|
-
padding-right: 4px;
|
|
546
|
-
}
|
|
547
|
-
.column-class[data-v-75e95cd1] #column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
548
|
-
border-bottom: none;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.drawer-footer-btn[data-v-75e95cd1] {
|
|
552
|
-
margin: 15px -20px -20px;
|
|
553
|
-
padding: 15px 20px;
|
|
554
|
-
}
|
|
555
|
-
@charset "UTF-8";
|
|
556
|
-
.drawer-title[data-v-2ca1bc9b] {
|
|
557
|
-
font-size: 14px;
|
|
558
|
-
border-bottom: 2px solid #f2f2f2;
|
|
559
|
-
margin: 0 -20px;
|
|
560
|
-
padding: 0 20px 20px;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
#column-group[data-v-2ca1bc9b] {
|
|
564
|
-
height: calc(100vh - 265px);
|
|
565
|
-
overflow-y: auto;
|
|
566
|
-
}
|
|
567
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar {
|
|
568
|
-
/*滚动条整体样式*/
|
|
569
|
-
width: 4px;
|
|
570
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
571
|
-
height: 1px;
|
|
572
|
-
}
|
|
573
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-thumb {
|
|
574
|
-
/*滚动条里面小方块*/
|
|
575
|
-
border-radius: 10px;
|
|
576
|
-
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
577
|
-
background: #999;
|
|
578
|
-
}
|
|
579
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-track {
|
|
580
|
-
/*滚动条里面轨道*/
|
|
581
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
582
|
-
border-radius: 10px;
|
|
583
|
-
background: #eee;
|
|
584
|
-
}
|
|
585
|
-
#column-group[data-v-2ca1bc9b] .column-checked[data-v-2ca1bc9b] {
|
|
586
|
-
margin-left: -36px;
|
|
587
|
-
}
|
|
588
|
-
#column-group[data-v-2ca1bc9b] [data-v-2ca1bc9b] .el-input__wrapper {
|
|
589
|
-
box-shadow: none;
|
|
590
|
-
}
|
|
591
|
-
#column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
592
|
-
border-bottom: 1px solid #e5e7eb;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
.column-class[data-v-2ca1bc9b] > ul[data-v-2ca1bc9b]:first-child {
|
|
596
|
-
padding-right: 4px;
|
|
597
|
-
}
|
|
598
|
-
.column-class[data-v-2ca1bc9b] #column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
599
|
-
border-bottom: none;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.drawer-footer-btn[data-v-2ca1bc9b] {
|
|
603
|
-
margin: 15px -20px -20px;
|
|
604
|
-
padding: 15px 20px;
|
|
605
605
|
}
|
|
@@ -37,7 +37,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
const host = window.location.host;
|
|
38
38
|
const myPath = window.location.pathname;
|
|
39
39
|
loginUrl.value = `${originLoginUrl}?_system=${props.system}`;
|
|
40
|
-
if (route.value && props.needScanningRouteNames.includes(route.value
|
|
40
|
+
if (route.value && props.needScanningRouteNames.includes(route.value?.name?.toString() ?? "")) {
|
|
41
41
|
loginUrl.value += "&is_dashboard=1";
|
|
42
42
|
}
|
|
43
43
|
loginUrl.value += `&_url=${protocol}//${host}${myPath}`;
|
|
@@ -52,25 +52,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
const reloadTimer = ref();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
55
|
+
if (route.value) {
|
|
56
|
+
watch(route, (newValue, oldValue) => {
|
|
57
|
+
if (!oldValue || !newValue) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (oldValue.name && props.needScanningRouteNames.includes(oldValue.name.toString())) {
|
|
61
|
+
window.clearInterval(reloadTimer.value);
|
|
62
|
+
}
|
|
63
|
+
if (newValue.name && props.needScanningRouteNames.includes(newValue.name.toString())) {
|
|
64
|
+
reloadTimer.value = window.setInterval(
|
|
65
|
+
() => {
|
|
66
|
+
if (!loginStore.showLogin) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
window.location.reload();
|
|
70
|
+
},
|
|
71
|
+
3 * 60 * 1e3
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
74
76
|
onMounted(() => {
|
|
75
77
|
if (loginStore.showLogin) {
|
|
76
78
|
login();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginDialog.vue2.mjs","sources":["../../../../../../../../packages/components/src/business/loginDialog/LoginDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nconst loginEnvKey = 'VITE_GIIME_LOGIN_URL'\n</script>\n<template>\r\n <el-dialog v-model=\"loginStore.showLogin\" width=\"80%\" append-to-body>\r\n <iframe v-if=\"loginStore.showLogin\" class=\"gm-h-[600px] gm-w-full\" :src=\"loginUrl\" />\r\n </el-dialog>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, onUnmounted, ref, unref, watch } from 'vue';\r\nimport { ElDialog } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\n// import router from 'vue-router';\r\nimport { useLoginStore } from '@giime/hooks';\r\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\r\nimport { isString } from '@giime/utils';\r\nimport { loginDialogProps } from './loginDialog';\r\n\r\nconst props = defineProps(loginDialogProps);\r\nconst router = useGlobalConfig('router');\r\n// const router = useRouter();\r\nconst route = computed(() => (router.value ? unref(router.value.currentRoute) : undefined));\r\nconst loginStore = useLoginStore();\r\nconst loginUrl = ref('');\r\nconst viteModes = [\r\n { mode: 'development', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'test', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'production', loginUrl: 'https://gsso.giikin.com/admin/login/logout.html' },\r\n];\r\n\r\n\r\nconst importMetaEnv = useGlobalConfig('env');\r\nlet originLoginUrl = ``;\r\nif (isString(importMetaEnv.value[loginEnvKey])) {\r\n originLoginUrl = importMetaEnv.value[loginEnvKey];\r\n} else {\r\n const curMode = viteModes.find(item => item.mode == importMetaEnv.value.MODE);\r\n originLoginUrl = curMode?.loginUrl ?? 'https://gsso.giikin.com/admin/login/logout.html';\r\n}\r\nconst login = () => {\r\n const protocol = window.location.protocol;\r\n const host = window.location.host;\r\n const myPath = window.location.pathname;\r\n loginUrl.value = `${originLoginUrl}?_system=${props.system}`;\r\n if (route.value && props.needScanningRouteNames.includes(route.value
|
|
1
|
+
{"version":3,"file":"LoginDialog.vue2.mjs","sources":["../../../../../../../../packages/components/src/business/loginDialog/LoginDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nconst loginEnvKey = 'VITE_GIIME_LOGIN_URL'\n</script>\n<template>\r\n <el-dialog v-model=\"loginStore.showLogin\" width=\"80%\" append-to-body>\r\n <iframe v-if=\"loginStore.showLogin\" class=\"gm-h-[600px] gm-w-full\" :src=\"loginUrl\" />\r\n </el-dialog>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, onUnmounted, ref, unref, watch } from 'vue';\r\nimport { ElDialog } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\n// import router from 'vue-router';\r\nimport { useLoginStore } from '@giime/hooks';\r\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\r\nimport { isString } from '@giime/utils';\r\nimport { loginDialogProps } from './loginDialog';\r\n\r\nconst props = defineProps(loginDialogProps);\r\nconst router = useGlobalConfig('router');\r\n// const router = useRouter();\r\nconst route = computed(() => (router.value ? unref(router.value.currentRoute) : undefined));\r\nconst loginStore = useLoginStore();\r\nconst loginUrl = ref('');\r\nconst viteModes = [\r\n { mode: 'development', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'test', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'production', loginUrl: 'https://gsso.giikin.com/admin/login/logout.html' },\r\n];\r\n\r\n\r\nconst importMetaEnv = useGlobalConfig('env');\r\nlet originLoginUrl = ``;\r\nif (isString(importMetaEnv.value[loginEnvKey])) {\r\n originLoginUrl = importMetaEnv.value[loginEnvKey];\r\n} else {\r\n const curMode = viteModes.find(item => item.mode == importMetaEnv.value.MODE);\r\n originLoginUrl = curMode?.loginUrl ?? 'https://gsso.giikin.com/admin/login/logout.html';\r\n}\r\nconst login = () => {\r\n const protocol = window.location.protocol;\r\n const host = window.location.host;\r\n const myPath = window.location.pathname;\r\n loginUrl.value = `${originLoginUrl}?_system=${props.system}`;\r\n if (route.value && props.needScanningRouteNames.includes(route.value?.name?.toString() ?? '')) {\r\n loginUrl.value += '&is_dashboard=1';\r\n }\r\n loginUrl.value += `&_url=${protocol}//${host}${myPath}`;\r\n\r\n // eslint-disable-next-line no-console\r\n console.log(loginUrl.value);\r\n};\r\nwatch(\r\n () => loginStore.showLogin,\r\n value => {\r\n if (value) {\r\n login();\r\n }\r\n },\r\n);\r\n// 超过5分钟没扫码 会不能扫码 定时没登录的话3分钟刷新次\r\nconst reloadTimer = ref<number>();\r\nif (route.value) {\r\n watch(route, (newValue, oldValue) => {\r\n if (!oldValue || !newValue) {\r\n return;\r\n }\r\n if (oldValue.name && props.needScanningRouteNames.includes(oldValue.name.toString())) {\r\n window.clearInterval(reloadTimer.value);\r\n }\r\n if (newValue.name && props.needScanningRouteNames.includes(newValue.name.toString())) {\r\n reloadTimer.value = window.setInterval(\r\n () => {\r\n if (!loginStore.showLogin) {\r\n return;\r\n }\r\n // 登录超时后 3分钟刷新次页面\r\n window.location.reload();\r\n },\r\n 3 * 60 * 1000,\r\n );\r\n }\r\n });\r\n}\r\n\r\nonMounted(() => {\r\n if (loginStore.showLogin) {\r\n login();\r\n }\r\n // iframe事件监听\r\n window.addEventListener('message', e => {\r\n // 刷新登陆状态\r\n if (e.data.type == 'giikin-Logged') {\r\n // eslint-disable-next-line no-console\r\n console.log(e.data);\r\n const token = Cookies.get('token');\r\n if (\r\n // 测试环境 但是需要登陆的情况\r\n (importMetaEnv.value.MODE !== 'production' && e.data?.data?.token) ||\r\n // 正式环境 登录成功 但是服务器token设置失败\r\n (importMetaEnv.value.MODE === 'production' && !token && e.data?.data?.token)\r\n ) {\r\n const now = new Date();\r\n let time = now.getTime();\r\n time += 8 * 60 * 60 * 1000; // 8 小时之后的时间(单位:毫秒)\r\n now.setTime(time);\r\n Cookies.set('token', e.data.data.token, { expires: now, domain: importMetaEnv.value.MODE === 'production' ? '.giikin.com' : undefined });\r\n if (!Cookies.get('sso_user_id') && e.data.data.userId) {\r\n Cookies.set('sso_user_id', e.data.data.userId, {\r\n expires: now,\r\n domain: importMetaEnv.value.MODE === 'production' ? '.giikin.com' : undefined,\r\n });\r\n }\r\n }\r\n // 触发登录成功监听\r\n if (e.data?.data?.token) {\r\n loginStore.triggerLoginResult(e.data.data);\r\n }\r\n // ElMessage.success('登录成功,请关闭弹窗');\r\n loginStore.showLogin = false;\r\n if (route.value && props.needRealodRouteNames.includes(route.value.name?.toString() ?? '')) {\r\n window.location.reload();\r\n }\r\n }\r\n });\r\n});\r\nonUnmounted(() => {\r\n window.clearInterval(reloadTimer.value);\r\n});\r\n</script>\r\n"],"names":[],"mappings":";;;;;;;;;;;AACA,MAAM,WAAc,GAAA,sBAAA,CAAA;;;;;AAiBpB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,MAAA,GAAS,gBAAgB,QAAQ,CAAA,CAAA;AAEvC,IAAM,MAAA,KAAA,GAAQ,QAAS,CAAA,MAAO,MAAO,CAAA,KAAA,GAAQ,MAAM,MAAO,CAAA,KAAA,CAAM,YAAY,CAAA,GAAI,KAAU,CAAA,CAAA,CAAA;AAC1F,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,QAAA,GAAW,IAAI,EAAE,CAAA,CAAA;AACvB,IAAA,MAAM,SAAY,GAAA;AAAA,MAChB,EAAE,IAAA,EAAM,aAAe,EAAA,QAAA,EAAU,iDAAkD,EAAA;AAAA,MACnF,EAAE,IAAA,EAAM,MAAQ,EAAA,QAAA,EAAU,iDAAkD,EAAA;AAAA,MAC5E,EAAE,IAAA,EAAM,YAAc,EAAA,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,YAAW,UAAA,CAAA,kBAAA,CAAmB,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA,CAAA;AAAA,WAC3C;AAEA,UAAA,UAAA,CAAW,SAAY,GAAA,KAAA,CAAA;AACvB,UAAI,IAAA,KAAA,CAAM,KAAS,IAAA,KAAA,CAAM,oBAAqB,CAAA,QAAA,CAAS,KAAM,CAAA,KAAA,CAAM,IAAM,EAAA,QAAA,EAAc,IAAA,EAAE,CAAG,EAAA;AAC1F,YAAA,MAAA,CAAO,SAAS,MAAO,EAAA,CAAA;AAAA,WACzB;AAAA,SACF;AAAA,OACD,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AACD,IAAA,WAAA,CAAY,MAAM;AAChB,MAAO,MAAA,CAAA,aAAA,CAAc,YAAY,KAAK,CAAA,CAAA;AAAA,KACvC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -235,6 +235,7 @@ export { useCustomSettingsStore } from '../hooks/store/useCustomSettings/index.m
|
|
|
235
235
|
export { useCurrencyListStore } from '../hooks/store/useCurrencyList/index.mjs';
|
|
236
236
|
export { useLineListStore } from '../hooks/store/useLineList/index.mjs';
|
|
237
237
|
export { usePlatformLineListStore } from '../hooks/store/usePlatformLineList/index.mjs';
|
|
238
|
+
export { useOrgUserListStore } from '../hooks/store/useOrgUserList/index.mjs';
|
|
238
239
|
|
|
239
240
|
const install = installer.install;
|
|
240
241
|
const version = installer.version;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA,QAAA;AAC1B,MAAM,UAAU,SAAU,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.3';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -7,4 +7,5 @@ export { useCustomSettingsStore } from './store/useCustomSettings/index.mjs';
|
|
|
7
7
|
export { useCurrencyListStore } from './store/useCurrencyList/index.mjs';
|
|
8
8
|
export { useLineListStore } from './store/useLineList/index.mjs';
|
|
9
9
|
export { usePlatformLineListStore } from './store/usePlatformLineList/index.mjs';
|
|
10
|
+
export { useOrgUserListStore } from './store/useOrgUserList/index.mjs';
|
|
10
11
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -4,4 +4,5 @@ export { useCustomSettingsStore } from './useCustomSettings/index.mjs';
|
|
|
4
4
|
export { useCurrencyListStore } from './useCurrencyList/index.mjs';
|
|
5
5
|
export { useLineListStore } from './useLineList/index.mjs';
|
|
6
6
|
export { usePlatformLineListStore } from './usePlatformLineList/index.mjs';
|
|
7
|
+
export { useOrgUserListStore } from './useOrgUserList/index.mjs';
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -6,26 +6,26 @@ import { postShopAdminStoreFilter } from '../../../api/shopAdmin/store/postShopA
|
|
|
6
6
|
|
|
7
7
|
const useCurrencyListStore = defineStore("gmCurrencyList", () => {
|
|
8
8
|
const currencyList = useSessionStorage("gmCurrencyList", [], { listenToStorageChanges: false });
|
|
9
|
-
const
|
|
9
|
+
const isLoading = ref(false);
|
|
10
10
|
const getCurrencyList = async () => {
|
|
11
11
|
if (currencyList.value.length !== 0) {
|
|
12
|
-
|
|
12
|
+
isLoading.value = false;
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (
|
|
15
|
+
if (isLoading.value) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
-
|
|
19
|
+
isLoading.value = true;
|
|
20
20
|
const { data } = await postShopAdminStoreFilter({ keys: "currency" });
|
|
21
|
-
|
|
21
|
+
isLoading.value = false;
|
|
22
22
|
if (data.code !== 0) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
currencyList.value = data.data.currency;
|
|
26
26
|
} catch (e) {
|
|
27
27
|
console.error(e);
|
|
28
|
-
|
|
28
|
+
isLoading.value = false;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
onMounted(() => {
|
|
@@ -33,7 +33,7 @@ const useCurrencyListStore = defineStore("gmCurrencyList", () => {
|
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
35
|
currencyList,
|
|
36
|
-
|
|
36
|
+
isLoading,
|
|
37
37
|
getCurrencyList
|
|
38
38
|
};
|
|
39
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useCurrencyList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport { postShopAdminStoreFilter } from '@giime/api/shopAdmin';\r\nimport type { PostShopAdminStoreFilterResponseDataCurrency } from '@giime/api/shopAdmin';\r\n\r\n/**币种列表 */\r\nexport const useCurrencyListStore = defineStore('gmCurrencyList', () => {\r\n const currencyList = useSessionStorage<PostShopAdminStoreFilterResponseDataCurrency[]>('gmCurrencyList', [], { listenToStorageChanges: false });\r\n\r\n const
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useCurrencyList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport { postShopAdminStoreFilter } from '@giime/api/shopAdmin';\r\nimport type { PostShopAdminStoreFilterResponseDataCurrency } from '@giime/api/shopAdmin';\r\n\r\n/**币种列表 */\r\nexport const useCurrencyListStore = defineStore('gmCurrencyList', () => {\r\n const currencyList = useSessionStorage<PostShopAdminStoreFilterResponseDataCurrency[]>('gmCurrencyList', [], { listenToStorageChanges: false });\r\n\r\n const isLoading = ref(false);\r\n const getCurrencyList = async () => {\r\n if (currencyList.value.length !== 0) {\r\n isLoading.value = false;\r\n return;\r\n }\r\n if (isLoading.value) {\r\n return;\r\n }\r\n try {\r\n isLoading.value = true;\r\n const { data } = await postShopAdminStoreFilter({ keys: 'currency' });\r\n isLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n currencyList.value = data.data.currency;\r\n } catch (e) {\r\n console.error(e);\r\n isLoading.value = false;\r\n }\r\n };\r\n onMounted(() => {\r\n getCurrencyList();\r\n });\r\n return {\r\n currencyList,\r\n isLoading,\r\n getCurrencyList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AAOa,MAAA,oBAAA,GAAuB,WAAY,CAAA,gBAAA,EAAkB,MAAM;AACtE,EAAM,MAAA,YAAA,GAAe,kBAAkE,gBAAkB,EAAA,IAAI,EAAE,sBAAA,EAAwB,OAAO,CAAA,CAAA;AAE9I,EAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,EAAA,MAAM,kBAAkB,YAAY;AAClC,IAAI,IAAA,YAAA,CAAa,KAAM,CAAA,MAAA,KAAW,CAAG,EAAA;AACnC,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,OAAA;AAAA,KACF;AACA,IAAA,IAAI,UAAU,KAAO,EAAA;AACnB,MAAA,OAAA;AAAA,KACF;AACA,IAAI,IAAA;AACF,MAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAClB,MAAM,MAAA,EAAE,MAAS,GAAA,MAAM,yBAAyB,EAAE,IAAA,EAAM,YAAY,CAAA,CAAA;AACpE,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAI,IAAA,IAAA,CAAK,SAAS,CAAG,EAAA;AACnB,QAAA,OAAA;AAAA,OACF;AACA,MAAa,YAAA,CAAA,KAAA,GAAQ,KAAK,IAAK,CAAA,QAAA,CAAA;AAAA,aACxB,CAAG,EAAA;AACV,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAAA,KACpB;AAAA,GACF,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAgB,eAAA,EAAA,CAAA;AAAA,GACjB,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,YAAA;AAAA,IACA,SAAA;AAAA,IACA,eAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
|
@@ -6,26 +6,26 @@ import { getV1BasicGetLangList } from '../../../api/gstore/controller/JiChuXinXi
|
|
|
6
6
|
|
|
7
7
|
const useLangListStore = defineStore("gmLangList", () => {
|
|
8
8
|
const langList = useSessionStorage("gmLangList", [], { listenToStorageChanges: false });
|
|
9
|
-
const
|
|
9
|
+
const isLoading = ref(false);
|
|
10
10
|
const getLangList = async () => {
|
|
11
11
|
if (langList.value.length !== 0) {
|
|
12
|
-
|
|
12
|
+
isLoading.value = false;
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (
|
|
15
|
+
if (isLoading.value) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
-
|
|
19
|
+
isLoading.value = true;
|
|
20
20
|
const { data } = await getV1BasicGetLangList();
|
|
21
|
-
|
|
21
|
+
isLoading.value = false;
|
|
22
22
|
if (data.code !== 200) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
langList.value = data.data;
|
|
26
26
|
} catch (e) {
|
|
27
27
|
console.error(e);
|
|
28
|
-
|
|
28
|
+
isLoading.value = false;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
onMounted(() => {
|
|
@@ -33,7 +33,7 @@ const useLangListStore = defineStore("gmLangList", () => {
|
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
35
|
langList,
|
|
36
|
-
|
|
36
|
+
isLoading,
|
|
37
37
|
getLangList
|
|
38
38
|
};
|
|
39
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore('gmLangList', () => {\r\n // const langList = ref<GetV1BasicGetLangListResultData[]>([]);\r\n const langList = useSessionStorage<GetV1BasicGetLangListResultData[]>('gmLangList', [], { listenToStorageChanges: false });\r\n\r\n const
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore('gmLangList', () => {\r\n // const langList = ref<GetV1BasicGetLangListResultData[]>([]);\r\n const langList = useSessionStorage<GetV1BasicGetLangListResultData[]>('gmLangList', [], { listenToStorageChanges: false });\r\n\r\n const isLoading = ref(false);\r\n const getLangList = async () => {\r\n if (langList.value.length !== 0) {\r\n isLoading.value = false;\r\n return;\r\n }\r\n if (isLoading.value) {\r\n return;\r\n }\r\n try {\r\n isLoading.value = true;\r\n const { data } = await getV1BasicGetLangList();\r\n isLoading.value = false;\r\n if (data.code !== 200) {\r\n return;\r\n }\r\n langList.value = data.data;\r\n } catch (e) {\r\n console.error(e);\r\n isLoading.value = false;\r\n }\r\n };\r\n onMounted(() => {\r\n getLangList();\r\n });\r\n return {\r\n langList,\r\n isLoading,\r\n getLangList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AASa,MAAA,gBAAA,GAAmB,WAAY,CAAA,YAAA,EAAc,MAAM;AAE9D,EAAM,MAAA,QAAA,GAAW,kBAAqD,YAAc,EAAA,IAAI,EAAE,sBAAA,EAAwB,OAAO,CAAA,CAAA;AAEzH,EAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,EAAA,MAAM,cAAc,YAAY;AAC9B,IAAI,IAAA,QAAA,CAAS,KAAM,CAAA,MAAA,KAAW,CAAG,EAAA;AAC/B,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,OAAA;AAAA,KACF;AACA,IAAA,IAAI,UAAU,KAAO,EAAA;AACnB,MAAA,OAAA;AAAA,KACF;AACA,IAAI,IAAA;AACF,MAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAClB,MAAA,MAAM,EAAE,IAAA,EAAS,GAAA,MAAM,qBAAsB,EAAA,CAAA;AAC7C,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAI,IAAA,IAAA,CAAK,SAAS,GAAK,EAAA;AACrB,QAAA,OAAA;AAAA,OACF;AACA,MAAA,QAAA,CAAS,QAAQ,IAAK,CAAA,IAAA,CAAA;AAAA,aACf,CAAG,EAAA;AACV,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAAA,KACpB;AAAA,GACF,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAY,WAAA,EAAA,CAAA;AAAA,GACb,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,QAAA;AAAA,IACA,SAAA;AAAA,IACA,WAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
|
@@ -6,26 +6,26 @@ import { postShopAdminStoreFilter } from '../../../api/shopAdmin/store/postShopA
|
|
|
6
6
|
|
|
7
7
|
const useLineListStore = defineStore("gmLineList", () => {
|
|
8
8
|
const lineList = useSessionStorage("gmLineList", [], { listenToStorageChanges: false });
|
|
9
|
-
const
|
|
9
|
+
const isLoading = ref(false);
|
|
10
10
|
const getLineList = async () => {
|
|
11
11
|
if (lineList.value.length !== 0) {
|
|
12
|
-
|
|
12
|
+
isLoading.value = false;
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (
|
|
15
|
+
if (isLoading.value) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
-
|
|
19
|
+
isLoading.value = true;
|
|
20
20
|
const { data } = await postShopAdminStoreFilter({ keys: "line" });
|
|
21
|
-
|
|
21
|
+
isLoading.value = false;
|
|
22
22
|
if (data.code !== 0) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
lineList.value = data.data.line;
|
|
26
26
|
} catch (e) {
|
|
27
27
|
console.error(e);
|
|
28
|
-
|
|
28
|
+
isLoading.value = false;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
onMounted(() => {
|
|
@@ -33,7 +33,7 @@ const useLineListStore = defineStore("gmLineList", () => {
|
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
35
|
lineList,
|
|
36
|
-
|
|
36
|
+
isLoading,
|
|
37
37
|
getLineList
|
|
38
38
|
};
|
|
39
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useLineList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport { postShopAdminStoreFilter } from '@giime/api/shopAdmin';\r\nimport type { PostShopAdminStoreFilterResponseDataLine } from '@giime/api/shopAdmin';\r\n\r\n/**国家线路列表 */\r\nexport const useLineListStore = defineStore('gmLineList', () => {\r\n const lineList = useSessionStorage<PostShopAdminStoreFilterResponseDataLine[]>('gmLineList', [], { listenToStorageChanges: false });\r\n\r\n const
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useLineList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport { postShopAdminStoreFilter } from '@giime/api/shopAdmin';\r\nimport type { PostShopAdminStoreFilterResponseDataLine } from '@giime/api/shopAdmin';\r\n\r\n/**国家线路列表 */\r\nexport const useLineListStore = defineStore('gmLineList', () => {\r\n const lineList = useSessionStorage<PostShopAdminStoreFilterResponseDataLine[]>('gmLineList', [], { listenToStorageChanges: false });\r\n\r\n const isLoading = ref(false);\r\n const getLineList = async () => {\r\n if (lineList.value.length !== 0) {\r\n isLoading.value = false;\r\n return;\r\n }\r\n if (isLoading.value) {\r\n return;\r\n }\r\n try {\r\n isLoading.value = true;\r\n const { data } = await postShopAdminStoreFilter({ keys: 'line' });\r\n isLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n lineList.value = data.data.line;\r\n } catch (e) {\r\n console.error(e);\r\n isLoading.value = false;\r\n }\r\n };\r\n onMounted(() => {\r\n getLineList();\r\n });\r\n return {\r\n lineList,\r\n isLoading,\r\n getLineList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AAOa,MAAA,gBAAA,GAAmB,WAAY,CAAA,YAAA,EAAc,MAAM;AAC9D,EAAM,MAAA,QAAA,GAAW,kBAA8D,YAAc,EAAA,IAAI,EAAE,sBAAA,EAAwB,OAAO,CAAA,CAAA;AAElI,EAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,EAAA,MAAM,cAAc,YAAY;AAC9B,IAAI,IAAA,QAAA,CAAS,KAAM,CAAA,MAAA,KAAW,CAAG,EAAA;AAC/B,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,OAAA;AAAA,KACF;AACA,IAAA,IAAI,UAAU,KAAO,EAAA;AACnB,MAAA,OAAA;AAAA,KACF;AACA,IAAI,IAAA;AACF,MAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAClB,MAAM,MAAA,EAAE,MAAS,GAAA,MAAM,yBAAyB,EAAE,IAAA,EAAM,QAAQ,CAAA,CAAA;AAChE,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAI,IAAA,IAAA,CAAK,SAAS,CAAG,EAAA;AACnB,QAAA,OAAA;AAAA,OACF;AACA,MAAS,QAAA,CAAA,KAAA,GAAQ,KAAK,IAAK,CAAA,IAAA,CAAA;AAAA,aACpB,CAAG,EAAA;AACV,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAAA,KACpB;AAAA,GACF,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAY,WAAA,EAAA,CAAA;AAAA,GACb,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,QAAA;AAAA,IACA,SAAA;AAAA,IACA,WAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { computed, onMounted } from 'vue';
|
|
2
|
+
import { defineStore } from 'pinia';
|
|
3
|
+
import '../../../api/gatewayApi/controller/index.mjs';
|
|
4
|
+
import { groupBy } from 'lodash-es';
|
|
5
|
+
import { usePostPubGetOrgUser } from '../../../api/gatewayApi/controller/default/usePostPubGetOrgUser.mjs';
|
|
6
|
+
|
|
7
|
+
const useOrgUserListStore = defineStore("gmOrgUserList", () => {
|
|
8
|
+
const { isLoading, exec, data: userListData } = usePostPubGetOrgUser();
|
|
9
|
+
const userList = computed(() => userListData.value?.data || []);
|
|
10
|
+
const orgUserList = computed(() => {
|
|
11
|
+
const familyGroup = groupBy(userList.value, "family_code");
|
|
12
|
+
return Object.keys(familyGroup).map((familyCode) => {
|
|
13
|
+
return {
|
|
14
|
+
label: familyGroup[familyCode][0].family_name,
|
|
15
|
+
value: familyCode,
|
|
16
|
+
children: familyGroup[familyCode].map((it) => ({ label: it.user_name, value: it.user_id }))
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const getOrgUserList = async () => {
|
|
21
|
+
if (userList.value.length !== 0 || isLoading.value) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
return exec();
|
|
25
|
+
};
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
getOrgUserList();
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
userList,
|
|
31
|
+
isLoading,
|
|
32
|
+
orgUserList,
|
|
33
|
+
getOrgUserList
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { useOrgUserListStore };
|
|
38
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useOrgUserList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { usePostPubGetOrgUser } from '@giime/api/gatewayApi/controller';\r\nimport { groupBy } from 'lodash-es';\r\n\r\n/**用户-家族列表 */\r\nexport const useOrgUserListStore = defineStore('gmOrgUserList', () => {\r\n const { isLoading, exec, data: userListData } = usePostPubGetOrgUser();\r\n const userList = computed(() => userListData.value?.data || []);\r\n const orgUserList = computed(() => {\r\n const familyGroup = groupBy(userList.value, 'family_code');\r\n return Object.keys(familyGroup).map(familyCode => {\r\n return {\r\n label: familyGroup[familyCode][0].family_name,\r\n value: familyCode,\r\n children: familyGroup[familyCode].map(it => ({ label: it.user_name, value: it.user_id })),\r\n };\r\n });\r\n });\r\n const getOrgUserList = async () => {\r\n if (userList.value.length !== 0 || isLoading.value) {\r\n return;\r\n }\r\n return exec();\r\n };\r\n onMounted(() => {\r\n getOrgUserList();\r\n });\r\n return {\r\n userList,\r\n isLoading,\r\n orgUserList,\r\n getOrgUserList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AAMa,MAAA,mBAAA,GAAsB,WAAY,CAAA,eAAA,EAAiB,MAAM;AACpE,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