@fecp/designer 5.3.10 → 5.3.11
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/es/designer.css +201 -182
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/FieldSetMapping.vue2.mjs +3 -1
- package/es/packages/designer/src/layout/header/index.vue.mjs +4 -0
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +65 -45
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +2 -0
- package/es/packages/designer/src/packages/event/index.vue2.mjs +3 -1
- package/es/packages/designer/src/packages/eventFlow/dialog/action/Upload.vue2.mjs +179 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +18 -3
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +2 -0
- package/es/packages/designer/src/packages/table/index.vue.mjs +2 -1
- package/es/packages/designer/src/packages/table/property/optBtn.vue.mjs +0 -9
- package/es/packages/designer/src/packages/table/queryModule/index.vue.mjs +3 -1
- package/es/packages/designer/src/packages/table/tableSetting.vue.mjs +2 -1
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/utils/datasource.mjs +4 -0
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +105 -5
- package/lib/designer.css +201 -182
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/FieldSetMapping.vue2.js +3 -1
- package/lib/packages/designer/src/layout/header/index.vue.js +4 -0
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +64 -44
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +2 -0
- package/lib/packages/designer/src/packages/event/index.vue2.js +3 -1
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/Upload.vue2.js +179 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +18 -3
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +2 -0
- package/lib/packages/designer/src/packages/table/index.vue.js +2 -1
- package/lib/packages/designer/src/packages/table/property/optBtn.vue.js +0 -9
- package/lib/packages/designer/src/packages/table/queryModule/index.vue.js +3 -1
- package/lib/packages/designer/src/packages/table/tableSetting.vue.js +2 -1
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/utils/datasource.js +4 -0
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +104 -4
- package/package.json +1 -1
|
@@ -150,6 +150,7 @@ const _sfc_main = {
|
|
|
150
150
|
}, [
|
|
151
151
|
unref(mappings).length === 0 ? (openBlock(), createBlock(_component_el_dropdown, {
|
|
152
152
|
key: 0,
|
|
153
|
+
"max-height": 500,
|
|
153
154
|
trigger: "click",
|
|
154
155
|
placement: "bottom",
|
|
155
156
|
"hide-on-click": false,
|
|
@@ -323,6 +324,7 @@ const _sfc_main = {
|
|
|
323
324
|
]),
|
|
324
325
|
createElementVNode("div", _hoisted_11, [
|
|
325
326
|
createVNode(_component_el_dropdown, {
|
|
327
|
+
"max-height": 500,
|
|
326
328
|
trigger: "click",
|
|
327
329
|
placement: "bottom",
|
|
328
330
|
"hide-on-click": false,
|
|
@@ -402,7 +404,7 @@ const _sfc_main = {
|
|
|
402
404
|
};
|
|
403
405
|
}
|
|
404
406
|
};
|
|
405
|
-
const FieldSetMapping = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
407
|
+
const FieldSetMapping = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ac24177e"]]);
|
|
406
408
|
export {
|
|
407
409
|
FieldSetMapping as default
|
|
408
410
|
};
|
|
@@ -153,6 +153,9 @@ const _sfc_main = {
|
|
|
153
153
|
if (required) {
|
|
154
154
|
custom.required = true;
|
|
155
155
|
}
|
|
156
|
+
if (item.maxlength) {
|
|
157
|
+
custom.maxLength = item.maxlength;
|
|
158
|
+
}
|
|
156
159
|
editConfigData.value.fieldsData.push({
|
|
157
160
|
x,
|
|
158
161
|
y,
|
|
@@ -170,6 +173,7 @@ const _sfc_main = {
|
|
|
170
173
|
disabled: item.disabled || item.readOnly,
|
|
171
174
|
readOnly: item.readOnly,
|
|
172
175
|
defaultValue: item.value,
|
|
176
|
+
showWordCount: item["show-word-limit"],
|
|
173
177
|
...custom
|
|
174
178
|
},
|
|
175
179
|
moved: false,
|
|
@@ -13,7 +13,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
|
-
import { ref, watch, createElementBlock, openBlock, createVNode, unref, isRef, withCtx, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
16
|
+
import { ref, watch, createElementBlock, openBlock, createVNode, unref, isRef, withCtx, createElementVNode, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, toDisplayString } from "vue";
|
|
17
17
|
import { VideoPlay as video_play_default, CopyDocument as copy_document_default, Document as document_default } from "../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
18
18
|
import ParamsConfig from "../../components/ParamsConfig.vue2.mjs";
|
|
19
19
|
import "../../store/index.mjs";
|
|
@@ -37,18 +37,23 @@ import { ElTag } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue
|
|
|
37
37
|
import { ElMessage } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.mjs";
|
|
38
38
|
const _hoisted_1 = { class: "data-source" };
|
|
39
39
|
const _hoisted_2 = { class: "config-section" };
|
|
40
|
-
const _hoisted_3 = { class: "
|
|
41
|
-
const _hoisted_4 = {
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
const _hoisted_3 = { class: "desc-content" };
|
|
41
|
+
const _hoisted_4 = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "condition-desc"
|
|
44
|
+
};
|
|
45
|
+
const _hoisted_5 = { class: "test-section" };
|
|
46
|
+
const _hoisted_6 = { class: "section-header" };
|
|
47
|
+
const _hoisted_7 = { class: "section-title" };
|
|
48
|
+
const _hoisted_8 = {
|
|
44
49
|
key: 0,
|
|
45
50
|
class: "response-area"
|
|
46
51
|
};
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
+
const _hoisted_9 = { class: "response-title" };
|
|
53
|
+
const _hoisted_10 = { class: "response-actions" };
|
|
54
|
+
const _hoisted_11 = { class: "response-status" };
|
|
55
|
+
const _hoisted_12 = { class: "response-time" };
|
|
56
|
+
const _hoisted_13 = {
|
|
52
57
|
key: 1,
|
|
53
58
|
class: "empty-response"
|
|
54
59
|
};
|
|
@@ -232,26 +237,41 @@ const _sfc_main = {
|
|
|
232
237
|
}),
|
|
233
238
|
createVNode(_component_el_form_item, { label: "内容类型" }, {
|
|
234
239
|
default: withCtx(() => [
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
240
|
+
createElementVNode("div", _hoisted_3, [
|
|
241
|
+
createVNode(_component_el_radio_group, {
|
|
242
|
+
modelValue: __props.requestConfigData.contentType,
|
|
243
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.requestConfigData.contentType = $event)
|
|
244
|
+
}, {
|
|
245
|
+
default: withCtx(() => [
|
|
246
|
+
createVNode(_component_el_radio, { value: "json" }, {
|
|
247
|
+
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
248
|
+
createTextVNode("JSON(RequestBody)")
|
|
249
|
+
])),
|
|
250
|
+
_: 1
|
|
251
|
+
}),
|
|
252
|
+
createVNode(_component_el_radio, { value: "formData" }, {
|
|
253
|
+
default: withCtx(() => _cache[9] || (_cache[9] = [
|
|
254
|
+
createTextVNode("FormData(RequestParam)")
|
|
255
|
+
])),
|
|
256
|
+
_: 1
|
|
257
|
+
}),
|
|
258
|
+
createVNode(_component_el_radio, { value: "download" }, {
|
|
259
|
+
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
260
|
+
createTextVNode("Download(RequestBody)")
|
|
261
|
+
])),
|
|
262
|
+
_: 1
|
|
263
|
+
}),
|
|
264
|
+
createVNode(_component_el_radio, { value: "upload" }, {
|
|
265
|
+
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
266
|
+
createTextVNode("Upload(RequestParam)")
|
|
267
|
+
])),
|
|
268
|
+
_: 1
|
|
269
|
+
})
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["modelValue"]),
|
|
273
|
+
__props.requestConfigData.contentType == "upload" ? (openBlock(), createElementBlock("div", _hoisted_4, " 单文件上传键名: file, 多文件上传键名: files。 ")) : createCommentVNode("", true)
|
|
274
|
+
])
|
|
255
275
|
]),
|
|
256
276
|
_: 1
|
|
257
277
|
}),
|
|
@@ -268,16 +288,16 @@ const _sfc_main = {
|
|
|
268
288
|
_: 1
|
|
269
289
|
}, 8, ["model"])
|
|
270
290
|
]),
|
|
271
|
-
createElementVNode("div",
|
|
272
|
-
createElementVNode("div",
|
|
273
|
-
createElementVNode("span",
|
|
291
|
+
createElementVNode("div", _hoisted_5, [
|
|
292
|
+
createElementVNode("div", _hoisted_6, [
|
|
293
|
+
createElementVNode("span", _hoisted_7, [
|
|
274
294
|
createVNode(_component_el_icon, { class: "section-icon" }, {
|
|
275
295
|
default: withCtx(() => [
|
|
276
296
|
createVNode(unref(video_play_default))
|
|
277
297
|
]),
|
|
278
298
|
_: 1
|
|
279
299
|
}),
|
|
280
|
-
_cache[
|
|
300
|
+
_cache[12] || (_cache[12] = createTextVNode(" 请求测试 "))
|
|
281
301
|
]),
|
|
282
302
|
createVNode(_component_el_button, {
|
|
283
303
|
size: "small",
|
|
@@ -292,24 +312,24 @@ const _sfc_main = {
|
|
|
292
312
|
_: 1
|
|
293
313
|
}, 8, ["icon", "loading"])
|
|
294
314
|
]),
|
|
295
|
-
unref(responseData) ? (openBlock(), createElementBlock("div",
|
|
296
|
-
createElementVNode("div",
|
|
297
|
-
_cache[
|
|
298
|
-
createElementVNode("div",
|
|
315
|
+
unref(responseData) ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
316
|
+
createElementVNode("div", _hoisted_9, [
|
|
317
|
+
_cache[14] || (_cache[14] = createElementVNode("span", null, "响应结果", -1)),
|
|
318
|
+
createElementVNode("div", _hoisted_10, [
|
|
299
319
|
createVNode(_component_el_button, {
|
|
300
320
|
size: "small",
|
|
301
321
|
text: "",
|
|
302
322
|
icon: unref(copy_document_default),
|
|
303
323
|
onClick: copyResponse
|
|
304
324
|
}, {
|
|
305
|
-
default: withCtx(() => _cache[
|
|
325
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
306
326
|
createTextVNode(" 复制 ")
|
|
307
327
|
])),
|
|
308
328
|
_: 1
|
|
309
329
|
}, 8, ["icon"])
|
|
310
330
|
])
|
|
311
331
|
]),
|
|
312
|
-
createElementVNode("div",
|
|
332
|
+
createElementVNode("div", _hoisted_11, [
|
|
313
333
|
createVNode(_component_el_tag, {
|
|
314
334
|
type: unref(responseData).status >= 200 && unref(responseData).status < 300 ? "success" : "danger",
|
|
315
335
|
size: "small"
|
|
@@ -319,7 +339,7 @@ const _sfc_main = {
|
|
|
319
339
|
]),
|
|
320
340
|
_: 1
|
|
321
341
|
}, 8, ["type"]),
|
|
322
|
-
createElementVNode("span",
|
|
342
|
+
createElementVNode("span", _hoisted_12, "耗时: " + toDisplayString(unref(requestTime)) + "ms", 1)
|
|
323
343
|
]),
|
|
324
344
|
createVNode(unref(Q), {
|
|
325
345
|
value: unref(responseData).data,
|
|
@@ -327,14 +347,14 @@ const _sfc_main = {
|
|
|
327
347
|
boxed: "",
|
|
328
348
|
"show-array-index": false
|
|
329
349
|
}, null, 8, ["value"])
|
|
330
|
-
])) : (openBlock(), createElementBlock("div",
|
|
350
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
331
351
|
createVNode(_component_el_icon, { class: "empty-icon" }, {
|
|
332
352
|
default: withCtx(() => [
|
|
333
353
|
createVNode(unref(document_default))
|
|
334
354
|
]),
|
|
335
355
|
_: 1
|
|
336
356
|
}),
|
|
337
|
-
_cache[
|
|
357
|
+
_cache[15] || (_cache[15] = createElementVNode("span", null, "暂无响应数据,点击发送请求进行测试", -1))
|
|
338
358
|
]))
|
|
339
359
|
])
|
|
340
360
|
]),
|
|
@@ -344,7 +364,7 @@ const _sfc_main = {
|
|
|
344
364
|
label: "数据处理",
|
|
345
365
|
name: "dataHandler"
|
|
346
366
|
}, {
|
|
347
|
-
default: withCtx(() => _cache[
|
|
367
|
+
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
348
368
|
createTextVNode("Config")
|
|
349
369
|
])),
|
|
350
370
|
_: 1
|
|
@@ -359,7 +379,7 @@ const _sfc_main = {
|
|
|
359
379
|
};
|
|
360
380
|
}
|
|
361
381
|
};
|
|
362
|
-
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
382
|
+
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd1cd8ea"]]);
|
|
363
383
|
export {
|
|
364
384
|
DataSource as default
|
|
365
385
|
};
|
|
@@ -242,6 +242,7 @@ const _sfc_main = {
|
|
|
242
242
|
}, {
|
|
243
243
|
default: withCtx(() => [
|
|
244
244
|
createVNode(_component_el_dropdown, {
|
|
245
|
+
"max-height": 500,
|
|
245
246
|
trigger: "click",
|
|
246
247
|
placement: "bottom-start",
|
|
247
248
|
style: { "height": "100%" }
|
|
@@ -301,6 +302,7 @@ const _sfc_main = {
|
|
|
301
302
|
createElementVNode("div", _hoisted_3, [
|
|
302
303
|
createElementVNode("div", _hoisted_4, [
|
|
303
304
|
createVNode(_component_el_dropdown, {
|
|
305
|
+
"max-height": 500,
|
|
304
306
|
trigger: "click",
|
|
305
307
|
placement: "bottom-start",
|
|
306
308
|
onCommand: (command) => handleChangeEventType(index, command)
|
|
@@ -420,7 +422,7 @@ const _sfc_main = {
|
|
|
420
422
|
};
|
|
421
423
|
}
|
|
422
424
|
};
|
|
423
|
-
const EventConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
425
|
+
const EventConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-64aef55e"]]);
|
|
424
426
|
export {
|
|
425
427
|
EventConfig as default
|
|
426
428
|
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { ref, computed, createElementBlock, openBlock, Fragment, createVNode, withCtx, createElementVNode, createTextVNode } from "vue";
|
|
9
|
+
import _sfc_main$1 from "../../../../components/DataSourceSelect.vue.mjs";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
+
import { ElFormItem } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
13
|
+
import { ElCheckbox, ElCheckboxGroup } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/checkbox/index.mjs";
|
|
14
|
+
import { ElInputNumber } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-number/index.mjs";
|
|
15
|
+
import { ElSwitch } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
16
|
+
const _hoisted_1 = { class: "accept-type-container" };
|
|
17
|
+
const _hoisted_2 = { class: "quick-options" };
|
|
18
|
+
const _hoisted_3 = { class: "type-category" };
|
|
19
|
+
const _hoisted_4 = { class: "type-category" };
|
|
20
|
+
const _hoisted_5 = { class: "type-category" };
|
|
21
|
+
const _hoisted_6 = { class: "desc-content" };
|
|
22
|
+
const _sfc_main = {
|
|
23
|
+
__name: "Upload",
|
|
24
|
+
props: {
|
|
25
|
+
formData: Object
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const allFileTypes = ref([
|
|
30
|
+
"doc",
|
|
31
|
+
"xls",
|
|
32
|
+
"ppt",
|
|
33
|
+
"pdf",
|
|
34
|
+
"text",
|
|
35
|
+
"image",
|
|
36
|
+
"video",
|
|
37
|
+
"audio",
|
|
38
|
+
"zip"
|
|
39
|
+
]);
|
|
40
|
+
const isAllSelected = computed(() => {
|
|
41
|
+
return allFileTypes.value.every(
|
|
42
|
+
(type) => {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = formData.value.acceptType) == null ? void 0 : _a.includes(type);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
const toggleSelectAll = () => {
|
|
49
|
+
if (isAllSelected.value) {
|
|
50
|
+
formData.value.acceptType = [];
|
|
51
|
+
} else {
|
|
52
|
+
formData.value.acceptType = [...allFileTypes.value];
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const formData = ref(props.formData);
|
|
56
|
+
if (!formData.value.acceptType) {
|
|
57
|
+
formData.value.acceptType = [];
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_el_form_item = ElFormItem;
|
|
61
|
+
const _component_el_checkbox = ElCheckbox;
|
|
62
|
+
const _component_el_checkbox_group = ElCheckboxGroup;
|
|
63
|
+
const _component_el_input_number = ElInputNumber;
|
|
64
|
+
const _component_el_switch = ElSwitch;
|
|
65
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
66
|
+
createVNode(_component_el_form_item, { label: "选择数据源" }, {
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
createVNode(_sfc_main$1, {
|
|
69
|
+
modelValue: formData.value.dataSourceId,
|
|
70
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.dataSourceId = $event)
|
|
71
|
+
}, null, 8, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
createVNode(_component_el_form_item, { label: "允许上传的文件类型" }, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
createElementVNode("div", _hoisted_1, [
|
|
78
|
+
createElementVNode("div", _hoisted_2, [
|
|
79
|
+
createVNode(_component_el_checkbox, {
|
|
80
|
+
"model-value": isAllSelected.value,
|
|
81
|
+
onChange: toggleSelectAll,
|
|
82
|
+
size: "small",
|
|
83
|
+
class: "select-all-checkbox"
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
86
|
+
createTextVNode(" 全部 ")
|
|
87
|
+
])),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["model-value"])
|
|
90
|
+
]),
|
|
91
|
+
createVNode(_component_el_checkbox_group, {
|
|
92
|
+
modelValue: formData.value.acceptType,
|
|
93
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.acceptType = $event),
|
|
94
|
+
size: "small",
|
|
95
|
+
class: "type-checkbox-group"
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createElementVNode("div", _hoisted_3, [
|
|
99
|
+
_cache[5] || (_cache[5] = createElementVNode("div", { class: "category-title" }, "文档类", -1)),
|
|
100
|
+
createVNode(_component_el_checkbox, {
|
|
101
|
+
label: "Word文档",
|
|
102
|
+
value: "doc"
|
|
103
|
+
}),
|
|
104
|
+
createVNode(_component_el_checkbox, {
|
|
105
|
+
label: "Excel文档",
|
|
106
|
+
value: "xls"
|
|
107
|
+
}),
|
|
108
|
+
createVNode(_component_el_checkbox, {
|
|
109
|
+
label: "PowerPoint文档",
|
|
110
|
+
value: "ppt"
|
|
111
|
+
}),
|
|
112
|
+
createVNode(_component_el_checkbox, {
|
|
113
|
+
label: "PDF文档",
|
|
114
|
+
value: "pdf"
|
|
115
|
+
}),
|
|
116
|
+
createVNode(_component_el_checkbox, {
|
|
117
|
+
label: "文本文件",
|
|
118
|
+
value: "text"
|
|
119
|
+
})
|
|
120
|
+
]),
|
|
121
|
+
createElementVNode("div", _hoisted_4, [
|
|
122
|
+
_cache[6] || (_cache[6] = createElementVNode("div", { class: "category-title" }, "媒体类", -1)),
|
|
123
|
+
createVNode(_component_el_checkbox, {
|
|
124
|
+
label: "图片",
|
|
125
|
+
value: "image"
|
|
126
|
+
}),
|
|
127
|
+
createVNode(_component_el_checkbox, {
|
|
128
|
+
label: "视频",
|
|
129
|
+
value: "video"
|
|
130
|
+
}),
|
|
131
|
+
createVNode(_component_el_checkbox, {
|
|
132
|
+
label: "音频",
|
|
133
|
+
value: "audio"
|
|
134
|
+
})
|
|
135
|
+
]),
|
|
136
|
+
createElementVNode("div", _hoisted_5, [
|
|
137
|
+
_cache[7] || (_cache[7] = createElementVNode("div", { class: "category-title" }, "其他", -1)),
|
|
138
|
+
createVNode(_component_el_checkbox, {
|
|
139
|
+
label: "压缩包",
|
|
140
|
+
value: "zip"
|
|
141
|
+
})
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["modelValue"])
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
createVNode(_component_el_form_item, { label: "文件大小限制" }, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
createElementVNode("div", _hoisted_6, [
|
|
153
|
+
createVNode(_component_el_input_number, {
|
|
154
|
+
modelValue: formData.value.maxSize,
|
|
155
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formData.value.maxSize = $event),
|
|
156
|
+
min: 0
|
|
157
|
+
}, null, 8, ["modelValue"]),
|
|
158
|
+
_cache[8] || (_cache[8] = createElementVNode("div", { class: "condition-desc" }, "单位 MB, 填0不限制。", -1))
|
|
159
|
+
])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}),
|
|
163
|
+
createVNode(_component_el_form_item, { label: "允许多选" }, {
|
|
164
|
+
default: withCtx(() => [
|
|
165
|
+
createVNode(_component_el_switch, {
|
|
166
|
+
modelValue: formData.value.multipleUpload,
|
|
167
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => formData.value.multipleUpload = $event)
|
|
168
|
+
}, null, 8, ["modelValue"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})
|
|
172
|
+
], 64);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d73883f"]]);
|
|
177
|
+
export {
|
|
178
|
+
Upload as default
|
|
179
|
+
};
|
|
@@ -9,6 +9,7 @@ import TableRefresh from "./TableRefresh.vue2.mjs";
|
|
|
9
9
|
import TableChildRefresh from "./TableChildRefresh.vue2.mjs";
|
|
10
10
|
import TableRowDelete from "./TableRowDelete.vue2.mjs";
|
|
11
11
|
import _sfc_main$2 from "./Dialog.vue.mjs";
|
|
12
|
+
import Upload from "./Upload.vue2.mjs";
|
|
12
13
|
const menuData = [
|
|
13
14
|
{
|
|
14
15
|
index: "page",
|
|
@@ -50,6 +51,21 @@ const menuData = [
|
|
|
50
51
|
cancelText: "取消",
|
|
51
52
|
showCancel: true,
|
|
52
53
|
confirmAction: "continue"
|
|
54
|
+
} },
|
|
55
|
+
{ index: "ui-upload", label: "文件上传", desc: "上传文件到服务器", component: Upload, default: {
|
|
56
|
+
acceptType: [
|
|
57
|
+
"doc",
|
|
58
|
+
"xls",
|
|
59
|
+
"ppt",
|
|
60
|
+
"pdf",
|
|
61
|
+
"text",
|
|
62
|
+
"image",
|
|
63
|
+
"video",
|
|
64
|
+
"audio",
|
|
65
|
+
"zip"
|
|
66
|
+
],
|
|
67
|
+
maxSize: "0",
|
|
68
|
+
multipleUpload: false
|
|
53
69
|
} }
|
|
54
70
|
]
|
|
55
71
|
},
|
|
@@ -70,7 +86,7 @@ const menuData = [
|
|
|
70
86
|
resetFilter: false,
|
|
71
87
|
resetPagination: false
|
|
72
88
|
} },
|
|
73
|
-
{ index: "table-row-delete", label: "
|
|
89
|
+
{ index: "table-row-delete", label: "行数据删除", desc: "删除列表的行数据", component: TableRowDelete, default: {
|
|
74
90
|
showConfirmDeleteMessage: true,
|
|
75
91
|
resetTableAfterDelete: true
|
|
76
92
|
} },
|
|
@@ -85,8 +101,7 @@ const menuData = [
|
|
|
85
101
|
index: "request",
|
|
86
102
|
label: "请求",
|
|
87
103
|
items: [
|
|
88
|
-
{ index: "request-send", label: "发送请求", desc: "通过数据源发送API请求", component: _sfc_main$5, default: { showSuccessMessage: false } }
|
|
89
|
-
{ index: "request-handle", label: "接口返回数据处理", desc: "对接口返回的数据进行加工处理" }
|
|
104
|
+
{ index: "request-send", label: "发送请求", desc: "通过数据源发送API请求", component: _sfc_main$5, default: { showSuccessMessage: false } }
|
|
90
105
|
]
|
|
91
106
|
},
|
|
92
107
|
{
|
|
@@ -74,6 +74,8 @@ import "../../axios/config.mjs";
|
|
|
74
74
|
import "../../../../../_virtual/FileSaver.min.mjs";
|
|
75
75
|
import "../../../../../_virtual/index.mjs";
|
|
76
76
|
/* empty css */
|
|
77
|
+
/* empty css */
|
|
78
|
+
/* empty css */
|
|
77
79
|
import { useAdvancedFilterDialog } from "../advancedFilter/useAdvancedFilterDialog.mjs";
|
|
78
80
|
/* empty css */
|
|
79
81
|
/* empty css */
|
|
@@ -259,6 +259,7 @@ const _sfc_main = {
|
|
|
259
259
|
]),
|
|
260
260
|
createElementVNode("div", _hoisted_10, [
|
|
261
261
|
createVNode(_component_el_dropdown, {
|
|
262
|
+
"max-height": 500,
|
|
262
263
|
"popper-class": `quick-operation-dropdown-${item.id}`,
|
|
263
264
|
trigger: "click",
|
|
264
265
|
placement: "bottom",
|
|
@@ -468,7 +469,7 @@ const _sfc_main = {
|
|
|
468
469
|
};
|
|
469
470
|
}
|
|
470
471
|
};
|
|
471
|
-
const tableWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
472
|
+
const tableWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f581ce52"]]);
|
|
472
473
|
export {
|
|
473
474
|
tableWorkArea as default
|
|
474
475
|
};
|
|
@@ -83,15 +83,6 @@ const _sfc_main = {
|
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
}),
|
|
86
|
-
createVNode(_component_el_form_item, { label: "显示条件" }, {
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
createVNode(ConditionConfigButton, {
|
|
89
|
-
condition: unref(currentItem).showCondition,
|
|
90
|
-
onConfirm: (data) => unref(currentItem).showCondition = data
|
|
91
|
-
}, null, 8, ["condition", "onConfirm"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}),
|
|
95
86
|
createVNode(_component_el_form_item, { label: "风格" }, {
|
|
96
87
|
default: withCtx(() => [
|
|
97
88
|
createVNode(_component_el_select, {
|
|
@@ -263,6 +263,7 @@ const _sfc_main = {
|
|
|
263
263
|
queryConfig.value.mode === "dynamic" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
264
264
|
createVNode(_component_el_divider, { direction: "vertical" }),
|
|
265
265
|
createVNode(_component_el_dropdown, {
|
|
266
|
+
"max-height": 500,
|
|
266
267
|
trigger: "click",
|
|
267
268
|
"popper-class": "tab-config-dropdown",
|
|
268
269
|
onVisibleChange: _cache[7] || (_cache[7] = (visible) => tabConfigDropdownVisible.value = visible)
|
|
@@ -384,6 +385,7 @@ const _sfc_main = {
|
|
|
384
385
|
}),
|
|
385
386
|
createVNode(_component_el_divider, { direction: "vertical" }),
|
|
386
387
|
createVNode(_component_el_dropdown, {
|
|
388
|
+
"max-height": 500,
|
|
387
389
|
trigger: "click",
|
|
388
390
|
placement: "bottom",
|
|
389
391
|
"hide-on-click": false
|
|
@@ -551,7 +553,7 @@ const _sfc_main = {
|
|
|
551
553
|
};
|
|
552
554
|
}
|
|
553
555
|
};
|
|
554
|
-
const QueryModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
556
|
+
const QueryModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e569e134"]]);
|
|
555
557
|
export {
|
|
556
558
|
QueryModule as default
|
|
557
559
|
};
|
|
@@ -269,6 +269,7 @@ const _sfc_main = {
|
|
|
269
269
|
]),
|
|
270
270
|
createElementVNode("div", _hoisted_3, [
|
|
271
271
|
createVNode(_component_el_dropdown, {
|
|
272
|
+
"max-height": 500,
|
|
272
273
|
trigger: "click",
|
|
273
274
|
"popper-class": "sort-config-dropdown",
|
|
274
275
|
onVisibleChange: _cache[6] || (_cache[6] = (visible) => sortConfigDropdownVisible.value = visible)
|
|
@@ -464,7 +465,7 @@ const _sfc_main = {
|
|
|
464
465
|
};
|
|
465
466
|
}
|
|
466
467
|
};
|
|
467
|
-
const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
468
|
+
const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-70f62793"]]);
|
|
468
469
|
export {
|
|
469
470
|
TableSetting as default
|
|
470
471
|
};
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
9
|
/* empty css */
|
|
12
10
|
/* empty css */
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
15
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.mjs";
|
|
@@ -152,6 +152,10 @@ class DataSourceManager {
|
|
|
152
152
|
case "post":
|
|
153
153
|
if (currentDs.contentType === "formData") {
|
|
154
154
|
response = await this.http.postForm(url, params, requestConfig);
|
|
155
|
+
} else if (currentDs.contentType === "download") {
|
|
156
|
+
await this.http.download(url, params, requestConfig);
|
|
157
|
+
} else if (currentDs.contentType === "upload") {
|
|
158
|
+
response = await this.http.upload(url, params, requestConfig);
|
|
155
159
|
} else {
|
|
156
160
|
response = await this.http.post(url, params, requestConfig);
|
|
157
161
|
}
|