service-flow-designer 2.3.4-sit1-flow1 → 2.3.5-rc1-flow1

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 (32) hide show
  1. package/dist/es/designer/common/components/datatable-select.vue2.js +15 -15
  2. package/dist/es/designer/common/components/file-upload.vue2.js +6 -6
  3. package/dist/es/designer/common/components/json-view/json-view.vue.js +1 -1
  4. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +16 -16
  5. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +10 -10
  6. package/dist/es/designer/service-components/computation/sort/config.vue2.js +1 -1
  7. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +11 -11
  8. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
  9. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +2 -2
  10. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +4 -4
  11. package/dist/es/designer/service-components/service/common/form-data.vue.js +8 -8
  12. package/dist/es/designer/service-components/service/common/header-data.vue.js +4 -4
  13. package/dist/es/designer/service-components/service/common/json-data.vue2.js +4 -4
  14. package/dist/es/designer/service-components/service/common/param-config.vue2.js +5 -5
  15. package/dist/es/designer/service-components/service/common/query-params.vue.js +4 -4
  16. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
  17. package/dist/es/designer/service-components/service/http-service/config.vue2.js +1 -1
  18. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +12 -12
  19. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +12 -12
  20. package/dist/es/designer/service-flow-view/flow-util.js +7 -4
  21. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
  22. package/dist/es/designer/service-flow-view/service-params.vue.js +6 -6
  23. package/dist/es/designer/service-flow-view/service-result.vue.js +11 -11
  24. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +14 -14
  25. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +11 -8
  26. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +9 -9
  27. package/dist/es/designer/service-flow-view/view-index.vue2.js +15 -14
  28. package/dist/es/designer/service-panel/component-panel.vue2.js +4 -4
  29. package/dist/es/designer/service-panel/service-list.vue2.js +11 -11
  30. package/dist/es/designer/service-panel/service-panel.vue2.js +9 -9
  31. package/dist/es/utils/common-util.js +1 -1
  32. package/package.json +2 -2
@@ -9,15 +9,15 @@ import i from "../../../common/components/value-set-input/value-set-input.vue.js
9
9
  const c = t({ __name: "json-data", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: c2, emit: V }) {
10
10
  const y = V, f = t2;
11
11
  f.modelValue && Array.isArray(f.modelValue) || y("update:modelValue", []);
12
- const v = () => {
12
+ const _ = () => {
13
13
  f.modelValue.push({ name: "", value: "", description: "" });
14
14
  };
15
15
  return c2({}), (c3, V2) => {
16
- const y2 = a, _ = l, b = o, w = e;
17
- return Array.isArray(t2.modelValue) ? (m(), s(w, { key: 0, data: t2.modelValue, border: "", size: "small" }, { default: r(() => [u(_, { prop: "name", label: "参数名", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { prop: "prop", label: "值", align: "center" }, { default: r((e2) => [u(p(i), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { prop: "description", label: "说明", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { align: "center", width: "70" }, { header: r(() => [u(b, { type: "primary", size: "small", onClick: v, link: "" }, { default: r(() => V2[0] || (V2[0] = [d("添加 ")])), _: 1 })]), default: r((e2) => [u(b, { type: "danger", size: "small", link: "", onClick: (l2) => {
16
+ const y2 = a, v = l, b = o, w = e;
17
+ return Array.isArray(t2.modelValue) ? (m(), s(w, { key: 0, data: t2.modelValue, border: "", size: "small" }, { default: r(() => [u(v, { prop: "name", label: "参数名", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { prop: "prop", label: "值", align: "center" }, { default: r((e2) => [u(p(i), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { prop: "description", label: "说明", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { align: "center", width: "70" }, { header: r(() => [u(b, { type: "primary", size: "small", onClick: _, link: "" }, { default: r(() => V2[0] || (V2[0] = [d("添加 ", -1)])), _: 1, __: [0] })]), default: r((e2) => [u(b, { type: "danger", size: "small", link: "", onClick: (l2) => {
18
18
  return a2 = e2.$index, e2.row, void f.modelValue.splice(a2, 1);
19
19
  var a2;
20
- } }, { default: r(() => V2[1] || (V2[1] = [d(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
20
+ } }, { default: r(() => V2[1] || (V2[1] = [d(" 删除 ", -1)])), _: 2, __: [1] }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
21
21
  };
22
22
  } });
23
23
  export {
@@ -7,13 +7,13 @@ 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
9
  import { defineComponent as d, ref as n, onMounted as s, createElementBlock as u, openBlock as r, Fragment as p, createVNode as i, createBlock as c, createCommentVNode as y, withCtx as f, createTextVNode as V, createElementVNode as b } from "vue";
10
- import v from "./form-data.vue.js";
11
- import w from "./json-data.vue.js";
12
- import T from "../../../common/components/file-upload.vue.js";
10
+ import _ from "./form-data.vue.js";
11
+ import v from "./json-data.vue.js";
12
+ import w from "../../../common/components/file-upload.vue.js";
13
13
  import "codemirror";
14
14
  import "@codemirror/lang-xml";
15
15
  import "@codemirror/state";
16
- import _ from "./raw-data.vue.js";
16
+ import T from "./raw-data.vue.js";
17
17
  const x = d({ __name: "param-config", props: { modelValue: { type: Object, default: () => ({ bodyType: "none" }) } }, setup(d2, { expose: x2 }) {
18
18
  const j = d2, g = n(), z = (e2) => {
19
19
  j.modelValue.mediaType = U(e2), j.modelValue.content = "formData" === e2 || "formUrlencoded" === e2 || "json" === e2 ? [] : "raw" === e2 ? "" : {};
@@ -23,7 +23,7 @@ const x = d({ __name: "param-config", props: { modelValue: { type: Object, defau
23
23
  return s(() => {
24
24
  }), x2({}), (n2, s2) => {
25
25
  const x3 = l, j2 = e, U2 = a, h = o, D = t, S = m;
26
- return r(), u(p, null, [i(j2, { modelValue: d2.modelValue.bodyType, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.modelValue.bodyType = e2), style: { "margin-bottom": "10px" }, onChange: z }, { default: f(() => [i(x3, { value: "none", size: "small" }, { default: f(() => s2[6] || (s2[6] = [V("none")])), _: 1 }), i(x3, { value: "formData", size: "small" }, { default: f(() => s2[7] || (s2[7] = [V("form-data")])), _: 1 }), i(x3, { value: "formUrlencoded", size: "small" }, { default: f(() => s2[8] || (s2[8] = [V("x-www-form-urlencoded")])), _: 1 }), i(x3, { value: "json", size: "small" }, { default: f(() => s2[9] || (s2[9] = [V("json")])), _: 1 }), i(x3, { value: "raw", size: "small" }, { default: f(() => s2[10] || (s2[10] = [V("raw")])), _: 1 }), i(x3, { value: "binary", size: "small" }, { default: f(() => s2[11] || (s2[11] = [V("binary")])), _: 1 })]), _: 1 }, 8, ["modelValue"]), "raw" === d2.modelValue.bodyType ? (r(), c(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: f(() => [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"])) : y("", true), "none" === d2.modelValue.bodyType ? (r(), c(D, { key: 1, description: "不需要请求体", style: { border: "1px solid #dcdfe6" } }, { image: f(() => s2[12] || (s2[12] = [b("span", null, null, -1)])), _: 1 })) : "formData" === d2.modelValue.bodyType || "formUrlencoded" === d2.modelValue.bodyType ? (r(), c(S, { key: 2, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(v, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[2] || (s2[2] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "json" === d2.modelValue.bodyType ? (r(), c(S, { key: 3, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(w, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[3] || (s2[3] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "binary" === d2.modelValue.bodyType ? (r(), c(T, { key: 4, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[4] || (s2[4] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])) : "raw" === d2.modelValue.bodyType ? (r(), c(S, { key: 5, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(_, { ref_key: "rawDataRef", ref: g, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[5] || (s2[5] = (e2) => d2.modelValue.content = e2), httpSerivceBody: d2.modelValue }, null, 8, ["modelValue", "httpSerivceBody"])]), _: 1 })) : y("", true)], 64);
26
+ return r(), u(p, null, [i(j2, { modelValue: d2.modelValue.bodyType, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.modelValue.bodyType = e2), style: { "margin-bottom": "10px" }, onChange: z }, { default: f(() => [i(x3, { value: "none", size: "small" }, { default: f(() => s2[6] || (s2[6] = [V("none", -1)])), _: 1, __: [6] }), i(x3, { value: "formData", size: "small" }, { default: f(() => s2[7] || (s2[7] = [V("form-data", -1)])), _: 1, __: [7] }), i(x3, { value: "formUrlencoded", size: "small" }, { default: f(() => s2[8] || (s2[8] = [V("x-www-form-urlencoded", -1)])), _: 1, __: [8] }), i(x3, { value: "json", size: "small" }, { default: f(() => s2[9] || (s2[9] = [V("json", -1)])), _: 1, __: [9] }), i(x3, { value: "raw", size: "small" }, { default: f(() => s2[10] || (s2[10] = [V("raw", -1)])), _: 1, __: [10] }), i(x3, { value: "binary", size: "small" }, { default: f(() => s2[11] || (s2[11] = [V("binary", -1)])), _: 1, __: [11] })]), _: 1 }, 8, ["modelValue"]), "raw" === d2.modelValue.bodyType ? (r(), c(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: f(() => [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"])) : y("", true), "none" === d2.modelValue.bodyType ? (r(), c(D, { key: 1, description: "不需要请求体", style: { border: "1px solid #dcdfe6" } }, { image: f(() => s2[12] || (s2[12] = [b("span", null, null, -1)])), _: 1 })) : "formData" === d2.modelValue.bodyType || "formUrlencoded" === d2.modelValue.bodyType ? (r(), c(S, { key: 2, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(_, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[2] || (s2[2] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "json" === d2.modelValue.bodyType ? (r(), c(S, { key: 3, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(v, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[3] || (s2[3] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "binary" === d2.modelValue.bodyType ? (r(), c(w, { key: 4, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[4] || (s2[4] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])) : "raw" === d2.modelValue.bodyType ? (r(), c(S, { key: 5, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(T, { ref_key: "rawDataRef", ref: g, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[5] || (s2[5] = (e2) => d2.modelValue.content = e2), httpSerivceBody: d2.modelValue }, null, 8, ["modelValue", "httpSerivceBody"])]), _: 1 })) : y("", true)], 64);
27
27
  };
28
28
  } });
29
29
  export {
@@ -9,15 +9,15 @@ import d from "../../../common/components/value-set-input/value-set-input.vue.js
9
9
  const i = t({ __name: "query-params", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: i2, emit: c }) {
10
10
  const V = c, f = t2;
11
11
  f.modelValue || V("update:modelValue", []);
12
- const y = () => {
12
+ const _ = () => {
13
13
  f.modelValue.push({ name: "", value: "", description: "" });
14
14
  };
15
15
  return i2({}), (i3, c2) => {
16
- const V2 = o, v = l, _ = a, b = e;
17
- return n(), s(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(() => c2[0] || (c2[0] = [r("添加 ")])), _: 1 })]), default: m((e2) => [p(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
16
+ const V2 = o, y = l, v = a, b = e;
17
+ return n(), s(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(y, { 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(y, { 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(y, { 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(y, { align: "center", width: "70" }, { header: m(() => [p(v, { type: "primary", size: "small", onClick: _, link: "" }, { default: m(() => c2[0] || (c2[0] = [r("添加 ", -1)])), _: 1, __: [0] })]), default: m((e2) => [p(v, { type: "danger", size: "small", link: "", onClick: (l2) => {
18
18
  return o2 = e2.$index, e2.row, void f.modelValue.splice(o2, 1);
19
19
  var o2;
20
- } }, { default: m(() => c2[1] || (c2[1] = [r(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
20
+ } }, { default: m(() => c2[1] || (c2[1] = [r(" 删除 ", -1)])), _: 2, __: [1] }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -10,8 +10,8 @@ import c from "../../../common/components/node-base-config.vue.js";
10
10
  import d from "../../../common/components/value-set-input/value-set-input.vue.js";
11
11
  import "@element-plus/icons-vue";
12
12
  const f = p({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, setup: (p2, { expose: f2 }) => (f2({}), (f3, b) => {
13
- const y = s, v = o, x = t, V = l, _ = e;
14
- return n(), m(_, { "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(() => b[2] || (b[2] = [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 });
13
+ const y = s, v = o, _ = t, x = l, V = e;
14
+ return n(), m(V, { "label-width": "auto", "label-position": "left" }, { default: r(() => [a(c, { properties: p2.properties }, null, 8, ["properties"]), a(_, { 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(() => b[2] || (b[2] = [i(" 说明:自定义bean需实现cn.ambitionq.serivceflow.core.ServiceNodeHandler接口重写execute方法 ", -1)])), _: 1, __: [2] })]), _: 1 }), a(x, { title: "输出设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), a(_, { 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
15
  }) });
16
16
  export {
17
17
  f as default
@@ -27,7 +27,7 @@ const z = { style: { position: "absolute", right: "10px" } }, P = u({ __name: "c
27
27
  };
28
28
  return P2({}), (i2, P3) => {
29
29
  const E2 = l, H = s, J = p, L = t, N = o, A = a, D = r, F = n, I = e;
30
- return d(), m(I, { "label-width": "110", "label-position": "left" }, { default: c(() => [y(x, { properties: u2.properties }, null, 8, ["properties"]), y(E2), y(N, { style: { width: "100%" } }, { label: c((e2) => [y(J, { modelValue: u2.properties.requestMethod, "onUpdate:modelValue": P3[0] || (P3[0] = (e3) => u2.properties.requestMethod = e3), placeholder: "请求方式" }, { default: c(() => [(d(true), b(f, null, v(h(_), (e3) => (d(), m(H, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), default: c(() => [y(L, { modelValue: u2.properties.url, "onUpdate:modelValue": P3[1] || (P3[1] = (e2) => u2.properties.url = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(D, { modelValue: X.value, "onUpdate:modelValue": P3[6] || (P3[6] = (e2) => X.value = e2), class: "demo-tabs", onTabClick: G }, { default: c(() => [y(A, { label: "Params", name: "params", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(S, { modelValue: u2.properties.queryParams, "onUpdate:modelValue": P3[2] || (P3[2] = (e2) => u2.properties.queryParams = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Headers", name: "headers" }, { default: c(() => [y(w, { modelValue: u2.properties.headers, "onUpdate:modelValue": P3[3] || (P3[3] = (e2) => u2.properties.headers = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Body", name: "body", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(T, { modelValue: u2.properties.httpSerivceBody, "onUpdate:modelValue": P3[4] || (P3[4] = (e2) => u2.properties.httpSerivceBody = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Cookies", name: "cookies" }, { default: c(() => [y(O, { modelValue: u2.properties.cookies, "onUpdate:modelValue": P3[5] || (P3[5] = (e2) => u2.properties.cookies = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), y(F, { title: "返回值设置", type: "info", size: "small", closable: false }, { title: c(() => [P3[17] || (P3[17] = g(" 返回值设置 ")), k("span", z, [y(J, { size: "small", onChange: P3[7] || (P3[7] = (e2) => u2.properties.responseSetting = []), modelValue: u2.properties.responseContentType, "onUpdate:modelValue": P3[8] || (P3[8] = (e2) => u2.properties.responseContentType = e2), style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: c(() => [y(H, { label: "JSON", value: "application/json" }), y(H, { label: "TEXT", value: "text/plain" }), y(H, { label: "XML", value: "application/xml" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), "application/json" === u2.properties.responseContentType ? (d(), m(q, { key: 0, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[9] || (P3[9] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), "application/xml" === u2.properties.responseContentType ? (d(), m(B, { key: 1, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[10] || (P3[10] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), "text/plain" === u2.properties.responseContentType ? (d(), m(M, { key: 2, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[11] || (P3[11] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), y(F, { title: "异常判断", type: "info", size: "small", closable: false }), y(N, { label: "状态码:" }, { default: c(() => [y(J, { modelValue: u2.properties.statusCodeOperator, "onUpdate:modelValue": P3[12] || (P3[12] = (e2) => u2.properties.statusCodeOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(C), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { type: "number", style: { "margin-left": "10px", width: "60%" }, modelValue: u2.properties.statusCode, "onUpdate:modelValue": P3[13] || (P3[13] = (e2) => u2.properties.statusCode = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(N, { label: "" }, { default: c(() => [y(J, { modelValue: u2.properties.logicOperator, "onUpdate:modelValue": P3[14] || (P3[14] = (e2) => u2.properties.logicOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(U), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(N, { label: "返回内容:" }, { default: c(() => [y(J, { modelValue: u2.properties.contentOperator, "onUpdate:modelValue": P3[15] || (P3[15] = (e2) => u2.properties.contentOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(j), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { modelValue: u2.properties.content, "onUpdate:modelValue": P3[16] || (P3[16] = (e2) => u2.properties.content = e2), placeholder: "", style: { "margin-left": "10px", width: "60%" } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
30
+ return d(), m(I, { "label-width": "110", "label-position": "left" }, { default: c(() => [y(x, { properties: u2.properties }, null, 8, ["properties"]), y(E2), y(N, { style: { width: "100%" } }, { label: c((e2) => [y(J, { modelValue: u2.properties.requestMethod, "onUpdate:modelValue": P3[0] || (P3[0] = (e3) => u2.properties.requestMethod = e3), placeholder: "请求方式" }, { default: c(() => [(d(true), b(f, null, v(h(_), (e3) => (d(), m(H, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), default: c(() => [y(L, { modelValue: u2.properties.url, "onUpdate:modelValue": P3[1] || (P3[1] = (e2) => u2.properties.url = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(D, { modelValue: X.value, "onUpdate:modelValue": P3[6] || (P3[6] = (e2) => X.value = e2), class: "demo-tabs", onTabClick: G }, { default: c(() => [y(A, { label: "Params", name: "params", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(S, { modelValue: u2.properties.queryParams, "onUpdate:modelValue": P3[2] || (P3[2] = (e2) => u2.properties.queryParams = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Headers", name: "headers" }, { default: c(() => [y(w, { modelValue: u2.properties.headers, "onUpdate:modelValue": P3[3] || (P3[3] = (e2) => u2.properties.headers = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Body", name: "body", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(T, { modelValue: u2.properties.httpSerivceBody, "onUpdate:modelValue": P3[4] || (P3[4] = (e2) => u2.properties.httpSerivceBody = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Cookies", name: "cookies" }, { default: c(() => [y(O, { modelValue: u2.properties.cookies, "onUpdate:modelValue": P3[5] || (P3[5] = (e2) => u2.properties.cookies = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), y(F, { title: "返回值设置", type: "info", size: "small", closable: false }, { title: c(() => [P3[17] || (P3[17] = g(" 返回值设置 ", -1)), k("span", z, [y(J, { size: "small", onChange: P3[7] || (P3[7] = (e2) => u2.properties.responseSetting = []), modelValue: u2.properties.responseContentType, "onUpdate:modelValue": P3[8] || (P3[8] = (e2) => u2.properties.responseContentType = e2), style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: c(() => [y(H, { label: "JSON", value: "application/json" }), y(H, { label: "TEXT", value: "text/plain" }), y(H, { label: "XML", value: "application/xml" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), "application/json" === u2.properties.responseContentType ? (d(), m(q, { key: 0, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[9] || (P3[9] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), "application/xml" === u2.properties.responseContentType ? (d(), m(B, { key: 1, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[10] || (P3[10] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), "text/plain" === u2.properties.responseContentType ? (d(), m(M, { key: 2, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[11] || (P3[11] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : V("", true), y(F, { title: "异常判断", type: "info", size: "small", closable: false }), y(N, { label: "状态码:" }, { default: c(() => [y(J, { modelValue: u2.properties.statusCodeOperator, "onUpdate:modelValue": P3[12] || (P3[12] = (e2) => u2.properties.statusCodeOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(C), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { type: "number", style: { "margin-left": "10px", width: "60%" }, modelValue: u2.properties.statusCode, "onUpdate:modelValue": P3[13] || (P3[13] = (e2) => u2.properties.statusCode = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(N, { label: "" }, { default: c(() => [y(J, { modelValue: u2.properties.logicOperator, "onUpdate:modelValue": P3[14] || (P3[14] = (e2) => u2.properties.logicOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(U), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(N, { label: "返回内容:" }, { default: c(() => [y(J, { modelValue: u2.properties.contentOperator, "onUpdate:modelValue": P3[15] || (P3[15] = (e2) => u2.properties.contentOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(d(true), b(f, null, v(h(j), (e2) => (d(), m(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { modelValue: u2.properties.content, "onUpdate:modelValue": P3[16] || (P3[16] = (e2) => u2.properties.content = e2), placeholder: "", style: { "margin-left": "10px", width: "60%" } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
31
31
  };
32
32
  } });
33
33
  export {
@@ -9,10 +9,10 @@ import "element-plus/es/components/select/style/css";
9
9
  import "element-plus/es/components/option/style/css";
10
10
  import "element-plus/es/components/table-column/style/css";
11
11
  import "element-plus/es/components/input/style/css";
12
- import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as b, unref as V, createTextVNode as k } from "vue";
13
- import g from "../../../common/components/value-set-input/value-set-input.vue.js";
14
- import { v4 as h } from "uuid";
15
- const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
12
+ import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as _, createCommentVNode as v, unref as V, createTextVNode as b } from "vue";
13
+ import k from "../../../common/components/value-set-input/value-set-input.vue.js";
14
+ import { v4 as g } from "uuid";
15
+ const h = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
16
16
  const z = $, T = i2;
17
17
  T.modelValue && 0 !== T.modelValue.length || z("update:modelValue", []);
18
18
  const U = ["any", "object", "array"], j = (e2) => {
@@ -31,23 +31,23 @@ const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", p
31
31
  const o2 = e2[t2];
32
32
  if (o2.items && o2.items.length > 0 && L(o2.items, l2), o2.code === l2.code) return void e2.splice(t2, 1);
33
33
  }
34
- }, q = () => ({ level: 0, code: h(), name: "", paramType: "any", value: "", items: [], $editing: true });
35
- return C2({}), (h2, C3) => {
34
+ }, q = () => ({ level: 0, code: g(), name: "", paramType: "any", value: "", items: [], $editing: true });
35
+ return C2({}), (g2, C3) => {
36
36
  const $2 = t, z2 = l, D = s, R = o, S = n, B = r, F = m, G = a, H = e;
37
- return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: j, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
37
+ return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: j, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", h, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
38
38
  return t2 = l2, e2.$index, o2 = e2.row, void ("array" === t2 || o2.items && o2.items.length > 0 && ("object" === t2 ? o2.items = [] : o2.items && delete o2.items));
39
39
  var t2, o2;
40
- }, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? b("", true) : (d(), p(V(g), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: A, link: "" }, { default: u(() => C3[0] || (C3[0] = [k("添加 ")])), _: 1 })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
40
+ }, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, _(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? v("", true) : (d(), p(V(k), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: A, link: "" }, { default: u(() => C3[0] || (C3[0] = [b("添加 ", -1)])), _: 1, __: [0] })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
41
41
  l3.items || (l3.items = []);
42
42
  const t2 = q();
43
43
  t2.level = l3.level + 1, l3.items.push(t2);
44
- })(e2.$index, e2.row) }, { default: u(() => C3[2] || (C3[2] = [k("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
44
+ })(e2.$index, e2.row) }, { default: u(() => C3[2] || (C3[2] = [b("添加下级节点", -1)])), _: 2, __: [2] }, 1032, ["onClick"])) : v("", true), e2.row.isArrayElement ? v("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
45
45
  return e2.$index, t2 = e2.row, void E(T.modelValue, t2);
46
46
  var t2;
47
- } }, { default: u(() => C3[3] || (C3[3] = [k("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => C3[1] || (C3[1] = [k(" 添加 ")])), _: 1 })]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
48
- return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
47
+ } }, { default: u(() => C3[3] || (C3[3] = [b("添加相邻节点", -1)])), _: 2, __: [3] }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => C3[1] || (C3[1] = [b(" 添加 ", -1)])), _: 1, __: [1] })]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
48
+ return e2.$index, t2 = e2.row, T.modelValue, void L(T.modelValue, t2);
49
49
  var t2;
50
- } }, { default: u(() => C3[4] || (C3[4] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
50
+ } }, { default: u(() => C3[4] || (C3[4] = [b(" 删除 ", -1)])), _: 2, __: [4] }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
51
51
  };
52
52
  } });
53
53
  export {
@@ -9,10 +9,10 @@ import "element-plus/es/components/select/style/css";
9
9
  import "element-plus/es/components/option/style/css";
10
10
  import "element-plus/es/components/table-column/style/css";
11
11
  import "element-plus/es/components/input/style/css";
12
- import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as b, unref as V, createTextVNode as k } from "vue";
13
- import g from "../../../common/components/value-set-input/value-set-input.vue.js";
14
- import { v4 as h } from "uuid";
15
- const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
12
+ import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as _, unref as V, createTextVNode as b } from "vue";
13
+ import k from "../../../common/components/value-set-input/value-set-input.vue.js";
14
+ import { v4 as g } from "uuid";
15
+ const h = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
16
16
  const z = $, T = i2;
17
17
  T.modelValue && 0 !== T.modelValue.length || z("update:modelValue", []);
18
18
  const U = ["any", "object", "array"], A = (e2) => {
@@ -31,23 +31,23 @@ const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", pr
31
31
  const o2 = e2[t2];
32
32
  if (o2.items && o2.items.length > 0 && L(o2.items, l2), o2.code === l2.code) return void e2.splice(t2, 1);
33
33
  }
34
- }, q = () => ({ level: 0, code: h(), name: "", paramType: "any", value: "", items: [], $editing: true });
35
- return C2({}), (h2, C3) => {
34
+ }, q = () => ({ level: 0, code: g(), name: "", paramType: "any", value: "", items: [], $editing: true });
35
+ return C2({}), (g2, C3) => {
36
36
  const $2 = t, z2 = l, D = s, R = o, S = n, B = r, F = m, G = a, H = e;
37
- return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: A, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
37
+ return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: A, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", h, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
38
38
  return t2 = l2, e2.$index, o2 = e2.row, void ("array" === t2 || o2.items && o2.items.length > 0 && ("object" === t2 ? o2.items = [] : o2.items && delete o2.items));
39
39
  var t2, o2;
40
- }, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? b("", true) : (d(), p(V(g), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: E, link: "" }, { default: u(() => C3[0] || (C3[0] = [k("添加 ")])), _: 1 })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
40
+ }, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? _("", true) : (d(), p(V(k), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: E, link: "" }, { default: u(() => C3[0] || (C3[0] = [b("添加 ", -1)])), _: 1, __: [0] })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
41
41
  l3.items || (l3.items = []);
42
42
  const t2 = q();
43
43
  t2.level = l3.level + 1, l3.items.push(t2);
44
- })(e2.$index, e2.row) }, { default: u(() => C3[1] || (C3[1] = [k("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
44
+ })(e2.$index, e2.row) }, { default: u(() => C3[1] || (C3[1] = [b("添加下级节点", -1)])), _: 2, __: [1] }, 1032, ["onClick"])) : _("", true), e2.row.isArrayElement ? _("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
45
45
  return e2.$index, t2 = e2.row, void j(T.modelValue, t2);
46
46
  var t2;
47
- } }, { default: u(() => C3[2] || (C3[2] = [k("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => [k(" 添加 " + w(e2.row.type), 1)]), _: 2 }, 1024)]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
48
- return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
47
+ } }, { default: u(() => C3[2] || (C3[2] = [b("添加相邻节点", -1)])), _: 2, __: [2] }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => [b(" 添加 " + w(e2.row.type), 1)]), _: 2 }, 1024)]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
48
+ return e2.$index, t2 = e2.row, T.modelValue, void L(T.modelValue, t2);
49
49
  var t2;
50
- } }, { default: u(() => C3[3] || (C3[3] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
50
+ } }, { default: u(() => C3[3] || (C3[3] = [b(" 删除 ", -1)])), _: 2, __: [3] }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
51
51
  };
52
52
  } });
53
53
  export {
@@ -3,18 +3,21 @@ import { initNodes as o, serviceComponentGroups as t } from "../service-componen
3
3
  import s from "../flow/edge/CustomLine.js";
4
4
  import r from "@logicflow/core";
5
5
  import { Dagre as c } from "@logicflow/layout";
6
- import { Menu as i, DndPanel as n, SelectionSelect as l, MiniMap as d, Group as a } from "@logicflow/extension";
6
+ import { Menu as i, DndPanel as n, SelectionSelect as l, MiniMap as a, Group as d } from "@logicflow/extension";
7
7
  const p = [{ type: "zoomOut", desc: "缩小", class: "serviceflow-control-item-zoomOut" }, { type: "zoomIn", desc: "放大", class: "serviceflow-control-item-zoomIn" }, { type: "fit", desc: "适应", class: "serviceflow-control-item-fit" }, { type: "undo", desc: "上一步", class: "serviceflow-control-item-undo" }, { type: "redo", desc: "下一步", class: "serviceflow-control-item-redo" }, { type: "reset", desc: "定位还原", class: "custom-reset" }, { type: "select", desc: "框选", class: "custom-select", clickStyle: true }, { type: "beautify", desc: "一键美化", class: "custom-beautify" }];
8
8
  function f(e2) {
9
- return new r({ container: e2, grid: { visible: false, size: 2 }, background: {}, plugins: [i, n, l, d, a, c] });
9
+ return new r({ container: e2, grid: { visible: false, size: 2 }, background: {}, plugins: [i, n, l, a, d, c] });
10
10
  }
11
11
  function u(e2) {
12
12
  e2.addNode({ id: "start", type: "start", x: 620, y: 50, properties: {} }), e2.addNode({ type: "end", x: 620, y: 550, properties: {} });
13
13
  }
14
14
  const m = (e2) => {
15
15
  if (e2) {
16
- for (const t2 of o) e2.register(t2.nodeAndView);
17
- for (const o2 of t) for (const t2 of o2.items) e2.register(t2.nodeAndView);
16
+ for (const t2 of o) t2.type, t2.label, e2.register(t2.nodeAndView);
17
+ for (const o2 of t) {
18
+ o2.label;
19
+ for (const t2 of o2.items) t2.type, t2.label, e2.register(t2.nodeAndView);
20
+ }
18
21
  e2.register(s), e2.setDefaultEdgeType("customLine");
19
22
  }
20
23
  };
@@ -13,7 +13,7 @@ const v = ["id"], w = t({ __name: "service-node-config", props: { service: { typ
13
13
  I.value || O(), I.value = false, W("update:currentNode", null);
14
14
  }
15
15
  function O() {
16
- C.value && C.value.hasOwnProperty("onClose") && "function" == typeof C.value.onClose && C.value.onClose(), g.currentNode && (["start", "end"].includes(g.currentNode.type) || (C.value && C.value.hasOwnProperty("getData") && "function" == typeof C.value.getData ? g.logicFlowInstance && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id) && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(C.value.getData()) : g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(h.value)));
16
+ g.currentNode, C.value && C.value.hasOwnProperty("onClose") && "function" == typeof C.value.onClose && C.value.onClose(), g.currentNode && (["start", "end"].includes(g.currentNode.type) || (C.value && C.value.hasOwnProperty("getData") && "function" == typeof C.value.getData ? g.logicFlowInstance && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id) && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(C.value.getData()) : g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(h.value)));
17
17
  }
18
18
  function j(e2) {
19
19
  e2 ? (false === e2.withHeader ? N.value.withHeader = false : N.value.withHeader = true, e2.drawerWidth ? N.value.drawerWidth = e2.drawerWidth : N.value.drawerWidth = "100%") : N.value.drawerWidth = "100%";
@@ -15,7 +15,7 @@ import "element-plus/es/components/table-column/style/css";
15
15
  import "element-plus/es/components/divider/style/css";
16
16
  import "element-plus/es/components/form-item/style/css";
17
17
  import "element-plus/es/components/input/style/css";
18
- import { defineComponent as v, createElementBlock as b, openBlock as f, createVNode as w, withCtx as g, createBlock as V, toDisplayString as h, Fragment as k, createCommentVNode as _, renderList as x, unref as U, createTextVNode as C } from "vue";
18
+ import { defineComponent as v, createElementBlock as b, openBlock as f, createVNode as w, withCtx as g, createBlock as V, toDisplayString as _, Fragment as h, createCommentVNode as k, renderList as x, unref as U, createTextVNode as C } from "vue";
19
19
  import z from "../common/components/value-set-input/value-set-input.vue.js";
20
20
  import { v4 as $ } from "uuid";
21
21
  import j from "./service-result.vue.js";
@@ -49,20 +49,20 @@ const E = { key: 0 }, A = { key: 0 }, R = { key: 0 }, L = v({ __name: "service-p
49
49
  }, H = () => ({ level: 0, code: $(), name: "", alias: "", type: "string", defaultValue: "", items: [], $editing: true });
50
50
  return L2({}), (L3, O2) => {
51
51
  const I = t, J = l, K = s, N = a, P = n, Q = i, S = m, W = p, X = d, Y = r, Z = o, ee = u, le = c, te = y, se = e;
52
- return f(), b("div", null, [w(se, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [w(J, { label: "服务名称:" }, { default: g(() => [w(I, { modelValue: v2.service.name, "onUpdate:modelValue": O2[0] || (O2[0] = (e2) => v2.service.name = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), w(J, { label: "服务自定义编码:" }, { default: g(() => [w(I, { disabled: true, modelValue: v2.service.customCode, "onUpdate:modelValue": O2[1] || (O2[1] = (e2) => v2.service.customCode = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), w(K), w(Z, { data: v2.service.variables, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowClick: T, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: g(() => [w(N, { type: "index", width: "50", label: "序号", align: "center" }), w(N, { prop: "name", width: "170", label: "变量名" }, { default: g((e2) => [e2.row.$editing ? (f(), V(I, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", style: { "margin-right": "10px" } }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (f(), b("span", E, h(e2.row.name), 1))]), _: 1 }), w(N, { prop: "alias", width: "110", label: "别名" }, { default: g((e2) => [e2.row.$editing ? (f(), b(k, { key: 1 }, [e2.row.isArrayElement ? _("", true) : (f(), V(I, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (f(), b("span", A, h(e2.row.alias), 1))]), _: 1 }), w(N, { prop: "type", width: "90", label: "类型" }, { default: g((e2) => [e2.row.$editing ? (f(), V(Q, { key: 1, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
52
+ return f(), b("div", null, [w(se, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [w(J, { label: "服务名称:" }, { default: g(() => [w(I, { modelValue: v2.service.name, "onUpdate:modelValue": O2[0] || (O2[0] = (e2) => v2.service.name = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), w(J, { label: "服务自定义编码:" }, { default: g(() => [w(I, { disabled: true, modelValue: v2.service.customCode, "onUpdate:modelValue": O2[1] || (O2[1] = (e2) => v2.service.customCode = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), w(K), w(Z, { data: v2.service.variables, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowClick: T, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: g(() => [w(N, { type: "index", width: "50", label: "序号", align: "center" }), w(N, { prop: "name", width: "170", label: "变量名" }, { default: g((e2) => [e2.row.$editing ? (f(), V(I, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", style: { "margin-right": "10px" } }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (f(), b("span", E, _(e2.row.name), 1))]), _: 1 }), w(N, { prop: "alias", width: "110", label: "别名" }, { default: g((e2) => [e2.row.$editing ? (f(), b(h, { key: 1 }, [e2.row.isArrayElement ? k("", true) : (f(), V(I, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (f(), b("span", A, _(e2.row.alias), 1))]), _: 1 }), w(N, { prop: "type", width: "90", label: "类型" }, { default: g((e2) => [e2.row.$editing ? (f(), V(Q, { key: 1, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
53
53
  return t2 = l2, e2.$index, s2 = e2.row, void ("array" === t2 ? (s2.items = [], s2.items.push({ level: s2.level + 1, code: $(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] })) : s2.items && s2.items.length > 0 && ("object" === t2 ? s2.items = [] : s2.items && delete s2.items));
54
54
  var t2, s2;
55
- }, placeholder: "", size: "small" }, { default: g(() => [(f(), b(k, null, x(q, (e3) => w(P, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", R, h(e2.row.type), 1))]), _: 1 }), w(N, { prop: "defaultValue", label: "默认值", width: "160" }, { default: g((e2) => [e2.row.isArrayElement ? _("", true) : (f(), V(U(z), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "system", "context", "fixed"], modelValue: e2.row.defaultValue, "onUpdate:modelValue": (l2) => e2.row.defaultValue = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), w(N, { align: "center", width: 90 }, { header: g(() => [w(S, { type: "primary", size: "small", onClick: D, link: "" }, { default: g(() => O2[6] || (O2[6] = [C("添加 ")])), _: 1 })]), default: g((e2) => [w(Y, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: g(() => [w(X, null, { default: g(() => ["object" === e2.row.type ? (f(), V(W, { key: 0, onClick: (l2) => ((e3, l3) => {
55
+ }, placeholder: "", size: "small" }, { default: g(() => [(f(), b(h, null, x(q, (e3) => w(P, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", R, _(e2.row.type), 1))]), _: 1 }), w(N, { prop: "defaultValue", label: "默认值", width: "160" }, { default: g((e2) => [e2.row.isArrayElement ? k("", true) : (f(), V(U(z), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "system", "context", "fixed"], modelValue: e2.row.defaultValue, "onUpdate:modelValue": (l2) => e2.row.defaultValue = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), w(N, { align: "center", width: 90 }, { header: g(() => [w(S, { type: "primary", size: "small", onClick: D, link: "" }, { default: g(() => O2[6] || (O2[6] = [C("添加 ", -1)])), _: 1, __: [6] })]), default: g((e2) => [w(Y, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: g(() => [w(X, null, { default: g(() => ["object" === e2.row.type ? (f(), V(W, { key: 0, onClick: (l2) => ((e3, l3) => {
56
56
  l3.items || (l3.items = []);
57
57
  const t2 = H();
58
58
  t2.level = l3.level + 1, l3.items.push(t2), B(t2);
59
- })(e2.$index, e2.row) }, { default: g(() => O2[8] || (O2[8] = [C("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : _("", true), e2.row.isArrayElement ? _("", true) : (f(), V(W, { key: 1, onClick: (l2) => {
59
+ })(e2.$index, e2.row) }, { default: g(() => O2[8] || (O2[8] = [C("添加下级节点", -1)])), _: 2, __: [8] }, 1032, ["onClick"])) : k("", true), e2.row.isArrayElement ? k("", true) : (f(), V(W, { key: 1, onClick: (l2) => {
60
60
  return e2.$index, t2 = e2.row, void F(M.service.variables, t2);
61
61
  var t2;
62
- } }, { default: g(() => O2[9] || (O2[9] = [C("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: g(() => [w(S, { type: "primary", link: "", size: "small" }, { default: g(() => O2[7] || (O2[7] = [C(" 添加 ")])), _: 1 })]), _: 2 }, 1024), w(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
62
+ } }, { default: g(() => O2[9] || (O2[9] = [C("添加相邻节点", -1)])), _: 2, __: [9] }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: g(() => [w(S, { type: "primary", link: "", size: "small" }, { default: g(() => O2[7] || (O2[7] = [C(" 添加 ", -1)])), _: 1, __: [7] })]), _: 2 }, 1024), w(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
63
63
  return e2.$index, t2 = e2.row, void G(M.service.variables, t2);
64
64
  var t2;
65
- } }, { default: g(() => O2[10] || (O2[10] = [C(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), w(ee, { title: "返回值定义", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(j, { service: v2.service }, null, 8, ["service"]), w(le, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: g(() => O2[11] || (O2[11] = [C("说明:可不设置变量名,未设置时以值来源的字段名为变量名")])), _: 1 }), w(ee, { title: "执行异常消息格式化", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(J, null, { default: g(() => [w(I, { type: "textarea", modelValue: v2.service.errorMessage, "onUpdate:modelValue": O2[2] || (O2[2] = (e2) => v2.service.errorMessage = e2) }, null, 8, ["modelValue"])]), _: 1 }), w(ee, { title: "操作日志", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(J, null, { default: g(() => [w(te, { modelValue: v2.service.log.enable, "onUpdate:modelValue": O2[3] || (O2[3] = (e2) => v2.service.log.enable = e2), label: "启用操作日志" }, null, 8, ["modelValue"])]), _: 1 }), w(J, { label: "标题:" }, { default: g(() => [w(I, { disabled: !v2.service.log.enable, modelValue: v2.service.log.title, "onUpdate:modelValue": O2[4] || (O2[4] = (e2) => v2.service.log.title = e2), placeholder: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), w(J, { label: "内容:" }, { default: g(() => [w(I, { disabled: !v2.service.log.enable, modelValue: v2.service.log.content, "onUpdate:modelValue": O2[5] || (O2[5] = (e2) => v2.service.log.content = e2), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 })]);
65
+ } }, { default: g(() => O2[10] || (O2[10] = [C(" 删除 ", -1)])), _: 2, __: [10] }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), w(ee, { title: "返回值定义", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(j, { service: v2.service }, null, 8, ["service"]), w(le, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: g(() => O2[11] || (O2[11] = [C("说明:可不设置变量名,未设置时以值来源的字段名为变量名", -1)])), _: 1, __: [11] }), w(ee, { title: "执行异常消息格式化", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(J, null, { default: g(() => [w(I, { type: "textarea", modelValue: v2.service.errorMessage, "onUpdate:modelValue": O2[2] || (O2[2] = (e2) => v2.service.errorMessage = e2) }, null, 8, ["modelValue"])]), _: 1 }), w(ee, { title: "操作日志", type: "info", closable: false, style: { "margin-bottom": "10px" } }), w(J, null, { default: g(() => [w(te, { modelValue: v2.service.log.enable, "onUpdate:modelValue": O2[3] || (O2[3] = (e2) => v2.service.log.enable = e2), label: "启用操作日志" }, null, 8, ["modelValue"])]), _: 1 }), w(J, { label: "标题:" }, { default: g(() => [w(I, { disabled: !v2.service.log.enable, modelValue: v2.service.log.title, "onUpdate:modelValue": O2[4] || (O2[4] = (e2) => v2.service.log.title = e2), placeholder: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), w(J, { label: "内容:" }, { default: g(() => [w(I, { disabled: !v2.service.log.enable, modelValue: v2.service.log.content, "onUpdate:modelValue": O2[5] || (O2[5] = (e2) => v2.service.log.content = e2), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 })]);
66
66
  };
67
67
  } });
68
68
  export {
@@ -9,10 +9,10 @@ import "element-plus/es/components/select/style/css";
9
9
  import "element-plus/es/components/option/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/table-column/style/css";
12
- import { defineComponent as m, createBlock as d, openBlock as p, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as v, createCommentVNode as f, renderList as h, unref as b, createTextVNode as g } from "vue";
13
- import k from "../common/components/value-set-input/value-set-input.vue.js";
14
- import { v4 as V } from "uuid";
15
- const _ = { key: 0 }, x = { key: 0 }, C = { key: 0 }, $ = m({ __name: "service-result", props: { service: { type: Object, default: () => ({ returnValues: [] }) } }, setup(m2, { expose: $2 }) {
12
+ import { defineComponent as m, createBlock as d, openBlock as p, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as v, createCommentVNode as f, renderList as h, unref as _, createTextVNode as b } from "vue";
13
+ import g from "../common/components/value-set-input/value-set-input.vue.js";
14
+ import { v4 as k } from "uuid";
15
+ const V = { key: 0 }, x = { key: 0 }, C = { key: 0 }, $ = m({ __name: "service-result", props: { service: { type: Object, default: () => ({ returnValues: [] }) } }, setup(m2, { expose: $2 }) {
16
16
  const z = m2;
17
17
  z.service.returnValues || (z.service.returnValues = []);
18
18
  const U = ["any", "array", "object", "string", "number", "date"];
@@ -40,26 +40,26 @@ const _ = { key: 0 }, x = { key: 0 }, C = { key: 0 }, $ = m({ __name: "service-r
40
40
  s2.items && s2.items.length > 0 && O(s2.items, l2);
41
41
  }
42
42
  };
43
- const R = () => ({ code: V(), name: "", type: "any", value: "", items: [], $editing: true });
43
+ const R = () => ({ code: k(), name: "", type: "any", value: "", items: [], $editing: true });
44
44
  return $2({}), ($3, E2) => {
45
45
  const T = l, B = t, D = o, F = s, G = a, H = i, I = r, J = n, K = e;
46
46
  return p(), d(K, { data: m2.service.returnValues, style: { width: "100%", "margin-top": "20px", "margin-bottom": "10px" }, "row-key": "code", size: "small", onRowClick: j, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(T, { type: "index", width: "50", label: "序号", align: "center" }), c(T, { prop: "name", width: "170", label: "变量名" }, { default: u((e2) => [e2.row.$editing ? (p(), d(B, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", style: { "margin-right": "10px" }, onChange: (l2) => {
47
47
  var t2;
48
48
  (t2 = e2.row).alias || (t2.alias = t2.name);
49
- } }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])) : (p(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(T, { prop: "alias", width: "110", label: "别名" }, { default: u((e2) => [e2.row.$editing ? (p(), y(v, { key: 1 }, [e2.row.isArrayElement ? f("", true) : (p(), d(B, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (p(), y("span", x, w(e2.row.alias), 1))]), _: 1 }), c(T, { prop: "type", width: "90", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (p(), d(F, { key: 1, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
50
- return t2 = l2, e2.$index, s2 = e2.row, void ("array" === t2 ? (s2.items = [], s2.items.push({ level: s2.level + 1, code: V(), name: "items", isArrayElement: true, alias: "", type: "object", value: "", items: [] })) : s2.items && s2.items.length > 0 && ("object" === t2 ? s2.items = [] : s2.items && delete s2.items));
49
+ } }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])) : (p(), y("span", V, w(e2.row.name), 1))]), _: 1 }), c(T, { prop: "alias", width: "110", label: "别名" }, { default: u((e2) => [e2.row.$editing ? (p(), y(v, { key: 1 }, [e2.row.isArrayElement ? f("", true) : (p(), d(B, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (p(), y("span", x, w(e2.row.alias), 1))]), _: 1 }), c(T, { prop: "type", width: "90", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (p(), d(F, { key: 1, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
50
+ return t2 = l2, e2.$index, s2 = e2.row, void ("array" === t2 ? (s2.items = [], s2.items.push({ level: s2.level + 1, code: k(), name: "items", isArrayElement: true, alias: "", type: "object", value: "", items: [] })) : s2.items && s2.items.length > 0 && ("object" === t2 ? s2.items = [] : s2.items && delete s2.items));
51
51
  var t2, s2;
52
- }, placeholder: "", size: "small" }, { default: u(() => [(p(), y(v, null, h(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), y("span", C, w(e2.row.type), 1))]), _: 1 }), c(T, { prop: "value", label: "值来源", width: "160" }, { default: u((e2) => [e2.row.isArrayElement ? f("", true) : (p(), d(b(k), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "service", "data", "system", "context", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(T, { align: "center", width: 90 }, { header: u(() => [c(G, { type: "primary", size: "small", onClick: L, link: "" }, { default: u(() => E2[0] || (E2[0] = [g("添加 ")])), _: 1 })]), default: u((e2) => [c(J, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(I, null, { default: u(() => ["object" === e2.row.type ? (p(), d(H, { key: 0, onClick: (l2) => ((e3, l3) => {
52
+ }, placeholder: "", size: "small" }, { default: u(() => [(p(), y(v, null, h(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), y("span", C, w(e2.row.type), 1))]), _: 1 }), c(T, { prop: "value", label: "值来源", width: "160" }, { default: u((e2) => [e2.row.isArrayElement ? f("", true) : (p(), d(_(g), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "service", "data", "system", "context", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(T, { align: "center", width: 90 }, { header: u(() => [c(G, { type: "primary", size: "small", onClick: L, link: "" }, { default: u(() => E2[0] || (E2[0] = [b("添加 ", -1)])), _: 1, __: [0] })]), default: u((e2) => [c(J, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(I, null, { default: u(() => ["object" === e2.row.type ? (p(), d(H, { key: 0, onClick: (l2) => ((e3, l3) => {
53
53
  l3.items || (l3.items = []);
54
54
  const t2 = R();
55
55
  t2.level = l3.level + 1, l3.items.push(t2), A(t2);
56
- })(e2.$index, e2.row) }, { default: u(() => E2[2] || (E2[2] = [g("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : f("", true), e2.row.isArrayElement ? f("", true) : (p(), d(H, { key: 1, onClick: (l2) => {
56
+ })(e2.$index, e2.row) }, { default: u(() => E2[2] || (E2[2] = [b("添加下级节点", -1)])), _: 2, __: [2] }, 1032, ["onClick"])) : f("", true), e2.row.isArrayElement ? f("", true) : (p(), d(H, { key: 1, onClick: (l2) => {
57
57
  return e2.$index, t2 = e2.row, void q(z.service.returnValues, t2);
58
58
  var t2;
59
- } }, { default: u(() => E2[3] || (E2[3] = [g("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(G, { type: "primary", link: "", size: "small" }, { default: u(() => E2[1] || (E2[1] = [g(" 添加 ")])), _: 1 })]), _: 2 }, 1024), c(G, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
59
+ } }, { default: u(() => E2[3] || (E2[3] = [b("添加相邻节点", -1)])), _: 2, __: [3] }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(G, { type: "primary", link: "", size: "small" }, { default: u(() => E2[1] || (E2[1] = [b(" 添加 ", -1)])), _: 1, __: [1] })]), _: 2 }, 1024), c(G, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
60
60
  return e2.$index, t2 = e2.row, void O(z.service.returnValues, t2);
61
61
  var t2;
62
- } }, { default: u(() => E2[4] || (E2[4] = [g(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
62
+ } }, { default: u(() => E2[4] || (E2[4] = [b(" 删除 ", -1)])), _: 2, __: [4] }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
63
63
  };
64
64
  } });
65
65
  export {
@@ -11,12 +11,12 @@ import "element-plus/es/components/select/style/css";
11
11
  import "element-plus/es/components/option/style/css";
12
12
  import "element-plus/es/components/table-column/style/css";
13
13
  import "element-plus/es/components/input/style/css";
14
- import { defineComponent as p, createBlock as u, openBlock as c, withCtx as y, createVNode as w, createElementBlock as b, Fragment as h, renderList as v, createCommentVNode as V, createElementVNode as f, createTextVNode as k } from "vue";
15
- import { v4 as g } from "uuid";
16
- const _ = p({ __name: "request-params", props: { entityData: { type: Array, default: () => [] } }, setup(p2) {
17
- const _2 = p2, A = ["string", "int", "number", "boolean", "array", "object"], E = () => {
18
- _2.entityData.push({ code: g(), name: "", type: "string", value: "" });
19
- }, U = () => ({ code: g(), name: "", type: "string", value: "" }), z = (e2, l2) => {
14
+ import { defineComponent as p, createBlock as u, openBlock as c, withCtx as y, createVNode as w, createElementBlock as b, Fragment as h, renderList as v, createCommentVNode as _, createElementVNode as V, createTextVNode as f } from "vue";
15
+ import { v4 as k } from "uuid";
16
+ const g = p({ __name: "request-params", props: { entityData: { type: Array, default: () => [] } }, setup(p2) {
17
+ const g2 = p2, A = ["string", "int", "number", "boolean", "array", "object"], E = () => {
18
+ g2.entityData.push({ code: k(), name: "", type: "string", value: "" });
19
+ }, U = () => ({ code: k(), name: "", type: "string", value: "" }), z = (e2, l2) => {
20
20
  e2.forEach((t2, o2) => {
21
21
  if (t2.code === l2.code) {
22
22
  const l3 = U();
@@ -33,21 +33,21 @@ const _ = p({ __name: "request-params", props: { entityData: { type: Array, defa
33
33
  return (j, x) => {
34
34
  const D = t, T = l, $ = a, N = o, q = s, F = n, B = i, G = m, H = d, I = r, J = e;
35
35
  return c(), u(J, { data: p2.entityData, style: { width: "100%", "margin-bottom": "20px" }, "tree-props": { children: "items" }, "row-key": "code", border: "", size: "small", "default-expand-all": "" }, { default: y(() => [w(T, { align: "center", prop: "name", label: "参数名", style: { "padding-right": "20px" } }, { default: y((e2) => [w(D, { size: "small", disabled: e2.row.isArrayElement || e2.row.lockedName, style: { width: "90%" }, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])]), _: 1 }), w(T, { align: "center", prop: "type", label: "类型" }, { default: y((e2) => [w(N, { style: { width: "90%" }, disabled: e2.row.lockedType, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
36
- return t2 = l2, e2.$index, void ((o2 = e2.row).isArrayElement ? delete o2.items : "object" === t2 ? o2.items = [] : "array" === t2 ? (o2.items = [], o2.items.push({ isArrayElement: true, code: g(), name: "items", type: "string", value: "" })) : delete o2.items);
36
+ return t2 = l2, e2.$index, void ((o2 = e2.row).isArrayElement ? delete o2.items : "object" === t2 ? o2.items = [] : "array" === t2 ? (o2.items = [], o2.items.push({ isArrayElement: true, code: k(), name: "items", type: "string", value: "" })) : delete o2.items);
37
37
  var t2, o2;
38
- }, placeholder: "", size: "small" }, { default: y(() => [(c(), b(h, null, v(A, (e3) => w($, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), w(T, { align: "center", prop: "value", label: "值" }, { default: y((e2) => ["string" === e2.row.type ? (c(), u(D, { key: 0, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : V("", true), "number" === e2.row.type ? (c(), u(D, { key: 1, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, type: "number", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : "int" === e2.row.type ? (c(), u(q, { key: 2, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : "boolean" === e2.row.type ? (c(), u(F, { key: 3, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, { "active-action": y(() => x[0] || (x[0] = [f("span", { class: "custom-active-action" }, "T", -1)])), "inactive-action": y(() => x[1] || (x[1] = [f("span", { class: "custom-inactive-action" }, "F", -1)])), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"])) : V("", true)]), _: 1 }), w(T, { align: "center", width: 100 }, { header: y(() => [w(B, { type: "primary", size: "small", onClick: E, link: "" }, { default: y(() => x[2] || (x[2] = [k("添加 ")])), _: 1 })]), default: y((e2) => [w(I, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: y(() => [w(H, null, { default: y(() => ["object" === e2.row.type || e2.row.isArrayElement ? (c(), u(G, { key: 0, onClick: (l2) => ((e3, l3) => {
38
+ }, placeholder: "", size: "small" }, { default: y(() => [(c(), b(h, null, v(A, (e3) => w($, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), w(T, { align: "center", prop: "value", label: "值" }, { default: y((e2) => ["string" === e2.row.type ? (c(), u(D, { key: 0, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : _("", true), "number" === e2.row.type ? (c(), u(D, { key: 1, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, type: "number", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : "int" === e2.row.type ? (c(), u(q, { key: 2, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : "boolean" === e2.row.type ? (c(), u(F, { key: 3, size: "small", disabled: e2.row.isArrayElement || "object" === e2.row.type || "array" === e2.row.type, style: { width: "90%" }, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, placeholder: "" }, { "active-action": y(() => x[0] || (x[0] = [V("span", { class: "custom-active-action" }, "T", -1)])), "inactive-action": y(() => x[1] || (x[1] = [V("span", { class: "custom-inactive-action" }, "F", -1)])), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"])) : _("", true)]), _: 1 }), w(T, { align: "center", width: 100 }, { header: y(() => [w(B, { type: "primary", size: "small", onClick: E, link: "" }, { default: y(() => x[2] || (x[2] = [f("添加 ", -1)])), _: 1, __: [2] })]), default: y((e2) => [w(I, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: y(() => [w(H, null, { default: y(() => ["object" === e2.row.type || e2.row.isArrayElement ? (c(), u(G, { key: 0, onClick: (l2) => ((e3, l3) => {
39
39
  l3.items || (l3.items = []);
40
40
  const t2 = U();
41
41
  l3.items || (l3.items = []), "object" !== l3.type && (t2.lockedName = true), l3.isArrayElement && (t2.type = l3.type, t2.lockedType = true), l3.items.push(t2);
42
- })(e2.$index, e2.row) }, { default: y(() => x[4] || (x[4] = [k("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : V("", true), e2.row.isArrayElement ? V("", true) : (c(), u(G, { key: 1, onClick: (l2) => {
43
- return e2.$index, t2 = e2.row, void z(_2.entityData, t2);
42
+ })(e2.$index, e2.row) }, { default: y(() => x[4] || (x[4] = [f("添加下级节点", -1)])), _: 2, __: [4] }, 1032, ["onClick"])) : _("", true), e2.row.isArrayElement ? _("", true) : (c(), u(G, { key: 1, onClick: (l2) => {
43
+ return e2.$index, t2 = e2.row, void z(g2.entityData, t2);
44
44
  var t2;
45
- } }, { default: y(() => x[5] || (x[5] = [k("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: y(() => [w(B, { type: "primary", link: "", size: "small" }, { default: y(() => x[3] || (x[3] = [k(" 添加 ")])), _: 1 })]), _: 2 }, 1024), w(B, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
46
- return e2.$index, t2 = e2.row, void C(_2.entityData, t2);
45
+ } }, { default: y(() => x[5] || (x[5] = [f("添加相邻节点", -1)])), _: 2, __: [5] }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: y(() => [w(B, { type: "primary", link: "", size: "small" }, { default: y(() => x[3] || (x[3] = [f(" 添加 ", -1)])), _: 1, __: [3] })]), _: 2 }, 1024), w(B, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
46
+ return e2.$index, t2 = e2.row, void C(g2.entityData, t2);
47
47
  var t2;
48
- } }, { default: y(() => x[6] || (x[6] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
48
+ } }, { default: y(() => x[6] || (x[6] = [f(" 删除 ", -1)])), _: 2, __: [6] }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
49
49
  };
50
50
  } });
51
51
  export {
52
- _ as default
52
+ g as default
53
53
  };
@@ -9,8 +9,8 @@ import "element-plus/es/components/tab-pane/style/css";
9
9
  import "element-plus/es/components/radio-group/style/css";
10
10
  import "element-plus/es/components/radio-button/style/css";
11
11
  import { defineComponent as r, ref as i, watch as m, nextTick as p, createBlock as d, openBlock as c, withCtx as f, createVNode as v, createElementVNode as y, withDirectives as g, vShow as b, unref as w, createTextVNode as V } from "vue";
12
- import { EditorView as h, basicSetup as J } from "codemirror";
13
- import { json as _ } from "@codemirror/lang-json";
12
+ import { EditorView as _, basicSetup as h } from "codemirror";
13
+ import { json as J } from "@codemirror/lang-json";
14
14
  import { EditorState as j } from "@codemirror/state";
15
15
  import S from "agilebuilder-ui/src/utils/request";
16
16
  import x from "@logicflow/core";
@@ -36,13 +36,13 @@ const q = { class: "dialog-footer" }, B = r({ __name: "service-test", props: { m
36
36
  const e4 = z.value.getBoundingClientRect();
37
37
  (e4.y || 0 === e4.y) && (G.value = window.innerHeight - e4.y - 100);
38
38
  }
39
- const t3 = h.theme({ ".cm-content, .cm-gutter": { minHeight: G.value + "px" }, "&": { height: G.value + "px", maxHeight: G.value + "px", fontSize: "12px" } });
40
- return j.create({ doc: F.value, extensions: [j.tabSize.of(16), J, _(), e3, t3, h.updateListener.of(function(e4) {
39
+ const t3 = _.theme({ ".cm-content, .cm-gutter": { minHeight: G.value + "px" }, "&": { height: G.value + "px", maxHeight: G.value + "px", fontSize: "12px" } });
40
+ return j.create({ doc: F.value, extensions: [j.tabSize.of(16), h, J(), e3, t3, _.updateListener.of(function(e4) {
41
41
  F.value = e4.state.doc.toString();
42
42
  })] });
43
43
  }();
44
44
  let t2 = document.getElementById("cfCodemirrorJsonTest");
45
- t2 && (E.value = new h({ state: e2, parent: t2 }));
45
+ t2 && (E.value = new _({ state: e2, parent: t2 }));
46
46
  }();
47
47
  });
48
48
  }, K = () => {
@@ -61,14 +61,17 @@ const q = { class: "dialog-footer" }, B = r({ __name: "service-test", props: { m
61
61
  }).catch((e3) => {
62
62
  I.value = e3.response;
63
63
  });
64
- }, Q = () => ({ inputType: R.value, inputJson: F.value, entity: P.value, requestParams: A.value, serviceFlowJson: W(), pageDesignJson: X() }), W = () => {
64
+ }, Q = () => {
65
+ const e2 = { inputType: R.value, inputJson: F.value, entity: P.value, requestParams: A.value, serviceFlowJson: W(), pageDesignJson: X() };
66
+ return P.value, A.value, e2;
67
+ }, W = () => {
65
68
  var _a;
66
69
  const e2 = JSON.parse(JSON.stringify(B2.cloneService));
67
70
  return e2.flow = (_a = B2.lf) == null ? void 0 : _a.getGraphData(), e2.runtimeJson = JSON.stringify(k(e2)), e2.variables = JSON.stringify(e2.variables), e2.log = JSON.stringify(e2.log), e2.flow = JSON.stringify(e2.flow), e2.returnValues = JSON.stringify(e2.returnValues), JSON.stringify(e2);
68
71
  }, X = () => JSON.stringify({ tableCode: "test_servicflow_query" });
69
72
  return (i2, m2) => {
70
- const p2 = n, h2 = o, J2 = a, _2 = s, j2 = l, S2 = t, x3 = u, C2 = e;
71
- return c(), d(C2, { fullscreen: true, "destroy-on-close": "", modelValue: H.value, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => H.value = e2), "append-to-body": r2.appendToBody, title: "测试", onClose: K }, { footer: f(() => [y("div", q, [v(x3, { type: "default", onClick: m2[3] || (m2[3] = (e2) => H.value = false) }, { default: f(() => m2[5] || (m2[5] = [V("关闭")])), _: 1 }), v(x3, { type: "primary", onClick: M }, { default: f(() => m2[6] || (m2[6] = [V(" 运行 ")])), _: 1 })])]), default: f(() => [v(S2, null, { default: f(() => [v(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [y("div", null, [v(h2, { modelValue: R.value, "onUpdate:modelValue": m2[0] || (m2[0] = (e2) => R.value = e2), size: "small" }, { default: f(() => [v(p2, { label: "JSON", value: "json" }), v(p2, { label: "变量录入", value: "custom" })]), _: 1 }, 8, ["modelValue"]), g(v(_2, { modelValue: D.value, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => D.value = e2), class: "demo-tabs" }, { default: f(() => [v(J2, { label: "entity", name: "entity" }, { default: f(() => [v(N, { "entity-data": P.value }, null, 8, ["entity-data"])]), _: 1 }), v(J2, { label: "request", name: "request" }, { default: f(() => [v(N, { "entity-data": A.value }, null, 8, ["entity-data"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), [[b, "custom" === R.value]]), g(y("div", { style: { marginTop: "10px", backgroundColor: "#fff", color: "#333" }, ref_key: "cfCodemirrorJsonTestRef", ref: z, id: "cfCodemirrorJsonTest" }, null, 512), [[b, "json" === R.value]])])]), _: 1 }), v(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [y("div", null, [v(h2, { modelValue: L.value, "onUpdate:modelValue": m2[2] || (m2[2] = (e2) => L.value = e2), size: "small", style: { "margin-bottom": "10px" } }, { default: f(() => [v(p2, { label: "返回结果", value: "returnValue" })]), _: 1 }, 8, ["modelValue"]), v(w(O), { jsonObject: I.value, height: G.value, theme: "vscodeDark" }, null, 8, ["jsonObject", "height"])])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "append-to-body"]);
73
+ const p2 = n, _2 = o, h2 = a, J2 = s, j2 = l, S2 = t, x3 = u, C2 = e;
74
+ return c(), d(C2, { fullscreen: true, "destroy-on-close": "", modelValue: H.value, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => H.value = e2), "append-to-body": r2.appendToBody, title: "测试", onClose: K }, { footer: f(() => [y("div", q, [v(x3, { type: "default", onClick: m2[3] || (m2[3] = (e2) => H.value = false) }, { default: f(() => m2[5] || (m2[5] = [V("关闭", -1)])), _: 1, __: [5] }), v(x3, { type: "primary", onClick: M }, { default: f(() => m2[6] || (m2[6] = [V(" 运行 ", -1)])), _: 1, __: [6] })])]), default: f(() => [v(S2, null, { default: f(() => [v(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [y("div", null, [v(_2, { modelValue: R.value, "onUpdate:modelValue": m2[0] || (m2[0] = (e2) => R.value = e2), size: "small" }, { default: f(() => [v(p2, { label: "JSON", value: "json" }), v(p2, { label: "变量录入", value: "custom" })]), _: 1 }, 8, ["modelValue"]), g(v(J2, { modelValue: D.value, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => D.value = e2), class: "demo-tabs" }, { default: f(() => [v(h2, { label: "entity", name: "entity" }, { default: f(() => [v(N, { "entity-data": P.value }, null, 8, ["entity-data"])]), _: 1 }), v(h2, { label: "request", name: "request" }, { default: f(() => [v(N, { "entity-data": A.value }, null, 8, ["entity-data"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), [[b, "custom" === R.value]]), g(y("div", { style: { marginTop: "10px", backgroundColor: "#fff", color: "#333" }, ref_key: "cfCodemirrorJsonTestRef", ref: z, id: "cfCodemirrorJsonTest" }, null, 512), [[b, "json" === R.value]])])]), _: 1 }), v(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [y("div", null, [v(_2, { modelValue: L.value, "onUpdate:modelValue": m2[2] || (m2[2] = (e2) => L.value = e2), size: "small", style: { "margin-bottom": "10px" } }, { default: f(() => [v(p2, { label: "返回结果", value: "returnValue" })]), _: 1 }, 8, ["modelValue"]), v(w(O), { jsonObject: I.value, height: G.value, theme: "vscodeDark" }, null, 8, ["jsonObject", "height"])])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "append-to-body"]);
72
75
  };
73
76
  } });
74
77
  export {