vue2-client 1.4.44 → 1.4.46

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.
@@ -1,307 +1,310 @@
1
- module.exports = {
2
- // 数据模式类型
3
- dataModeType: [
4
- {
5
- label: '渲染查询表单项',
6
- value: 'queryForm',
7
- noMatch: ['file', 'image', 'textarea', 'personSetting', 'checkbox']
8
- },
9
- {
10
- label: '渲染表格列',
11
- value: 'table',
12
- noMatch: ['file', 'image', 'personSetting', 'checkbox']
13
- },
14
- {
15
- label: '渲染新增/修改表单项',
16
- value: 'addOrEditForm',
17
- noMatch: []
18
- },
19
- {
20
- label: 'SQL生成查询项',
21
- value: 'sqlQueryItem',
22
- noMatch: ['file', 'personSetting', 'checkbox']
23
- },
24
- {
25
- label: 'SQL生成查询表达式',
26
- value: 'sqlQueryCondition',
27
- noMatch: ['file', 'image', 'textarea', 'personSetting', 'checkbox']
28
- }
29
- ],
30
- // 表单类型
31
- formType: [
32
- {
33
- label: '输入框', key: 'input'
34
- },
35
- {
36
- label: '选择框', key: 'select'
37
- },
38
- {
39
- label: '级联选择框', key: 'selects'
40
- },
41
- {
42
- label: 'cascader选择框', key: 'cascader'
43
- },
44
- {
45
- label: '多选框', key: 'checkbox'
46
- },
47
- {
48
- label: '地点搜索框', key: 'addressSearch'
49
- },
50
- {
51
- label: '省市区选择框', key: 'citySelect'
52
- },
53
- {
54
- label: '单选框', key: 'radio'
55
- },
56
- {
57
- label: '日期范围选择框', key: 'rangePicker'
58
- },
59
- {
60
- label: '月份选择框', key: 'monthPicker'
61
- },
62
- {
63
- label: '单日选择框', key: 'datePicker'
64
- },
65
- {
66
- label: '文本域', key: 'textarea'
67
- },
68
- {
69
- label: '文件上传', key: 'file'
70
- },
71
- {
72
- label: '图片上传', key: 'image'
73
- },
74
- {
75
- label: '人员选择框', key: 'personSetting'
76
- },
77
- ],
78
- // 文件上传类型
79
- fileType: [
80
- {
81
- label: '无限制',
82
- accept: '*'
83
- },
84
- {
85
- label: 'word文档',
86
- accept: '.doc,.docx,'
87
- },
88
- {
89
- label: 'excel表格',
90
- accept: '.xls,.xlsx,'
91
- },
92
- {
93
- label: 'ppt幻灯片',
94
- accept: '.ppt,.pptx,'
95
- },
96
- {
97
- label: '图片',
98
- accept: '.jpg,.jpeg,.ico,.gif,svg,.webp,.png,.bmp,.pjpeg,'
99
- },
100
- {
101
- label: '视频',
102
- accept: '.mp4,.mov,.m4v,.wmv,.asf,.asx,.rm,.rmvb,.3gp,.avi,.mkv,'
103
- },
104
- {
105
- label: '音频',
106
- accept: '.mp3,.cda,.wav,.aif,.aiff,.ape,.ra,'
107
- },
108
- {
109
- label: '压缩包',
110
- accept: '.zip,.rar,.7z,'
111
- },
112
- {
113
- label: '文本/JSON',
114
- accept: '.json,.txt,'
115
- }
116
- ],
117
- // 表单校验类型
118
- formRuleType: [
119
- {
120
- label: '字符串', key: 'string'
121
- },
122
- {
123
- label: '数字', key: 'number'
124
- },
125
- {
126
- label: '布尔值', key: 'boolean'
127
- },
128
- {
129
- label: '正则表达式', key: 'regexp'
130
- },
131
- {
132
- label: '整数', key: 'integer'
133
- },
134
- {
135
- label: '小数', key: 'float'
136
- },
137
- {
138
- label: '数组或集合', key: 'array'
139
- },
140
- {
141
- label: '邮箱', key: 'email'
142
- }
143
- ],
144
- // 作用域插槽类型
145
- slotType: [
146
- {
147
- label: '不设置',
148
- key: 'default',
149
- match: ['input', 'select', 'selects', 'checkbox', 'radio', 'addressSearch', 'citySelect']
150
- },
151
- {
152
- label: '文本溢出省略',
153
- key: 'ellipsis',
154
- match: ['input', 'citySelect', 'addressSearch']
155
- },
156
- {
157
- label: '多彩徽标',
158
- key: 'badge',
159
- match: ['select', 'selects', 'citySelect', 'addressSearch']
160
- },
161
- {
162
- label: '日期格式化',
163
- key: 'date',
164
- match: ['rangePicker', 'datePicker']
165
- },
166
- {
167
- label: '日期时间格式化',
168
- key: 'dateTime',
169
- match: ['rangePicker', 'datePicker']
170
- },
171
- {
172
- label: '操作列',
173
- key: 'action',
174
- match: [
175
- 'input'
176
- ]
177
- },
178
- ],
179
- // 查询方式
180
- queryType: [
181
- {
182
- label: '相等[=]',
183
- key: '=',
184
- match: ['input', 'select', 'radio', 'monthPicker', 'selects', 'addressSearch', 'citySelect']
185
- },
186
- {
187
- label: '不相等[!=]',
188
- key: '!=',
189
- match: ['input']
190
- },
191
- {
192
- label: '全模糊[like]',
193
- key: 'LIKE',
194
- match: ['input']
195
- },
196
- {
197
- label: '左模糊[left like]',
198
- key: 'LEFT_LIKE',
199
- match: ['input']
200
- },
201
- {
202
- label: '右模糊[right like]',
203
- key: 'RIGHT_LIKE',
204
- match: ['input']
205
- },
206
- {
207
- label: '大于[>]',
208
- key: '>',
209
- match: ['input', 'radio', 'monthPicker']
210
- },
211
- {
212
- label: '大于等于[>=]',
213
- key: '>=',
214
- match: ['input', 'radio', 'monthPicker']
215
- },
216
- {
217
- label: '小于[<]',
218
- key: '<',
219
- match: ['input', 'radio', 'monthPicker']
220
- },
221
- {
222
- label: '小于等于[<=]',
223
- key: '<=',
224
- match: ['input', 'radio', 'monthPicker']
225
- },
226
- {
227
- label: '包含[in]',
228
- key: 'IN',
229
- match: ['checkbox']
230
- },
231
- {
232
- label: '不包含[not in]',
233
- key: 'NOT_IN',
234
- match: ['checkbox']
235
- },
236
- {
237
- label: '之间[between]',
238
- key: 'BETWEEN',
239
- match: ['rangePicker', 'datePicker']
240
- }
241
- ],
242
- // 新增/修改场景类型
243
- addOrEditType: [
244
- {
245
- label: '新增和修改',
246
- key: 'all',
247
- match: ['all']
248
- },
249
- {
250
- label: '仅支持新增',
251
- key: 'add',
252
- match: ['all']
253
- },
254
- {
255
- label: '仅支持修改',
256
- key: 'edit',
257
- match: ['all']
258
- },
259
- {
260
- label: '静默新增(不生成表单)',
261
- key: 'silenceAdd',
262
- match: ['input', 'rangePicker']
263
- },
264
- {
265
- label: '版本号',
266
- key: 'version',
267
- match: ['input']
268
- }
269
- ],
270
- // 字段用途类型
271
- silencePurposeType: [
272
- {
273
- label: '创建时间',
274
- key: 'createTime'
275
- },
276
- {
277
- label: '创建/操作人',
278
- key: 'operator'
279
- },
280
- {
281
- label: '组织机构ID',
282
- key: 'orgId'
283
- },
284
- {
285
- label: '自定义',
286
- key: 'customize'
287
- }
288
- ],
289
- // 数据源类型
290
- selectDataType: [
291
- {
292
- label: '字典键',
293
- key: 'key',
294
- noMatch: ['selects', 'cascader']
295
- },
296
- {
297
- label: '固定集合',
298
- key: 'fixArray',
299
- noMatch: ['selects', 'cascader']
300
- },
301
- {
302
- label: '业务逻辑',
303
- key: 'logic',
304
- noMatch: []
305
- }
306
- ]
307
- }
1
+ module.exports = {
2
+ // 数据模式类型
3
+ dataModeType: [
4
+ {
5
+ label: '渲染查询表单项',
6
+ value: 'queryForm',
7
+ noMatch: ['file', 'image', 'textarea', 'personSetting', 'checkbox']
8
+ },
9
+ {
10
+ label: '渲染表格列',
11
+ value: 'table',
12
+ noMatch: ['file', 'image', 'personSetting', 'checkbox']
13
+ },
14
+ {
15
+ label: '渲染新增/修改表单项',
16
+ value: 'addOrEditForm',
17
+ noMatch: []
18
+ },
19
+ {
20
+ label: 'SQL生成查询项',
21
+ value: 'sqlQueryItem',
22
+ noMatch: ['file', 'personSetting', 'checkbox']
23
+ },
24
+ {
25
+ label: 'SQL生成查询表达式',
26
+ value: 'sqlQueryCondition',
27
+ noMatch: ['file', 'image', 'textarea', 'personSetting', 'checkbox']
28
+ }
29
+ ],
30
+ // 表单类型
31
+ formType: [
32
+ {
33
+ label: '输入框', key: 'input'
34
+ },
35
+ {
36
+ label: '选择框', key: 'select'
37
+ },
38
+ {
39
+ label: '级联选择框', key: 'selects'
40
+ },
41
+ {
42
+ label: 'cascader选择框', key: 'cascader'
43
+ },
44
+ {
45
+ label: '多选框', key: 'checkbox'
46
+ },
47
+ {
48
+ label: '地点搜索框', key: 'addressSearch'
49
+ },
50
+ {
51
+ label: '省市区选择框', key: 'citySelect'
52
+ },
53
+ {
54
+ label: '单选框', key: 'radio'
55
+ },
56
+ {
57
+ label: '日期范围选择框', key: 'rangePicker'
58
+ },
59
+ {
60
+ label: '年份选择框', key: 'yearPicker'
61
+ },
62
+ {
63
+ label: '月份选择框', key: 'monthPicker'
64
+ },
65
+ {
66
+ label: '单日选择框', key: 'datePicker'
67
+ },
68
+ {
69
+ label: '文本域', key: 'textarea'
70
+ },
71
+ {
72
+ label: '文件上传', key: 'file'
73
+ },
74
+ {
75
+ label: '图片上传', key: 'image'
76
+ },
77
+ {
78
+ label: '人员选择框', key: 'personSetting'
79
+ },
80
+ ],
81
+ // 文件上传类型
82
+ fileType: [
83
+ {
84
+ label: '无限制',
85
+ accept: '*'
86
+ },
87
+ {
88
+ label: 'word文档',
89
+ accept: '.doc,.docx,'
90
+ },
91
+ {
92
+ label: 'excel表格',
93
+ accept: '.xls,.xlsx,'
94
+ },
95
+ {
96
+ label: 'ppt幻灯片',
97
+ accept: '.ppt,.pptx,'
98
+ },
99
+ {
100
+ label: '图片',
101
+ accept: '.jpg,.jpeg,.ico,.gif,svg,.webp,.png,.bmp,.pjpeg,'
102
+ },
103
+ {
104
+ label: '视频',
105
+ accept: '.mp4,.mov,.m4v,.wmv,.asf,.asx,.rm,.rmvb,.3gp,.avi,.mkv,'
106
+ },
107
+ {
108
+ label: '音频',
109
+ accept: '.mp3,.cda,.wav,.aif,.aiff,.ape,.ra,'
110
+ },
111
+ {
112
+ label: '压缩包',
113
+ accept: '.zip,.rar,.7z,'
114
+ },
115
+ {
116
+ label: '文本/JSON',
117
+ accept: '.json,.txt,'
118
+ }
119
+ ],
120
+ // 表单校验类型
121
+ formRuleType: [
122
+ {
123
+ label: '字符串', key: 'string'
124
+ },
125
+ {
126
+ label: '数字', key: 'number'
127
+ },
128
+ {
129
+ label: '布尔值', key: 'boolean'
130
+ },
131
+ {
132
+ label: '正则表达式', key: 'regexp'
133
+ },
134
+ {
135
+ label: '整数', key: 'integer'
136
+ },
137
+ {
138
+ label: '小数', key: 'float'
139
+ },
140
+ {
141
+ label: '数组或集合', key: 'array'
142
+ },
143
+ {
144
+ label: '邮箱', key: 'email'
145
+ }
146
+ ],
147
+ // 作用域插槽类型
148
+ slotType: [
149
+ {
150
+ label: '不设置',
151
+ key: 'default',
152
+ match: ['input', 'select', 'selects', 'checkbox', 'radio', 'addressSearch', 'citySelect']
153
+ },
154
+ {
155
+ label: '文本溢出省略',
156
+ key: 'ellipsis',
157
+ match: ['input', 'citySelect', 'addressSearch']
158
+ },
159
+ {
160
+ label: '多彩徽标',
161
+ key: 'badge',
162
+ match: ['select', 'selects', 'citySelect', 'addressSearch']
163
+ },
164
+ {
165
+ label: '日期格式化',
166
+ key: 'date',
167
+ match: ['rangePicker', 'datePicker']
168
+ },
169
+ {
170
+ label: '日期时间格式化',
171
+ key: 'dateTime',
172
+ match: ['rangePicker', 'datePicker']
173
+ },
174
+ {
175
+ label: '操作列',
176
+ key: 'action',
177
+ match: [
178
+ 'input'
179
+ ]
180
+ },
181
+ ],
182
+ // 查询方式
183
+ queryType: [
184
+ {
185
+ label: '相等[=]',
186
+ key: '=',
187
+ match: ['input', 'select', 'radio', 'monthPicker', 'selects', 'addressSearch', 'citySelect']
188
+ },
189
+ {
190
+ label: '不相等[!=]',
191
+ key: '!=',
192
+ match: ['input']
193
+ },
194
+ {
195
+ label: '全模糊[like]',
196
+ key: 'LIKE',
197
+ match: ['input']
198
+ },
199
+ {
200
+ label: '左模糊[left like]',
201
+ key: 'LEFT_LIKE',
202
+ match: ['input']
203
+ },
204
+ {
205
+ label: '右模糊[right like]',
206
+ key: 'RIGHT_LIKE',
207
+ match: ['input']
208
+ },
209
+ {
210
+ label: '大于[>]',
211
+ key: '>',
212
+ match: ['input', 'radio', 'monthPicker']
213
+ },
214
+ {
215
+ label: '大于等于[>=]',
216
+ key: '>=',
217
+ match: ['input', 'radio', 'monthPicker']
218
+ },
219
+ {
220
+ label: '小于[<]',
221
+ key: '<',
222
+ match: ['input', 'radio', 'monthPicker']
223
+ },
224
+ {
225
+ label: '小于等于[<=]',
226
+ key: '<=',
227
+ match: ['input', 'radio', 'monthPicker']
228
+ },
229
+ {
230
+ label: '包含[in]',
231
+ key: 'IN',
232
+ match: ['checkbox']
233
+ },
234
+ {
235
+ label: '不包含[not in]',
236
+ key: 'NOT_IN',
237
+ match: ['checkbox']
238
+ },
239
+ {
240
+ label: '之间[between]',
241
+ key: 'BETWEEN',
242
+ match: ['rangePicker', 'datePicker']
243
+ }
244
+ ],
245
+ // 新增/修改场景类型
246
+ addOrEditType: [
247
+ {
248
+ label: '新增和修改',
249
+ key: 'all',
250
+ match: ['all']
251
+ },
252
+ {
253
+ label: '仅支持新增',
254
+ key: 'add',
255
+ match: ['all']
256
+ },
257
+ {
258
+ label: '仅支持修改',
259
+ key: 'edit',
260
+ match: ['all']
261
+ },
262
+ {
263
+ label: '静默新增(不生成表单)',
264
+ key: 'silenceAdd',
265
+ match: ['input', 'rangePicker']
266
+ },
267
+ {
268
+ label: '版本号',
269
+ key: 'version',
270
+ match: ['input']
271
+ }
272
+ ],
273
+ // 字段用途类型
274
+ silencePurposeType: [
275
+ {
276
+ label: '创建时间',
277
+ key: 'createTime'
278
+ },
279
+ {
280
+ label: '创建/操作人',
281
+ key: 'operator'
282
+ },
283
+ {
284
+ label: '组织机构ID',
285
+ key: 'orgId'
286
+ },
287
+ {
288
+ label: '自定义',
289
+ key: 'customize'
290
+ }
291
+ ],
292
+ // 数据源类型
293
+ selectDataType: [
294
+ {
295
+ label: '字典键',
296
+ key: 'key',
297
+ noMatch: ['selects', 'cascader']
298
+ },
299
+ {
300
+ label: '固定集合',
301
+ key: 'fixArray',
302
+ noMatch: ['selects', 'cascader']
303
+ },
304
+ {
305
+ label: '业务逻辑',
306
+ key: 'logic',
307
+ noMatch: []
308
+ }
309
+ ]
310
+ }
@@ -1,24 +1,24 @@
1
- import { METHOD, request } from '@vue2-client/utils/request'
2
-
3
- /**
4
- * GET请求
5
- * @param url 请求地址
6
- * @param parameter 路径参数
7
- * @returns {Promise<AxiosResponse<T>>}
8
- */
9
- function get (url, parameter) {
10
- return request(url, METHOD.GET, parameter)
11
- }
12
-
13
- /**
14
- * POST请求
15
- * @param url 请求地址
16
- * @param parameter 请求参数
17
- * @param config
18
- * @returns {Promise<AxiosResponse<T>>}
19
- */
20
- function post (url, parameter, config = {}) {
21
- return request(url, METHOD.POST, parameter, config)
22
- }
23
-
24
- export { get, post }
1
+ import { METHOD, request } from '@vue2-client/utils/request'
2
+
3
+ /**
4
+ * GET请求
5
+ * @param url 请求地址
6
+ * @param parameter 路径参数
7
+ * @returns {Promise<AxiosResponse<T>>}
8
+ */
9
+ function get (url, parameter) {
10
+ return request(url, METHOD.GET, parameter)
11
+ }
12
+
13
+ /**
14
+ * POST请求
15
+ * @param url 请求地址
16
+ * @param parameter 请求参数
17
+ * @param config
18
+ * @returns {Promise<AxiosResponse<T>>}
19
+ */
20
+ function post (url, parameter, config = {}) {
21
+ return request(url, METHOD.POST, parameter, config)
22
+ }
23
+
24
+ export { get, post }