service-flow-designer 2.1.59 → 2.2.1

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.
Files changed (185) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
  2. package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
  3. package/dist/es/assets/icon/base.png.js +2 -2
  4. package/dist/es/assets/icon/clean.svg.js +2 -2
  5. package/dist/es/assets/icon/condition.png.js +2 -2
  6. package/dist/es/assets/icon/connect.svg.js +2 -2
  7. package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
  8. package/dist/es/assets/icon/end.png.js +2 -2
  9. package/dist/es/assets/icon/end.svg.js +2 -2
  10. package/dist/es/assets/icon/function.png.js +2 -2
  11. package/dist/es/assets/icon/http-service.svg.js +2 -2
  12. package/dist/es/assets/icon/loop.svg.js +2 -2
  13. package/dist/es/assets/icon/notification.svg.js +2 -2
  14. package/dist/es/assets/icon/regularQuery.svg.js +2 -2
  15. package/dist/es/assets/icon/sort.svg.js +2 -2
  16. package/dist/es/assets/icon/split-joint.svg.js +2 -2
  17. package/dist/es/assets/icon/start.png.js +2 -2
  18. package/dist/es/assets/icon/statistics.svg.js +2 -2
  19. package/dist/es/assets/icon/vardef-v.png.js +2 -2
  20. package/dist/es/designer/common/components/database-select.vue.js +4 -4
  21. package/dist/es/designer/common/components/database-select.vue2.js +29 -205
  22. package/dist/es/designer/common/components/datatable-select.vue.js +4 -4
  23. package/dist/es/designer/common/components/datatable-select.vue2.js +52 -299
  24. package/dist/es/designer/common/components/file-upload.vue.js +4 -4
  25. package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
  26. package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +18 -60
  27. package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
  28. package/dist/es/designer/common/components/json-view/json-view.vue.js +51 -137
  29. package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -2
  30. package/dist/es/designer/common/components/node-base-config.vue.js +7 -63
  31. package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
  32. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +17 -62
  33. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +2 -2
  34. package/dist/es/designer/common/components/sql-view/sql-view.vue.js +2 -2
  35. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +30 -100
  36. package/dist/es/designer/common/components/value-set-input/index.js +2 -2
  37. package/dist/es/designer/common/components/value-set-input/option.js +6 -59
  38. package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +4 -4
  39. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +122 -557
  40. package/dist/es/designer/common/util/node-util.js +32 -42
  41. package/dist/es/designer/desginer-index.vue.js +4 -4
  42. package/dist/es/designer/desginer-index.vue2.js +31 -106
  43. package/dist/es/designer/flow/base/AbLogicNode.js +9 -10
  44. package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -49
  45. package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -10
  46. package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +10 -26
  47. package/dist/es/designer/flow/edge/CustomLine.js +15 -42
  48. package/dist/es/designer/service-components/base/custom-function/config.vue.js +4 -4
  49. package/dist/es/designer/service-components/base/custom-function/config.vue2.js +55 -302
  50. package/dist/es/designer/service-components/base/custom-function/index.js +12 -34
  51. package/dist/es/designer/service-components/base/custom-function/index.vue.js +4 -4
  52. package/dist/es/designer/service-components/base/custom-function/index.vue2.js +8 -40
  53. package/dist/es/designer/service-components/base/end-node/index.js +25 -64
  54. package/dist/es/designer/service-components/base/end-node/index.vue.js +4 -4
  55. package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
  56. package/dist/es/designer/service-components/base/judge-condition/config.vue.js +2 -2
  57. package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +61 -570
  58. package/dist/es/designer/service-components/base/judge-condition/index.js +13 -35
  59. package/dist/es/designer/service-components/base/judge-condition/index.vue.js +4 -4
  60. package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +12 -63
  61. package/dist/es/designer/service-components/base/loop-node/config.vue.js +4 -4
  62. package/dist/es/designer/service-components/base/loop-node/config.vue2.js +9 -73
  63. package/dist/es/designer/service-components/base/loop-node/index.js +37 -145
  64. package/dist/es/designer/service-components/base/notification/config.vue.js +2 -2
  65. package/dist/es/designer/service-components/base/notification/config.vue2.js +35 -320
  66. package/dist/es/designer/service-components/base/notification/index.js +12 -34
  67. package/dist/es/designer/service-components/base/notification/index.vue.js +4 -4
  68. package/dist/es/designer/service-components/base/notification/index.vue2.js +8 -40
  69. package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +4 -4
  70. package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +23 -146
  71. package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +17 -103
  72. package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +2 -2
  73. package/dist/es/designer/service-components/base/start-node/index.js +25 -65
  74. package/dist/es/designer/service-components/base/start-node/index.vue.js +4 -4
  75. package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
  76. package/dist/es/designer/service-components/components-icons.js +17 -33
  77. package/dist/es/designer/service-components/computation/clean/config.vue.js +4 -4
  78. package/dist/es/designer/service-components/computation/clean/config.vue2.js +40 -419
  79. package/dist/es/designer/service-components/computation/clean/index.js +12 -34
  80. package/dist/es/designer/service-components/computation/clean/index.vue.js +4 -4
  81. package/dist/es/designer/service-components/computation/clean/index.vue2.js +8 -40
  82. package/dist/es/designer/service-components/computation/connect/config.vue.js +4 -4
  83. package/dist/es/designer/service-components/computation/connect/config.vue2.js +38 -506
  84. package/dist/es/designer/service-components/computation/connect/index.js +12 -34
  85. package/dist/es/designer/service-components/computation/connect/index.vue.js +4 -4
  86. package/dist/es/designer/service-components/computation/connect/index.vue2.js +8 -40
  87. package/dist/es/designer/service-components/computation/sort/config.vue.js +4 -4
  88. package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
  89. package/dist/es/designer/service-components/computation/sort/index.js +12 -34
  90. package/dist/es/designer/service-components/computation/sort/index.vue.js +4 -4
  91. package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
  92. package/dist/es/designer/service-components/computation/split-joint/config.vue.js +4 -4
  93. package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +27 -327
  94. package/dist/es/designer/service-components/computation/split-joint/index.js +12 -34
  95. package/dist/es/designer/service-components/computation/split-joint/index.vue.js +4 -4
  96. package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +8 -40
  97. package/dist/es/designer/service-components/computation/statistics/config.vue.js +4 -4
  98. package/dist/es/designer/service-components/computation/statistics/config.vue2.js +41 -436
  99. package/dist/es/designer/service-components/computation/statistics/index.js +12 -34
  100. package/dist/es/designer/service-components/computation/statistics/index.vue.js +4 -4
  101. package/dist/es/designer/service-components/computation/statistics/index.vue2.js +8 -40
  102. package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +4 -4
  103. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +75 -375
  104. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +22 -217
  105. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
  106. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +30 -439
  107. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
  108. package/dist/es/designer/service-components/database/aggregate-query/index.js +13 -35
  109. package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +4 -4
  110. package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +22 -90
  111. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +15 -177
  112. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
  113. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -185
  114. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
  115. package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +4 -4
  116. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +66 -474
  117. package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
  118. package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +4 -4
  119. package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
  120. package/dist/es/designer/service-components/database/regular-query/config.vue.js +4 -4
  121. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +52 -749
  122. package/dist/es/designer/service-components/database/regular-query/index.js +13 -35
  123. package/dist/es/designer/service-components/database/regular-query/index.vue.js +4 -4
  124. package/dist/es/designer/service-components/database/regular-query/index.vue2.js +22 -85
  125. package/dist/es/designer/service-components/index.js +33 -224
  126. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +18 -125
  127. package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
  128. package/dist/es/designer/service-components/service/common/form-data.vue.js +18 -153
  129. package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
  130. package/dist/es/designer/service-components/service/common/header-data.vue.js +18 -126
  131. package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
  132. package/dist/es/designer/service-components/service/common/json-data.vue.js +4 -4
  133. package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
  134. package/dist/es/designer/service-components/service/common/param-config.vue.js +4 -4
  135. package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
  136. package/dist/es/designer/service-components/service/common/query-params.vue.js +18 -126
  137. package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
  138. package/dist/es/designer/service-components/service/common/raw-data.vue.js +27 -93
  139. package/dist/es/designer/service-components/service/common/raw-data.vue2.js +2 -2
  140. package/dist/es/designer/service-components/service/custom-bean/config.vue.js +2 -2
  141. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +9 -74
  142. package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
  143. package/dist/es/designer/service-components/service/custom-bean/index.vue.js +4 -4
  144. package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
  145. package/dist/es/designer/service-components/service/http-service/config.vue.js +4 -4
  146. package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
  147. package/dist/es/designer/service-components/service/http-service/index.js +12 -34
  148. package/dist/es/designer/service-components/service/http-service/index.vue.js +4 -4
  149. package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
  150. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +44 -262
  151. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
  152. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +15 -63
  153. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
  154. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +44 -262
  155. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
  156. package/dist/es/designer/service-components/util/common-options.js +15 -129
  157. package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
  158. package/dist/es/designer/service-flow-view/flow-util.js +52 -129
  159. package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +4 -4
  160. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
  161. package/dist/es/designer/service-flow-view/service-node-config.vue.js +4 -4
  162. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +28 -153
  163. package/dist/es/designer/service-flow-view/service-params.vue.js +53 -421
  164. package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
  165. package/dist/es/designer/service-flow-view/service-result.vue.js +56 -310
  166. package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
  167. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +40 -307
  168. package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
  169. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +65 -326
  170. package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
  171. package/dist/es/designer/service-flow-view/service-update-log.vue.js +4 -4
  172. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -234
  173. package/dist/es/designer/service-flow-view/view-index.vue.js +4 -4
  174. package/dist/es/designer/service-flow-view/view-index.vue2.js +92 -353
  175. package/dist/es/designer/service-panel/component-panel.vue.js +4 -4
  176. package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
  177. package/dist/es/designer/service-panel/service-list.vue.js +4 -4
  178. package/dist/es/designer/service-panel/service-list.vue2.js +76 -497
  179. package/dist/es/designer/service-panel/service-panel.vue.js +4 -4
  180. package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
  181. package/dist/es/index.js +2 -2
  182. package/dist/es/stores/page-store.js +26 -73
  183. package/dist/es/style.css +253 -253
  184. package/dist/es/utils/common-util.js +103 -211
  185. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { ElRadio, ElRadioGroup, ElOption, ElSelect, ElEmpty, ElFormItem } from "element-plus/es";
1
+ import { ElRadio as e, ElRadioGroup as l, ElOption as o, ElSelect as a, ElEmpty as t, ElFormItem as m } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/form-item/style/css";
4
4
  import "element-plus/es/components/empty/style/css";
@@ -6,218 +6,26 @@ import "element-plus/es/components/select/style/css";
6
6
  import "element-plus/es/components/option/style/css";
7
7
  import "element-plus/es/components/radio-group/style/css";
8
8
  import "element-plus/es/components/radio/style/css";
9
- import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, createBlock, createCommentVNode, pushScopeId, popScopeId, createElementVNode } from "vue";
10
- import _sfc_main$1 from "./form-data.vue.js";
11
- import jsonData from "./json-data.vue.js";
12
- import fileUpload from "../../../common/components/file-upload.vue.js";
9
+ import { defineComponent as d, ref as n, onMounted as s, openBlock as u, createElementBlock as r, Fragment as p, createVNode as i, withCtx as c, createTextVNode as y, createBlock as f, createCommentVNode as V, pushScopeId as b, popScopeId as v, createElementVNode as w } from "vue";
10
+ import T from "./form-data.vue.js";
11
+ import _ from "./json-data.vue.js";
12
+ import x from "../../../common/components/file-upload.vue.js";
13
13
  import "codemirror";
14
14
  import "@codemirror/lang-xml";
15
15
  import "@codemirror/state";
16
- import _sfc_main$2 from "./raw-data.vue.js";
17
- const _withScopeId = (n) => (pushScopeId("data-v-1ee0eb33"), n = n(), popScopeId(), n);
18
- const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, null, -1));
19
- const _sfc_main = /* @__PURE__ */ defineComponent({
20
- __name: "param-config",
21
- props: {
22
- modelValue: {
23
- type: Object,
24
- default: () => {
25
- return { bodyType: "none" };
26
- }
27
- }
28
- },
29
- setup(__props, { expose: __expose }) {
30
- const props = __props;
31
- const rawDataRef = ref();
32
- const radioChange = (val) => {
33
- props.modelValue.mediaType = getMediaType(val);
34
- if (val === "formData" || val === "formUrlencoded" || val === "json") {
35
- props.modelValue.content = [];
36
- } else if (val === "raw") {
37
- props.modelValue.content = "";
38
- } else {
39
- props.modelValue.content = {};
40
- }
41
- };
42
- const getMediaType = (val) => {
43
- if (val === "formData") {
44
- return "multipart/form-data";
45
- } else if (val === "formUrlencoded") {
46
- return "application/x-www-form-urlencoded";
47
- } else if (val === "json") {
48
- return "application/json";
49
- } else if (val === "raw") {
50
- return "application/json";
51
- } else if (val === "binary") {
52
- return "application/octet-stream";
53
- } else {
54
- return "";
55
- }
56
- };
57
- const rawChange = (val) => {
58
- if (rawDataRef.value) {
59
- rawDataRef.value.loadEditor();
60
- }
61
- };
62
- onMounted(() => {
63
- });
64
- __expose({});
65
- return (_ctx, _cache) => {
66
- const _component_el_radio = ElRadio;
67
- const _component_el_radio_group = ElRadioGroup;
68
- const _component_el_option = ElOption;
69
- const _component_el_select = ElSelect;
70
- const _component_el_empty = ElEmpty;
71
- const _component_el_form_item = ElFormItem;
72
- return openBlock(), createElementBlock(Fragment, null, [
73
- createVNode(_component_el_radio_group, {
74
- modelValue: __props.modelValue.bodyType,
75
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.modelValue.bodyType = $event),
76
- style: { "margin-bottom": "10px" },
77
- onChange: radioChange
78
- }, {
79
- default: withCtx(() => [
80
- createVNode(_component_el_radio, {
81
- value: "none",
82
- size: "small"
83
- }, {
84
- default: withCtx(() => [
85
- createTextVNode("none")
86
- ]),
87
- _: 1
88
- }),
89
- createVNode(_component_el_radio, {
90
- value: "formData",
91
- size: "small"
92
- }, {
93
- default: withCtx(() => [
94
- createTextVNode("form-data")
95
- ]),
96
- _: 1
97
- }),
98
- createVNode(_component_el_radio, {
99
- value: "formUrlencoded",
100
- size: "small"
101
- }, {
102
- default: withCtx(() => [
103
- createTextVNode("x-www-form-urlencoded")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(_component_el_radio, {
108
- value: "json",
109
- size: "small"
110
- }, {
111
- default: withCtx(() => [
112
- createTextVNode("json")
113
- ]),
114
- _: 1
115
- }),
116
- createVNode(_component_el_radio, {
117
- value: "raw",
118
- size: "small"
119
- }, {
120
- default: withCtx(() => [
121
- createTextVNode("raw")
122
- ]),
123
- _: 1
124
- }),
125
- createVNode(_component_el_radio, {
126
- value: "binary",
127
- size: "small"
128
- }, {
129
- default: withCtx(() => [
130
- createTextVNode("binary")
131
- ]),
132
- _: 1
133
- })
134
- ]),
135
- _: 1
136
- }, 8, ["modelValue"]),
137
- __props.modelValue.bodyType === "raw" ? (openBlock(), createBlock(_component_el_select, {
138
- key: 0,
139
- size: "small",
140
- modelValue: __props.modelValue.mediaType,
141
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.modelValue.mediaType = $event),
142
- onChange: rawChange,
143
- style: { "margin-left": "10px", "width": "80px", "background-color": "var(--el-fill-color-blank)" }
144
- }, {
145
- default: withCtx(() => [
146
- createVNode(_component_el_option, {
147
- size: "small",
148
- label: "TEXT",
149
- value: "text/plain"
150
- }),
151
- createVNode(_component_el_option, {
152
- size: "small",
153
- label: "JSON",
154
- value: "application/json"
155
- }),
156
- createVNode(_component_el_option, {
157
- size: "small",
158
- label: "XML",
159
- value: "application/xml"
160
- })
161
- ]),
162
- _: 1
163
- }, 8, ["modelValue"])) : createCommentVNode("", true),
164
- __props.modelValue.bodyType === "none" ? (openBlock(), createBlock(_component_el_empty, {
165
- key: 1,
166
- description: "不需要请求体",
167
- style: { "border": "1px solid #dcdfe6" }
168
- }, {
169
- image: withCtx(() => [
170
- _hoisted_1
171
- ]),
172
- _: 1
173
- })) : __props.modelValue.bodyType === "formData" || __props.modelValue.bodyType === "formUrlencoded" ? (openBlock(), createBlock(_component_el_form_item, {
174
- key: 2,
175
- "label-width": "0",
176
- style: { "margin-bottom": "0px" }
177
- }, {
178
- default: withCtx(() => [
179
- createVNode(_sfc_main$1, {
180
- modelValue: __props.modelValue.content,
181
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.modelValue.content = $event)
182
- }, null, 8, ["modelValue"])
183
- ]),
184
- _: 1
185
- })) : __props.modelValue.bodyType === "json" ? (openBlock(), createBlock(_component_el_form_item, {
186
- key: 3,
187
- "label-width": "0",
188
- style: { "margin-bottom": "0px" }
189
- }, {
190
- default: withCtx(() => [
191
- createVNode(jsonData, {
192
- modelValue: __props.modelValue.content,
193
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.modelValue.content = $event)
194
- }, null, 8, ["modelValue"])
195
- ]),
196
- _: 1
197
- })) : __props.modelValue.bodyType === "binary" ? (openBlock(), createBlock(fileUpload, {
198
- key: 4,
199
- modelValue: __props.modelValue.content,
200
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.modelValue.content = $event)
201
- }, null, 8, ["modelValue"])) : __props.modelValue.bodyType === "raw" ? (openBlock(), createBlock(_component_el_form_item, {
202
- key: 5,
203
- "label-width": "0",
204
- style: { "margin-bottom": "0px" }
205
- }, {
206
- default: withCtx(() => [
207
- createVNode(_sfc_main$2, {
208
- ref_key: "rawDataRef",
209
- ref: rawDataRef,
210
- modelValue: __props.modelValue.content,
211
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.modelValue.content = $event),
212
- httpSerivceBody: __props.modelValue
213
- }, null, 8, ["modelValue", "httpSerivceBody"])
214
- ]),
215
- _: 1
216
- })) : createCommentVNode("", true)
217
- ], 64);
218
- };
219
- }
220
- });
16
+ import j from "./raw-data.vue.js";
17
+ const g = ((e2) => (b("data-v-1ee0eb33"), e2 = e2(), v(), e2))(() => w("span", null, null, -1)), z = d({ __name: "param-config", props: { modelValue: { type: Object, default: () => ({ bodyType: "none" }) } }, setup(d2, { expose: b2 }) {
18
+ const v2 = d2, w2 = n(), z2 = (e2) => {
19
+ v2.modelValue.mediaType = U(e2), v2.modelValue.content = "formData" === e2 || "formUrlencoded" === e2 || "json" === e2 ? [] : "raw" === e2 ? "" : {};
20
+ }, U = (e2) => "formData" === e2 ? "multipart/form-data" : "formUrlencoded" === e2 ? "application/x-www-form-urlencoded" : "json" === e2 || "raw" === e2 ? "application/json" : "binary" === e2 ? "application/octet-stream" : "", k = (e2) => {
21
+ w2.value && w2.value.loadEditor();
22
+ };
23
+ return s(() => {
24
+ }), b2({}), (n2, s2) => {
25
+ const b3 = e, v3 = l, U2 = o, h = a, D = t, S = m;
26
+ return u(), r(p, null, [i(v3, { modelValue: d2.modelValue.bodyType, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.modelValue.bodyType = e2), style: { "margin-bottom": "10px" }, onChange: z2 }, { default: c(() => [i(b3, { value: "none", size: "small" }, { default: c(() => [y("none")]), _: 1 }), i(b3, { value: "formData", size: "small" }, { default: c(() => [y("form-data")]), _: 1 }), i(b3, { value: "formUrlencoded", size: "small" }, { default: c(() => [y("x-www-form-urlencoded")]), _: 1 }), i(b3, { value: "json", size: "small" }, { default: c(() => [y("json")]), _: 1 }), i(b3, { value: "raw", size: "small" }, { default: c(() => [y("raw")]), _: 1 }), i(b3, { value: "binary", size: "small" }, { default: c(() => [y("binary")]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "raw" === d2.modelValue.bodyType ? (u(), f(h, { key: 0, size: "small", modelValue: d2.modelValue.mediaType, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => d2.modelValue.mediaType = e2), onChange: k, style: { "margin-left": "10px", width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: c(() => [i(U2, { size: "small", label: "TEXT", value: "text/plain" }), i(U2, { size: "small", label: "JSON", value: "application/json" }), i(U2, { size: "small", label: "XML", value: "application/xml" })]), _: 1 }, 8, ["modelValue"])) : V("", true), "none" === d2.modelValue.bodyType ? (u(), f(D, { key: 1, description: "不需要请求体", style: { border: "1px solid #dcdfe6" } }, { image: c(() => [g]), _: 1 })) : "formData" === d2.modelValue.bodyType || "formUrlencoded" === d2.modelValue.bodyType ? (u(), f(S, { key: 2, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: c(() => [i(T, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[2] || (s2[2] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "json" === d2.modelValue.bodyType ? (u(), f(S, { key: 3, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: c(() => [i(_, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[3] || (s2[3] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "binary" === d2.modelValue.bodyType ? (u(), f(x, { key: 4, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[4] || (s2[4] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])) : "raw" === d2.modelValue.bodyType ? (u(), f(S, { key: 5, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: c(() => [i(j, { ref_key: "rawDataRef", ref: w2, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[5] || (s2[5] = (e2) => d2.modelValue.content = e2), httpSerivceBody: d2.modelValue }, null, 8, ["modelValue", "httpSerivceBody"])]), _: 1 })) : V("", true)], 64);
27
+ };
28
+ } });
221
29
  export {
222
- _sfc_main as default
30
+ z as default
223
31
  };
@@ -1,133 +1,25 @@
1
- import { ElInput, ElTableColumn, ElButton, ElTable } from "element-plus/es";
1
+ import { ElInput as e, ElTableColumn as l, ElButton as o, ElTable as a } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/table/style/css";
4
4
  import "element-plus/es/components/button/style/css";
5
5
  import "element-plus/es/components/table-column/style/css";
6
6
  import "element-plus/es/components/input/style/css";
7
- import { defineComponent, openBlock, createBlock, withCtx, createVNode, unref, createTextVNode } from "vue";
8
- import ValueSetInput from "../../../common/components/value-set-input/value-set-input.vue.js";
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "query-params",
11
- props: {
12
- modelValue: {
13
- type: Array,
14
- default: () => {
15
- return null;
16
- }
17
- }
18
- },
19
- emits: ["update:modelValue"],
20
- setup(__props, { expose: __expose, emit: __emit }) {
21
- const emits = __emit;
22
- const props = __props;
23
- if (!props.modelValue) {
24
- emits("update:modelValue", []);
25
- }
26
- const addRow = () => {
27
- props.modelValue.push({
28
- name: "",
29
- value: "",
30
- description: ""
31
- });
32
- };
33
- const handleDelete = (index, row) => {
34
- props.modelValue.splice(index, 1);
35
- };
36
- __expose({});
37
- return (_ctx, _cache) => {
38
- const _component_el_input = ElInput;
39
- const _component_el_table_column = ElTableColumn;
40
- const _component_el_button = ElButton;
41
- const _component_el_table = ElTable;
42
- return openBlock(), createBlock(_component_el_table, {
43
- data: __props.modelValue,
44
- border: "",
45
- size: "small"
46
- }, {
47
- default: withCtx(() => [
48
- createVNode(_component_el_table_column, {
49
- prop: "name",
50
- label: "参数名",
51
- align: "center"
52
- }, {
53
- default: withCtx((scope) => [
54
- createVNode(_component_el_input, {
55
- size: "small",
56
- modelValue: scope.row.name,
57
- "onUpdate:modelValue": ($event) => scope.row.name = $event,
58
- placeholder: ""
59
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
60
- ]),
61
- _: 1
62
- }),
63
- createVNode(_component_el_table_column, {
64
- prop: "prop",
65
- label: "值",
66
- align: "center"
67
- }, {
68
- default: withCtx((scope) => [
69
- createVNode(unref(ValueSetInput), {
70
- size: "small",
71
- paramTypes: ["service", "fixed"],
72
- modelValue: scope.row.value,
73
- "onUpdate:modelValue": ($event) => scope.row.value = $event
74
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
75
- ]),
76
- _: 1
77
- }),
78
- createVNode(_component_el_table_column, {
79
- prop: "description",
80
- label: "说明",
81
- align: "center"
82
- }, {
83
- default: withCtx((scope) => [
84
- createVNode(_component_el_input, {
85
- size: "small",
86
- modelValue: scope.row.description,
87
- "onUpdate:modelValue": ($event) => scope.row.description = $event,
88
- placeholder: ""
89
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
90
- ]),
91
- _: 1
92
- }),
93
- createVNode(_component_el_table_column, {
94
- align: "center",
95
- width: "70"
96
- }, {
97
- header: withCtx(() => [
98
- createVNode(_component_el_button, {
99
- type: "primary",
100
- size: "small",
101
- onClick: addRow,
102
- link: ""
103
- }, {
104
- default: withCtx(() => [
105
- createTextVNode("添加 ")
106
- ]),
107
- _: 1
108
- })
109
- ]),
110
- default: withCtx((scope) => [
111
- createVNode(_component_el_button, {
112
- type: "danger",
113
- size: "small",
114
- link: "",
115
- onClick: ($event) => handleDelete(scope.$index, scope.row)
116
- }, {
117
- default: withCtx(() => [
118
- createTextVNode(" 删除 ")
119
- ]),
120
- _: 2
121
- }, 1032, ["onClick"])
122
- ]),
123
- _: 1
124
- })
125
- ]),
126
- _: 1
127
- }, 8, ["data"]);
128
- };
129
- }
130
- });
7
+ import { defineComponent as t, openBlock as s, createBlock as n, withCtx as m, createVNode as p, unref as u, createTextVNode as r } from "vue";
8
+ import d from "../../../common/components/value-set-input/value-set-input.vue.js";
9
+ const i = t({ __name: "query-params", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: i2, emit: c }) {
10
+ const V = c, f = t2;
11
+ f.modelValue || V("update:modelValue", []);
12
+ const y = () => {
13
+ f.modelValue.push({ name: "", value: "", description: "" });
14
+ };
15
+ return i2({}), (i3, c2) => {
16
+ const V2 = e, v = l, _ = o, b = a;
17
+ return s(), n(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(v, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [p(u(d), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { align: "center", width: "70" }, { header: m(() => [p(_, { type: "primary", size: "small", onClick: y, link: "" }, { default: m(() => [r("添加 ")]), _: 1 })]), default: m((e2) => [p(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
18
+ return o2 = e2.$index, e2.row, void f.modelValue.splice(o2, 1);
19
+ var o2;
20
+ } }, { default: m(() => [r(" 删除 ")]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
21
+ };
22
+ } });
131
23
  export {
132
- _sfc_main as default
24
+ i as default
133
25
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./query-params.vue.js";
1
+ import r from "./query-params.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ r as default
4
4
  };
@@ -1,96 +1,30 @@
1
- import { defineComponent, onMounted, ref, openBlock, createElementBlock } from "vue";
2
- import { EditorView, basicSetup } from "codemirror";
3
- import { json } from "@codemirror/lang-json";
4
- import { xml } from "@codemirror/lang-xml";
5
- import { EditorState } from "@codemirror/state";
6
- const _hoisted_1 = {
7
- style: {
8
- minHeight: "400px",
9
- maxHeight: "700px",
10
- width: "100%",
11
- backgroundColor: "#fff",
12
- color: "#333",
13
- outline: "1px dotted #212121"
14
- },
15
- id: "cf-codemirror-json"
16
- };
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- __name: "raw-data",
19
- props: {
20
- httpSerivceBody: {
21
- type: Object,
22
- default: () => {
23
- return {};
24
- }
25
- }
26
- },
27
- emits: ["update:modelValue"],
28
- setup(__props, { expose: __expose, emit: __emit }) {
29
- const props = __props;
30
- const emits = __emit;
31
- onMounted(() => {
32
- if (!props.httpSerivceBody.content || typeof props.httpSerivceBody.content !== "string") {
33
- emits("update:modelValue", "");
34
- }
35
- loadEditor();
36
- });
37
- const editor = ref(null);
38
- function loadEditor() {
39
- if (editor.value) {
40
- editor.value.destroy();
41
- }
42
- const state = getEditorState();
43
- editor.value = new EditorView({
44
- state,
45
- parent: document.getElementById("cf-codemirror-json")
46
- });
47
- }
48
- function getEditorState() {
49
- const mytheme = getTheme();
50
- const baseTheme = EditorView.theme({
51
- ".cm-content, .cm-gutter": { minHeight: "200px" },
52
- "&": {
53
- height: "400px",
54
- maxHeight: "400px",
55
- fontSize: "12px"
56
- }
57
- });
58
- return EditorState.create({
59
- doc: props.httpSerivceBody.content,
60
- extensions: [
61
- EditorState.tabSize.of(16),
62
- basicSetup,
63
- getLanguage(),
64
- mytheme,
65
- baseTheme,
66
- EditorView.updateListener.of(function(value) {
67
- props.httpSerivceBody.content = value.state.doc.toString();
68
- })
69
- ]
70
- });
71
- }
72
- const getLanguage = () => {
73
- if (props.httpSerivceBody.mediaType === "application/xml") {
74
- return xml();
75
- } else if (props.httpSerivceBody.mediaType === "application/json") {
76
- return json();
77
- }
78
- return [];
79
- };
80
- function getTheme() {
81
- return EditorView.theme({});
82
- }
83
- const updateEditor = () => {
84
- if (editor.value) {
85
- editor.value.update(document.getElementById("cf-codemirror-json"), { state: getEditorState() });
86
- }
87
- };
88
- __expose({ updateEditor, loadEditor });
89
- return (_ctx, _cache) => {
90
- return openBlock(), createElementBlock("div", _hoisted_1);
91
- };
1
+ import { defineComponent as t, onMounted as e, ref as o, openBlock as r, createElementBlock as n } from "vue";
2
+ import { EditorView as i, basicSetup as c } from "codemirror";
3
+ import { json as d } from "@codemirror/lang-json";
4
+ import { xml as a } from "@codemirror/lang-xml";
5
+ import { EditorState as m } from "@codemirror/state";
6
+ const p = { style: { minHeight: "400px", maxHeight: "700px", width: "100%", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror-json" }, u = t({ __name: "raw-data", props: { httpSerivceBody: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(t2, { expose: u2, emit: l }) {
7
+ const s = t2, f = l;
8
+ e(() => {
9
+ s.httpSerivceBody.content && "string" == typeof s.httpSerivceBody.content || f("update:modelValue", ""), y();
10
+ });
11
+ const h = o(null);
12
+ function y() {
13
+ h.value && h.value.destroy();
14
+ const t3 = v();
15
+ h.value = new i({ state: t3, parent: document.getElementById("cf-codemirror-json") });
16
+ }
17
+ function v() {
18
+ const t3 = i.theme({}), e2 = i.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: "12px" } });
19
+ return m.create({ doc: s.httpSerivceBody.content, extensions: [m.tabSize.of(16), c, x(), t3, e2, i.updateListener.of(function(t4) {
20
+ s.httpSerivceBody.content = t4.state.doc.toString();
21
+ })] });
92
22
  }
93
- });
23
+ const x = () => "application/xml" === s.httpSerivceBody.mediaType ? a() : "application/json" === s.httpSerivceBody.mediaType ? d() : [];
24
+ return u2({ updateEditor: () => {
25
+ h.value && h.value.update(document.getElementById("cf-codemirror-json"), { state: v() });
26
+ }, loadEditor: y }), (t3, e2) => (r(), n("div", p));
27
+ } });
94
28
  export {
95
- _sfc_main as default
29
+ u as default
96
30
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./raw-data.vue.js";
1
+ import a from "./raw-data.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ a as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./config.vue2.js";
1
+ import o from "./config.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ o as default
4
4
  };
@@ -1,83 +1,18 @@
1
- import { ElInput, ElText, ElFormItem, ElAlert, ElForm } from "element-plus/es";
1
+ import { ElInput as e, ElText as t, ElFormItem as s, ElAlert as o, ElForm as l } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/form/style/css";
4
4
  import "element-plus/es/components/alert/style/css";
5
5
  import "element-plus/es/components/form-item/style/css";
6
6
  import "element-plus/es/components/text/style/css";
7
7
  import "element-plus/es/components/input/style/css";
8
- import { defineComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, unref } from "vue";
9
- import _sfc_main$1 from "../../../common/components/node-base-config.vue.js";
10
- import ValueSetInput from "../../../common/components/value-set-input/value-set-input.vue.js";
8
+ import { defineComponent as p, openBlock as m, createBlock as n, withCtx as r, createVNode as a, createTextVNode as i, unref as u } from "vue";
9
+ import c from "../../../common/components/node-base-config.vue.js";
10
+ import d from "../../../common/components/value-set-input/value-set-input.vue.js";
11
11
  import "@element-plus/icons-vue";
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- __name: "config",
14
- props: {
15
- properties: {
16
- type: Object,
17
- default: () => {
18
- return {};
19
- }
20
- }
21
- },
22
- setup(__props, { expose: __expose }) {
23
- __expose({});
24
- return (_ctx, _cache) => {
25
- const _component_el_input = ElInput;
26
- const _component_el_text = ElText;
27
- const _component_el_form_item = ElFormItem;
28
- const _component_el_alert = ElAlert;
29
- const _component_el_form = ElForm;
30
- return openBlock(), createBlock(_component_el_form, {
31
- "label-width": "auto",
32
- "label-position": "left"
33
- }, {
34
- default: withCtx(() => [
35
- createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
36
- createVNode(_component_el_form_item, { label: "Bean名称:" }, {
37
- default: withCtx(() => [
38
- createVNode(_component_el_input, {
39
- modelValue: __props.properties.beanName,
40
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.properties.beanName = $event),
41
- placeholder: "",
42
- style: { "width": "85%" }
43
- }, null, 8, ["modelValue"]),
44
- createVNode(_component_el_text, {
45
- style: { "margin-top": "10px", "margin-bottom": "10px", "display": "block" },
46
- type: "success"
47
- }, {
48
- default: withCtx(() => [
49
- createTextVNode(" 说明:自定义bean需实现cn.ambitionq.serivceflow.core.ServiceNodeHandler接口重写execute方法 ")
50
- ]),
51
- _: 1
52
- })
53
- ]),
54
- _: 1
55
- }),
56
- createVNode(_component_el_alert, {
57
- title: "输出设置",
58
- type: "info",
59
- size: "small",
60
- closable: false,
61
- style: { "margin-bottom": "20px" }
62
- }),
63
- createVNode(_component_el_form_item, { label: "设置到:" }, {
64
- default: withCtx(() => [
65
- createVNode(unref(ValueSetInput), {
66
- inputSize: "default",
67
- paramTypes: ["service"],
68
- size: "small",
69
- modelValue: __props.properties.resultSet,
70
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.properties.resultSet = $event)
71
- }, null, 8, ["modelValue"])
72
- ]),
73
- _: 1
74
- })
75
- ]),
76
- _: 1
77
- });
78
- };
79
- }
80
- });
12
+ const f = p({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, setup: (p2, { expose: f2 }) => (f2({}), (f3, b) => {
13
+ const y = e, v = t, x = s, V = o, _ = l;
14
+ return m(), n(_, { "label-width": "auto", "label-position": "left" }, { default: r(() => [a(c, { properties: p2.properties }, null, 8, ["properties"]), a(x, { label: "Bean名称:" }, { default: r(() => [a(y, { modelValue: p2.properties.beanName, "onUpdate:modelValue": b[0] || (b[0] = (e2) => p2.properties.beanName = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), a(v, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: r(() => [i(" 说明:自定义bean需实现cn.ambitionq.serivceflow.core.ServiceNodeHandler接口重写execute方法 ")]), _: 1 })]), _: 1 }), a(V, { title: "输出设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), a(x, { label: "设置到:" }, { default: r(() => [a(u(d), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: p2.properties.resultSet, "onUpdate:modelValue": b[1] || (b[1] = (e2) => p2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
15
+ }) });
81
16
  export {
82
- _sfc_main as default
17
+ f as default
83
18
  };