@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
|
@@ -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
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
5
5
|
import { Plus as plus_default, Delete as delete_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";
|
|
6
|
-
import ValueSelector from "./ValueSelector.
|
|
6
|
+
import ValueSelector from "./ValueSelector.vue.mjs";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
9
|
import { ElButton } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.mjs";
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { computed, createBlock, openBlock, resolveDynamicComponent, withCtx, createVNode } from "vue";
|
|
2
|
+
import ValueSelectorPopover from "./ValueSelectorPopover.vue2.mjs";
|
|
3
|
+
import { getEditConfigData, getEditConfigDataFields } from "../packages/utils/common.mjs";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
import { ElInputTag } from "../../../../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.mjs";
|
|
7
|
+
import { ElInput } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
|
|
8
|
+
const _sfc_main = {
|
|
9
|
+
__name: "ValueSelector",
|
|
10
|
+
props: {
|
|
11
|
+
// modelValue 的格式:
|
|
12
|
+
// 单选:{ type: 'field', value: '字段ID' }
|
|
13
|
+
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
14
|
+
modelValue: {
|
|
15
|
+
default: () => null
|
|
16
|
+
},
|
|
17
|
+
placeholder: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "请输入或选择值"
|
|
20
|
+
},
|
|
21
|
+
readOnly: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
multiple: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "small"
|
|
36
|
+
}
|
|
37
|
+
// // 可选的字段列表(从父组件传入)
|
|
38
|
+
// availableFields: {
|
|
39
|
+
// type: Array,
|
|
40
|
+
// default: () => [],
|
|
41
|
+
// validator: (value) => Array.isArray(value),
|
|
42
|
+
// },
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:modelValue"],
|
|
45
|
+
setup(__props, { emit: __emit }) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
const emit = __emit;
|
|
48
|
+
const inputComponent = computed(() => {
|
|
49
|
+
return props.multiple ? ElInputTag : ElInput;
|
|
50
|
+
});
|
|
51
|
+
const hiddenFieldsData = computed(() => {
|
|
52
|
+
const editConfigData = getEditConfigData();
|
|
53
|
+
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
54
|
+
});
|
|
55
|
+
const availableFields = computed(() => {
|
|
56
|
+
const fields = getEditConfigDataFields() || [];
|
|
57
|
+
return fields.map((item) => ({
|
|
58
|
+
id: item.id,
|
|
59
|
+
label: item.label,
|
|
60
|
+
fieldName: item.fieldName,
|
|
61
|
+
fieldType: item.fieldType
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
const displayText = computed(() => {
|
|
65
|
+
if (!props.modelValue) return "";
|
|
66
|
+
if (!props.multiple && typeof props.modelValue === "object" && !Array.isArray(props.modelValue)) {
|
|
67
|
+
const val = props.modelValue;
|
|
68
|
+
if (val.label) return val.label;
|
|
69
|
+
const field = availableFields.value.find((f) => f.id === val.value);
|
|
70
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || val.value;
|
|
71
|
+
} else if (!props.multiple && typeof props.modelValue === "string") {
|
|
72
|
+
return props.modelValue;
|
|
73
|
+
}
|
|
74
|
+
return "";
|
|
75
|
+
});
|
|
76
|
+
const tags = computed({
|
|
77
|
+
get() {
|
|
78
|
+
if (!props.multiple || !Array.isArray(props.modelValue)) {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
return props.modelValue.map((item) => {
|
|
82
|
+
if (item.label) return item.label;
|
|
83
|
+
const field = availableFields.value.find((f) => f.id === item.value);
|
|
84
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
85
|
+
}).filter(Boolean);
|
|
86
|
+
},
|
|
87
|
+
set(val) {
|
|
88
|
+
if (Array.isArray(props.modelValue)) {
|
|
89
|
+
const newModelValue = props.modelValue.filter((item) => {
|
|
90
|
+
const itemLabel = item.label || (() => {
|
|
91
|
+
const field = [
|
|
92
|
+
...availableFields.value,
|
|
93
|
+
...hiddenFieldsData.value
|
|
94
|
+
].find((f) => f.id === item.value);
|
|
95
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
96
|
+
})();
|
|
97
|
+
return val.includes(itemLabel);
|
|
98
|
+
});
|
|
99
|
+
emit("update:modelValue", newModelValue);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const unifiedInputValue = computed({
|
|
104
|
+
get() {
|
|
105
|
+
return props.multiple ? tags.value : displayText.value;
|
|
106
|
+
},
|
|
107
|
+
set(val) {
|
|
108
|
+
if (props.multiple && Array.isArray(val)) {
|
|
109
|
+
tags.value = val;
|
|
110
|
+
} else if (!props.multiple && typeof val === "string") {
|
|
111
|
+
emit("update:modelValue", val);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
const handleConfirm = (selected) => {
|
|
116
|
+
let result = null;
|
|
117
|
+
if (selected.type === "field") {
|
|
118
|
+
const field = [...availableFields.value, ...hiddenFieldsData.value].find(
|
|
119
|
+
(f) => f.id === selected.value
|
|
120
|
+
);
|
|
121
|
+
result = {
|
|
122
|
+
label: `\${${(field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || selected.value}}`,
|
|
123
|
+
type: "field",
|
|
124
|
+
value: selected.value
|
|
125
|
+
};
|
|
126
|
+
} else if (selected.type === "userInfo") {
|
|
127
|
+
result = {
|
|
128
|
+
label: `\${用户信息: ${getUserInfoLabel(selected.value)}}`,
|
|
129
|
+
type: "userInfo",
|
|
130
|
+
value: selected.value
|
|
131
|
+
};
|
|
132
|
+
} else if (selected.type === "urlParam") {
|
|
133
|
+
result = {
|
|
134
|
+
label: `\${路由参数: ${selected.value}}`,
|
|
135
|
+
type: "urlParam",
|
|
136
|
+
value: selected.value
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
if (!result) return;
|
|
140
|
+
if (props.multiple) {
|
|
141
|
+
const currentValue = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
142
|
+
const exists = currentValue.some((item) => item.value === result.value);
|
|
143
|
+
if (!exists) {
|
|
144
|
+
emit("update:modelValue", [...currentValue, result]);
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
emit("update:modelValue", result);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const getUserInfoLabel = (key) => {
|
|
151
|
+
const labels = {
|
|
152
|
+
userCode: "用户编号",
|
|
153
|
+
userName: "用户名称",
|
|
154
|
+
roleCode: "角色编号",
|
|
155
|
+
roleName: "角色名称",
|
|
156
|
+
orgCode: "机构编号",
|
|
157
|
+
orgName: "机构名称"
|
|
158
|
+
};
|
|
159
|
+
return labels[key] || key;
|
|
160
|
+
};
|
|
161
|
+
return (_ctx, _cache) => {
|
|
162
|
+
return openBlock(), createBlock(resolveDynamicComponent(inputComponent.value), {
|
|
163
|
+
modelValue: unifiedInputValue.value,
|
|
164
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unifiedInputValue.value = $event),
|
|
165
|
+
placeholder: __props.placeholder,
|
|
166
|
+
disabled: __props.disabled,
|
|
167
|
+
readonly: __props.readOnly,
|
|
168
|
+
trigger: __props.multiple ? "Space" : void 0,
|
|
169
|
+
"collapse-tags": "",
|
|
170
|
+
"collapse-tags-tooltip": "",
|
|
171
|
+
"max-collapse-tags": 1,
|
|
172
|
+
class: "value-selector-input",
|
|
173
|
+
size: __props.size
|
|
174
|
+
}, {
|
|
175
|
+
suffix: withCtx(() => [
|
|
176
|
+
createVNode(ValueSelectorPopover, {
|
|
177
|
+
"available-fields": availableFields.value,
|
|
178
|
+
disabled: __props.disabled,
|
|
179
|
+
onConfirm: handleConfirm
|
|
180
|
+
}, null, 8, ["available-fields", "disabled"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly", "trigger", "size"]);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const ValueSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5b87efa"]]);
|
|
188
|
+
export {
|
|
189
|
+
ValueSelector as default
|
|
190
|
+
};
|
|
@@ -15,6 +15,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
|
|
|
15
15
|
import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
|
|
16
16
|
import { defaultProperty } from "../../packages/form/aside/index.mjs";
|
|
17
17
|
import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
|
|
18
|
+
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
18
19
|
/* empty css */
|
|
19
20
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
20
21
|
import { ElDialog } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dialog/index.mjs";
|
|
@@ -334,10 +335,10 @@ const _sfc_main = {
|
|
|
334
335
|
}),
|
|
335
336
|
createVNode(_component_el_table_column, { label: "初值" }, {
|
|
336
337
|
default: withCtx(({ row }) => [
|
|
337
|
-
createVNode(
|
|
338
|
+
createVNode(ValueSelector, {
|
|
338
339
|
modelValue: row.value,
|
|
339
340
|
"onUpdate:modelValue": ($event) => row.value = $event,
|
|
340
|
-
|
|
341
|
+
size: "default"
|
|
341
342
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
342
343
|
]),
|
|
343
344
|
_: 1
|
|
@@ -372,7 +373,7 @@ const _sfc_main = {
|
|
|
372
373
|
};
|
|
373
374
|
}
|
|
374
375
|
};
|
|
375
|
-
const HiddenFieldDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
376
|
+
const HiddenFieldDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c3d621bb"]]);
|
|
376
377
|
export {
|
|
377
378
|
HiddenFieldDialog as default
|
|
378
379
|
};
|
|
@@ -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
|
import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
|
|
15
15
|
import { useVModel } from "../../../../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
16
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
16
|
+
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
17
17
|
import api from "../../api/index.mjs";
|
|
18
18
|
import { getEditConfigDataSources } from "../utils/common.mjs";
|
|
19
19
|
import { createDataSource } from "../utils/datasource.mjs";
|
|
@@ -29,7 +29,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
|
|
|
29
29
|
/* empty css */
|
|
30
30
|
/* empty css */
|
|
31
31
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
32
|
-
/* empty css
|
|
32
|
+
/* empty css */
|
|
33
33
|
import "../../axios/config.mjs";
|
|
34
34
|
import "../../../../../_virtual/FileSaver.min.mjs";
|
|
35
35
|
import "../../../../../_virtual/index.mjs";
|
|
@@ -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
|
};
|
|
@@ -63,6 +63,8 @@ import "../formulaEditor/core/functionCore.mjs";
|
|
|
63
63
|
/* empty css */
|
|
64
64
|
/* empty css */
|
|
65
65
|
/* empty css */
|
|
66
|
+
/* empty css */
|
|
67
|
+
/* empty css */
|
|
66
68
|
/* empty css */
|
|
67
69
|
/* empty css */
|
|
68
70
|
/* empty css */
|
|
@@ -75,7 +77,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
|
|
|
75
77
|
import "../../../../../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.mjs";
|
|
76
78
|
/* empty css */
|
|
77
79
|
/* empty css */
|
|
78
|
-
/* empty css
|
|
80
|
+
/* empty css */
|
|
79
81
|
import "../../axios/config.mjs";
|
|
80
82
|
/* empty css */
|
|
81
83
|
/* empty css */
|
|
@@ -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
|
};
|