@fecp/designer 5.3.10 → 5.3.12
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 +405 -386
- 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/components/ParamsConfig.vue2.mjs +1 -1
- package/es/packages/designer/src/components/ValueSelector.vue.mjs +190 -0
- package/es/packages/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +4 -3
- package/es/packages/designer/src/layout/header/index.vue.mjs +4 -0
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +65 -45
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +3 -1
- 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/form/components/ComponentPreviewWrapper.vue.mjs +2 -2
- package/es/packages/designer/src/packages/form/index.vue.mjs +2 -13
- package/es/packages/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/packages/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +3 -1
- 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/vue/src/components/forms/form/Form.vue.mjs +12 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +2 -2
- package/es/packages/vue/src/utils/datasource.mjs +4 -0
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +105 -6
- package/es/packages/vue/src/utils/parseRouteParams.mjs +1 -1
- package/lib/designer.css +405 -386
- 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/components/ParamsConfig.vue2.js +1 -1
- package/lib/packages/designer/src/components/ValueSelector.vue.js +190 -0
- package/lib/packages/designer/src/layout/aside/HiddenFieldDialog.vue.js +4 -3
- package/lib/packages/designer/src/layout/header/index.vue.js +4 -0
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +64 -44
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +3 -1
- 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/form/components/ComponentPreviewWrapper.vue.js +2 -2
- package/lib/packages/designer/src/packages/form/index.vue.js +1 -12
- package/lib/packages/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/packages/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +3 -1
- 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/vue/src/components/forms/form/Form.vue.js +12 -2
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +2 -2
- package/lib/packages/vue/src/utils/datasource.js +4 -0
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +104 -5
- package/lib/packages/vue/src/utils/parseRouteParams.js +1 -1
- package/package.json +1 -1
|
@@ -152,6 +152,7 @@ const _sfc_main = {
|
|
|
152
152
|
}, [
|
|
153
153
|
vue.unref(mappings).length === 0 ? (vue.openBlock(), vue.createBlock(_component_el_dropdown, {
|
|
154
154
|
key: 0,
|
|
155
|
+
"max-height": 500,
|
|
155
156
|
trigger: "click",
|
|
156
157
|
placement: "bottom",
|
|
157
158
|
"hide-on-click": false,
|
|
@@ -325,6 +326,7 @@ const _sfc_main = {
|
|
|
325
326
|
]),
|
|
326
327
|
vue.createElementVNode("div", _hoisted_11, [
|
|
327
328
|
vue.createVNode(_component_el_dropdown, {
|
|
329
|
+
"max-height": 500,
|
|
328
330
|
trigger: "click",
|
|
329
331
|
placement: "bottom",
|
|
330
332
|
"hide-on-click": false,
|
|
@@ -404,5 +406,5 @@ const _sfc_main = {
|
|
|
404
406
|
};
|
|
405
407
|
}
|
|
406
408
|
};
|
|
407
|
-
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
409
|
+
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ac24177e"]]);
|
|
408
410
|
exports.default = FieldSetMapping;
|
|
@@ -5,7 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const vue = require("vue");
|
|
7
7
|
const index$1 = require("../../../../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.js");
|
|
8
|
-
const ValueSelector = require("./ValueSelector.
|
|
8
|
+
const ValueSelector = require("./ValueSelector.vue.js");
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
11
11
|
const index = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.js");
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const ValueSelectorPopover = require("./ValueSelectorPopover.vue2.js");
|
|
5
|
+
const common = require("../packages/utils/common.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
|
+
const index = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-tag/index.js");
|
|
9
|
+
const index$1 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: "ValueSelector",
|
|
12
|
+
props: {
|
|
13
|
+
// modelValue 的格式:
|
|
14
|
+
// 单选:{ type: 'field', value: '字段ID' }
|
|
15
|
+
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
16
|
+
modelValue: {
|
|
17
|
+
default: () => null
|
|
18
|
+
},
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "请输入或选择值"
|
|
22
|
+
},
|
|
23
|
+
readOnly: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
multiple: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "small"
|
|
38
|
+
}
|
|
39
|
+
// // 可选的字段列表(从父组件传入)
|
|
40
|
+
// availableFields: {
|
|
41
|
+
// type: Array,
|
|
42
|
+
// default: () => [],
|
|
43
|
+
// validator: (value) => Array.isArray(value),
|
|
44
|
+
// },
|
|
45
|
+
},
|
|
46
|
+
emits: ["update:modelValue"],
|
|
47
|
+
setup(__props, { emit: __emit }) {
|
|
48
|
+
const props = __props;
|
|
49
|
+
const emit = __emit;
|
|
50
|
+
const inputComponent = vue.computed(() => {
|
|
51
|
+
return props.multiple ? index.ElInputTag : index$1.ElInput;
|
|
52
|
+
});
|
|
53
|
+
const hiddenFieldsData = vue.computed(() => {
|
|
54
|
+
const editConfigData = common.getEditConfigData();
|
|
55
|
+
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
56
|
+
});
|
|
57
|
+
const availableFields = vue.computed(() => {
|
|
58
|
+
const fields = common.getEditConfigDataFields() || [];
|
|
59
|
+
return fields.map((item) => ({
|
|
60
|
+
id: item.id,
|
|
61
|
+
label: item.label,
|
|
62
|
+
fieldName: item.fieldName,
|
|
63
|
+
fieldType: item.fieldType
|
|
64
|
+
}));
|
|
65
|
+
});
|
|
66
|
+
const displayText = vue.computed(() => {
|
|
67
|
+
if (!props.modelValue) return "";
|
|
68
|
+
if (!props.multiple && typeof props.modelValue === "object" && !Array.isArray(props.modelValue)) {
|
|
69
|
+
const val = props.modelValue;
|
|
70
|
+
if (val.label) return val.label;
|
|
71
|
+
const field = availableFields.value.find((f) => f.id === val.value);
|
|
72
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || val.value;
|
|
73
|
+
} else if (!props.multiple && typeof props.modelValue === "string") {
|
|
74
|
+
return props.modelValue;
|
|
75
|
+
}
|
|
76
|
+
return "";
|
|
77
|
+
});
|
|
78
|
+
const tags = vue.computed({
|
|
79
|
+
get() {
|
|
80
|
+
if (!props.multiple || !Array.isArray(props.modelValue)) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
return props.modelValue.map((item) => {
|
|
84
|
+
if (item.label) return item.label;
|
|
85
|
+
const field = availableFields.value.find((f) => f.id === item.value);
|
|
86
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
87
|
+
}).filter(Boolean);
|
|
88
|
+
},
|
|
89
|
+
set(val) {
|
|
90
|
+
if (Array.isArray(props.modelValue)) {
|
|
91
|
+
const newModelValue = props.modelValue.filter((item) => {
|
|
92
|
+
const itemLabel = item.label || (() => {
|
|
93
|
+
const field = [
|
|
94
|
+
...availableFields.value,
|
|
95
|
+
...hiddenFieldsData.value
|
|
96
|
+
].find((f) => f.id === item.value);
|
|
97
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
98
|
+
})();
|
|
99
|
+
return val.includes(itemLabel);
|
|
100
|
+
});
|
|
101
|
+
emit("update:modelValue", newModelValue);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const unifiedInputValue = vue.computed({
|
|
106
|
+
get() {
|
|
107
|
+
return props.multiple ? tags.value : displayText.value;
|
|
108
|
+
},
|
|
109
|
+
set(val) {
|
|
110
|
+
if (props.multiple && Array.isArray(val)) {
|
|
111
|
+
tags.value = val;
|
|
112
|
+
} else if (!props.multiple && typeof val === "string") {
|
|
113
|
+
emit("update:modelValue", val);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const handleConfirm = (selected) => {
|
|
118
|
+
let result = null;
|
|
119
|
+
if (selected.type === "field") {
|
|
120
|
+
const field = [...availableFields.value, ...hiddenFieldsData.value].find(
|
|
121
|
+
(f) => f.id === selected.value
|
|
122
|
+
);
|
|
123
|
+
result = {
|
|
124
|
+
label: `\${${(field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || selected.value}}`,
|
|
125
|
+
type: "field",
|
|
126
|
+
value: selected.value
|
|
127
|
+
};
|
|
128
|
+
} else if (selected.type === "userInfo") {
|
|
129
|
+
result = {
|
|
130
|
+
label: `\${用户信息: ${getUserInfoLabel(selected.value)}}`,
|
|
131
|
+
type: "userInfo",
|
|
132
|
+
value: selected.value
|
|
133
|
+
};
|
|
134
|
+
} else if (selected.type === "urlParam") {
|
|
135
|
+
result = {
|
|
136
|
+
label: `\${路由参数: ${selected.value}}`,
|
|
137
|
+
type: "urlParam",
|
|
138
|
+
value: selected.value
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
if (!result) return;
|
|
142
|
+
if (props.multiple) {
|
|
143
|
+
const currentValue = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
144
|
+
const exists = currentValue.some((item) => item.value === result.value);
|
|
145
|
+
if (!exists) {
|
|
146
|
+
emit("update:modelValue", [...currentValue, result]);
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
emit("update:modelValue", result);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const getUserInfoLabel = (key) => {
|
|
153
|
+
const labels = {
|
|
154
|
+
userCode: "用户编号",
|
|
155
|
+
userName: "用户名称",
|
|
156
|
+
roleCode: "角色编号",
|
|
157
|
+
roleName: "角色名称",
|
|
158
|
+
orgCode: "机构编号",
|
|
159
|
+
orgName: "机构名称"
|
|
160
|
+
};
|
|
161
|
+
return labels[key] || key;
|
|
162
|
+
};
|
|
163
|
+
return (_ctx, _cache) => {
|
|
164
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(inputComponent.value), {
|
|
165
|
+
modelValue: unifiedInputValue.value,
|
|
166
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unifiedInputValue.value = $event),
|
|
167
|
+
placeholder: __props.placeholder,
|
|
168
|
+
disabled: __props.disabled,
|
|
169
|
+
readonly: __props.readOnly,
|
|
170
|
+
trigger: __props.multiple ? "Space" : void 0,
|
|
171
|
+
"collapse-tags": "",
|
|
172
|
+
"collapse-tags-tooltip": "",
|
|
173
|
+
"max-collapse-tags": 1,
|
|
174
|
+
class: "value-selector-input",
|
|
175
|
+
size: __props.size
|
|
176
|
+
}, {
|
|
177
|
+
suffix: vue.withCtx(() => [
|
|
178
|
+
vue.createVNode(ValueSelectorPopover.default, {
|
|
179
|
+
"available-fields": availableFields.value,
|
|
180
|
+
disabled: __props.disabled,
|
|
181
|
+
onConfirm: handleConfirm
|
|
182
|
+
}, null, 8, ["available-fields", "disabled"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly", "trigger", "size"]);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const ValueSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e5b87efa"]]);
|
|
190
|
+
exports.default = ValueSelector;
|
|
@@ -17,6 +17,7 @@ const index$2 = require("../../../../../node_modules/.pnpm/@element-plus_icons-v
|
|
|
17
17
|
const common = require("../../packages/utils/common.js");
|
|
18
18
|
const index$5 = require("../../packages/form/aside/index.js");
|
|
19
19
|
const index$6 = require("../../packages/table/aside/index.js");
|
|
20
|
+
const ValueSelector = require("../../components/ValueSelector.vue.js");
|
|
20
21
|
;/* empty css */
|
|
21
22
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
22
23
|
const index = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dialog/index.js");
|
|
@@ -336,10 +337,10 @@ const _sfc_main = {
|
|
|
336
337
|
}),
|
|
337
338
|
vue.createVNode(_component_el_table_column, { label: "初值" }, {
|
|
338
339
|
default: vue.withCtx(({ row }) => [
|
|
339
|
-
vue.createVNode(
|
|
340
|
+
vue.createVNode(ValueSelector.default, {
|
|
340
341
|
modelValue: row.value,
|
|
341
342
|
"onUpdate:modelValue": ($event) => row.value = $event,
|
|
342
|
-
|
|
343
|
+
size: "default"
|
|
343
344
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
344
345
|
]),
|
|
345
346
|
_: 1
|
|
@@ -374,5 +375,5 @@ const _sfc_main = {
|
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
377
|
};
|
|
377
|
-
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
378
|
+
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-c3d621bb"]]);
|
|
378
379
|
exports.default = HiddenFieldDialog;
|
|
@@ -155,6 +155,9 @@ const _sfc_main = {
|
|
|
155
155
|
if (required) {
|
|
156
156
|
custom.required = true;
|
|
157
157
|
}
|
|
158
|
+
if (item.maxlength) {
|
|
159
|
+
custom.maxLength = item.maxlength;
|
|
160
|
+
}
|
|
158
161
|
editConfigData.value.fieldsData.push({
|
|
159
162
|
x,
|
|
160
163
|
y,
|
|
@@ -172,6 +175,7 @@ const _sfc_main = {
|
|
|
172
175
|
disabled: item.disabled || item.readOnly,
|
|
173
176
|
readOnly: item.readOnly,
|
|
174
177
|
defaultValue: item.value,
|
|
178
|
+
showWordCount: item["show-word-limit"],
|
|
175
179
|
...custom
|
|
176
180
|
},
|
|
177
181
|
moved: false,
|
|
@@ -15,7 +15,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
15
15
|
;/* empty css */
|
|
16
16
|
const vue = require("vue");
|
|
17
17
|
const index = require("../../../../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/dist/index.js");
|
|
18
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
18
|
+
const ValueSelector = require("../../components/ValueSelector.vue.js");
|
|
19
19
|
const index$1 = require("../../api/index.js");
|
|
20
20
|
const common = require("../utils/common.js");
|
|
21
21
|
const datasource = require("../utils/datasource.js");
|
|
@@ -31,7 +31,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
31
31
|
;/* empty css */
|
|
32
32
|
;/* empty css */
|
|
33
33
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
34
|
-
;/* empty css
|
|
34
|
+
;/* empty css */
|
|
35
35
|
require("../../axios/config.js");
|
|
36
36
|
require("../../../../../_virtual/FileSaver.min.js");
|
|
37
37
|
require("../../../../../_virtual/index.js");
|
|
@@ -39,18 +39,23 @@ const index$9 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_v
|
|
|
39
39
|
const index$a = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.js");
|
|
40
40
|
const _hoisted_1 = { class: "data-source" };
|
|
41
41
|
const _hoisted_2 = { class: "config-section" };
|
|
42
|
-
const _hoisted_3 = { class: "
|
|
43
|
-
const _hoisted_4 = {
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
const _hoisted_3 = { class: "desc-content" };
|
|
43
|
+
const _hoisted_4 = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "condition-desc"
|
|
46
|
+
};
|
|
47
|
+
const _hoisted_5 = { class: "test-section" };
|
|
48
|
+
const _hoisted_6 = { class: "section-header" };
|
|
49
|
+
const _hoisted_7 = { class: "section-title" };
|
|
50
|
+
const _hoisted_8 = {
|
|
46
51
|
key: 0,
|
|
47
52
|
class: "response-area"
|
|
48
53
|
};
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
+
const _hoisted_9 = { class: "response-title" };
|
|
55
|
+
const _hoisted_10 = { class: "response-actions" };
|
|
56
|
+
const _hoisted_11 = { class: "response-status" };
|
|
57
|
+
const _hoisted_12 = { class: "response-time" };
|
|
58
|
+
const _hoisted_13 = {
|
|
54
59
|
key: 1,
|
|
55
60
|
class: "empty-response"
|
|
56
61
|
};
|
|
@@ -234,26 +239,41 @@ const _sfc_main = {
|
|
|
234
239
|
}),
|
|
235
240
|
vue.createVNode(_component_el_form_item, { label: "内容类型" }, {
|
|
236
241
|
default: vue.withCtx(() => [
|
|
237
|
-
vue.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
vue.
|
|
243
|
-
|
|
244
|
-
vue.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
vue.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
242
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
243
|
+
vue.createVNode(_component_el_radio_group, {
|
|
244
|
+
modelValue: __props.requestConfigData.contentType,
|
|
245
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.requestConfigData.contentType = $event)
|
|
246
|
+
}, {
|
|
247
|
+
default: vue.withCtx(() => [
|
|
248
|
+
vue.createVNode(_component_el_radio, { value: "json" }, {
|
|
249
|
+
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
250
|
+
vue.createTextVNode("JSON(RequestBody)")
|
|
251
|
+
])),
|
|
252
|
+
_: 1
|
|
253
|
+
}),
|
|
254
|
+
vue.createVNode(_component_el_radio, { value: "formData" }, {
|
|
255
|
+
default: vue.withCtx(() => _cache[9] || (_cache[9] = [
|
|
256
|
+
vue.createTextVNode("FormData(RequestParam)")
|
|
257
|
+
])),
|
|
258
|
+
_: 1
|
|
259
|
+
}),
|
|
260
|
+
vue.createVNode(_component_el_radio, { value: "download" }, {
|
|
261
|
+
default: vue.withCtx(() => _cache[10] || (_cache[10] = [
|
|
262
|
+
vue.createTextVNode("Download(RequestBody)")
|
|
263
|
+
])),
|
|
264
|
+
_: 1
|
|
265
|
+
}),
|
|
266
|
+
vue.createVNode(_component_el_radio, { value: "upload" }, {
|
|
267
|
+
default: vue.withCtx(() => _cache[11] || (_cache[11] = [
|
|
268
|
+
vue.createTextVNode("Upload(RequestParam)")
|
|
269
|
+
])),
|
|
270
|
+
_: 1
|
|
271
|
+
})
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["modelValue"]),
|
|
275
|
+
__props.requestConfigData.contentType == "upload" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, " 单文件上传键名: file, 多文件上传键名: files。 ")) : vue.createCommentVNode("", true)
|
|
276
|
+
])
|
|
257
277
|
]),
|
|
258
278
|
_: 1
|
|
259
279
|
}),
|
|
@@ -270,16 +290,16 @@ const _sfc_main = {
|
|
|
270
290
|
_: 1
|
|
271
291
|
}, 8, ["model"])
|
|
272
292
|
]),
|
|
273
|
-
vue.createElementVNode("div",
|
|
274
|
-
vue.createElementVNode("div",
|
|
275
|
-
vue.createElementVNode("span",
|
|
293
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
294
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
295
|
+
vue.createElementVNode("span", _hoisted_7, [
|
|
276
296
|
vue.createVNode(_component_el_icon, { class: "section-icon" }, {
|
|
277
297
|
default: vue.withCtx(() => [
|
|
278
298
|
vue.createVNode(vue.unref(index$7.VideoPlay))
|
|
279
299
|
]),
|
|
280
300
|
_: 1
|
|
281
301
|
}),
|
|
282
|
-
_cache[
|
|
302
|
+
_cache[12] || (_cache[12] = vue.createTextVNode(" 请求测试 "))
|
|
283
303
|
]),
|
|
284
304
|
vue.createVNode(_component_el_button, {
|
|
285
305
|
size: "small",
|
|
@@ -294,24 +314,24 @@ const _sfc_main = {
|
|
|
294
314
|
_: 1
|
|
295
315
|
}, 8, ["icon", "loading"])
|
|
296
316
|
]),
|
|
297
|
-
vue.unref(responseData) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
298
|
-
vue.createElementVNode("div",
|
|
299
|
-
_cache[
|
|
300
|
-
vue.createElementVNode("div",
|
|
317
|
+
vue.unref(responseData) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
318
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
319
|
+
_cache[14] || (_cache[14] = vue.createElementVNode("span", null, "响应结果", -1)),
|
|
320
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
301
321
|
vue.createVNode(_component_el_button, {
|
|
302
322
|
size: "small",
|
|
303
323
|
text: "",
|
|
304
324
|
icon: vue.unref(index$7.CopyDocument),
|
|
305
325
|
onClick: copyResponse
|
|
306
326
|
}, {
|
|
307
|
-
default: vue.withCtx(() => _cache[
|
|
327
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
308
328
|
vue.createTextVNode(" 复制 ")
|
|
309
329
|
])),
|
|
310
330
|
_: 1
|
|
311
331
|
}, 8, ["icon"])
|
|
312
332
|
])
|
|
313
333
|
]),
|
|
314
|
-
vue.createElementVNode("div",
|
|
334
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
315
335
|
vue.createVNode(_component_el_tag, {
|
|
316
336
|
type: vue.unref(responseData).status >= 200 && vue.unref(responseData).status < 300 ? "success" : "danger",
|
|
317
337
|
size: "small"
|
|
@@ -321,7 +341,7 @@ const _sfc_main = {
|
|
|
321
341
|
]),
|
|
322
342
|
_: 1
|
|
323
343
|
}, 8, ["type"]),
|
|
324
|
-
vue.createElementVNode("span",
|
|
344
|
+
vue.createElementVNode("span", _hoisted_12, "耗时: " + vue.toDisplayString(vue.unref(requestTime)) + "ms", 1)
|
|
325
345
|
]),
|
|
326
346
|
vue.createVNode(vue.unref(vue3JsonViewer.JsonViewer), {
|
|
327
347
|
value: vue.unref(responseData).data,
|
|
@@ -329,14 +349,14 @@ const _sfc_main = {
|
|
|
329
349
|
boxed: "",
|
|
330
350
|
"show-array-index": false
|
|
331
351
|
}, null, 8, ["value"])
|
|
332
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
352
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
333
353
|
vue.createVNode(_component_el_icon, { class: "empty-icon" }, {
|
|
334
354
|
default: vue.withCtx(() => [
|
|
335
355
|
vue.createVNode(vue.unref(index$7.Document))
|
|
336
356
|
]),
|
|
337
357
|
_: 1
|
|
338
358
|
}),
|
|
339
|
-
_cache[
|
|
359
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("span", null, "暂无响应数据,点击发送请求进行测试", -1))
|
|
340
360
|
]))
|
|
341
361
|
])
|
|
342
362
|
]),
|
|
@@ -346,7 +366,7 @@ const _sfc_main = {
|
|
|
346
366
|
label: "数据处理",
|
|
347
367
|
name: "dataHandler"
|
|
348
368
|
}, {
|
|
349
|
-
default: vue.withCtx(() => _cache[
|
|
369
|
+
default: vue.withCtx(() => _cache[16] || (_cache[16] = [
|
|
350
370
|
vue.createTextVNode("Config")
|
|
351
371
|
])),
|
|
352
372
|
_: 1
|
|
@@ -361,5 +381,5 @@ const _sfc_main = {
|
|
|
361
381
|
};
|
|
362
382
|
}
|
|
363
383
|
};
|
|
364
|
-
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
384
|
+
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-bd1cd8ea"]]);
|
|
365
385
|
exports.default = DataSource;
|
|
@@ -65,6 +65,8 @@ require("../formulaEditor/core/functionCore.js");
|
|
|
65
65
|
;/* empty css */
|
|
66
66
|
;/* empty css */
|
|
67
67
|
;/* empty css */
|
|
68
|
+
;/* empty css */
|
|
69
|
+
;/* empty css */
|
|
68
70
|
;/* empty css */
|
|
69
71
|
;/* empty css */
|
|
70
72
|
;/* empty css */
|
|
@@ -77,7 +79,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
77
79
|
require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
78
80
|
;/* empty css */
|
|
79
81
|
;/* empty css */
|
|
80
|
-
;/* empty css
|
|
82
|
+
;/* empty css */
|
|
81
83
|
require("../../axios/config.js");
|
|
82
84
|
;/* empty css */
|
|
83
85
|
;/* empty css */
|
|
@@ -244,6 +244,7 @@ const _sfc_main = {
|
|
|
244
244
|
}, {
|
|
245
245
|
default: vue.withCtx(() => [
|
|
246
246
|
vue.createVNode(_component_el_dropdown, {
|
|
247
|
+
"max-height": 500,
|
|
247
248
|
trigger: "click",
|
|
248
249
|
placement: "bottom-start",
|
|
249
250
|
style: { "height": "100%" }
|
|
@@ -303,6 +304,7 @@ const _sfc_main = {
|
|
|
303
304
|
vue.createElementVNode("div", _hoisted_3, [
|
|
304
305
|
vue.createElementVNode("div", _hoisted_4, [
|
|
305
306
|
vue.createVNode(_component_el_dropdown, {
|
|
307
|
+
"max-height": 500,
|
|
306
308
|
trigger: "click",
|
|
307
309
|
placement: "bottom-start",
|
|
308
310
|
onCommand: (command) => handleChangeEventType(index2, command)
|
|
@@ -422,5 +424,5 @@ const _sfc_main = {
|
|
|
422
424
|
};
|
|
423
425
|
}
|
|
424
426
|
};
|
|
425
|
-
const EventConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
427
|
+
const EventConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-64aef55e"]]);
|
|
426
428
|
exports.default = EventConfig;
|