service-flow-designer 2.3.30-tmp1-flow1 → 2.3.31-sit2-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 (27) hide show
  1. package/dist/es/designer/common/components/datatable-select.vue.js +1 -1
  2. package/dist/es/designer/common/components/datatable-select.vue2.js +7 -7
  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 +1 -1
  6. package/dist/es/designer/desginer-index.vue.js +1 -1
  7. package/dist/es/designer/desginer-index.vue2.js +12 -12
  8. package/dist/es/designer/service-components/index.d.ts +1 -2
  9. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +4 -4
  10. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +4 -4
  11. package/dist/es/designer/service-flow-view/flow-util.js +4 -7
  12. package/dist/es/designer/service-flow-view/service-flow-tool.vue.d.ts +2 -0
  13. package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +1 -1
  14. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +23 -21
  15. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
  16. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +1 -4
  17. package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
  18. package/dist/es/designer/service-flow-view/view-index.vue2.js +19 -20
  19. package/dist/es/designer/service-panel/component-panel.vue.d.ts +15 -3
  20. package/dist/es/designer/service-panel/component-panel.vue.js +1 -1
  21. package/dist/es/designer/service-panel/component-panel.vue2.js +16 -10
  22. package/dist/es/designer/service-panel/service-list.vue2.js +10 -10
  23. package/dist/es/designer/service-panel/service-panel.vue.d.ts +9 -0
  24. package/dist/es/designer/service-panel/service-panel.vue.js +1 -1
  25. package/dist/es/designer/service-panel/service-panel.vue2.js +13 -13
  26. package/dist/es/style.css +70 -70
  27. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import e from "./datatable-select.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = t(e, [["__scopeId", "data-v-f557a3ca"]]);
4
+ const a = t(e, [["__scopeId", "data-v-fbde4748"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as u, ElTableColumn as i, ElPagination as r } from "element-plus/es";
1
+ import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as i, ElTableColumn as u, ElPagination as r } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
4
  import "element-plus/es/components/container/style/css";
@@ -32,7 +32,7 @@ const k = { class: "dialog-footer" }, _ = p({ name: "DatatableSelect", inheritAt
32
32
  const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
33
33
  I.value.searchCode && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchCode }), I.value.searchName && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchName });
34
34
  const a2 = e2.code || P.systemCode;
35
- N.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
35
+ "dsc" !== a2 && N.post(window.$vueApp.config.globalProperties.baseAPI + "/component/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
36
36
  U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
37
37
  });
38
38
  }
@@ -57,15 +57,15 @@ const k = { class: "dialog-footer" }, _ = p({ name: "DatatableSelect", inheritAt
57
57
  e3 && e3.forEach((e4) => {
58
58
  e4.name = e4.name + "(" + e4.publishVersion + ")";
59
59
  });
60
- const l2 = e3.findIndex((e4) => e4.code === P.systemCode);
61
- $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, O.value = e3, J($.value);
60
+ let l2 = e3.findIndex((e4) => e4.code === P.systemCode);
61
+ l2 >= 0 && ($.value = JSON.parse(JSON.stringify(e3[l2])), J($.value)), A.value = e3, O.value = e3;
62
62
  });
63
63
  });
64
64
  return (p3, c2) => {
65
- const m2 = o, N2 = t, V2 = s, _3 = n, T2 = a, P2 = i, O2 = u, B2 = r, X2 = l, G = e;
66
- return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[8] || (c2[8] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(_3, { type: "default", size: "small", onClick: c2[7] || (c2[7] = (e2) => x.value = false) }, { default: f(() => c2[11] || (c2[11] = [w("返回")])), _: 1 }), g(_3, { size: "small", type: "primary", onClick: R }, { default: f(() => c2[12] || (c2[12] = [w(" 确定 ")])), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(T2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(N2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(_3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
65
+ const m2 = o, N2 = t, V2 = s, _3 = n, T2 = a, P2 = u, O2 = i, B2 = r, X2 = l, G = e;
66
+ return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[8] || (c2[8] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(_3, { type: "default", size: "small", onClick: c2[7] || (c2[7] = (e2) => x.value = false) }, { default: f(() => c2[11] || (c2[11] = [w("返回")])), _: 1 }), g(_3, { size: "small", type: "primary", onClick: R }, { default: f(() => c2[12] || (c2[12] = [w(" 确定 ")])), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(T2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(N2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(_3, { disabled: !$.value.code, type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
67
67
  J($.value);
68
- }) }, { default: f(() => c2[9] || (c2[9] = [w("查询")])), _: 1 }, 8, ["icon"]), g(_3, { size: "small", icon: C(S), onClick: c2[4] || (c2[4] = (e2) => (I.value = { searchCode: "", searchName: "" }, void J($.value))) }, { default: f(() => c2[10] || (c2[10] = [w("重置")])), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
68
+ }) }, { default: f(() => c2[9] || (c2[9] = [w("查询")])), _: 1 }, 8, ["disabled", "icon"]), g(_3, { size: "small", icon: C(S), onClick: c2[4] || (c2[4] = (e2) => (I.value = { searchCode: "", searchName: "" }, void J($.value))) }, { default: f(() => c2[10] || (c2[10] = [w("重置")])), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
69
69
  let l2 = new Date(e3);
70
70
  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)}`;
71
71
  })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), g(B2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[5] || (c2[5] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[6] || (c2[6] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: F, onCurrentChange: F }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
@@ -12,7 +12,7 @@ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props:
12
12
  if (w2.height) x.value = w2.height + "px";
13
13
  else if (b.value) {
14
14
  const e4 = b.value.getBoundingClientRect();
15
- (e4.y || 0 === e4.y) && (window.innerHeight, e4.y, x.value = window.innerHeight - e4.y - 100 + "px");
15
+ (e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
16
16
  }
17
17
  const t2 = function(e4) {
18
18
  const t3 = function() {
@@ -1,32 +1,32 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as i, watch as o, createElementBlock as r, openBlock as l } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, watch as i, createElementBlock as r, openBlock as l } from "vue";
2
2
  import { EditorView as u, basicSetup as m } from "codemirror";
3
3
  import { sql as s } from "@codemirror/lang-sql";
4
4
  import { Facet as a, EditorState as c } from "@codemirror/state";
5
5
  const f = e({ name: "SqlView", inheritAttrs: false, __name: "sql-view", props: { sql: { type: String, default: null }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
6
- const f2 = e2, d = t(null), h = t(), p = t("400px");
7
- function g() {
8
- if (d.value && d.value.destroy(), f2.height) p.value = f2.height + "px";
9
- else if (h.value) {
10
- const e4 = h.value.getBoundingClientRect();
11
- (e4.y || 0 === e4.y) && (window.innerHeight, e4.y, p.value = window.innerHeight - e4.y - 100 + "px");
6
+ const f2 = e2, d = t(null), p = t(), h = t("400px");
7
+ function v() {
8
+ if (d.value && d.value.destroy(), f2.height) h.value = f2.height + "px";
9
+ else if (p.value) {
10
+ const e4 = p.value.getBoundingClientRect();
11
+ (e4.y || 0 === e4.y) && (h.value = window.innerHeight - e4.y - 100 + "px");
12
12
  }
13
13
  const e3 = function() {
14
- const e4 = u.theme({}), t3 = u.theme({ ".cm-content, .cm-gutter": { minHeight: p.value }, "&": { height: p.value, maxHeight: p.value, fontSize: "12px" } });
15
- return c.create({ doc: f2.sql, extensions: [c.tabSize.of(16), m, s(), e4, t3, v.of(true), u.updateListener.of(function(e5) {
14
+ const e4 = u.theme({}), t3 = u.theme({ ".cm-content, .cm-gutter": { minHeight: h.value }, "&": { height: h.value, maxHeight: h.value, fontSize: "12px" } });
15
+ return c.create({ doc: f2.sql, extensions: [c.tabSize.of(16), m, s(), e4, t3, g.of(true), u.updateListener.of(function(e5) {
16
16
  })] });
17
17
  }();
18
18
  let t2 = document.getElementById("cf-codemirror-view-json");
19
19
  t2 && (d.value = new u({ state: e3, parent: t2 }));
20
20
  }
21
- n(() => {
22
- i(() => {
23
- g();
21
+ o(() => {
22
+ n(() => {
23
+ v();
24
24
  });
25
- }), o(() => f2.sql, () => {
26
- g();
25
+ }), i(() => f2.sql, () => {
26
+ v();
27
27
  });
28
- const v = a.define({ combine: (e3) => e3.some((e4) => e4) });
29
- return (e3, t2) => (l(), r("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: h, id: "cf-codemirror-view-json" }, null, 512));
28
+ const g = a.define({ combine: (e3) => e3.some((e4) => e4) });
29
+ return (e3, t2) => (l(), r("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: p, id: "cf-codemirror-view-json" }, null, 512));
30
30
  } });
31
31
  export {
32
32
  f as default
@@ -87,7 +87,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
87
87
  const l2 = { code: L(), level: 1, name: re.value, alias: re.value, type: X.autoCreateFieldType ? X.autoCreateFieldType : "string", defaultValue: "", items: [] };
88
88
  "array" == l2.type && l2.items.push({ level: l2.level + 1, code: L(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), Q.currentService.variables || (Q.currentService.variables = []), Q.currentService.variables.push(l2), ne.value.serviceVarOptions = Q.getServiceVarOptions(), Ve(se.value), ie.value = re.value, Z.value = "${" + se.value + "." + re.value + "}", W("update:modelValue", Z.value), pe.value.hide();
89
89
  }
90
- !se.value && ee.value.length > 0 && (se.value = ee.value[0].value, he(se.value), se.value);
90
+ !se.value && ee.value.length > 0 && (se.value = ee.value[0].value, he(se.value));
91
91
  const xe = v();
92
92
  const be = () => {
93
93
  ce(), me(), se.value && Ve(se.value), _(() => {
@@ -1,7 +1,7 @@
1
1
  import e from "./desginer-index.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const i = r(e, [["__scopeId", "data-v-4df7b9e3"]]);
4
+ const i = r(e, [["__scopeId", "data-v-e6f540c4"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -3,33 +3,33 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/container/style/css";
4
4
  import "element-plus/es/components/main/style/css";
5
5
  import "element-plus/es/components/aside/style/css";
6
- import { defineComponent as s, ref as n, onMounted as l, createBlock as a, openBlock as r, withCtx as i, createVNode as c, normalizeStyle as p } from "vue";
6
+ import { defineComponent as n, ref as s, onMounted as a, createBlock as l, openBlock as r, withCtx as i, createVNode as c, normalizeStyle as p } from "vue";
7
7
  import u from "./service-panel/service-panel.vue.js";
8
8
  import m from "./service-flow-view/view-index.vue.js";
9
9
  import "./service-components/index.js";
10
10
  import { useServiceFlowStore as v } from "../stores/page-store.js";
11
11
  import g from "agilebuilder-ui/src/utils/request";
12
- const d = s({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(s2) {
13
- const d2 = s2, f = n([]);
12
+ const d = n({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(n2) {
13
+ const d2 = n2, f = s([]);
14
14
  v().setPageContext(d2.pageContext);
15
- const w = n(null), y = n(), C = () => {
15
+ const w = s(null), C = s(), x = () => {
16
16
  g.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + d2.pageContext.systemCode + "/" + d2.pageContext.systemVersion).then((e2) => {
17
17
  e2 && (f.value = e2.children);
18
18
  });
19
19
  };
20
- l(() => {
21
- C();
20
+ a(() => {
21
+ x();
22
22
  });
23
- const x = (e2) => {
24
- y.value.onDragNode(e2);
23
+ const y = (e2) => {
24
+ C.value.onDragNode(e2);
25
25
  }, F = (e2) => {
26
- y.value.onServiceClick(e2);
26
+ C.value.onServiceClick(e2);
27
27
  }, D = () => {
28
- y.value.clearFlowCanvas(), w.value = null;
28
+ C.value.clearFlowCanvas(), w.value = null;
29
29
  };
30
- return (n2, l2) => {
30
+ return (s2, a2) => {
31
31
  const v2 = t, g2 = o, d3 = e;
32
- return r(), a(d3, { class: "amb-container" }, { default: i(() => [c(v2, { class: "serviceflow-container-left" }, { default: i(() => [c(u, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => w.value = e2), serviceTreeData: f.value, onServiceClick: F, onClearFlowCanvas: D, onLoadTreeData: C, onDragNode: x, style: p(n2.containerHeightStyle) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: p(n2.containerHeightStyle) }, { default: i(() => [c(m, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => w.value = e2), serviceTreeData: f.value, pageContext: s2.pageContext, onLoadTreeData: C, ref_key: "serviceFlowViewRef", ref: y }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 });
32
+ return r(), l(d3, { class: "amb-container" }, { default: i(() => [c(v2, { class: "serviceflow-container-left" }, { default: i(() => [c(u, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": a2[0] || (a2[0] = (e2) => w.value = e2), serviceTreeData: f.value, pageContext: n2.pageContext, onServiceClick: F, onClearFlowCanvas: D, onLoadTreeData: x, onDragNode: y, style: p(s2.containerHeightStyle) }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: p(s2.containerHeightStyle) }, { default: i(() => [c(m, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": a2[1] || (a2[1] = (e2) => w.value = e2), serviceTreeData: f.value, pageContext: n2.pageContext, onLoadTreeData: x, ref_key: "serviceFlowViewRef", ref: C }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 });
33
33
  };
34
34
  } });
35
35
  export {
@@ -6,7 +6,7 @@ export interface NodeType<T extends any> {
6
6
  icon: string | undefined;
7
7
  [otherProp: string]: any;
8
8
  }
9
- type NodeGroup = {
9
+ export type NodeGroup = {
10
10
  name: string;
11
11
  label: string;
12
12
  items: NodeType<any>[];
@@ -16,4 +16,3 @@ export declare const initNodes: NodeType<any>[];
16
16
  export declare const serviceComponentGroups: NodeGroup[];
17
17
  export declare function getServiceNodeByType(type: string): NodeType<any>;
18
18
  export declare function getConfigByType(type: string): NodeType<any>;
19
- export {};
@@ -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, 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
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-json-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
@@ -37,15 +37,15 @@ const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", p
37
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) => {
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 ? 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: 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, 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) => {
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"])) : V("", true), e2.row.isArrayElement ? V("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
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) => {
45
45
  return e2.$index, t2 = e2.row, void E(T.modelValue, t2);
46
46
  var t2;
47
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, T.modelValue, void L(T.modelValue, t2);
48
+ return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
49
49
  var t2;
50
50
  } }, { default: u(() => C3[4] || (C3[4] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
51
51
  };
@@ -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, 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
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: $ }) {
@@ -37,15 +37,15 @@ const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", pr
37
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) => {
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 ? 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 })]), 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 ? 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) => {
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"])) : 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("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", 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
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, T.modelValue, void L(T.modelValue, t2);
48
+ return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
49
49
  var t2;
50
50
  } }, { default: u(() => C3[3] || (C3[3] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
51
51
  };
@@ -3,21 +3,18 @@ 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 a, Group as d } from "@logicflow/extension";
6
+ import { Menu as i, DndPanel as n, SelectionSelect as l, MiniMap as d, Group as a } 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, a, d, c] });
9
+ return new r({ container: e2, grid: { visible: false, size: 2 }, background: {}, plugins: [i, n, l, d, a, 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) 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
- }
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);
21
18
  e2.register(s), e2.setDefaultEdgeType("customLine");
22
19
  }
23
20
  };
@@ -17,6 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  "show-service-log": (...args: any[]) => void;
18
18
  "save-sevice": (...args: any[]) => void;
19
19
  "show-json": (...args: any[]) => void;
20
+ "edit-service-properties": (...args: any[]) => void;
20
21
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
22
  cloneService: {
22
23
  type: ObjectConstructor;
@@ -34,6 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
35
  "onShow-service-log"?: (...args: any[]) => any;
35
36
  "onSave-sevice"?: (...args: any[]) => any;
36
37
  "onShow-json"?: (...args: any[]) => any;
38
+ "onEdit-service-properties"?: (...args: any[]) => any;
37
39
  }>, {
38
40
  pageContext: Record<string, any>;
39
41
  lf: LogicFlow;
@@ -1,7 +1,7 @@
1
1
  import o from "./service-flow-tool.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-82d0912d"]]);
4
+ const r = e(o, [["__scopeId", "data-v-59a7a9ff"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -4,37 +4,39 @@ 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";
8
- import { View as y, CaretRight as b, Check as j } from "@element-plus/icons-vue";
9
- import { customControl as S } from "./flow-util.js";
10
- import { customControlClick as C } from "./flow-tool-util.js";
11
- import h from "@logicflow/core";
7
+ import { defineComponent as s, ref as i, createElementBlock as c, openBlock as a, withDirectives as n, 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";
8
+ import { Edit as y, View as b, CaretRight as j, Check as S } from "@element-plus/icons-vue";
9
+ import { customControl as C } from "./flow-util.js";
10
+ import { customControlClick as h } from "./flow-tool-util.js";
11
+ import k from "@logicflow/core";
12
12
  import "codemirror";
13
13
  import "@codemirror/lang-json";
14
14
  import "@codemirror/state";
15
15
  import "@uiw/codemirror-themes-all";
16
16
  import V from "../common/components/json-view/json-view-dialog.vue.js";
17
- import k from "./service-test/service-test.vue.js";
18
- const x = { class: "serviceflow-design-tool" }, _ = { style: { top: "-5px", "margin-left": "10px", position: "relative" } }, O = { style: { float: "right" } }, z = ["onClick"], J = s({ __name: "service-flow-tool", props: { cloneService: { type: Object, default: () => {
19
- } }, lf: { type: h, default: () => {
20
- } }, pageContext: { type: Object, default: () => ({}) } }, emits: ["show-service-log", "save-sevice", "show-json"], setup(s2, { emit: h2 }) {
21
- const J2 = h2, N = s2, U = i(""), D = i(false), G = i(false), q = i({}), A = () => {
17
+ import x from "./service-test/service-test.vue.js";
18
+ const _ = { class: "serviceflow-design-tool" }, z = { style: { top: "-5px", "margin-left": "10px", position: "relative" } }, O = { style: { float: "right" } }, J = ["onClick"], N = s({ __name: "service-flow-tool", props: { cloneService: { type: Object, default: () => {
19
+ } }, lf: { type: k, default: () => {
20
+ } }, pageContext: { type: Object, default: () => ({}) } }, emits: ["show-service-log", "save-sevice", "show-json", "edit-service-properties"], setup(s2, { emit: k2 }) {
21
+ const N2 = k2, U = s2, D = i(""), G = i(false), q = i(false), A = i({}), B = () => {
22
22
  var _a;
23
- D.value = true, q.value = JSON.parse(JSON.stringify(N.cloneService)), q.value.flow = (_a = N.lf) == null ? void 0 : _a.getGraphData(), J2("show-json");
24
- }, B = () => {
25
- G.value = !G.value;
23
+ G.value = true, A.value = JSON.parse(JSON.stringify(U.cloneService)), A.value.flow = (_a = U.lf) == null ? void 0 : _a.getGraphData(), N2("show-json");
26
24
  }, E = () => {
27
- J2("show-service-log", {});
25
+ q.value = !q.value;
28
26
  }, F = () => {
29
- J2("save-sevice");
27
+ N2("show-service-log", {});
28
+ }, H = () => {
29
+ N2("save-sevice");
30
+ }, I = () => {
31
+ N2("edit-service-properties");
30
32
  };
31
- return (i2, h3) => {
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) => {
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"])]);
33
+ return (i2, k3) => {
34
+ const N3 = e, K = l, L = o, M = t;
35
+ return a(), c("div", _, [n(p("span", z, [r(N3, { placeholder: "", modelValue: s2.cloneService.name, "onUpdate:modelValue": k3[0] || (k3[0] = (e2) => s2.cloneService.name = e2), style: { width: "15%" } }, null, 8, ["modelValue"])], 512), [[m, s2.cloneService.code]]), n(p("span", O, [r(K, { direction: "vertical", class: "serviceflow-design-tool-split" }), (a(true), c(u, null, v(d(C), (e2) => (a(), f(L, { class: "box-item", effect: "dark", content: e2.desc, placement: "top" }, { default: w(() => [p("label", { class: g(["serviceflow-control-item", e2.type === D.value ? "serviceflow-control-item-click" : ""]), onClick: (l2) => ((e3) => {
36
+ U.lf && h(U.lf, e3);
37
+ })(e2) }, [p("i", { class: g(e2.class) }, null, 2)], 10, J)]), _: 2 }, 1032, ["content"]))), 256)), r(K, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: I }, [r(M, { size: 18 }, { default: w(() => [r(d(y))]), _: 1 }), k3[3] || (k3[3] = p("label", null, "服务参数", -1))]), p("label", { class: "serviceflow-page-type", onClick: B }, [r(M, { size: 18 }, { default: w(() => [r(d(b))]), _: 1 }), k3[4] || (k3[4] = p("label", null, "查看JSON", -1))]), p("label", { class: "serviceflow-page-type", onClick: F }, [r(M, { size: 18 }, { default: w(() => [r(d(b))]), _: 1 }), k3[5] || (k3[5] = p("label", null, "日志", -1))]), r(K, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: E }, [r(M, { size: 18 }, { default: w(() => [r(d(j))]), _: 1 }), k3[6] || (k3[6] = p("label", null, "测试", -1))]), r(K, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: H }, [r(M, { size: 18 }, { default: w(() => [r(d(S))]), _: 1 }), k3[7] || (k3[7] = p("label", null, "保存", -1))])], 512), [[m, s2.cloneService.code]]), r(d(V), { modelValue: G.value, "onUpdate:modelValue": k3[1] || (k3[1] = (e2) => G.value = e2), "json-object": A.value, "append-to-body": true }, null, 8, ["modelValue", "json-object"]), r(x, { modelValue: q.value, "onUpdate:modelValue": k3[2] || (k3[2] = (e2) => q.value = e2), pageContext: s2.pageContext, "append-to-body": true, cloneService: s2.cloneService, lf: s2.lf }, null, 8, ["modelValue", "pageContext", "cloneService", "lf"])]);
36
38
  };
37
39
  } });
38
40
  export {
39
- J as default
41
+ N as default
40
42
  };
@@ -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
- 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)));
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)));
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%";
@@ -61,10 +61,7 @@ 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 = () => {
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 = () => {
64
+ }, Q = () => ({ inputType: R.value, inputJson: F.value, entity: P.value, requestParams: A.value, serviceFlowJson: W(), pageDesignJson: X() }), W = () => {
68
65
  var _a;
69
66
  const e2 = JSON.parse(JSON.stringify(B2.cloneService));
70
67
  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);
@@ -1,7 +1,7 @@
1
1
  import e from "./view-index.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../../_virtual/_plugin-vue_export-helper.js";
4
- const o = i(e, [["__scopeId", "data-v-0e8afd53"]]);
4
+ const o = i(e, [["__scopeId", "data-v-f8296210"]]);
5
5
  export {
6
6
  o as default
7
7
  };
@@ -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, createElementBlock as s, openBlock as u, Fragment as v, createElementVNode as c, createVNode as p, withDirectives 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";
@@ -18,9 +18,9 @@ import "../service-components/index.js";
18
18
  import { findServcieByCode as D, isDeepEqual as F } from "../common/util/node-util.js";
19
19
  import { useServiceFlowStore as j } from "../../stores/page-store.js";
20
20
  import { ElMessageBox as M, ElMessage as V } from "element-plus";
21
- const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" }, B = { style: { height: "100%" } }, I = { class: "serviceflow-design-board", ref: "pageDesignBoardMain" }, z = { style: { padding: "200px", "box-sizing": "border-box", height: "100%", "background-color": "#ffffff" } }, G = t({ __name: "view-index", props: { logicFlowInstance: { type: b, default: () => {
22
- } }, serviceTreeData: { type: Array, default: () => [] }, pageContext: { type: Object, default: () => ({}) } }, emits: ["onBlankClick", "onDeleteNode", "update:logicFlowInstance", "load-tree-data"], setup(t2, { expose: b2, emit: G2 }) {
23
- const L = j(), R = t2, T = G2, A = n(), E = n(), P = n(), U = n("100%"), H = n(), $ = i(() => ({ height: U.value })), q = n(false), K = n(), Q = n(null), W = n({ code: "", name: "" }), X = n(null);
21
+ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" }, B = { style: { height: "100%" } }, I = { class: "serviceflow-design-board", ref: "pageDesignBoardMain" }, z = { style: { padding: "200px", "box-sizing": "border-box", height: "100%", "background-color": "#ffffff" } }, E = t({ __name: "view-index", props: { logicFlowInstance: { type: b, default: () => {
22
+ } }, serviceTreeData: { type: Array, default: () => [] }, pageContext: { type: Object, default: () => ({}) } }, emits: ["onBlankClick", "onDeleteNode", "update:logicFlowInstance", "load-tree-data"], setup(t2, { expose: b2, emit: E2 }) {
23
+ const G = j(), P = t2, R = E2, T = n(), A = n(), L = n(), U = n("100%"), H = n(), $ = i(() => ({ height: U.value })), q = n(false), K = n(), Q = n(null), W = n({ code: "", name: "" }), X = n(null);
24
24
  r(() => {
25
25
  if (H.value) {
26
26
  const e2 = H.value.getBoundingClientRect();
@@ -37,17 +37,16 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
37
37
  });
38
38
  }, le = () => {
39
39
  K.value && (K.value.on("connection:not-allowed", (e2) => {
40
- e2.msg;
41
40
  }), K.value.on("blank:click", (e2) => {
42
- E.value.onBlankClick();
41
+ A.value.onBlankClick();
43
42
  }), K.value.on("selection:selected", () => {
44
43
  K.value && K.value.extension.selectionSelect.closeSelectionSelect();
45
44
  }), K.value.on("node:click", (e2) => {
46
- X.value && X.value.data.id === e2.data.id || (E.value.onNodeClick(e2), X.value = e2);
45
+ X.value && X.value.data.id === e2.data.id || (A.value.onNodeClick(e2), X.value = e2);
47
46
  }), K.value.on("history:change", (e2) => {
48
47
  e2.data.undos;
49
48
  }), K.value.on("custom:deleteNode", (e2) => {
50
- X.value && E.value.onDeleteNode(), T("onDeleteNode");
49
+ X.value && A.value.onDeleteNode(), R("onDeleteNode");
51
50
  }));
52
51
  }, oe = (e2) => {
53
52
  if (K.value) {
@@ -55,23 +54,23 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
55
54
  te() ? M.confirm("服务配置发生变化, 是否需要保存?", "提示", { confirmButtonText: "保存", cancelButtonText: "不保存", closeOnClickModal: false, closeOnPressEscape: false, type: "warning" }).then(() => {
56
55
  var _a;
57
56
  Q.value = W.value, Q.value.flow = (_a = K.value) == null ? void 0 : _a.getGraphData();
58
- D(W.value.code, R.serviceTreeData).name = W.value.name, re({ beforeSave: true });
57
+ D(W.value.code, P.serviceTreeData).name = W.value.name, re({ beforeSave: true });
59
58
  }).catch(() => {
60
59
  ae(e2);
61
60
  }) : ae(e2);
62
61
  } else ae(e2);
63
62
  }, ae = (e2) => {
64
- E.value.closeDrawer(), W.value = JSON.parse(JSON.stringify(e2)), Q.value = JSON.parse(JSON.stringify(e2)), L.currentService = W.value, Q.value, ((e3) => {
65
- K.value = k(A.value), w(() => {
66
- if (A.value) {
67
- const e4 = A.value.getBoundingClientRect();
63
+ A.value.closeDrawer(), W.value = JSON.parse(JSON.stringify(e2)), Q.value = JSON.parse(JSON.stringify(e2)), G.currentService = W.value, ((e3) => {
64
+ K.value = k(T.value), w(() => {
65
+ if (T.value) {
66
+ const e4 = T.value.getBoundingClientRect();
68
67
  (e4.y || 0 === e4.y) && (U.value = window.innerHeight - e4.y - 60 - 20 + "px");
69
68
  }
70
- }), K.value.extension.menu.setMenuConfig({ nodeMenu: [], graphMenu: [{ text: "服务属性", callback() {
69
+ }), K.value.extension.menu.setMenuConfig({ nodeMenu: [], graphMenu: [{ text: "服务参数", callback() {
71
70
  q.value = true;
72
71
  } }] }), le(), O(K.value), e3.flow && e3.flow.nodes && e3.flow.nodes.length > 0 ? K.value.render(e3.flow) : (K.value.render(), J(K.value));
73
72
  const { editConfigModel: l2 } = K.value.graphModel;
74
- l2.updateEditConfig({ stopMoveGraph: false }), T("update:logicFlowInstance", K.value);
73
+ l2.updateEditConfig({ stopMoveGraph: false }), R("update:logicFlowInstance", K.value);
75
74
  })(W.value);
76
75
  }, te = () => {
77
76
  if (!K.value) return false;
@@ -84,24 +83,24 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
84
83
  W.value.runtimeJson = JSON.stringify(C(W.value));
85
84
  const l2 = JSON.parse(JSON.stringify(W.value));
86
85
  l2.variables = JSON.stringify(l2.variables), l2.log = JSON.stringify(l2.log), l2.flow = JSON.stringify(l2.flow), l2.returnValues = JSON.stringify(l2.returnValues), h.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow", { designLog: e2, appServiceFlow: l2 }).then((e3) => {
87
- e3 && (V({ message: "保存成功", type: "success" }), K.value = null, e3.variables && (e3.variables = JSON.parse(e3.variables)), e3.log && (e3.log = JSON.parse(e3.log)), e3.flow && (e3.flow = JSON.parse(e3.flow)), e3.returnValues && (e3.returnValues = JSON.parse(e3.returnValues)), oe(e3), P.value.closeDialog(), T("load-tree-data"));
86
+ e3 && (V({ message: "保存成功", type: "success" }), K.value = null, e3.variables && (e3.variables = JSON.parse(e3.variables)), e3.log && (e3.log = JSON.parse(e3.log)), e3.flow && (e3.flow = JSON.parse(e3.flow)), e3.returnValues && (e3.returnValues = JSON.parse(e3.returnValues)), oe(e3), L.value.closeDialog(), R("load-tree-data"));
88
87
  });
89
88
  }
90
89
  };
91
90
  function re(e2) {
92
- P.value.showDialog(e2);
91
+ L.value.showDialog(e2);
93
92
  }
94
93
  const se = () => {
95
94
  };
96
95
  return b2({ onDragNode: (e2) => {
97
- K.value ? K.value.dnd.startDrag({ type: e2.type, properties: { name: e2.label } }) : console.error("LogicFlow实例还没有初始化");
96
+ K.value && K.value.dnd.startDrag({ type: e2.type, properties: { name: e2.label } });
98
97
  }, onServiceClick: oe, clearFlowCanvas: () => {
99
98
  K.value && (K.value.clearData(), K.value = null, Q.value = null, W.value = { code: "", name: "" }, q.value = false, X.value = {});
100
99
  } }), (n2, i2) => {
101
100
  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);
101
+ return u(), s(v, null, [c("div", _, [d(c("div", B, [p(x, { cloneService: W.value, lf: K.value, pageContext: t2.pageContext, onShowJson: se, onShowServiceLog: re, onSaveSevice: ne, onEditServiceProperties: i2[0] || (i2[0] = (e2) => q.value = true) }, null, 8, ["cloneService", "lf", "pageContext"]), c("div", I, [c("div", { style: f($.value), ref_key: "logicFlowContainer", ref: T, class: "container" }, null, 4)], 512)], 512), [[g, K.value]]), d(c("div", { style: f([{ "padding-top": "10px", "box-sizing": "border-box" }, $.value]), ref_key: "emptyContainer", ref: H }, [c("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[3] || (i2[3] = c("div", { class: "triangle" }, null, -1))]), _: 1 }), p(b3, { style: { "max-width": "600px" } })])], 4), [[g, !K.value]]), p(h2, { modelValue: q.value, "onUpdate:modelValue": i2[1] || (i2[1] = (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: L, onSave: ie, lf: K.value, cloneService: W.value }, null, 8, ["lf", "cloneService"]), p(y, { logicFlowInstance: t2.logicFlowInstance, currentNode: X.value, "onUpdate:currentNode": i2[2] || (i2[2] = (e2) => X.value = e2), sourceService: Q.value, service: W.value, pageContext: t2.pageContext, ref_key: "serviceNodeConfigRef", ref: A }, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])], 64);
103
102
  };
104
103
  } });
105
104
  export {
106
- G as default
105
+ E as default
107
106
  };
@@ -1,6 +1,18 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ pageContext: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
7
  "drag-node": (...args: any[]) => void;
3
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ pageContext: {
10
+ type: ObjectConstructor;
11
+ default: () => {};
12
+ };
13
+ }>> & Readonly<{
4
14
  "onDrag-node"?: (...args: any[]) => any;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ }>, {
16
+ pageContext: Record<string, any>;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
18
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import e from "./component-panel.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = o(e, [["__scopeId", "data-v-95de097d"]]);
4
+ const p = o(e, [["__scopeId", "data-v-ce80a38f"]]);
5
5
  export {
6
6
  p as default
7
7
  };