xxl-job-vue3 1.0.0 → 1.0.2
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.
Potentially problematic release.
This version of xxl-job-vue3 might be problematic. Click here for more details.
- package/README.md +34 -3
- package/dist/403-CT_xpxt9.js +35 -0
- package/dist/404-D41S06ze.js +35 -0
- package/dist/500-DiwNQtiW.js +35 -0
- package/dist/index-BQYLMMeF.js +1341 -0
- package/dist/lib-index-Ce2gwbBI.js +40483 -0
- package/dist/style.css +1 -0
- package/dist/types/src/api/config/servicePort.d.ts +6 -0
- package/dist/types/src/api/helper/axiosCancel.d.ts +20 -0
- package/dist/types/src/api/helper/checkStatus.d.ts +6 -0
- package/dist/types/src/api/index.d.ts +24 -0
- package/dist/types/src/api/interface/common.d.ts +72 -0
- package/dist/types/src/api/interface/index.d.ts +10 -0
- package/dist/types/src/api/interface/xxlJob/jobDashboard.d.ts +36 -0
- package/dist/types/src/api/interface/xxlJob/jobExecutor.d.ts +32 -0
- package/dist/types/src/api/interface/xxlJob/jobInfo.d.ts +73 -0
- package/dist/types/src/api/interface/xxlJob/jobLogs.d.ts +29 -0
- package/dist/types/src/api/modules/common.d.ts +4 -0
- package/dist/types/src/api/modules/index.d.ts +12 -0
- package/dist/types/src/api/modules/upload.d.ts +11 -0
- package/dist/types/src/api/modules/xxlJob/jobDashboard.d.ts +10 -0
- package/dist/types/src/api/modules/xxlJob/jobExecutor.d.ts +23 -0
- package/dist/types/src/api/modules/xxlJob/jobInfo.d.ts +51 -0
- package/dist/types/src/api/modules/xxlJob/jobLogs.d.ts +16 -0
- package/dist/types/src/components/ECharts/config/index.d.ts +6 -0
- package/dist/types/src/components/ECharts/index.vue.d.ts +44 -0
- package/dist/types/src/components/ErrorMessage/403.vue.d.ts +2 -0
- package/dist/types/src/components/ErrorMessage/404.vue.d.ts +2 -0
- package/dist/types/src/components/ErrorMessage/500.vue.d.ts +2 -0
- package/dist/types/src/components/Grid/components/GridItem.vue.d.ts +67 -0
- package/dist/types/src/components/Grid/index.vue.d.ts +65 -0
- package/dist/types/src/components/Grid/interface/index.d.ts +5 -0
- package/dist/types/src/components/Loading/fullScreen.d.ts +5 -0
- package/dist/types/src/components/ProTable/components/ColSetting.vue.d.ts +19 -0
- package/dist/types/src/components/ProTable/components/Pagination.vue.d.ts +21 -0
- package/dist/types/src/components/ProTable/components/TableColumn.vue.d.ts +17 -0
- package/dist/types/src/components/ProTable/index.vue.d.ts +3132 -0
- package/dist/types/src/components/ProTable/interface/index.d.ts +102 -0
- package/dist/types/src/components/SearchForm/components/SearchFormItem.vue.d.ts +28 -0
- package/dist/types/src/components/SearchForm/index.vue.d.ts +46 -0
- package/dist/types/src/components/SwitchDark/index.vue.d.ts +2 -0
- package/dist/types/src/config/index.d.ts +4 -0
- package/dist/types/src/config/nprogress.d.ts +3 -0
- package/dist/types/src/directives/index.d.ts +6 -0
- package/dist/types/src/directives/modules/auth.d.ts +4 -0
- package/dist/types/src/enums/httpEnum.d.ts +29 -0
- package/dist/types/src/hooks/interface/index.d.ts +30 -0
- package/dist/types/src/hooks/useAuthButtons.d.ts +8 -0
- package/dist/types/src/hooks/useDownload.d.ts +20 -0
- package/dist/types/src/hooks/useHandleData.d.ts +12 -0
- package/dist/types/src/hooks/useOnline.d.ts +6 -0
- package/dist/types/src/hooks/useSelection.d.ts +17 -0
- package/dist/types/src/hooks/useTable.d.ts +46 -0
- package/dist/types/src/hooks/useTheme.d.ts +13 -0
- package/dist/types/src/hooks/useTime.d.ts +15 -0
- package/dist/types/src/languages/index.d.ts +62 -0
- package/dist/types/src/languages/modules/en.d.ts +31 -0
- package/dist/types/src/languages/modules/zh.d.ts +30 -0
- package/dist/types/src/layouts/LayoutClassic/index.vue.d.ts +2 -0
- package/dist/types/src/layouts/LayoutTransverse/index.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Footer/index.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/ToolBarLeft.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/ToolBarRight.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/components/Avatar.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/components/Breadcrumb.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/components/CollapseIcon.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/components/Fullscreen.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Header/components/ThemeSetting.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Main/components/Maximize.vue.d.ts +2 -0
- package/dist/types/src/layouts/components/Main/index.vue.d.ts +28 -0
- package/dist/types/src/layouts/components/Menu/SubMenu.vue.d.ts +15 -0
- package/dist/types/src/layouts/components/Tabs/components/MoreButton.vue.d.ts +6 -0
- package/dist/types/src/layouts/components/Tabs/index.vue.d.ts +6 -0
- package/dist/types/src/layouts/components/ThemeDrawer/index.vue.d.ts +2 -0
- package/dist/types/src/layouts/index.vue.d.ts +2 -0
- package/dist/types/src/lib-index.d.ts +9 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/routers/index.d.ts +22 -0
- package/dist/types/src/routers/modules/dynamicRouter.d.ts +6 -0
- package/dist/types/src/routers/modules/staticRouter.d.ts +22 -0
- package/dist/types/src/stores/helper/persist.d.ts +10 -0
- package/dist/types/src/stores/index.d.ts +2 -0
- package/dist/types/src/stores/interface/index.d.ts +66 -0
- package/dist/types/src/stores/modules/auth.d.ts +156 -0
- package/dist/types/src/stores/modules/global.d.ts +43 -0
- package/dist/types/src/stores/modules/keepAlive.d.ts +7 -0
- package/dist/types/src/stores/modules/tabs.d.ts +10 -0
- package/dist/types/src/stores/modules/user.d.ts +17 -0
- package/dist/types/src/styles/theme/aside.d.ts +5 -0
- package/dist/types/src/styles/theme/header.d.ts +5 -0
- package/dist/types/src/styles/theme/menu.d.ts +5 -0
- package/dist/types/src/utils/aes.d.ts +12 -0
- package/dist/types/src/utils/color.d.ts +28 -0
- package/dist/types/src/utils/dict.d.ts +257 -0
- package/dist/types/src/utils/eleValidate.d.ts +4 -0
- package/dist/types/src/utils/errorHandler.d.ts +5 -0
- package/dist/types/src/utils/index.d.ts +235 -0
- package/dist/types/src/utils/is/index.d.ts +126 -0
- package/dist/types/src/utils/mittBus.d.ts +2 -0
- package/dist/types/src/utils/sm3.d.ts +6 -0
- package/dist/types/src/utils/sm4.d.ts +14 -0
- package/dist/types/src/utils/svg.d.ts +4 -0
- package/dist/types/src/utils/xxl-bridge.d.ts +21 -0
- package/dist/types/src/views/xxlJob/jobDashboard/index.vue.d.ts +2 -0
- package/dist/types/src/views/xxlJob/jobExecutor/components/EditExecutor.vue.d.ts +21 -0
- package/dist/types/src/views/xxlJob/jobExecutor/index.vue.d.ts +2 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/CreateCronExpression.vue.d.ts +28 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/JobInfoDetail.vue.d.ts +10 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/RegisterNode.vue.d.ts +11 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/RunOnceView.vue.d.ts +11 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabDay.vue.d.ts +26 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabHour.vue.d.ts +13 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabMin.vue.d.ts +13 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabMonth.vue.d.ts +13 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabResult.vue.d.ts +15 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabSecond.vue.d.ts +13 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabWeek.vue.d.ts +27 -0
- package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabYear.vue.d.ts +14 -0
- package/dist/types/src/views/xxlJob/jobInfo/index.vue.d.ts +2 -0
- package/dist/types/src/views/xxlJob/jobLogs/components/JobTaskClearDialog.vue.d.ts +16 -0
- package/dist/types/src/views/xxlJob/jobLogs/components/JobTaskInfoView.vue.d.ts +17 -0
- package/dist/types/src/views/xxlJob/jobLogs/index.vue.d.ts +2 -0
- package/dist/xxl-job-vue3.es.js +6 -6
- package/dist/xxl-job-vue3.umd.js +94 -74
- package/package.json +38 -35
- package/dist/403-D8dRpQKz.js +0 -36
- package/dist/404-DXM7nyXC.js +0 -36
- package/dist/500-BUCjxPG1.js +0 -36
- package/dist/CrontabDay-DqR3VUYR.js +0 -4
- package/dist/CrontabHour-B0Ub5MaR.js +0 -4
- package/dist/CrontabMin-DtjfCxp1.js +0 -4
- package/dist/CrontabMonth-BU6m9TVZ.js +0 -4
- package/dist/CrontabResult-DGO_apJU.js +0 -4
- package/dist/CrontabSecond-BqQGVOZ9.js +0 -4
- package/dist/CrontabWeek-DHqRjAy-.js +0 -4
- package/dist/CrontabYear-D3Z1OkFC.js +0 -4
- package/dist/EditExecutor-C-jVvoY3.js +0 -4
- package/dist/JobTaskClearDialog-CpXLIi7N.js +0 -4
- package/dist/RunOnceView-Bk8stgp6.js +0 -4
- package/dist/index-Bf5gEacT.js +0 -98346
- package/dist/index-Btu-nIzi.js +0 -4
- package/dist/index-CXZ4_Fnb.js +0 -4
- package/dist/index-OKUPhEWh.js +0 -4012
- package/dist/index-tWx7VrPi.js +0 -4
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description:字典的类型-字典 字符串 String 数字Integer 布尔 Boolean
|
|
3
|
+
*/
|
|
4
|
+
export declare const dictClassDic: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
tagType: string;
|
|
8
|
+
}[];
|
|
9
|
+
/**
|
|
10
|
+
* @description:资源类型-字典 M菜单 B按钮 F文件
|
|
11
|
+
*/
|
|
12
|
+
export declare const resourceTypeDic: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
tagType: string;
|
|
16
|
+
}[];
|
|
17
|
+
/**
|
|
18
|
+
* @description:Dict.DictItem-字典
|
|
19
|
+
*/
|
|
20
|
+
export declare const resourceVisibilityDic: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
tagType: string;
|
|
24
|
+
}[];
|
|
25
|
+
/**
|
|
26
|
+
* @description:是否-字符字典
|
|
27
|
+
*/
|
|
28
|
+
export declare const isOrNotStrDic: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
tagType: string;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* @description:是否-数字字典
|
|
35
|
+
*/
|
|
36
|
+
export declare const isOrNotNumDic: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: number;
|
|
39
|
+
tagType: string;
|
|
40
|
+
}[];
|
|
41
|
+
/**
|
|
42
|
+
* @description:是否-字典
|
|
43
|
+
*/
|
|
44
|
+
export declare const notOrIsStrDic: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
tagType: string;
|
|
48
|
+
}[];
|
|
49
|
+
/**
|
|
50
|
+
* @description:请求方式-字典
|
|
51
|
+
*/
|
|
52
|
+
export declare const reauestMethodDic: {
|
|
53
|
+
label: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}[];
|
|
56
|
+
/**
|
|
57
|
+
* @description:角色类型-字典
|
|
58
|
+
*/
|
|
59
|
+
export declare const roleTypeDic: {
|
|
60
|
+
label: string;
|
|
61
|
+
value: number;
|
|
62
|
+
tagType: string;
|
|
63
|
+
}[];
|
|
64
|
+
/**
|
|
65
|
+
* @description:启用状态-字符串字典
|
|
66
|
+
*/
|
|
67
|
+
export declare const statusStrDic: {
|
|
68
|
+
label: string;
|
|
69
|
+
value: string;
|
|
70
|
+
tagType: string;
|
|
71
|
+
}[];
|
|
72
|
+
/**
|
|
73
|
+
* @description:启用状态-数字字典
|
|
74
|
+
*/
|
|
75
|
+
export declare const statusNumDic: {
|
|
76
|
+
label: string;
|
|
77
|
+
value: number;
|
|
78
|
+
tagType: string;
|
|
79
|
+
}[];
|
|
80
|
+
/**
|
|
81
|
+
* @description:上传状态-字符串字典
|
|
82
|
+
*/
|
|
83
|
+
export declare const uploadBoolDic: {
|
|
84
|
+
label: string;
|
|
85
|
+
value: boolean;
|
|
86
|
+
tagType: string;
|
|
87
|
+
}[];
|
|
88
|
+
/**
|
|
89
|
+
* @description:在线状态-数字字典
|
|
90
|
+
*/
|
|
91
|
+
export declare const onlineStatusDic: {
|
|
92
|
+
label: string;
|
|
93
|
+
value: number;
|
|
94
|
+
tagType: string;
|
|
95
|
+
}[];
|
|
96
|
+
/**
|
|
97
|
+
* @description:实时数据报警状态-数字字典
|
|
98
|
+
*/
|
|
99
|
+
export declare const alarmStatusDic_rt: {
|
|
100
|
+
label: string;
|
|
101
|
+
value: number;
|
|
102
|
+
tagType: string;
|
|
103
|
+
}[];
|
|
104
|
+
/**
|
|
105
|
+
* @description:报警数据报警状态-数字字典
|
|
106
|
+
*/
|
|
107
|
+
export declare const alarmStatusDic_alarm: {
|
|
108
|
+
label: string;
|
|
109
|
+
value: number;
|
|
110
|
+
tagType: string;
|
|
111
|
+
}[];
|
|
112
|
+
/**
|
|
113
|
+
* @description:质量戳-数字字典
|
|
114
|
+
*/
|
|
115
|
+
export declare const validDic: {
|
|
116
|
+
label: string;
|
|
117
|
+
value: number;
|
|
118
|
+
tagType: string;
|
|
119
|
+
}[];
|
|
120
|
+
/**
|
|
121
|
+
* @description:质量戳-数字字典
|
|
122
|
+
*/
|
|
123
|
+
export declare const validBoolDic: {
|
|
124
|
+
label: string;
|
|
125
|
+
value: boolean;
|
|
126
|
+
tagType: string;
|
|
127
|
+
}[];
|
|
128
|
+
/**
|
|
129
|
+
* @description:质量戳-字符串字典
|
|
130
|
+
*/
|
|
131
|
+
export declare const validStrDic: {
|
|
132
|
+
label: string;
|
|
133
|
+
value: string;
|
|
134
|
+
tagType: string;
|
|
135
|
+
}[];
|
|
136
|
+
/**
|
|
137
|
+
* @description:报警类型-字典
|
|
138
|
+
*/
|
|
139
|
+
export declare const alarmTypeDic: {
|
|
140
|
+
label: string;
|
|
141
|
+
value: string;
|
|
142
|
+
}[];
|
|
143
|
+
/**
|
|
144
|
+
* @description:报警类型接收-字典
|
|
145
|
+
*/
|
|
146
|
+
export declare const alarmTypeReceiveDic: {
|
|
147
|
+
label: string;
|
|
148
|
+
value: string;
|
|
149
|
+
}[];
|
|
150
|
+
/**
|
|
151
|
+
* @description:计算参数类型-字符串字典
|
|
152
|
+
*/
|
|
153
|
+
export declare const formulaTypeDic: {
|
|
154
|
+
value: string;
|
|
155
|
+
label: string;
|
|
156
|
+
}[];
|
|
157
|
+
/**
|
|
158
|
+
* @description:表达式运算符-字符串字典
|
|
159
|
+
*/
|
|
160
|
+
export declare const operatorDic: {
|
|
161
|
+
value: string;
|
|
162
|
+
label: string;
|
|
163
|
+
}[];
|
|
164
|
+
/**
|
|
165
|
+
* @description:指标类型-数字字典
|
|
166
|
+
*/
|
|
167
|
+
export declare const targetTypeNumDic: {
|
|
168
|
+
label: string;
|
|
169
|
+
value: number;
|
|
170
|
+
tagType: string;
|
|
171
|
+
}[];
|
|
172
|
+
/**
|
|
173
|
+
* @description:指标类型-字符串字典
|
|
174
|
+
*/
|
|
175
|
+
export declare const targetTypeStrDic: {
|
|
176
|
+
label: string;
|
|
177
|
+
value: string;
|
|
178
|
+
tagType: string;
|
|
179
|
+
}[];
|
|
180
|
+
/**
|
|
181
|
+
* @description:用户锁定状态-字典
|
|
182
|
+
*/
|
|
183
|
+
export declare const userLockStatusDic: {
|
|
184
|
+
label: string;
|
|
185
|
+
value: boolean;
|
|
186
|
+
tagType: string;
|
|
187
|
+
}[];
|
|
188
|
+
/**
|
|
189
|
+
* @description:是否-字典
|
|
190
|
+
*/
|
|
191
|
+
export declare const isOrNotBooleanDic: {
|
|
192
|
+
label: string;
|
|
193
|
+
value: boolean;
|
|
194
|
+
tagType: string;
|
|
195
|
+
}[];
|
|
196
|
+
/**
|
|
197
|
+
* @description:是否过期-字典
|
|
198
|
+
*/
|
|
199
|
+
export declare const isExpiredBooleanDic: {
|
|
200
|
+
label: string;
|
|
201
|
+
value: boolean;
|
|
202
|
+
tagType: string;
|
|
203
|
+
}[];
|
|
204
|
+
/**
|
|
205
|
+
* @description:边缘网关状态-字典
|
|
206
|
+
*/
|
|
207
|
+
export declare const deviceStatusDic: {
|
|
208
|
+
label: string;
|
|
209
|
+
value: string;
|
|
210
|
+
tagType: string;
|
|
211
|
+
}[];
|
|
212
|
+
/**
|
|
213
|
+
* @description:认证状态-字典
|
|
214
|
+
*/
|
|
215
|
+
export declare const authStatusDic: {
|
|
216
|
+
label: string;
|
|
217
|
+
value: string;
|
|
218
|
+
tagType: string;
|
|
219
|
+
}[];
|
|
220
|
+
/**
|
|
221
|
+
* @description:token授权状态-字典
|
|
222
|
+
*/
|
|
223
|
+
export declare const tokenStatusDic: {
|
|
224
|
+
label: string;
|
|
225
|
+
value: string;
|
|
226
|
+
tagType: string;
|
|
227
|
+
}[];
|
|
228
|
+
/**
|
|
229
|
+
* @description:定时任务状态-字符串字典
|
|
230
|
+
*/
|
|
231
|
+
export declare const triggerStatusDic: {
|
|
232
|
+
label: string;
|
|
233
|
+
value: number;
|
|
234
|
+
tagType: string;
|
|
235
|
+
}[];
|
|
236
|
+
/**
|
|
237
|
+
* @description:获取-字典
|
|
238
|
+
*/
|
|
239
|
+
export declare const GetDicOptionsByType: (type: string, api: (params: any) => Promise<any>) => Promise<unknown>;
|
|
240
|
+
/**
|
|
241
|
+
* 构造树型结构数据
|
|
242
|
+
* @param {*} data 数据源
|
|
243
|
+
* @param {*} id id字段 默认 'id'
|
|
244
|
+
* @param {*} parentId 父节点字段 默认 'parentId'
|
|
245
|
+
* @param {*} children 孩子节点字段 默认 'children'
|
|
246
|
+
* @param {*} levelField 层级深度字段 默认 'treeLevel'
|
|
247
|
+
* @param {*} limit 设置disabled
|
|
248
|
+
*/
|
|
249
|
+
export declare function buildTreeData(data: any, id: any, parentId: any, children: any, levelField?: string, limit?: number): any[];
|
|
250
|
+
/**
|
|
251
|
+
* 构造适用于el-cascader的树型结构数据
|
|
252
|
+
* @param {*} data 数据源
|
|
253
|
+
* @param {*} id id字段,默认 'id'
|
|
254
|
+
* @param {*} parentId 父节点字段,默认 'parentId'
|
|
255
|
+
* @param {*} children 子节点字段,默认 'children'
|
|
256
|
+
*/
|
|
257
|
+
export declare function buildCascaderOptions(data: any): any[];
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { FieldNamesProps } from '../components/ProTable/interface';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 获取localStorage
|
|
5
|
+
* @param {String} key Storage名称
|
|
6
|
+
* @returns {String}
|
|
7
|
+
*/
|
|
8
|
+
export declare function localGet(key: string): any;
|
|
9
|
+
/**
|
|
10
|
+
* @description 存储localStorage
|
|
11
|
+
* @param {String} key Storage名称
|
|
12
|
+
* @param {*} value Storage值
|
|
13
|
+
* @returns {void}
|
|
14
|
+
*/
|
|
15
|
+
export declare function localSet(key: string, value: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* @description 清除localStorage
|
|
18
|
+
* @param {String} key Storage名称
|
|
19
|
+
* @returns {void}
|
|
20
|
+
*/
|
|
21
|
+
export declare function localRemove(key: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* @description 清除所有localStorage
|
|
24
|
+
* @returns {void}
|
|
25
|
+
*/
|
|
26
|
+
export declare function localClear(): void;
|
|
27
|
+
/**
|
|
28
|
+
* @description 判断数据类型
|
|
29
|
+
* @param {*} val 需要判断类型的数据
|
|
30
|
+
* @returns {String}
|
|
31
|
+
*/
|
|
32
|
+
export declare function isType(val: any): string;
|
|
33
|
+
/**
|
|
34
|
+
* @description 生成唯一 uuid
|
|
35
|
+
* @returns {String}
|
|
36
|
+
*/
|
|
37
|
+
export declare function generateUUID(): any;
|
|
38
|
+
/**
|
|
39
|
+
* 判断两个对象是否相同
|
|
40
|
+
* @param {Object} a 要比较的对象一
|
|
41
|
+
* @param {Object} b 要比较的对象二
|
|
42
|
+
* @returns {Boolean} 相同返回 true,反之 false
|
|
43
|
+
*/
|
|
44
|
+
export declare function isObjectValueEqual(a: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}, b: {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @description 生成随机数
|
|
51
|
+
* @param {Number} min 最小值
|
|
52
|
+
* @param {Number} max 最大值
|
|
53
|
+
* @returns {Number}
|
|
54
|
+
*/
|
|
55
|
+
export declare function randomNum(min: number, max: number): number;
|
|
56
|
+
/**
|
|
57
|
+
* @description 获取当前时间对应的提示语
|
|
58
|
+
* @returns {String}
|
|
59
|
+
*/
|
|
60
|
+
export declare function getTimeState(): "早上好 ⛅" | "中午好 🌞" | "下午好 🌞" | "晚上好 🌛" | "凌晨好 🌛" | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* @description 获取浏览器默认语言
|
|
63
|
+
* @returns {String}
|
|
64
|
+
*/
|
|
65
|
+
export declare function getBrowserLang(): string;
|
|
66
|
+
/**
|
|
67
|
+
* @description 获取不同路由模式所对应的 url + params
|
|
68
|
+
* @returns {String}
|
|
69
|
+
*/
|
|
70
|
+
export declare function getUrlWithParams(): string;
|
|
71
|
+
/**
|
|
72
|
+
* @description 使用递归扁平化菜单,方便添加动态路由
|
|
73
|
+
* @param {Array} menuList 菜单列表
|
|
74
|
+
* @returns {Array}
|
|
75
|
+
*/
|
|
76
|
+
export declare function getFlatMenuList(menuList: Menu.MenuOptions[]): Menu.MenuOptions[];
|
|
77
|
+
/**
|
|
78
|
+
* @description 使用递归过滤出需要渲染在左侧菜单的列表 (需剔除 isHide == true 的菜单)
|
|
79
|
+
* @param {Array} menuList 菜单列表
|
|
80
|
+
* @returns {Array}
|
|
81
|
+
* */
|
|
82
|
+
export declare function getShowMenuList(menuList: Menu.MenuOptions[]): Menu.MenuOptions[];
|
|
83
|
+
/**
|
|
84
|
+
* @description 使用递归给菜单赋值需component
|
|
85
|
+
* @param {Array} menuList 菜单列表
|
|
86
|
+
* @returns {Array}
|
|
87
|
+
* */
|
|
88
|
+
export declare function getMenuListWithComponent(menu: Menu.MenuOptions): any;
|
|
89
|
+
/**
|
|
90
|
+
* @description 使用递归取到第一个有component值的菜单
|
|
91
|
+
* @param {Array} menuList 菜单列表
|
|
92
|
+
* @returns {Array}
|
|
93
|
+
* */
|
|
94
|
+
export declare function getFirstComponent(menuList: Menu.MenuOptions[]): any;
|
|
95
|
+
/**
|
|
96
|
+
* @description 使用递归找出所有面包屑存储到 pinia/vuex 中
|
|
97
|
+
* @param {Array} menuList 菜单列表
|
|
98
|
+
* @param {Array} parent 父级菜单
|
|
99
|
+
* @param {Object} result 处理后的结果
|
|
100
|
+
* @returns {Object}
|
|
101
|
+
*/
|
|
102
|
+
export declare const getAllBreadcrumbList: (menuList: Menu.MenuOptions[], parent?: never[], result?: {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}) => {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* @description 使用递归处理路由菜单 path,生成一维数组 (第一版本地路由鉴权会用到,该函数暂未使用)
|
|
109
|
+
* @param {Array} menuList 所有菜单列表
|
|
110
|
+
* @param {Array} menuPathArr 菜单地址的一维数组 ['**','**']
|
|
111
|
+
* @returns {Array}
|
|
112
|
+
*/
|
|
113
|
+
export declare function getMenuListPath(menuList: Menu.MenuOptions[], menuPathArr?: string[]): string[];
|
|
114
|
+
/**
|
|
115
|
+
* @description 递归查询当前 path 所对应的菜单对象 (该函数暂未使用)
|
|
116
|
+
* @param {Array} menuList 菜单列表
|
|
117
|
+
* @param {String} path 当前访问地址
|
|
118
|
+
* @returns {Object | null}
|
|
119
|
+
*/
|
|
120
|
+
export declare function findMenuByPath(menuList: Menu.MenuOptions[], path: string): Menu.MenuOptions | null;
|
|
121
|
+
/**
|
|
122
|
+
* @description 使用递归过滤需要缓存的菜单 name (该函数暂未使用)
|
|
123
|
+
* @param {Array} menuList 所有菜单列表
|
|
124
|
+
* @param {Array} keepAliveNameArr 缓存的菜单 name ['**','**']
|
|
125
|
+
* @returns {Array}
|
|
126
|
+
* */
|
|
127
|
+
export declare function getKeepAliveRouterName(menuList: Menu.MenuOptions[], keepAliveNameArr?: string[]): string[];
|
|
128
|
+
/**
|
|
129
|
+
* @description 格式化表格单元格默认值 (el-table-column)
|
|
130
|
+
* @param {Number} row 行
|
|
131
|
+
* @param {Number} col 列
|
|
132
|
+
* @param {*} callValue 当前单元格值
|
|
133
|
+
* @returns {String}
|
|
134
|
+
* */
|
|
135
|
+
export declare function formatTableColumn(row: number, col: number, callValue: any): any;
|
|
136
|
+
/**
|
|
137
|
+
* @description 处理 ProTable 值为数组 || 无数据
|
|
138
|
+
* @param {*} callValue 需要处理的值
|
|
139
|
+
* @returns {String}
|
|
140
|
+
* */
|
|
141
|
+
export declare function formatValue(callValue: any): any;
|
|
142
|
+
/**
|
|
143
|
+
* @description 处理 prop 为多级嵌套的情况,返回的数据 (列如: prop: user.name)
|
|
144
|
+
* @param {Object} row 当前行数据
|
|
145
|
+
* @param {String} prop 当前 prop
|
|
146
|
+
* @returns {*}
|
|
147
|
+
* */
|
|
148
|
+
export declare function handleRowAccordingToProp(row: {
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
}, prop: string): any;
|
|
151
|
+
/**
|
|
152
|
+
* @description 处理 prop,当 prop 为多级嵌套时 ==> 返回最后一级 prop
|
|
153
|
+
* @param {String} prop 当前 prop
|
|
154
|
+
* @returns {String}
|
|
155
|
+
* */
|
|
156
|
+
export declare function handleProp(prop: string): string;
|
|
157
|
+
/**
|
|
158
|
+
* @description 根据枚举列表查询当需要的数据(如果指定了 label 和 value 的 key值,会自动识别格式化)
|
|
159
|
+
* @param {String} callValue 当前单元格值
|
|
160
|
+
* @param {Array} enumData 字典列表
|
|
161
|
+
* @param {Array} fieldNames label && value && children 的 key 值
|
|
162
|
+
* @param {String} type 过滤类型(目前只有 tag)
|
|
163
|
+
* @returns {String}
|
|
164
|
+
* */
|
|
165
|
+
export declare function filterEnum(callValue: any, enumData?: any, fieldNames?: FieldNamesProps, type?: "tag"): any;
|
|
166
|
+
/**
|
|
167
|
+
* @description 递归查找 callValue 对应的 enum 值
|
|
168
|
+
* */
|
|
169
|
+
export declare function findItemNested(enumData: any, callValue: any, value: string, children: string): any;
|
|
170
|
+
/**
|
|
171
|
+
* @description: 深拷贝
|
|
172
|
+
* @param {*} obj
|
|
173
|
+
* @return {*}
|
|
174
|
+
*/
|
|
175
|
+
export declare function deepCopy(obj: any): any;
|
|
176
|
+
/**
|
|
177
|
+
* @description: 获取字典对应值
|
|
178
|
+
*/
|
|
179
|
+
export declare const getTagValue: (value: any, handleStatusDic: any) => any;
|
|
180
|
+
/**
|
|
181
|
+
* @description: 获取 tag 类型
|
|
182
|
+
*/
|
|
183
|
+
export declare const getTagType: (value: any, handleStatusDic: any) => any;
|
|
184
|
+
/**
|
|
185
|
+
* @description: 获取 tag 颜色
|
|
186
|
+
*/
|
|
187
|
+
export declare const getTagColor: (value: any) => "#409EFF" | "#67C23A" | "#E6A23C" | "#F56C6C" | "#a8abb2" | "#303133";
|
|
188
|
+
/**
|
|
189
|
+
* @description: 邮箱电话数据脱敏
|
|
190
|
+
*/
|
|
191
|
+
export declare function Desensitize(input: any): any;
|
|
192
|
+
/**
|
|
193
|
+
* @description 使用递归取到第一个符合条件的的名称
|
|
194
|
+
* @param {Array} treedata 树
|
|
195
|
+
* @param {String} id 节点id
|
|
196
|
+
* @returns {Array}
|
|
197
|
+
* */
|
|
198
|
+
export declare function getTreeDataNameById(treedata: any[], id: string): any;
|
|
199
|
+
/**
|
|
200
|
+
* @description 使用递归取到第一个符合条件的的名称
|
|
201
|
+
* @param {Array} treedata 树
|
|
202
|
+
* @param {Array} ids 节点ids
|
|
203
|
+
* @returns {String}
|
|
204
|
+
* */
|
|
205
|
+
export declare function getTreeDataNameListByIds(treedata: any[], ids: string[]): string;
|
|
206
|
+
/**
|
|
207
|
+
* @description: 当前用户是否有权限
|
|
208
|
+
*/
|
|
209
|
+
export declare function hasPermission(authButtons: any[], key: string): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @description: 将A的同属性值赋值给B
|
|
212
|
+
* @param {*} A
|
|
213
|
+
* @param {*} B
|
|
214
|
+
* @return {*}
|
|
215
|
+
*/
|
|
216
|
+
export declare function assignProperties(A: any, B: any): any;
|
|
217
|
+
/**
|
|
218
|
+
* @description: 获取当前时间的函数
|
|
219
|
+
*/
|
|
220
|
+
export declare const getCurrentDate: (daysOffset?: number) => Date;
|
|
221
|
+
/**
|
|
222
|
+
* @description: 格式化时间为00:00:00 或 23:59:59
|
|
223
|
+
* @param {Date} date 日期
|
|
224
|
+
* @param {Boolean} isStart 是否开始日期
|
|
225
|
+
* @return {Date}
|
|
226
|
+
*/
|
|
227
|
+
export declare const formatDateRange: (date: Date, isStart?: boolean) => Date;
|
|
228
|
+
/**
|
|
229
|
+
* @description: 对象转换为FormData
|
|
230
|
+
* @param {Object} obj 对象
|
|
231
|
+
* @return {FormData} formData
|
|
232
|
+
*/
|
|
233
|
+
export declare const objectToFormData: (obj: Object) => FormData;
|
|
234
|
+
export declare const formatDate: (timestamp: any, format?: string) => any;
|
|
235
|
+
export declare const checkNumber: (value: any, minLimit: any, maxLimit: any) => any;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 判断值是否未某个类型
|
|
3
|
+
*/
|
|
4
|
+
export declare function is(val: unknown, type: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* @description: 是否为函数
|
|
7
|
+
*/
|
|
8
|
+
export declare function isFunction<T = Function>(val: unknown): val is T;
|
|
9
|
+
/**
|
|
10
|
+
* @description: 是否已定义
|
|
11
|
+
*/
|
|
12
|
+
export declare const isDef: <T = unknown>(val?: T) => val is T;
|
|
13
|
+
/**
|
|
14
|
+
* @description: 是否未定义
|
|
15
|
+
*/
|
|
16
|
+
export declare const isUnDef: <T = unknown>(val?: T) => val is T;
|
|
17
|
+
/**
|
|
18
|
+
* @description: 是否为对象
|
|
19
|
+
*/
|
|
20
|
+
export declare const isObject: (val: any) => val is Record<any, any>;
|
|
21
|
+
/**
|
|
22
|
+
* @description: 是否为时间
|
|
23
|
+
*/
|
|
24
|
+
export declare function isDate(val: unknown): val is Date;
|
|
25
|
+
/**
|
|
26
|
+
* @description: 是否为数值
|
|
27
|
+
*/
|
|
28
|
+
export declare function isNumber(val: unknown): val is number;
|
|
29
|
+
/**
|
|
30
|
+
* @description: 是否可以转为数值
|
|
31
|
+
*/
|
|
32
|
+
export declare function isConvertibleToNumber(val: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @description: 是否为AsyncFunction
|
|
35
|
+
*/
|
|
36
|
+
export declare function isAsyncFunction<T = any>(val: unknown): val is Promise<T>;
|
|
37
|
+
/**
|
|
38
|
+
* @description: 是否为promise
|
|
39
|
+
*/
|
|
40
|
+
export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 是否为字符串
|
|
43
|
+
*/
|
|
44
|
+
export declare function isString(val: unknown): val is string;
|
|
45
|
+
/**
|
|
46
|
+
* @description: 是否为boolean类型
|
|
47
|
+
*/
|
|
48
|
+
export declare function isBoolean(val: unknown): val is boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @description: 是否为数组
|
|
51
|
+
*/
|
|
52
|
+
export declare function isArray(val: any): val is Array<any>;
|
|
53
|
+
/**
|
|
54
|
+
* @description: 是否客户端
|
|
55
|
+
*/
|
|
56
|
+
export declare const isClient: () => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @description: 是否为浏览器
|
|
59
|
+
*/
|
|
60
|
+
export declare const isWindow: (val: any) => val is Window;
|
|
61
|
+
/**
|
|
62
|
+
* @description: 是否为 element 元素
|
|
63
|
+
*/
|
|
64
|
+
export declare const isElement: (val: unknown) => val is Element;
|
|
65
|
+
/**
|
|
66
|
+
* @description: 是否为 null || undefined
|
|
67
|
+
*/
|
|
68
|
+
export declare function isNullOrUnDef(val: unknown): val is null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* @description: 是否为 null || undefined || 空字符串
|
|
71
|
+
*/
|
|
72
|
+
export declare function isNullOrUnDefOrEmpty(val: unknown): val is null | undefined | "";
|
|
73
|
+
/**
|
|
74
|
+
* @description: 是否为 NaN
|
|
75
|
+
*/
|
|
76
|
+
export declare function isNaN(val: unknown): val is typeof NaN;
|
|
77
|
+
/**
|
|
78
|
+
* @description: 是否为 16 进制颜色
|
|
79
|
+
*/
|
|
80
|
+
export declare const isHexColor: (str: string) => boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @description: 校验是否是正整数
|
|
83
|
+
* @return {*}
|
|
84
|
+
*/
|
|
85
|
+
export declare const isPositiveInteger: (value: any) => boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @description: 校验是否符合密码规则(8~20位,必须包含数字、大小写字母、特殊字符)
|
|
88
|
+
* @return {*}
|
|
89
|
+
*/
|
|
90
|
+
export declare const isValidPassword: (value: any) => boolean;
|
|
91
|
+
/**
|
|
92
|
+
* @description: 校验是否符合电话号码规则
|
|
93
|
+
* @return {*}
|
|
94
|
+
*/
|
|
95
|
+
export declare const isValidMobile: (value: any) => boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @description: 校验是否符合邮箱规则
|
|
98
|
+
* @return {*}
|
|
99
|
+
*/
|
|
100
|
+
export declare const isValidEmail: (value: any) => boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @description: 判断是否空
|
|
103
|
+
* @param {*} val
|
|
104
|
+
* @return {*}
|
|
105
|
+
*/
|
|
106
|
+
export declare const isNull: (val: any) => boolean;
|
|
107
|
+
/**
|
|
108
|
+
* @description: 校验是否符合IP地址规则
|
|
109
|
+
* @return {*}
|
|
110
|
+
*/
|
|
111
|
+
export declare const isValidIP: (value: any) => boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @description: 校验是否符合端口号规则
|
|
114
|
+
* @return {*}
|
|
115
|
+
*/
|
|
116
|
+
export declare const isValidPort: (value: any) => boolean;
|
|
117
|
+
/**
|
|
118
|
+
* @description: 校验是否符合MAC地址规则
|
|
119
|
+
* @return {*}
|
|
120
|
+
*/
|
|
121
|
+
export declare const isValidMac: (value: any) => boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @description: 校验对象数组中某个字段的值是否重复
|
|
124
|
+
* @return {*}
|
|
125
|
+
*/
|
|
126
|
+
export declare const hasDuplicateValue: (array: any, key: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: SM4加密
|
|
3
|
+
* @param {*} data 要加密的数据
|
|
4
|
+
* @param {*} cuskey 自定义key
|
|
5
|
+
* @return {*}
|
|
6
|
+
*/
|
|
7
|
+
export declare function Entrypt_SM4(data: any, cuskey?: string): any;
|
|
8
|
+
/**
|
|
9
|
+
* @description: SM4解密
|
|
10
|
+
* @param {*} data 要解密的数据
|
|
11
|
+
* @param {*} cuskey 自定义key
|
|
12
|
+
* @return {*}
|
|
13
|
+
*/
|
|
14
|
+
export declare function Decrypt_SM4(data: any, cuskey?: string): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** 定义配置接口*/
|
|
2
|
+
export interface XxlJobConfig {
|
|
3
|
+
/** 基础 API 地址 (允许外部覆盖)*/
|
|
4
|
+
baseURL?: string;
|
|
5
|
+
/** 请求超时时间 (允许外部覆盖)*/
|
|
6
|
+
timeout?: number;
|
|
7
|
+
/** 获取 Header 的方法(支持异步,由外部决定从 store 还是 localStorage 取,是Authorization还是satoken)*/
|
|
8
|
+
getHeaderConfig: () => any[] | Promise<any[]>;
|
|
9
|
+
/** 当发生 401 或需要登录时的回调(由外部决定怎么跳)*/
|
|
10
|
+
onUnauthorized: () => void;
|
|
11
|
+
/** 可选:通用的错误提示处理 */
|
|
12
|
+
onError?: (msg: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare class Bridge {
|
|
15
|
+
/** 默认配置*/
|
|
16
|
+
private config;
|
|
17
|
+
setup(newConfig: Partial<XxlJobConfig>): void;
|
|
18
|
+
get(): XxlJobConfig;
|
|
19
|
+
}
|
|
20
|
+
export declare const XxlBridge: Bridge;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|