@lemon30_npm/csit-vue3 0.0.0

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.
Files changed (135) hide show
  1. package/README.md +0 -0
  2. package/dist/csit-vue3.js +5935 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.css +1 -0
  5. package/dist/types/src/App.vue.d.ts +2 -0
  6. package/dist/types/src/apis/common.d.ts +2 -0
  7. package/dist/types/src/axios/index.d.ts +3 -0
  8. package/dist/types/src/axios/middlewares/middleware-executor.d.ts +7 -0
  9. package/dist/types/src/axios/middlewares/request-middlewares/addContentType.d.ts +6 -0
  10. package/dist/types/src/axios/middlewares/request-middlewares/addToken.d.ts +6 -0
  11. package/dist/types/src/axios/middlewares/request-middlewares/addXRequestedWith.d.ts +5 -0
  12. package/dist/types/src/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.d.ts +7 -0
  13. package/dist/types/src/axios/middlewares/request-middlewares/logRequest.d.ts +5 -0
  14. package/dist/types/src/axios/middlewares/request-middlewares/type.d.ts +4 -0
  15. package/dist/types/src/axios/middlewares/response-middlewares/formatResponseData.d.ts +7 -0
  16. package/dist/types/src/axios/middlewares/response-middlewares/handle-error/errorMessages.d.ts +5 -0
  17. package/dist/types/src/axios/middlewares/response-middlewares/handle-error/handleError.d.ts +7 -0
  18. package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleFileStream.d.ts +8 -0
  19. package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleSuccess.d.ts +6 -0
  20. package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.d.ts +6 -0
  21. package/dist/types/src/axios/middlewares/response-middlewares/handle-success/successMessages.d.ts +9 -0
  22. package/dist/types/src/axios/middlewares/response-middlewares/handleRedirect.d.ts +12 -0
  23. package/dist/types/src/axios/middlewares/response-middlewares/logResponse.d.ts +7 -0
  24. package/dist/types/src/axios/middlewares/response-middlewares/type.d.ts +8 -0
  25. package/dist/types/src/components/components-global/SvgIcon/index.vue.d.ts +43 -0
  26. package/dist/types/src/components/components-global/index.d.ts +5 -0
  27. package/dist/types/src/components/components-project/ci-blue-line-title/index.vue.d.ts +14 -0
  28. package/dist/types/src/components/components-project/ci-blue-line-title/type.d.ts +4 -0
  29. package/dist/types/src/components/components-project/ci-common-list/ci-common-list-pagination/type.d.ts +5 -0
  30. package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +7 -0
  31. package/dist/types/src/components/components-project/ci-dictionary-select/config.d.ts +14 -0
  32. package/dist/types/src/components/components-project/ci-dictionary-select/model/index.d.ts +8 -0
  33. package/dist/types/src/components/components-project/ci-dictionary-select/type.d.ts +16 -0
  34. package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +33 -0
  35. package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +16 -0
  36. package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +110 -0
  37. package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/type.d.ts +18 -0
  38. package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +63 -0
  39. package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/model/options.d.ts +17 -0
  40. package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/type.d.ts +27 -0
  41. package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +77 -0
  42. package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/model/options.d.ts +30 -0
  43. package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/type.d.ts +26 -0
  44. package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +4 -0
  45. package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +12 -0
  46. package/dist/types/src/components/components-project/ci-no-data-status/type.d.ts +3 -0
  47. package/dist/types/src/components/components-project/ci-page-header/type.d.ts +7 -0
  48. package/dist/types/src/components/components-project/ci-time-line-list/model/index.d.ts +5 -0
  49. package/dist/types/src/components/components-project/ci-time-line-list/type.d.ts +8 -0
  50. package/dist/types/src/components/components-project/ci-upload/computed/index.d.ts +8 -0
  51. package/dist/types/src/components/components-project/ci-upload/expose/index.d.ts +17 -0
  52. package/dist/types/src/components/components-project/ci-upload/hooks/useUpload.d.ts +8 -0
  53. package/dist/types/src/components/components-project/ci-upload/hooks/useUploadRetry.d.ts +13 -0
  54. package/dist/types/src/components/components-project/ci-upload/index.vue.d.ts +56 -0
  55. package/dist/types/src/components/components-project/ci-upload/props/index.d.ts +27 -0
  56. package/dist/types/src/components/components-project/ci-upload/type.d.ts +39 -0
  57. package/dist/types/src/components/components-project/ci-upload/utils/file-icon-maps.d.ts +1 -0
  58. package/dist/types/src/components/components-project/ci-upload/utils/file.d.ts +8 -0
  59. package/dist/types/src/components/index.d.ts +5 -0
  60. package/dist/types/src/config/env-config/env-development.d.ts +9 -0
  61. package/dist/types/src/config/env-config/env-z_newSimulation.d.ts +4 -0
  62. package/dist/types/src/config/env-config/env-z_production.d.ts +4 -0
  63. package/dist/types/src/config/env-config/env-z_simulation.d.ts +4 -0
  64. package/dist/types/src/config/env-config/index.d.ts +3 -0
  65. package/dist/types/src/config/env-config/type.d.ts +5 -0
  66. package/dist/types/src/config/system-config/projectSettings.d.ts +9 -0
  67. package/dist/types/src/layout/api/user.d.ts +5 -0
  68. package/dist/types/src/layout/hooks/useUser.d.ts +6 -0
  69. package/dist/types/src/layout/index.vue.d.ts +2 -0
  70. package/dist/types/src/layout/layout-header/drawer-menu/MenuEachItem.vue.d.ts +15 -0
  71. package/dist/types/src/layout/layout-header/drawer-menu/RecentlyVisit.vue.d.ts +2 -0
  72. package/dist/types/src/layout/layout-header/drawer-menu/SearchMenuResult.vue.d.ts +14 -0
  73. package/dist/types/src/layout/layout-header/drawer-menu/hooks/useDrawerMenu.d.ts +6 -0
  74. package/dist/types/src/layout/layout-header/drawer-menu/index.vue.d.ts +5 -0
  75. package/dist/types/src/layout/layout-header/drawer-menu/type.d.ts +20 -0
  76. package/dist/types/src/layout/layout-header/index.vue.d.ts +2 -0
  77. package/dist/types/src/layout/layout-header/user-info/index.vue.d.ts +2 -0
  78. package/dist/types/src/layout/layout-left-menu/MenuItem.vue.d.ts +6 -0
  79. package/dist/types/src/layout/layout-left-menu/index.vue.d.ts +2 -0
  80. package/dist/types/src/layout/mock/local-dev-menus-tree/index.d.ts +51 -0
  81. package/dist/types/src/layout/mock/system-response-menus/dafei.d.ts +32 -0
  82. package/dist/types/src/layout/mock/system-response-menus/kjjg.d.ts +30 -0
  83. package/dist/types/src/layout/model/index.d.ts +12 -0
  84. package/dist/types/src/layout/store/menuStore.d.ts +167 -0
  85. package/dist/types/src/layout/store/userStore.d.ts +89 -0
  86. package/dist/types/src/layout/utils/menus.d.ts +33 -0
  87. package/dist/types/src/layout/utils/userInfoStorage.d.ts +7 -0
  88. package/dist/types/src/main.d.ts +0 -0
  89. package/dist/types/src/plugins/track/api/index.d.ts +7 -0
  90. package/dist/types/src/plugins/track/config/index.d.ts +47 -0
  91. package/dist/types/src/plugins/track/directive/index.d.ts +2 -0
  92. package/dist/types/src/plugins/track/index.d.ts +5 -0
  93. package/dist/types/src/plugins/track/type.d.ts +6 -0
  94. package/dist/types/src/plugins/track/utils/index.d.ts +21 -0
  95. package/dist/types/src/plugins/track/utils/trackRequest.d.ts +38 -0
  96. package/dist/types/src/router/index.d.ts +5 -0
  97. package/dist/types/src/router/middlewares/router-afterEach-middleware-runner.d.ts +9 -0
  98. package/dist/types/src/router/middlewares/router-beforeEach-middleware-runner.d.ts +9 -0
  99. package/dist/types/src/router/middlewares/router-middleware/errorHandlingMiddleware.d.ts +2 -0
  100. package/dist/types/src/router/middlewares/router-middleware/router-afterEach/trackLeavePageMiddleware.d.ts +2 -0
  101. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/authMiddleware.d.ts +2 -0
  102. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/dataPreloadMiddleware.d.ts +2 -0
  103. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/keepAliveMiddleware.d.ts +2 -0
  104. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/loggerMiddleware.d.ts +2 -0
  105. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/trackPageMiddleware.d.ts +2 -0
  106. package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/userAddressBarInputUrlAndClickDrawerMenuMiddleware.d.ts +6 -0
  107. package/dist/types/src/router/router-guards.d.ts +6 -0
  108. package/dist/types/src/router/routes-permission/whiteList.d.ts +6 -0
  109. package/dist/types/src/router/routes.d.ts +52 -0
  110. package/dist/types/src/stores/keepAliveStore.d.ts +19 -0
  111. package/dist/types/src/utils/echarts-UI-colors/index.d.ts +12 -0
  112. package/dist/types/src/utils/file.d.ts +18 -0
  113. package/dist/types/src/utils/system/useSystem.d.ts +3 -0
  114. package/dist/types/src/views/401/index.vue.d.ts +2 -0
  115. package/dist/types/src/views/401/routes/index.d.ts +14 -0
  116. package/dist/types/src/views/404/index.vue.d.ts +2 -0
  117. package/dist/types/src/views/404/routes/index.d.ts +14 -0
  118. package/dist/types/src/views/home/index.vue.d.ts +2 -0
  119. package/dist/types/src/views/home/model/quotes.d.ts +4 -0
  120. package/dist/types/src/views/home/routes/index.d.ts +13 -0
  121. package/dist/types/src/views-demo/routes/index.d.ts +8 -0
  122. package/dist/types/src/views-demo/usedemo-ci-common-component/index.vue.d.ts +2 -0
  123. package/dist/types/src/views-demo/usedemo-ci-common-component/routes/index.d.ts +13 -0
  124. package/dist/types/src/views-demo/usedemo-ci-common-list/api/index.d.ts +2 -0
  125. package/dist/types/src/views-demo/usedemo-ci-common-list/index.vue.d.ts +2 -0
  126. package/dist/types/src/views-demo/usedemo-ci-common-list/mock/index.d.ts +81 -0
  127. package/dist/types/src/views-demo/usedemo-ci-common-list/model/index.d.ts +59 -0
  128. package/dist/types/src/views-demo/usedemo-ci-common-list/routes/index.d.ts +13 -0
  129. package/dist/types/src/views-demo/usedemo-ci-common-list-start-end-datepicker/index.vue.d.ts +2 -0
  130. package/dist/types/src/views-demo/usedemo-ci-common-list-start-end-datepicker/routes/index.d.ts +13 -0
  131. package/dist/types/src/views-demo/usedemo-ci-page-header/index.vue.d.ts +2 -0
  132. package/dist/types/src/views-demo/usedemo-ci-page-header/routes/index.d.ts +13 -0
  133. package/dist/types/src/views-demo/usedemo-ci-upload/index.vue.d.ts +4 -0
  134. package/dist/types/src/views-demo/usedemo-ci-upload/routes/index.d.ts +13 -0
  135. package/package.json +90 -0
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 会计监管系统拿过来的新仿真数据
3
+ */
4
+ /**平级菜单数据转化为嵌套子级菜单数据的方法中 会计监管用了 id title parentId path 后添加的属性去判断逻辑了,
5
+ 导致方法拿过来用干净的数据入参,导致报错
6
+ */
7
+ /**
8
+ * 原数据添加过其他属性
9
+ * res.data.data.map(item => {
10
+ item.id = item.menuId
11
+ item.title = item.menuTitle
12
+ item.parentId = item.menuParentId
13
+ item.path = item.menuUrl
14
+ })
15
+ */
16
+ export declare const MockPermissionMenus_kjjg: {
17
+ menuId: string;
18
+ menuTitle: string;
19
+ menuUrl: string;
20
+ menuIcon: string;
21
+ menuOrderNum: number;
22
+ menuDescrib: string;
23
+ menuParentId: string;
24
+ menuType: string;
25
+ target: string;
26
+ id: string;
27
+ title: string;
28
+ parentId: string;
29
+ path: string;
30
+ }[];
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 布局头部右侧用户信息处:可点击的按钮数据
3
+ * iconHover: 日后提到需求如果鼠标hover到按钮上 图标要变化时: 请更改此属性值即可,且找到相应的SVG代码放到assets目录里,svg名字要和iconHover值配置的一致
4
+ */
5
+ export declare const userInfoClickBtn: {
6
+ id: string;
7
+ title: string;
8
+ icon: string;
9
+ iconHover: string;
10
+ color: string;
11
+ colorHover: string;
12
+ }[];
@@ -0,0 +1,167 @@
1
+ import { MenuListItem } from '../layout-header/drawer-menu/type';
2
+ export declare const useMenuStore: import('pinia').StoreDefinition<"menuStore", Pick<{
3
+ leftSideBarMenuList: import('vue').Ref<{
4
+ menuId: string;
5
+ menuTitle: string;
6
+ menuUrl: string;
7
+ menuIcon?: string;
8
+ menuOrderNum?: number;
9
+ menuDescrib?: string;
10
+ menuParentId: string;
11
+ menuType?: string;
12
+ target?: string;
13
+ keepAlive?: string;
14
+ children?: any[];
15
+ }[], MenuListItem[] | {
16
+ menuId: string;
17
+ menuTitle: string;
18
+ menuUrl: string;
19
+ menuIcon?: string;
20
+ menuOrderNum?: number;
21
+ menuDescrib?: string;
22
+ menuParentId: string;
23
+ menuType?: string;
24
+ target?: string;
25
+ keepAlive?: string;
26
+ children?: any[];
27
+ }[]>;
28
+ leftMenuDefaultActiveMenuId: import('vue').Ref<string, string>;
29
+ recentlyVisitHistoryRecord: import('vue').Ref<{
30
+ menuId: string;
31
+ menuTitle: string;
32
+ menuUrl: string;
33
+ menuIcon?: string;
34
+ menuOrderNum?: number;
35
+ menuDescrib?: string;
36
+ menuParentId: string;
37
+ menuType?: string;
38
+ target?: string;
39
+ keepAlive?: string;
40
+ children?: any[];
41
+ }[], MenuListItem[] | {
42
+ menuId: string;
43
+ menuTitle: string;
44
+ menuUrl: string;
45
+ menuIcon?: string;
46
+ menuOrderNum?: number;
47
+ menuDescrib?: string;
48
+ menuParentId: string;
49
+ menuType?: string;
50
+ target?: string;
51
+ keepAlive?: string;
52
+ children?: any[];
53
+ }[]>;
54
+ updateLeftSideBarMenuList: (item: MenuListItem) => void;
55
+ updateleftMenuDefaultActiveMenuId: (menuId: string) => void;
56
+ updatRrecentlyVisitHistoryRecord: (item: MenuListItem) => void;
57
+ }, "leftSideBarMenuList" | "leftMenuDefaultActiveMenuId" | "recentlyVisitHistoryRecord">, Pick<{
58
+ leftSideBarMenuList: import('vue').Ref<{
59
+ menuId: string;
60
+ menuTitle: string;
61
+ menuUrl: string;
62
+ menuIcon?: string;
63
+ menuOrderNum?: number;
64
+ menuDescrib?: string;
65
+ menuParentId: string;
66
+ menuType?: string;
67
+ target?: string;
68
+ keepAlive?: string;
69
+ children?: any[];
70
+ }[], MenuListItem[] | {
71
+ menuId: string;
72
+ menuTitle: string;
73
+ menuUrl: string;
74
+ menuIcon?: string;
75
+ menuOrderNum?: number;
76
+ menuDescrib?: string;
77
+ menuParentId: string;
78
+ menuType?: string;
79
+ target?: string;
80
+ keepAlive?: string;
81
+ children?: any[];
82
+ }[]>;
83
+ leftMenuDefaultActiveMenuId: import('vue').Ref<string, string>;
84
+ recentlyVisitHistoryRecord: import('vue').Ref<{
85
+ menuId: string;
86
+ menuTitle: string;
87
+ menuUrl: string;
88
+ menuIcon?: string;
89
+ menuOrderNum?: number;
90
+ menuDescrib?: string;
91
+ menuParentId: string;
92
+ menuType?: string;
93
+ target?: string;
94
+ keepAlive?: string;
95
+ children?: any[];
96
+ }[], MenuListItem[] | {
97
+ menuId: string;
98
+ menuTitle: string;
99
+ menuUrl: string;
100
+ menuIcon?: string;
101
+ menuOrderNum?: number;
102
+ menuDescrib?: string;
103
+ menuParentId: string;
104
+ menuType?: string;
105
+ target?: string;
106
+ keepAlive?: string;
107
+ children?: any[];
108
+ }[]>;
109
+ updateLeftSideBarMenuList: (item: MenuListItem) => void;
110
+ updateleftMenuDefaultActiveMenuId: (menuId: string) => void;
111
+ updatRrecentlyVisitHistoryRecord: (item: MenuListItem) => void;
112
+ }, never>, Pick<{
113
+ leftSideBarMenuList: import('vue').Ref<{
114
+ menuId: string;
115
+ menuTitle: string;
116
+ menuUrl: string;
117
+ menuIcon?: string;
118
+ menuOrderNum?: number;
119
+ menuDescrib?: string;
120
+ menuParentId: string;
121
+ menuType?: string;
122
+ target?: string;
123
+ keepAlive?: string;
124
+ children?: any[];
125
+ }[], MenuListItem[] | {
126
+ menuId: string;
127
+ menuTitle: string;
128
+ menuUrl: string;
129
+ menuIcon?: string;
130
+ menuOrderNum?: number;
131
+ menuDescrib?: string;
132
+ menuParentId: string;
133
+ menuType?: string;
134
+ target?: string;
135
+ keepAlive?: string;
136
+ children?: any[];
137
+ }[]>;
138
+ leftMenuDefaultActiveMenuId: import('vue').Ref<string, string>;
139
+ recentlyVisitHistoryRecord: import('vue').Ref<{
140
+ menuId: string;
141
+ menuTitle: string;
142
+ menuUrl: string;
143
+ menuIcon?: string;
144
+ menuOrderNum?: number;
145
+ menuDescrib?: string;
146
+ menuParentId: string;
147
+ menuType?: string;
148
+ target?: string;
149
+ keepAlive?: string;
150
+ children?: any[];
151
+ }[], MenuListItem[] | {
152
+ menuId: string;
153
+ menuTitle: string;
154
+ menuUrl: string;
155
+ menuIcon?: string;
156
+ menuOrderNum?: number;
157
+ menuDescrib?: string;
158
+ menuParentId: string;
159
+ menuType?: string;
160
+ target?: string;
161
+ keepAlive?: string;
162
+ children?: any[];
163
+ }[]>;
164
+ updateLeftSideBarMenuList: (item: MenuListItem) => void;
165
+ updateleftMenuDefaultActiveMenuId: (menuId: string) => void;
166
+ updatRrecentlyVisitHistoryRecord: (item: MenuListItem) => void;
167
+ }, "updateLeftSideBarMenuList" | "updateleftMenuDefaultActiveMenuId" | "updatRrecentlyVisitHistoryRecord">>;
@@ -0,0 +1,89 @@
1
+ import { MenuListItem } from '../layout-header/drawer-menu/type';
2
+ export declare const useUserStore: import('pinia').StoreDefinition<"userStore", Pick<{
3
+ userInfo: import('vue').Ref<Record<string, any>, Record<string, any>>;
4
+ userMenu: import('vue').Ref<{
5
+ menuId: string;
6
+ menuTitle: string;
7
+ menuUrl: string;
8
+ menuIcon?: string;
9
+ menuOrderNum?: number;
10
+ menuDescrib?: string;
11
+ menuParentId: string;
12
+ menuType?: string;
13
+ target?: string;
14
+ keepAlive?: string;
15
+ children?: any[];
16
+ }[], MenuListItem[] | {
17
+ menuId: string;
18
+ menuTitle: string;
19
+ menuUrl: string;
20
+ menuIcon?: string;
21
+ menuOrderNum?: number;
22
+ menuDescrib?: string;
23
+ menuParentId: string;
24
+ menuType?: string;
25
+ target?: string;
26
+ keepAlive?: string;
27
+ children?: any[];
28
+ }[]>;
29
+ fetchUserInfo: () => Promise<string>;
30
+ fetchUserMenu: () => Promise<string>;
31
+ }, "userInfo" | "userMenu">, Pick<{
32
+ userInfo: import('vue').Ref<Record<string, any>, Record<string, any>>;
33
+ userMenu: import('vue').Ref<{
34
+ menuId: string;
35
+ menuTitle: string;
36
+ menuUrl: string;
37
+ menuIcon?: string;
38
+ menuOrderNum?: number;
39
+ menuDescrib?: string;
40
+ menuParentId: string;
41
+ menuType?: string;
42
+ target?: string;
43
+ keepAlive?: string;
44
+ children?: any[];
45
+ }[], MenuListItem[] | {
46
+ menuId: string;
47
+ menuTitle: string;
48
+ menuUrl: string;
49
+ menuIcon?: string;
50
+ menuOrderNum?: number;
51
+ menuDescrib?: string;
52
+ menuParentId: string;
53
+ menuType?: string;
54
+ target?: string;
55
+ keepAlive?: string;
56
+ children?: any[];
57
+ }[]>;
58
+ fetchUserInfo: () => Promise<string>;
59
+ fetchUserMenu: () => Promise<string>;
60
+ }, never>, Pick<{
61
+ userInfo: import('vue').Ref<Record<string, any>, Record<string, any>>;
62
+ userMenu: import('vue').Ref<{
63
+ menuId: string;
64
+ menuTitle: string;
65
+ menuUrl: string;
66
+ menuIcon?: string;
67
+ menuOrderNum?: number;
68
+ menuDescrib?: string;
69
+ menuParentId: string;
70
+ menuType?: string;
71
+ target?: string;
72
+ keepAlive?: string;
73
+ children?: any[];
74
+ }[], MenuListItem[] | {
75
+ menuId: string;
76
+ menuTitle: string;
77
+ menuUrl: string;
78
+ menuIcon?: string;
79
+ menuOrderNum?: number;
80
+ menuDescrib?: string;
81
+ menuParentId: string;
82
+ menuType?: string;
83
+ target?: string;
84
+ keepAlive?: string;
85
+ children?: any[];
86
+ }[]>;
87
+ fetchUserInfo: () => Promise<string>;
88
+ fetchUserMenu: () => Promise<string>;
89
+ }, "fetchUserInfo" | "fetchUserMenu">>;
@@ -0,0 +1,33 @@
1
+ import { MenuListItem } from '../layout-header/drawer-menu/type';
2
+ /**
3
+ * 根据menuParentId找到此menuParentId对应的父级数据
4
+ * @param list 最外层传入的数组
5
+ * @param menuParentId 子级对应的上级关系menuParentId
6
+ * @returns {*[]} 会把传入的menuParentId对应的所有父节点单独存放起来
7
+ */
8
+ export declare function findParent(list: MenuListItem[], menuParentId: string): MenuListItem[];
9
+ /**
10
+ * 功能: 目前只支持查询所有能点击的子菜单名(如需要查询所有节点菜单名,需更改优化此方法逻辑)
11
+ * @param list 总的菜单数据
12
+ * @param searchValue 查询条件的值
13
+ */
14
+ export declare function findIncludeSearchParent(list: MenuListItem[], searchValue: string): MenuListItem[];
15
+ /**
16
+ * 平级菜单数据转化为嵌套子级菜单数据
17
+ * @param array 要传入的一维数组
18
+ * @param menuParentId 父节点的id,注意付Id字段要为menuParentId
19
+ */
20
+ export declare function lateralMenusToTree(array: MenuListItem[], menuParentId?: string): any[];
21
+ /**
22
+ * 深度遍历找到第一个有 `menuUrl` 的菜单项
23
+ * @param menus 菜单列表
24
+ * @returns 第一个有 `menuUrl` 的菜单项
25
+ */
26
+ export declare const findFirstClickableMenu: (menus: MenuListItem[]) => MenuListItem | null;
27
+ /**
28
+ * 根据路径递归查找菜单数据对象
29
+ * @param {string} path - 目标路径,例如 /statistics/report/report
30
+ * @param {Array} menuTree - 后端返回的菜单数据(树结构)
31
+ * @returns {Object|null} - 找到的菜单数据对象,找不到则返回 null
32
+ */
33
+ export declare function findMenuByPath(path: string, menuTree: MenuListItem[]): MenuListItem | null;
@@ -0,0 +1,7 @@
1
+ import { MenuListItem } from '../layout-header/drawer-menu/type';
2
+ export declare const setStorageMenusOriginToTree: (menuList: MenuListItem[]) => void;
3
+ export declare const setStorageMenusOrigin: (menuList: MenuListItem) => void;
4
+ export declare const setStorageUserInfo: (userinfo: any) => void;
5
+ export declare const getStorageMenusOriginToTree: () => any;
6
+ export declare const getStorageUserInfo: () => any;
7
+ export declare const getStorageMenusOrigin: () => any;
File without changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 埋点请求接口封装
3
+ *
4
+ * 接口文档地址: https://www.kdocs.cn/l/cn3Dh2g9TrkN
5
+ */
6
+ export declare const startSubmit: (data: any) => Promise<import('axios').AxiosResponse<any, any>>;
7
+ export declare const endSubmit: (data: any) => Promise<import('axios').AxiosResponse<any, any>>;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Desc: 埋点配置
3
+ *
4
+ * PS: 别依赖于全局配置文件, 而是只针对于当前模块的配置文件, 以便于模块的独立性, 便于模块的复用, 便于模块的维护, 便于模块的测试, 便于模块的迁移
5
+ */
6
+ export declare const trackSettings: {
7
+ track_systemName: string;
8
+ track_systemCode: string;
9
+ track_systemShortName: string;
10
+ track_page_entry_url: string;
11
+ track_page_leave_url: string;
12
+ track_isOpen: boolean;
13
+ track_isOpenPage: boolean;
14
+ track_isOpenDirective: boolean;
15
+ track_isOpenCustomInvoke: boolean;
16
+ track_router: any;
17
+ getBaseParams: typeof getBaseParams;
18
+ };
19
+ export declare function setupTrackRouter(router: any): void;
20
+ /**
21
+ * 【!!! 每个项目的用户信息里面的字段不尽相同, 字段后方注释:参数需必传的:请自行修改获取值的字段名称!!!】
22
+ *
23
+ *
24
+ * 获取埋点的基础参数(每次请求都会自动携带)
25
+ * @returns {Record<string, any>} 返回包含基础信息的对象
26
+ *
27
+ * 说明:
28
+ * 1. 模块使用者可以根据自己的业务需求,和返回的用户信息字段自行修改、添加、删除基础参数
29
+ * 2. 公共的参数维护在此处, 方便统一管理
30
+ * !!! 3. 请勿在此处添加业务参数 !!! 业务参数请在调用埋点接口时传入
31
+ *
32
+ */
33
+ export declare function getBaseParams(): {
34
+ host: string;
35
+ userAgent: string;
36
+ systemName: string;
37
+ systemCode: string;
38
+ account: any;
39
+ userId: any;
40
+ userName: any;
41
+ deptId: any;
42
+ deptName: any;
43
+ pathFrom: any;
44
+ path: string;
45
+ url: string;
46
+ eventTime: string;
47
+ };
@@ -0,0 +1,2 @@
1
+ import { Directive } from 'vue';
2
+ export declare const trackDirective: Directive;
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ declare const TrackPlugin: {
3
+ install(app: App, router: any): void;
4
+ };
5
+ export default TrackPlugin;
@@ -0,0 +1,6 @@
1
+ export interface TrackAPIs {
2
+ track_page_entry: (payload?: Record<string, any>) => Promise<void>;
3
+ track_page_leave: () => Promise<void>;
4
+ track_custom_invoke: (payload?: Record<string, any>) => Promise<void>;
5
+ track_v_track: (payload?: Record<string, any>) => Promise<void>;
6
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 说明:埋点工具函数
3
+ *
4
+ * 接口文档地址: https://www.kdocs.cn/l/cn3Dh2g9TrkN
5
+ */
6
+ /**
7
+ * 获取或创建埋点的 UUID(保证进入和离开时相同)
8
+ * @param {string} condition 页面操作的条件
9
+ * @returns {string} 页面唯一标识
10
+ */
11
+ export declare const getUUID: (condition?: string) => string;
12
+ /**
13
+ * 存入缓存 - track_pageUUID
14
+ * @param {string} key 缓存的 key
15
+ * @param {string} track_pageUUID 页面唯一标识
16
+ */
17
+ export declare const setStorageTrackPageUUID: (key: string, track_pageUUID: string) => void;
18
+ /**
19
+ * 读取缓存 - track_pageUUID
20
+ */
21
+ export declare const getStorageTrackPageUUID: () => string;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 发送埋点请求功能封装
3
+ *
4
+ * 接口文档地址: https://www.kdocs.cn/l/cn3Dh2g9TrkN
5
+ *
6
+ * 页面操作:进入页面首先调用 startSubmit 接口;每次的用户操作都必须有唯一的操作标识(前端可以生成UUID),在startSubmit 和 endSubmit中必须传入。在离开页面的时候调用endSubmit。
7
+ * 按钮操作:按钮操作,可以只调用 startSubmit 接口即可。
8
+ */
9
+ /**
10
+ * 页面操作 - 进入页面埋点请求
11
+ * @param {Record<string, any>} payload 业务数据参数
12
+ *
13
+ * event 行为类型 1 浏览 2点击 3 登录 4 登出
14
+ */
15
+ export declare const track_page_entry: (payload?: Record<string, any>) => Promise<void>;
16
+ /**
17
+ * 页面操作 - 离开页面埋点请求
18
+ * @param {Record<string, any>} payload 业务数据参数
19
+ *
20
+ * event 行为类型 1 浏览 2点击 3 登录 4 登出
21
+ */
22
+ export declare const track_page_leave: () => Promise<void>;
23
+ /**
24
+ * 按钮操作 - 自定义调用埋点请求
25
+ * @param {Record<string, any>} payload 业务数据参数
26
+ *
27
+ * event 行为类型 1 浏览 2点击 3 登录 4 登出
28
+ */
29
+ export declare const track_custom_invoke: (payload?: Record<string, any>) => Promise<void>;
30
+ /**
31
+ * 指令操作 - v-tack指令埋点请求
32
+ * @param {Record<string, any>} payload 业务数据参数
33
+ * @param {Record<string, any>} config 配置参数
34
+ * - customPath 是否自定义path路径 默认为false
35
+ *
36
+ * event 行为类型 1 浏览 2点击 3 登录 4 登出
37
+ */
38
+ export declare const track_v_track: (payload?: Record<string, any>) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 路由文件只负责基本配置和守卫注册。
3
+ */
4
+ declare const router: import('vue-router').Router;
5
+ export default router;
@@ -0,0 +1,9 @@
1
+ import { RouteLocationNormalized } from 'vue-router';
2
+ type Middleware = (to: RouteLocationNormalized, from: RouteLocationNormalized) => void;
3
+ /**
4
+ * 执行中间件的工具
5
+ * @param middlewares 中间件数组
6
+ * @returns Vue Router 的导航守卫
7
+ */
8
+ export declare function routerAfterEachCreatedMiddlewareRunner(middlewares: Middleware[]): (to: RouteLocationNormalized, from: RouteLocationNormalized) => void;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ type Middleware = (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => void;
3
+ /**
4
+ * 执行中间件的工具
5
+ * @param middlewares 中间件数组
6
+ * @returns Vue Router 的导航守卫
7
+ */
8
+ export declare function routerBeforeEachCreatedMiddlewareRunner(middlewares: Middleware[]): (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => void;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function errorHandlingMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized } from 'vue-router';
2
+ export declare function trackLeavePage(to: RouteLocationNormalized, from: RouteLocationNormalized): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function authMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function dataPreloadMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function keepAliveMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function loggerMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
@@ -0,0 +1,2 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ export declare function track_leavePage_entryPage(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
2
+ /**
3
+ * 用户地址栏输入URL进行跳转左侧菜单正常显示且目标菜单高亮
4
+ * 用户点击抽屉菜单进行跳转左侧菜单正常显示且目标菜单高亮
5
+ */
6
+ export declare function userAddressBarInputUrlAndClickDrawerMenu(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { Router } from 'vue-router';
2
+ /**
3
+ * 设置路由守卫
4
+ * @param router: 路由器实例
5
+ */
6
+ export declare function setupRouterGuards(router: Router): void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 优雅的模块化设计
3
+ *
4
+ * 白名单模块:存放无需认证的路由(后端返回的权限菜单, 有一部分前端逻辑中的路由是不包含的, 它只包含业务菜单url)
5
+ */
6
+ export declare const whiteList: string[];
@@ -0,0 +1,52 @@
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ /**
3
+ * 场景描述:用户在一个分页列表中查看数据,点击进入详情页后再返回时,列表的滚动位置和查询条件需要保留。
4
+ * 同时,当切换两个菜单的列表页面时,彼此不缓存
5
+ *
6
+ * !!!路由规则重要 样例如下 为了实现keepAlive配置
7
+ *
8
+ * {
9
+ * path: 'involveNoMonitorWarn/external/fundPlatform',
10
+ * component: () => import('../FundPlatformList.vue'),
11
+ * // 规则: 路由组件名称唯一 且 需要和引用的component里面的name名字一致; 反之亦然: 路由组件内部必须有name,且和此处一致
12
+ * name: 'FundPlatformList',
13
+ * meta: {
14
+ * // 标记是否需要缓存 ** 字段不必填
15
+ * keepAlive: true,
16
+ * // 只有目标页面是 keepAliveNames 里面的数据时, 当前页面才被缓存 ** 字段不必填
17
+ * keepAliveNames: ['FundPlatformDetail'],
18
+ * }
19
+ * }
20
+ *
21
+ */
22
+ /**
23
+ * 所有的详情页面路由: 需要是列表页面的子路由规则模式 即使我们目前都是配置到layout的子级路由,详情页面的路由是全部自定义的path
24
+ * 但是某个列表页面的详情页面路由 规则要符合是其列表页面的子路由
25
+ * 示例:
26
+ * 入口页面: path: 'statistics/submit/statistics'
27
+ * 入口页面其详情页面: path: 'statistics/submit/statistics/submitDetail'
28
+ */
29
+ /**
30
+ * 说明:
31
+ * ①: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则调用按钮埋点请求时、v-track指令不传参时,只使用按钮文本作为埋点path参数入参;
32
+ * ②: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则自定义调用按钮埋点请求时,path参数入参为空: path: '';
33
+ * ③: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则调用进入页面埋点请求时埋点path参数入参为空: path: '';
34
+ *
35
+ * 示例:
36
+ // 配资平台列表
37
+ {
38
+ path: 'involveNoMonitorWarn/external/fundPlatform',
39
+ component: () => import('../FundPlatformList.vue'),
40
+ meta: {
41
+ track_path: '涉非监测预警,场外配资监测,配资平台列表',
42
+ },
43
+ },
44
+ // 配资账户列表
45
+ {
46
+ path: 'involveNoMonitorWarn/external/fundAccount',
47
+ component: () => import('../FundAccountList.vue'),
48
+ meta: { track_path: '涉非监测预警,场外配资监测,配资账户列表' },
49
+ },
50
+ *
51
+ */
52
+ export declare const routes: Array<RouteRecordRaw>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * keepAlive操作仓库
3
+ */
4
+ export declare const useKeepAliveStore: import('pinia').StoreDefinition<"keepAliveStore", Pick<{
5
+ cachedComponents: import('vue').Ref<string[], string[]>;
6
+ addCachedComponent: (componentName: string) => void;
7
+ removeCachedComponent: (componentName: string) => void;
8
+ clearCachedComponents: () => void;
9
+ }, "cachedComponents">, Pick<{
10
+ cachedComponents: import('vue').Ref<string[], string[]>;
11
+ addCachedComponent: (componentName: string) => void;
12
+ removeCachedComponent: (componentName: string) => void;
13
+ clearCachedComponents: () => void;
14
+ }, never>, Pick<{
15
+ cachedComponents: import('vue').Ref<string[], string[]>;
16
+ addCachedComponent: (componentName: string) => void;
17
+ removeCachedComponent: (componentName: string) => void;
18
+ clearCachedComponents: () => void;
19
+ }, "addCachedComponent" | "removeCachedComponent" | "clearCachedComponents">>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 中证UI 设计 echarts 配色列表
3
+ */
4
+ export declare const colorList: string[];
5
+ /**
6
+ * 功能: 为数据添加颜色
7
+ * @param data 需要添加颜色的数据
8
+ * @param colors 配色列表
9
+ * @param key 需要添加颜色的数据的键名
10
+ * @returns 添加颜色后的数据
11
+ */
12
+ export declare const processDataWithColors: (data: any, colors: any, key: any) => any;