service-flow-designer 2.3.25-flow1 → 2.3.26-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 (52) hide show
  1. package/dist/es/designer/common/components/datatable-select.vue2.js +2 -2
  2. package/dist/es/designer/common/components/file-upload.vue2.js +2 -2
  3. package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +2 -2
  4. package/dist/es/designer/common/components/json-view/json-view.vue.js +2 -2
  5. package/dist/es/designer/common/components/node-base-config.vue.js +2 -2
  6. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +2 -2
  7. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +2 -2
  8. package/dist/es/designer/common/components/value-set-input/option.js +1 -1
  9. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +4 -4
  10. package/dist/es/designer/desginer-index.vue2.js +2 -2
  11. package/dist/es/designer/flow/base/AbLogicResizeNode.js +2 -23
  12. package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +2 -24
  13. package/dist/es/designer/service-components/base/end-node/index.vue2.js +2 -2
  14. package/dist/es/designer/service-components/base/start-node/index.vue2.js +2 -2
  15. package/dist/es/designer/service-components/computation/sort/config.vue2.js +3 -3
  16. package/dist/es/designer/service-components/computation/sort/index.vue2.js +2 -2
  17. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +2 -2
  18. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +2 -2
  19. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +3 -3
  20. package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +2 -2
  21. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +2 -2
  22. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +2 -2
  23. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
  24. package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +2 -2
  25. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +2 -2
  26. package/dist/es/designer/service-components/database/regular-query/index.vue2.js +2 -2
  27. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +2 -2
  28. package/dist/es/designer/service-components/service/common/form-data.vue.js +3 -3
  29. package/dist/es/designer/service-components/service/common/header-data.vue.js +2 -2
  30. package/dist/es/designer/service-components/service/common/json-data.vue2.js +3 -3
  31. package/dist/es/designer/service-components/service/common/param-config.vue2.js +2 -2
  32. package/dist/es/designer/service-components/service/common/query-params.vue.js +2 -2
  33. package/dist/es/designer/service-components/service/common/raw-data.vue.js +2 -2
  34. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
  35. package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +2 -2
  36. package/dist/es/designer/service-components/service/http-service/config.vue2.js +2 -2
  37. package/dist/es/designer/service-components/service/http-service/index.vue2.js +2 -2
  38. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +4 -4
  39. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +2 -2
  40. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +4 -4
  41. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +3 -3
  42. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +2 -2
  43. package/dist/es/designer/service-flow-view/service-params.vue.js +4 -4
  44. package/dist/es/designer/service-flow-view/service-result.vue.js +5 -5
  45. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +4 -4
  46. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +2 -2
  47. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +3 -3
  48. package/dist/es/designer/service-flow-view/view-index.vue2.js +2 -2
  49. package/dist/es/designer/service-panel/component-panel.vue2.js +2 -2
  50. package/dist/es/designer/service-panel/service-list.vue2.js +2 -2
  51. package/dist/es/designer/service-panel/service-panel.vue2.js +2 -2
  52. package/package.json +2 -2
@@ -9,7 +9,7 @@ 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 V, unref as b, createTextVNode as k } from "vue";
12
+ import { defineComponent as i, openBlock as p, createBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, unref as V, createCommentVNode as b, createTextVNode as k } from "vue";
13
13
  import g from "../../../common/components/value-set-input/value-set-input.vue.js";
14
14
  import { v4 as h } from "uuid";
15
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: $ }) {
@@ -34,14 +34,14 @@ const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", pr
34
34
  }, q = () => ({ level: 0, code: h(), name: "", paramType: "any", value: "", items: [], $editing: true });
35
35
  return C2({}), (h2, 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 p(), d(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 ? (p(), d($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"])) : (p(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (p(), d(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))]), _: 1 }, 8, ["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(b(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)])]), _: 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(() => [(p(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? b("", true) : (p(), d(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)])]), _: 1 })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (p(), d(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("添加下级节点", -1)])]), _: 1 }, 8, ["onClick"])) : V("", true), e2.row.isArrayElement ? V("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
44
+ })(e2.$index, e2.row) }, { default: u(() => [...C3[1] || (C3[1] = [k("添加下级节点", -1)])]), _: 1 }, 8, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", true) : (p(), d(B, { key: 1, onClick: (l2) => {
45
45
  return e2.$index, t2 = e2.row, void j(T.modelValue, t2);
46
46
  var t2;
47
47
  } }, { default: u(() => [...C3[2] || (C3[2] = [k("添加相邻节点", -1)])]), _: 1 }, 8, ["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) => {
@@ -4,7 +4,7 @@ import "element-plus/es/components/icon/style/css";
4
4
  import "element-plus/es/components/tooltip/style/css";
5
5
  import "element-plus/es/components/divider/style/css";
6
6
  import "element-plus/es/components/input/style/css";
7
- import { defineComponent as s, ref as i, createElementBlock as c, openBlock as n, withDirectives as a, createVNode as r, createElementVNode as p, vShow as m, Fragment as u, renderList as v, unref as d, createBlock as f, withCtx as w, normalizeClass as g } from "vue";
7
+ import { defineComponent as s, ref as i, openBlock as c, createElementBlock as n, withDirectives as a, createElementVNode as r, createVNode as p, vShow as m, Fragment as u, renderList as v, unref as d, createBlock as f, withCtx as w, normalizeClass as g } from "vue";
8
8
  import { View as y, CaretRight as b, Check as j } from "@element-plus/icons-vue";
9
9
  import { customControl as S } from "./flow-util.js";
10
10
  import { customControlClick as C } from "./flow-tool-util.js";
@@ -30,9 +30,9 @@ const x = { class: "serviceflow-design-tool" }, _ = { style: { top: "-5px", "mar
30
30
  };
31
31
  return (i2, h3) => {
32
32
  const J3 = e, H = l, I = o, K = t;
33
- return n(), c("div", x, [a(p("span", _, [r(J3, { placeholder: "", modelValue: s2.cloneService.name, "onUpdate:modelValue": h3[0] || (h3[0] = (e2) => s2.cloneService.name = e2), style: { width: "15%" } }, null, 8, ["modelValue"])], 512), [[m, s2.cloneService.code]]), a(p("span", O, [r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), (n(true), c(u, null, v(d(S), (e2) => (n(), f(I, { class: "box-item", effect: "dark", content: e2.desc, placement: "top" }, { default: w(() => [p("label", { class: g(["serviceflow-control-item", e2.type === U.value ? "serviceflow-control-item-click" : ""]), onClick: (l2) => ((e3) => {
33
+ return c(), n("div", x, [a(r("span", _, [p(J3, { placeholder: "", modelValue: s2.cloneService.name, "onUpdate:modelValue": h3[0] || (h3[0] = (e2) => s2.cloneService.name = e2), style: { width: "15%" } }, null, 8, ["modelValue"])], 512), [[m, s2.cloneService.code]]), a(r("span", O, [p(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), (c(true), n(u, null, v(d(S), (e2) => (c(), f(I, { class: "box-item", effect: "dark", content: e2.desc, placement: "top" }, { default: w(() => [r("label", { class: g(["serviceflow-control-item", e2.type === U.value ? "serviceflow-control-item-click" : ""]), onClick: (l2) => ((e3) => {
34
34
  N.lf && C(N.lf, e3);
35
- })(e2) }, [p("i", { class: g(e2.class) }, null, 2)], 10, z)]), _: 2 }, 1032, ["content"]))), 256)), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: A }, [r(K, { size: 18 }, { default: w(() => [r(d(y))]), _: 1 }), h3[3] || (h3[3] = p("label", null, "查看JSON", -1))]), p("label", { class: "serviceflow-page-type", onClick: E }, [r(K, { size: 18 }, { default: w(() => [r(d(y))]), _: 1 }), h3[4] || (h3[4] = p("label", null, "日志", -1))]), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: B }, [r(K, { size: 18 }, { default: w(() => [r(d(b))]), _: 1 }), h3[5] || (h3[5] = p("label", null, "测试", -1))]), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: F }, [r(K, { size: 18 }, { default: w(() => [r(d(j))]), _: 1 }), h3[6] || (h3[6] = p("label", null, "保存", -1))])], 512), [[m, s2.cloneService.code]]), r(d(V), { modelValue: D.value, "onUpdate:modelValue": h3[1] || (h3[1] = (e2) => D.value = e2), "json-object": q.value, "append-to-body": true }, null, 8, ["modelValue", "json-object"]), r(k, { modelValue: G.value, "onUpdate:modelValue": h3[2] || (h3[2] = (e2) => G.value = e2), pageContext: s2.pageContext, "append-to-body": true, cloneService: s2.cloneService, lf: s2.lf }, null, 8, ["modelValue", "pageContext", "cloneService", "lf"])]);
35
+ })(e2) }, [r("i", { class: g(e2.class) }, null, 2)], 10, z)]), _: 2 }, 1032, ["content"]))), 256)), p(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), r("label", { class: "serviceflow-page-type", onClick: A }, [p(K, { size: 18 }, { default: w(() => [p(d(y))]), _: 1 }), h3[3] || (h3[3] = r("label", null, "查看JSON", -1))]), r("label", { class: "serviceflow-page-type", onClick: E }, [p(K, { size: 18 }, { default: w(() => [p(d(y))]), _: 1 }), h3[4] || (h3[4] = r("label", null, "日志", -1))]), p(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), r("label", { class: "serviceflow-page-type", onClick: B }, [p(K, { size: 18 }, { default: w(() => [p(d(b))]), _: 1 }), h3[5] || (h3[5] = r("label", null, "测试", -1))]), p(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), r("label", { class: "serviceflow-page-type", onClick: F }, [p(K, { size: 18 }, { default: w(() => [p(d(j))]), _: 1 }), h3[6] || (h3[6] = r("label", null, "保存", -1))])], 512), [[m, s2.cloneService.code]]), p(d(V), { modelValue: D.value, "onUpdate:modelValue": h3[1] || (h3[1] = (e2) => D.value = e2), "json-object": q.value, "append-to-body": true }, null, 8, ["modelValue", "json-object"]), p(k, { modelValue: G.value, "onUpdate:modelValue": h3[2] || (h3[2] = (e2) => G.value = e2), pageContext: s2.pageContext, "append-to-body": true, cloneService: s2.cloneService, lf: s2.lf }, null, 8, ["modelValue", "pageContext", "cloneService", "lf"])]);
36
36
  };
37
37
  } });
38
38
  export {
@@ -1,7 +1,7 @@
1
1
  import { ElDrawer as e } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/drawer/style/css";
4
- import { defineComponent as t, ref as o, createBlock as a, openBlock as l, unref as n, withCtx as r, resolveDynamicComponent as d, createElementVNode as i, normalizeClass as u, toDisplayString as c } from "vue";
4
+ import { defineComponent as t, ref as o, openBlock as a, createBlock as l, unref as n, withCtx as r, resolveDynamicComponent as d, createElementVNode as i, normalizeClass as u, toDisplayString as c } from "vue";
5
5
  import { getServiceNodeByType as s, getConfigByType as p } from "../service-components/index.js";
6
6
  const v = ["id"], w = t({ __name: "service-node-config", props: { service: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) }, logicFlowInstance: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, emits: ["onConfigChange", "update:currentNode"], setup(t2, { expose: w2, emit: f }) {
7
7
  const g = t2, h = o({}), m = o(false), y = o({}), C = o(), N = o({ withHeader: true, drawerWidth: "" }), I = o(false), W = f;
@@ -28,7 +28,7 @@ const v = ["id"], w = t({ __name: "service-node-config", props: { service: { typ
28
28
  I.value = true, b();
29
29
  }, closeDrawer: b }), (o2, s2) => {
30
30
  const p2 = e;
31
- return l(), a(p2, { modelValue: m.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => m.value = e2), "append-to-body": false, "close-on-press-escape": false, "destroy-on-close": "", "with-header": N.value.withHeader, "modal-class": "el-overlay", modal: true, title: y.value.label, direction: "rtl", size: N.value.drawerWidth ? N.value.drawerWidth : n(F).drawerWidth ? n(F).drawerWidth : "50%", onClose: x }, { header: r(({ close: e2, titleId: t3, titleClass: o3 }) => [i("h4", { id: t3, class: u(o3) }, c(y.value.label), 11, v)]), default: r(() => [(l(), a(d(n(F).configComponent), { ref_key: "configComponentRef", ref: C, logicFlowInstance: t2.logicFlowInstance, currentNode: t2.currentNode, properties: h.value, service: t2.service, pageContext: t2.pageContext, onFullScreen: j }, null, 40, ["logicFlowInstance", "currentNode", "properties", "service", "pageContext"]))]), _: 1 }, 8, ["modelValue", "with-header", "title", "size"]);
31
+ return a(), l(p2, { modelValue: m.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => m.value = e2), "append-to-body": false, "close-on-press-escape": false, "destroy-on-close": "", "with-header": N.value.withHeader, "modal-class": "el-overlay", modal: true, title: y.value.label, direction: "rtl", size: N.value.drawerWidth ? N.value.drawerWidth : n(F).drawerWidth ? n(F).drawerWidth : "50%", onClose: x }, { header: r(({ close: e2, titleId: t3, titleClass: o3 }) => [i("h4", { id: t3, class: u(o3) }, c(y.value.label), 11, v)]), default: r(() => [(a(), l(d(n(F).configComponent), { ref_key: "configComponentRef", ref: C, logicFlowInstance: t2.logicFlowInstance, currentNode: t2.currentNode, properties: h.value, service: t2.service, pageContext: t2.pageContext, onFullScreen: j }, null, 40, ["logicFlowInstance", "currentNode", "properties", "service", "pageContext"]))]), _: 1 }, 8, ["modelValue", "with-header", "title", "size"]);
32
32
  };
33
33
  } });
34
34
  export {
@@ -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, openBlock as b, createElementBlock as f, createVNode as w, withCtx as g, toDisplayString as V, createBlock as h, Fragment as k, createCommentVNode as _, 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,14 +49,14 @@ 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 b(), f("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 ? (b(), h(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"])) : (b(), f("span", E, V(e2.row.name), 1))]), _: 1 }), w(N, { prop: "alias", width: "110", label: "别名" }, { default: g((e2) => [e2.row.$editing ? (b(), f(k, { key: 1 }, [e2.row.isArrayElement ? _("", true) : (b(), h(I, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (b(), f("span", A, V(e2.row.alias), 1))]), _: 1 }), w(N, { prop: "type", width: "90", label: "类型" }, { default: g((e2) => [e2.row.$editing ? (b(), h(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))]), _: 1 }, 8, ["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)])]), _: 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(() => [(b(), f(k, null, x(q, (e3) => w(P, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (b(), f("span", R, V(e2.row.type), 1))]), _: 1 }), w(N, { prop: "defaultValue", label: "默认值", width: "160" }, { default: g((e2) => [e2.row.isArrayElement ? _("", true) : (b(), h(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 })]), default: g((e2) => [w(Y, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: g(() => [w(X, null, { default: g(() => ["object" === e2.row.type ? (b(), h(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("添加下级节点", -1)])]), _: 1 }, 8, ["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)])]), _: 1 }, 8, ["onClick"])) : _("", true), e2.row.isArrayElement ? _("", true) : (b(), h(W, { key: 1, onClick: (l2) => {
60
60
  return e2.$index, t2 = e2.row, void F(M.service.variables, t2);
61
61
  var t2;
62
62
  } }, { default: g(() => [...O2[9] || (O2[9] = [C("添加相邻节点", -1)])]), _: 1 }, 8, ["onClick"]))]), _: 2 }, 1024)]), default: g(() => [w(S, { type: "primary", link: "", size: "small" }, { default: g(() => [...O2[7] || (O2[7] = [C(" 添加 ", -1)])]), _: 1 })]), _: 2 }, 1024), w(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
@@ -9,7 +9,7 @@ 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";
12
+ import { defineComponent as m, openBlock as d, createBlock 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
13
  import k from "../common/components/value-set-input/value-set-input.vue.js";
14
14
  import { v4 as V } from "uuid";
15
15
  const _ = { key: 0 }, x = { key: 0 }, C = { key: 0 }, $ = m({ __name: "service-result", props: { service: { type: Object, default: () => ({ returnValues: [] }) } }, setup(m2, { expose: $2 }) {
@@ -43,17 +43,17 @@ const _ = { key: 0 }, x = { key: 0 }, C = { key: 0 }, $ = m({ __name: "service-r
43
43
  const R = () => ({ code: V(), 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
- 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) => {
46
+ return d(), p(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 ? (d(), p(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) => {
49
+ } }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(T, { prop: "alias", width: "110", label: "别名" }, { default: u((e2) => [e2.row.$editing ? (d(), y(v, { key: 1 }, [e2.row.isArrayElement ? f("", true) : (d(), p(B, { key: 0, size: "small", modelValue: e2.row.alias, "onUpdate:modelValue": (l2) => e2.row.alias = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"]))], 64)) : (d(), y("span", x, w(e2.row.alias), 1))]), _: 1 }), c(T, { prop: "type", width: "90", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(F, { key: 1, modelValue: e2.row.type, "onUpdate:modelValue": (l2) => e2.row.type = l2, onChange: (l2) => {
50
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));
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))]), _: 1 }, 8, ["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)])]), _: 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(() => [(d(), y(v, null, h(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", C, w(e2.row.type), 1))]), _: 1 }), c(T, { prop: "value", label: "值来源", width: "160" }, { default: u((e2) => [e2.row.isArrayElement ? f("", true) : (d(), p(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)])]), _: 1 })]), default: u((e2) => [c(J, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(I, null, { default: u(() => ["object" === e2.row.type ? (d(), p(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("添加下级节点", -1)])]), _: 1 }, 8, ["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] = [g("添加下级节点", -1)])]), _: 1 }, 8, ["onClick"])) : f("", true), e2.row.isArrayElement ? f("", true) : (d(), p(H, { key: 1, onClick: (l2) => {
57
57
  return e2.$index, t2 = e2.row, void q(z.service.returnValues, t2);
58
58
  var t2;
59
59
  } }, { default: u(() => [...E2[3] || (E2[3] = [g("添加相邻节点", -1)])]), _: 1 }, 8, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(G, { type: "primary", link: "", size: "small" }, { default: u(() => [...E2[1] || (E2[1] = [g(" 添加 ", -1)])]), _: 1 })]), _: 2 }, 1024), c(G, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
@@ -11,7 +11,7 @@ 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";
14
+ import { defineComponent as p, openBlock as u, createBlock 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
15
  import { v4 as g } from "uuid";
16
16
  const _ = p({ __name: "request-params", props: { entityData: { type: Array, default: () => [] } }, setup(p2) {
17
17
  const _2 = p2, A = ["string", "int", "number", "boolean", "array", "object"], E = () => {
@@ -32,14 +32,14 @@ const _ = p({ __name: "request-params", props: { entityData: { type: Array, defa
32
32
  };
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
- 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) => {
35
+ return u(), c(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
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);
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))]), _: 1 }, 8, ["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)])]), _: 1 }, 8, ["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)])]), _: 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(() => [(u(), b(h, null, v(A, (e3) => w($, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["disabled", "modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), w(T, { align: "center", prop: "value", label: "值" }, { default: y((e2) => ["string" === e2.row.type ? (u(), c(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 ? (u(), c(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 ? (u(), c(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 ? (u(), c(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)])]), _: 1 }, 8, ["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)])]), _: 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 ? (u(), c(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("添加下级节点", -1)])]), _: 1 }, 8, ["onClick"])) : V("", true), e2.row.isArrayElement ? V("", true) : (c(), u(G, { key: 1, onClick: (l2) => {
42
+ })(e2.$index, e2.row) }, { default: y(() => [...x[4] || (x[4] = [k("添加下级节点", -1)])]), _: 1 }, 8, ["onClick"])) : V("", true), e2.row.isArrayElement ? V("", true) : (u(), c(G, { key: 1, onClick: (l2) => {
43
43
  return e2.$index, t2 = e2.row, void z(_2.entityData, t2);
44
44
  var t2;
45
45
  } }, { default: y(() => [...x[5] || (x[5] = [k("添加相邻节点", -1)])]), _: 1 }, 8, ["onClick"]))]), _: 2 }, 1024)]), default: y(() => [w(B, { type: "primary", link: "", size: "small" }, { default: y(() => [...x[3] || (x[3] = [k(" 添加 ", -1)])]), _: 1 })]), _: 2 }, 1024), w(B, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
@@ -8,7 +8,7 @@ import "element-plus/es/components/tabs/style/css";
8
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
- 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";
11
+ import { defineComponent as r, ref as i, watch as m, nextTick as p, openBlock as d, createBlock 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
12
  import { EditorView as h, basicSetup as J } from "codemirror";
13
13
  import { json as _ } from "@codemirror/lang-json";
14
14
  import { EditorState as j } from "@codemirror/state";
@@ -71,7 +71,7 @@ const q = { class: "dialog-footer" }, B = r({ __name: "service-test", props: { m
71
71
  }, X = () => JSON.stringify({ tableCode: "test_servicflow_query" });
72
72
  return (i2, m2) => {
73
73
  const p2 = n, h2 = o, J2 = a, _2 = 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 }), v(x3, { type: "primary", onClick: M }, { default: f(() => [...m2[6] || (m2[6] = [V(" 运行 ", -1)])]), _: 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"]);
74
+ return d(), c(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 }), v(x3, { type: "primary", onClick: M }, { default: f(() => [...m2[6] || (m2[6] = [V(" 运行 ", -1)])]), _: 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"]);
75
75
  };
76
76
  } });
77
77
  export {
@@ -9,7 +9,7 @@ import "element-plus/es/components/form/style/css";
9
9
  import "element-plus/es/components/checkbox/style/css";
10
10
  import "element-plus/es/components/form-item/style/css";
11
11
  import "element-plus/es/components/input/style/css";
12
- import { defineComponent as r, ref as p, createBlock as c, openBlock as m, withCtx as d, createCommentVNode as v, createElementVNode as g, createVNode as f, createTextVNode as y } from "vue";
12
+ import { defineComponent as r, ref as p, openBlock as c, createBlock as m, withCtx as d, createVNode as v, createCommentVNode as g, createElementVNode as f, createTextVNode as y } from "vue";
13
13
  import { isDeepEqual as b } from "../common/util/node-util.js";
14
14
  import h from "agilebuilder-ui/src/utils/request";
15
15
  import { ElMessage as S } from "element-plus";
@@ -36,10 +36,10 @@ const w = { style: { padding: "10px", "text-align": "center" } }, z = r({ __name
36
36
  j.value = false;
37
37
  } }), (r3, p2) => {
38
38
  const b2 = a, h2 = t, S2 = o, z3 = l, _2 = s, x2 = u, V2 = n, A = i, F = e;
39
- return m(), c(F, { modelValue: j.value, "onUpdate:modelValue": p2[5] || (p2[5] = (e2) => j.value = e2), "append-to-body": "", title: "保存服务", width: "50%" }, { default: d(() => [D.value ? (m(), c(z3, { key: 0, "label-width": "auto" }, { default: d(() => [f(h2, { label: "" }, { default: d(() => [f(b2, { size: "small", modelValue: k.value, "onUpdate:modelValue": p2[0] || (p2[0] = (e2) => k.value = e2), rows: 4, type: "textarea", placeholder: "请填写修改日志" }, null, 8, ["modelValue"])]), _: 1 }), f(h2, { label: "" }, { default: d(() => [f(S2, { disabled: !$.value || 0 === $.value.length, modelValue: P.value, "onUpdate:modelValue": p2[1] || (p2[1] = (e2) => P.value = e2), onChange: T, label: "上次修改记录", size: "small" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 })) : v("", true), g("div", w, [f(_2, { type: "default", size: "small", onClick: E }, { default: d(() => [...p2[6] || (p2[6] = [y("返回", -1)])]), _: 1 }), D.value ? (m(), c(_2, { key: 0, size: "small", type: "primary", onClick: I }, { default: d(() => [...p2[7] || (p2[7] = [y(" 保存 ", -1)])]), _: 1 })) : v("", true)]), f(V2, { data: $.value, border: "", size: "small", "max-height": "350" }, { default: d(() => [f(x2, { align: "center", type: "index", width: "55", label: "序号" }), f(x2, { align: "left", prop: "description" }, { header: d(() => [...p2[8] || (p2[8] = [g("div", { style: { "text-align": "center" } }, "修改记录", -1)])]), _: 1 }), f(x2, { align: "center", prop: "creatorName", label: "修改人", width: "100" }), f(x2, { align: "center", prop: "createdTime", width: "180", label: "修改时间", formatter: (e2) => ((e3) => {
39
+ return c(), m(F, { modelValue: j.value, "onUpdate:modelValue": p2[5] || (p2[5] = (e2) => j.value = e2), "append-to-body": "", title: "保存服务", width: "50%" }, { default: d(() => [D.value ? (c(), m(z3, { key: 0, "label-width": "auto" }, { default: d(() => [v(h2, { label: "" }, { default: d(() => [v(b2, { size: "small", modelValue: k.value, "onUpdate:modelValue": p2[0] || (p2[0] = (e2) => k.value = e2), rows: 4, type: "textarea", placeholder: "请填写修改日志" }, null, 8, ["modelValue"])]), _: 1 }), v(h2, { label: "" }, { default: d(() => [v(S2, { disabled: !$.value || 0 === $.value.length, modelValue: P.value, "onUpdate:modelValue": p2[1] || (p2[1] = (e2) => P.value = e2), onChange: T, label: "上次修改记录", size: "small" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 })) : g("", true), f("div", w, [v(_2, { type: "default", size: "small", onClick: E }, { default: d(() => [...p2[6] || (p2[6] = [y("返回", -1)])]), _: 1 }), D.value ? (c(), m(_2, { key: 0, size: "small", type: "primary", onClick: I }, { default: d(() => [...p2[7] || (p2[7] = [y(" 保存 ", -1)])]), _: 1 })) : g("", true)]), v(V2, { data: $.value, border: "", size: "small", "max-height": "350" }, { default: d(() => [v(x2, { align: "center", type: "index", width: "55", label: "序号" }), v(x2, { align: "left", prop: "description" }, { header: d(() => [...p2[8] || (p2[8] = [f("div", { style: { "text-align": "center" } }, "修改记录", -1)])]), _: 1 }), v(x2, { align: "center", prop: "creatorName", label: "修改人", width: "100" }), v(x2, { align: "center", prop: "createdTime", width: "180", label: "修改时间", formatter: (e2) => ((e3) => {
40
40
  let l2 = new Date(e3);
41
41
  return `${l2.getFullYear()}-${("0" + (l2.getMonth() + 1)).slice(-2)}-${("0" + l2.getDate()).slice(-2)} ${("0" + l2.getHours()).slice(-2)}:${("0" + l2.getMinutes()).slice(-2)}:${("0" + l2.getSeconds()).slice(-2)}`;
42
- })(e2.createdTime) }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), f(A, { "current-page": C.value.currentPage, "onUpdate:currentPage": p2[2] || (p2[2] = (e2) => C.value.currentPage = e2), "page-size": C.value.pageSize, "onUpdate:pageSize": p2[3] || (p2[3] = (e2) => C.value.pageSize = e2), onChange: p2[4] || (p2[4] = (e2) => O({ beforeSave: true })), layout: "total, sizes, prev, pager, next, jumper", total: U.value, style: { margin: "10px 0", "justify-content": "center" } }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
42
+ })(e2.createdTime) }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), v(A, { "current-page": C.value.currentPage, "onUpdate:currentPage": p2[2] || (p2[2] = (e2) => C.value.currentPage = e2), "page-size": C.value.pageSize, "onUpdate:pageSize": p2[3] || (p2[3] = (e2) => C.value.pageSize = e2), onChange: p2[4] || (p2[4] = (e2) => O({ beforeSave: true })), layout: "total, sizes, prev, pager, next, jumper", total: U.value, style: { margin: "10px 0", "justify-content": "center" } }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
43
43
  };
44
44
  } });
45
45
  export {
@@ -4,7 +4,7 @@ import "element-plus/es/components/drawer/style/css";
4
4
  import "element-plus/es/components/timeline/style/css";
5
5
  import "element-plus/es/components/skeleton/style/css";
6
6
  import "element-plus/es/components/skeleton-item/style/css";
7
- import { defineComponent as t, ref as n, computed as i, onMounted as r, createElementBlock as s, openBlock as u, Fragment as c, createElementVNode as v, createVNode as p, withDirectives as d, normalizeStyle as f, vShow as g, withCtx as m, nextTick as w } from "vue";
7
+ import { defineComponent as t, ref as n, computed as i, onMounted as r, openBlock as s, createElementBlock as u, Fragment as c, createElementVNode as v, withDirectives as p, createVNode as d, normalizeStyle as f, vShow as g, withCtx as m, nextTick as w } from "vue";
8
8
  import y from "./service-node-config.vue.js";
9
9
  import S from "./service-update-log.vue.js";
10
10
  import x from "./service-flow-tool.vue.js";
@@ -99,7 +99,7 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
99
99
  K.value && (K.value.clearData(), K.value = null, Q.value = null, W.value = { code: "", name: "" }, q.value = false, X.value = {});
100
100
  } }), (n2, i2) => {
101
101
  const r2 = l, w2 = e, b3 = o, h2 = a;
102
- return u(), s(c, null, [v("div", _, [d(v("div", B, [p(x, { cloneService: W.value, lf: K.value, pageContext: t2.pageContext, onShowJson: se, onShowServiceLog: re, onSaveSevice: ne }, null, 8, ["cloneService", "lf", "pageContext"]), v("div", I, [v("div", { style: f($.value), ref_key: "logicFlowContainer", ref: A, class: "container" }, null, 4)], 512)], 512), [[g, K.value]]), d(v("div", { style: f([{ "padding-top": "10px", "box-sizing": "border-box" }, $.value]), ref_key: "emptyContainer", ref: H }, [v("div", z, [p(w2, { style: { "--el-skeleton-circle-size": "100px" } }, { template: m(() => [p(r2, { variant: "circle" }), p(r2, { variant: "rect", style: { width: "100px", height: "100px", margin: "0 50px" } }), i2[2] || (i2[2] = v("div", { class: "triangle" }, null, -1))]), _: 1 }), p(b3, { style: { "max-width": "600px" } })])], 4), [[g, !K.value]]), p(h2, { modelValue: q.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => q.value = e2), "append-to-body": true, "destroy-on-close": "", "modal-class": "el-overlay", modal: true, title: "服务参数", onClose: Z, "before-close": Y, direction: "rtl", size: "50%" }, { default: m(() => [p(N, { service: W.value }, null, 8, ["service"])]), _: 1 }, 8, ["modelValue"])], 512), p(S, { ref_key: "serviceUpdateLogRef", ref: P, onSave: ie, lf: K.value, cloneService: W.value }, null, 8, ["lf", "cloneService"]), p(y, { logicFlowInstance: t2.logicFlowInstance, currentNode: X.value, "onUpdate:currentNode": i2[1] || (i2[1] = (e2) => X.value = e2), sourceService: Q.value, service: W.value, pageContext: t2.pageContext, ref_key: "serviceNodeConfigRef", ref: E }, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])], 64);
102
+ return s(), u(c, null, [v("div", _, [p(v("div", B, [d(x, { cloneService: W.value, lf: K.value, pageContext: t2.pageContext, onShowJson: se, onShowServiceLog: re, onSaveSevice: ne }, null, 8, ["cloneService", "lf", "pageContext"]), v("div", I, [v("div", { style: f($.value), ref_key: "logicFlowContainer", ref: A, class: "container" }, null, 4)], 512)], 512), [[g, K.value]]), p(v("div", { style: f([{ "padding-top": "10px", "box-sizing": "border-box" }, $.value]), ref_key: "emptyContainer", ref: H }, [v("div", z, [d(w2, { style: { "--el-skeleton-circle-size": "100px" } }, { template: m(() => [d(r2, { variant: "circle" }), d(r2, { variant: "rect", style: { width: "100px", height: "100px", margin: "0 50px" } }), i2[2] || (i2[2] = v("div", { class: "triangle" }, null, -1))]), _: 1 }), d(b3, { style: { "max-width": "600px" } })])], 4), [[g, !K.value]]), d(h2, { modelValue: q.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => q.value = e2), "append-to-body": true, "destroy-on-close": "", "modal-class": "el-overlay", modal: true, title: "服务参数", onClose: Z, "before-close": Y, direction: "rtl", size: "50%" }, { default: m(() => [d(N, { service: W.value }, null, 8, ["service"])]), _: 1 }, 8, ["modelValue"])], 512), d(S, { ref_key: "serviceUpdateLogRef", ref: P, onSave: ie, lf: K.value, cloneService: W.value }, null, 8, ["lf", "cloneService"]), d(y, { logicFlowInstance: t2.logicFlowInstance, currentNode: X.value, "onUpdate:currentNode": i2[1] || (i2[1] = (e2) => X.value = e2), sourceService: Q.value, service: W.value, pageContext: t2.pageContext, ref_key: "serviceNodeConfigRef", ref: E }, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])], 64);
103
103
  };
104
104
  } });
105
105
  export {
@@ -4,13 +4,13 @@ import "element-plus/es/components/collapse/style/css";
4
4
  import "element-plus/es/components/collapse-item/style/css";
5
5
  import "element-plus/es/components/row/style/css";
6
6
  import "element-plus/es/components/col/style/css";
7
- import { defineComponent as n, ref as o, createBlock as m, openBlock as p, withCtx as a, createElementBlock as i, Fragment as u, renderList as r, unref as c, createElementVNode as d, createVNode as f, toDisplayString as y, createTextVNode as g } from "vue";
7
+ import { defineComponent as n, ref as o, openBlock as m, createBlock as p, withCtx as a, createElementBlock as i, Fragment as u, renderList as r, unref as c, createElementVNode as d, createVNode as f, toDisplayString as y, createTextVNode as g } from "vue";
8
8
  import { serviceComponentGroups as v } from "../service-components/index.js";
9
9
  const x = ["src"], _ = { style: { padding: "8px 0px 0px 0px" } }, b = ["title", "onMousedown"], h = ["src"], w = n({ __name: "component-panel", emits: ["drag-node"], setup(n2, { emit: w2 }) {
10
10
  const V = w2, M = o(v[0].name);
11
11
  return (n3, o2) => {
12
12
  const w3 = t, j = s, k = l, U = e;
13
- return p(), m(U, { modelValue: M.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e2) => M.value = e2), style: { "margin-top": "6px" } }, { default: a(() => [(p(true), i(u, null, r(c(v), (e2, l2) => (p(), m(k, { key: l2, name: e2.name, class: "serviceflow-attr-group-header" }, { title: a(() => [d("img", { src: e2.icon, style: { height: "18px" } }, null, 8, x), o2[1] || (o2[1] = g("   ", -1)), d("b", null, y(e2.label), 1)]), default: a(() => [d("div", _, [f(j, { gutter: 14 }, { default: a(() => [(p(true), i(u, null, r(e2.items, (e3, l3) => (p(), m(w3, { span: 8 }, { default: a(() => [d("div", { class: "serviceflow-item", title: e3.label, onMousedown: (l4) => function(e4) {
13
+ return m(), p(U, { modelValue: M.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e2) => M.value = e2), style: { "margin-top": "6px" } }, { default: a(() => [(m(true), i(u, null, r(c(v), (e2, l2) => (m(), p(k, { key: l2, name: e2.name, class: "serviceflow-attr-group-header" }, { title: a(() => [d("img", { src: e2.icon, style: { height: "18px" } }, null, 8, x), o2[1] || (o2[1] = g("   ", -1)), d("b", null, y(e2.label), 1)]), default: a(() => [d("div", _, [f(j, { gutter: 14 }, { default: a(() => [(m(true), i(u, null, r(e2.items, (e3, l3) => (m(), p(w3, { span: 8 }, { default: a(() => [d("div", { class: "serviceflow-item", title: e3.label, onMousedown: (l4) => function(e4) {
14
14
  e4.type, V("drag-node", e4);
15
15
  }(e3) }, [d("div", null, [d("img", { src: e3.icon, style: { height: "16px" } }, null, 8, h)]), d("span", null, y(e3.label), 1)], 40, b)]), _: 2 }, 1024))), 256))]), _: 2 }, 1024)])]), _: 2 }, 1032, ["name"]))), 128))]), _: 1 }, 8, ["modelValue"]);
16
16
  };
@@ -9,7 +9,7 @@ import "element-plus/es/components/row/style/css";
9
9
  import "element-plus/es/components/col/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/icon/style/css";
12
- import { defineComponent as d, ref as r, createElementBlock as p, openBlock as c, createVNode as m, withDirectives as v, withCtx as f, unref as y, createElementVNode as g, createTextVNode as h, createBlock as b, toDisplayString as w, createCommentVNode as C, vShow as _ } from "vue";
12
+ import { defineComponent as d, ref as r, openBlock as p, createElementBlock as c, createVNode as m, withCtx as v, unref as f, createElementVNode as y, createTextVNode as g, createBlock as h, toDisplayString as b, createCommentVNode as w, withDirectives as C, vShow as _ } from "vue";
13
13
  import { Search as k, Plus as V, Menu as x, Promotion as E } from "@element-plus/icons-vue";
14
14
  import { v4 as N } from "uuid";
15
15
  import U from "agilebuilder-ui/src/utils/request";
@@ -92,7 +92,7 @@ const I = { class: "custom-tree-node" }, P = { style: { "margin-left": "5px", "l
92
92
  };
93
93
  return (r2, N2) => {
94
94
  const U2 = t, O2 = a, S2 = l, A2 = e, T2 = n, $3 = o, J2 = u, M2 = i, L2 = s;
95
- return c(), p("div", null, [m(A2, { style: { "margin-bottom": "10px" } }, { default: f(() => [m(S2, { span: 24 }, { default: f(() => [m(O2, { modelValue: j.value, "onUpdate:modelValue": N2[0] || (N2[0] = (e2) => j.value = e2), placeholder: "搜索" }, { suffix: f(() => [m(U2, null, { default: f(() => [m(y(k))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), m(A2, null, { default: f(() => [m(S2, { span: 24 }, { default: f(() => [m($3, { effect: "dark", content: "导入", placement: "top" }, { default: f(() => [m(T2, { type: "primary", onClick: pe }, { default: f(() => [g("input", { ref_key: "processFile", ref: re, accept: ".zip", name: "processFile", style: { display: "none" }, type: "file", onChange: ce }, null, 544), N2[11] || (N2[11] = h(" 导入 ", -1))]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "导出", placement: "top" }, { default: f(() => [m(T2, { type: "primary", onClick: de }, { default: f(() => [...N2[12] || (N2[12] = [h("导出", -1)])]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "添加根菜单", placement: "top" }, { default: f(() => [m(T2, { type: "primary", icon: y(V), onClick: le }, null, 8, ["icon"])]), _: 1 })]), _: 1 })]), _: 1 }), m(J2, { style: { "margin-top": "10px" }, ref_key: "serviceTreeRef", ref: F, data: d2.serviceTreeData, "node-key": "id", props: D, "show-checkbox": "", "expand-on-click-node": false, "default-expand-all": true, "highlight-current": "", onNodeClick: ye, onNodeContextmenu: Z, onCheckChange: ue }, { default: f(({ node: e2, data: l2 }) => [g("span", I, ["MENU" === l2.type ? (c(), b(U2, { key: 0, size: 16 }, { default: f(() => [m(y(x))]), _: 1 })) : (c(), b(U2, { key: 1, size: 16 }, { default: f(() => [m(y(E))]), _: 1 })), g("span", P, w(e2.label), 1)])]), _: 1 }, 8, ["data"]), m(L2, { modelValue: H.value, "onUpdate:modelValue": N2[4] || (N2[4] = (e2) => H.value = e2), "append-to-body": true, title: "MENU" === K.value ? "菜单" : "服务", width: "500" }, { footer: f(() => [g("div", z, [m(T2, { type: "default", size: "mini", onClick: N2[3] || (N2[3] = (e2) => H.value = false) }, { default: f(() => [...N2[13] || (N2[13] = [h("返回", -1)])]), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: me }, { default: f(() => [...N2[14] || (N2[14] = [h(" 确定 ", -1)])]), _: 1 })])]), default: f(() => ["SERVICE" === K.value ? (c(), b(M2, { key: 0, label: "自定义编码:", required: true }, { default: f(() => [m(O2, { disabled: Q.value.id, modelValue: Q.value.customCode, "onUpdate:modelValue": N2[1] || (N2[1] = (e2) => Q.value.customCode = e2) }, null, 8, ["disabled", "modelValue"])]), _: 1 })) : C("", true), m(M2, { label: "          名称:", required: true }, { default: f(() => [m(O2, { modelValue: Q.value.name, "onUpdate:modelValue": N2[2] || (N2[2] = (e2) => Q.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue", "title"]), m(L2, { modelValue: X.value, "onUpdate:modelValue": N2[8] || (N2[8] = (e2) => X.value = e2), "append-to-body": true, title: "复制服务", width: "500" }, { footer: f(() => [g("div", R, [m(T2, { type: "default", size: "mini", onClick: N2[7] || (N2[7] = (e2) => X.value = false) }, { default: f(() => [...N2[15] || (N2[15] = [h("返回", -1)])]), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: he }, { default: f(() => [...N2[16] || (N2[16] = [h(" 确定 ", -1)])]), _: 1 })])]), default: f(() => [m(M2, { label: "自定义编码:", required: true }, { default: f(() => [m(O2, { modelValue: Y.value.customCode, "onUpdate:modelValue": N2[5] || (N2[5] = (e2) => Y.value.customCode = e2) }, null, 8, ["modelValue"])]), _: 1 }), m(M2, { label: "          名称:", required: true }, { default: f(() => [m(O2, { modelValue: Y.value.name, "onUpdate:modelValue": N2[6] || (N2[6] = (e2) => Y.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), v(g("div", null, [g("ul", { ref_key: "contxtMenuRef", ref: q, class: "context-menu" }, ["MENU" === G.value.type ? (c(), p("li", { key: 0, tabindex: "-1", class: "menu__item", onClick: N2[9] || (N2[9] = (e2) => ae("MENU")) }, [...N2[17] || (N2[17] = [g("span", null, "添加菜单", -1)])])) : C("", true), "MENU" === G.value.type ? (c(), p("li", { key: 1, tabindex: "-1", class: "menu__item", onClick: N2[10] || (N2[10] = (e2) => ae("SERVICE")) }, [...N2[18] || (N2[18] = [g("span", null, "添加服务", -1)])])) : C("", true), W.value.code !== G.value.code ? (c(), p("li", { key: 2, tabindex: "-1", class: "menu__item", onClick: te }, [...N2[19] || (N2[19] = [g("span", null, "修改", -1)])])) : C("", true), "SERVICE" === G.value.type ? (c(), p("li", { key: 3, tabindex: "-1", class: "menu__item", onClick: ge }, [...N2[20] || (N2[20] = [g("span", null, "复制", -1)])])) : C("", true), g("li", { tabindex: "-1", class: "menu__item", onClick: ve }, [...N2[21] || (N2[21] = [g("span", null, "删除", -1)])])], 512)], 512), [[_, B.value && G.value]])]);
95
+ return p(), c("div", null, [m(A2, { style: { "margin-bottom": "10px" } }, { default: v(() => [m(S2, { span: 24 }, { default: v(() => [m(O2, { modelValue: j.value, "onUpdate:modelValue": N2[0] || (N2[0] = (e2) => j.value = e2), placeholder: "搜索" }, { suffix: v(() => [m(U2, null, { default: v(() => [m(f(k))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), m(A2, null, { default: v(() => [m(S2, { span: 24 }, { default: v(() => [m($3, { effect: "dark", content: "导入", placement: "top" }, { default: v(() => [m(T2, { type: "primary", onClick: pe }, { default: v(() => [y("input", { ref_key: "processFile", ref: re, accept: ".zip", name: "processFile", style: { display: "none" }, type: "file", onChange: ce }, null, 544), N2[11] || (N2[11] = g(" 导入 ", -1))]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "导出", placement: "top" }, { default: v(() => [m(T2, { type: "primary", onClick: de }, { default: v(() => [...N2[12] || (N2[12] = [g("导出", -1)])]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "添加根菜单", placement: "top" }, { default: v(() => [m(T2, { type: "primary", icon: f(V), onClick: le }, null, 8, ["icon"])]), _: 1 })]), _: 1 })]), _: 1 }), m(J2, { style: { "margin-top": "10px" }, ref_key: "serviceTreeRef", ref: F, data: d2.serviceTreeData, "node-key": "id", props: D, "show-checkbox": "", "expand-on-click-node": false, "default-expand-all": true, "highlight-current": "", onNodeClick: ye, onNodeContextmenu: Z, onCheckChange: ue }, { default: v(({ node: e2, data: l2 }) => [y("span", I, ["MENU" === l2.type ? (p(), h(U2, { key: 0, size: 16 }, { default: v(() => [m(f(x))]), _: 1 })) : (p(), h(U2, { key: 1, size: 16 }, { default: v(() => [m(f(E))]), _: 1 })), y("span", P, b(e2.label), 1)])]), _: 1 }, 8, ["data"]), m(L2, { modelValue: H.value, "onUpdate:modelValue": N2[4] || (N2[4] = (e2) => H.value = e2), "append-to-body": true, title: "MENU" === K.value ? "菜单" : "服务", width: "500" }, { footer: v(() => [y("div", z, [m(T2, { type: "default", size: "mini", onClick: N2[3] || (N2[3] = (e2) => H.value = false) }, { default: v(() => [...N2[13] || (N2[13] = [g("返回", -1)])]), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: me }, { default: v(() => [...N2[14] || (N2[14] = [g(" 确定 ", -1)])]), _: 1 })])]), default: v(() => ["SERVICE" === K.value ? (p(), h(M2, { key: 0, label: "自定义编码:", required: true }, { default: v(() => [m(O2, { disabled: Q.value.id, modelValue: Q.value.customCode, "onUpdate:modelValue": N2[1] || (N2[1] = (e2) => Q.value.customCode = e2) }, null, 8, ["disabled", "modelValue"])]), _: 1 })) : w("", true), m(M2, { label: "          名称:", required: true }, { default: v(() => [m(O2, { modelValue: Q.value.name, "onUpdate:modelValue": N2[2] || (N2[2] = (e2) => Q.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue", "title"]), m(L2, { modelValue: X.value, "onUpdate:modelValue": N2[8] || (N2[8] = (e2) => X.value = e2), "append-to-body": true, title: "复制服务", width: "500" }, { footer: v(() => [y("div", R, [m(T2, { type: "default", size: "mini", onClick: N2[7] || (N2[7] = (e2) => X.value = false) }, { default: v(() => [...N2[15] || (N2[15] = [g("返回", -1)])]), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: he }, { default: v(() => [...N2[16] || (N2[16] = [g(" 确定 ", -1)])]), _: 1 })])]), default: v(() => [m(M2, { label: "自定义编码:", required: true }, { default: v(() => [m(O2, { modelValue: Y.value.customCode, "onUpdate:modelValue": N2[5] || (N2[5] = (e2) => Y.value.customCode = e2) }, null, 8, ["modelValue"])]), _: 1 }), m(M2, { label: "          名称:", required: true }, { default: v(() => [m(O2, { modelValue: Y.value.name, "onUpdate:modelValue": N2[6] || (N2[6] = (e2) => Y.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), C(y("div", null, [y("ul", { ref_key: "contxtMenuRef", ref: q, class: "context-menu" }, ["MENU" === G.value.type ? (p(), c("li", { key: 0, tabindex: "-1", class: "menu__item", onClick: N2[9] || (N2[9] = (e2) => ae("MENU")) }, [...N2[17] || (N2[17] = [y("span", null, "添加菜单", -1)])])) : w("", true), "MENU" === G.value.type ? (p(), c("li", { key: 1, tabindex: "-1", class: "menu__item", onClick: N2[10] || (N2[10] = (e2) => ae("SERVICE")) }, [...N2[18] || (N2[18] = [y("span", null, "添加服务", -1)])])) : w("", true), W.value.code !== G.value.code ? (p(), c("li", { key: 2, tabindex: "-1", class: "menu__item", onClick: te }, [...N2[19] || (N2[19] = [y("span", null, "修改", -1)])])) : w("", true), "SERVICE" === G.value.type ? (p(), c("li", { key: 3, tabindex: "-1", class: "menu__item", onClick: ge }, [...N2[20] || (N2[20] = [y("span", null, "复制", -1)])])) : w("", true), y("li", { tabindex: "-1", class: "menu__item", onClick: ve }, [...N2[21] || (N2[21] = [y("span", null, "删除", -1)])])], 512)], 512), [[_, B.value && G.value]])]);
96
96
  };
97
97
  } });
98
98
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, computed as s, createElementBlock as l, openBlock as o, normalizeStyle as t, createElementVNode as r, normalizeClass as c, createBlock as i } from "vue";
1
+ import { defineComponent as e, ref as a, computed as s, openBlock as l, createElementBlock as o, normalizeStyle as t, createElementVNode as r, normalizeClass as c, createBlock as i } from "vue";
2
2
  import n from "@logicflow/core";
3
3
  import v from "./service-list.vue.js";
4
4
  import m from "./component-panel.vue.js";
@@ -14,7 +14,7 @@ const d = { class: "amb-assembly-header" }, p = { class: "amb-assembly-header-ty
14
14
  }, C = () => {
15
15
  y2("load-tree-data");
16
16
  };
17
- return (a2, s2) => (o(), l("div", { class: "amb-design-assembly-content", ref: "ambDesignAssemblyContent", style: t(g.value) }, [r("div", d, [r("div", p, [r("label", { class: c({ selected: "serviceFlowList" === b.value }), onClick: s2[0] || (s2[0] = (e3) => b.value = "serviceFlowList") }, " 服务列表 ", 2), r("label", { class: c({ selected: "component" === b.value }), onClick: s2[1] || (s2[1] = (e3) => b.value = "component") }, " 组件库 ", 2)])]), r("div", u, ["serviceFlowList" === b.value ? (o(), i(v, { key: 0, serviceTreeData: e2.serviceTreeData, onLoadTreeData: C, onServiceClick: k, onClearFlowCanvas: D }, null, 8, ["serviceTreeData"])) : (o(), i(m, { key: 1, onDragNode: w }))])], 4));
17
+ return (a2, s2) => (l(), o("div", { class: "amb-design-assembly-content", ref: "ambDesignAssemblyContent", style: t(g.value) }, [r("div", d, [r("div", p, [r("label", { class: c({ selected: "serviceFlowList" === b.value }), onClick: s2[0] || (s2[0] = (e3) => b.value = "serviceFlowList") }, " 服务列表 ", 2), r("label", { class: c({ selected: "component" === b.value }), onClick: s2[1] || (s2[1] = (e3) => b.value = "component") }, " 组件库 ", 2)])]), r("div", u, ["serviceFlowList" === b.value ? (l(), i(v, { key: 0, serviceTreeData: e2.serviceTreeData, onLoadTreeData: C, onServiceClick: k, onClearFlowCanvas: D }, null, 8, ["serviceTreeData"])) : (l(), i(m, { key: 1, onDragNode: w }))])], 4));
18
18
  } });
19
19
  export {
20
20
  y as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "2.3.25-flow1",
3
+ "version": "2.3.26-flow1",
4
4
  "description": "AgileBuilder Service Flow Designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -61,7 +61,7 @@
61
61
  "@logicflow/layout": "1.2.0-alpha.16",
62
62
  "@uiw/codemirror-themes-all": "^4.21.25",
63
63
  "@vueuse/core": "^10.9.0",
64
- "agilebuilder-ui": "1.1.72",
64
+ "agilebuilder-ui": "1.1.71",
65
65
  "codemirror": "^6.0.1",
66
66
  "nprogress": "^0.2.0",
67
67
  "pinia": "^2.1.7",