service-flow-designer 2.3.26-flow1 → 2.3.28-sit1-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 (63) 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 +6 -6
  3. package/dist/es/designer/common/components/file-upload.vue2.js +2 -2
  4. package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +2 -2
  5. package/dist/es/designer/common/components/json-view/json-view.vue.js +3 -3
  6. package/dist/es/designer/common/components/node-base-config.vue.js +2 -2
  7. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +2 -2
  8. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +16 -16
  9. package/dist/es/designer/common/components/value-set-input/option.js +1 -1
  10. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +5 -5
  11. package/dist/es/designer/desginer-index.vue.js +1 -1
  12. package/dist/es/designer/desginer-index.vue2.js +12 -12
  13. package/dist/es/designer/flow/base/AbLogicResizeNode.js +23 -2
  14. package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +24 -2
  15. package/dist/es/designer/service-components/base/end-node/index.vue2.js +2 -2
  16. package/dist/es/designer/service-components/base/start-node/index.vue2.js +2 -2
  17. package/dist/es/designer/service-components/computation/sort/config.vue2.js +3 -3
  18. package/dist/es/designer/service-components/computation/sort/index.vue2.js +2 -2
  19. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +2 -2
  20. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +2 -2
  21. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +3 -3
  22. package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +2 -2
  23. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +2 -2
  24. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +2 -2
  25. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
  26. package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +2 -2
  27. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +2 -2
  28. package/dist/es/designer/service-components/database/regular-query/index.vue2.js +2 -2
  29. package/dist/es/designer/service-components/index.d.ts +1 -2
  30. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +3 -3
  31. package/dist/es/designer/service-components/service/common/form-data.vue.js +3 -3
  32. package/dist/es/designer/service-components/service/common/header-data.vue.js +3 -3
  33. package/dist/es/designer/service-components/service/common/json-data.vue2.js +3 -3
  34. package/dist/es/designer/service-components/service/common/param-config.vue2.js +2 -2
  35. package/dist/es/designer/service-components/service/common/query-params.vue.js +3 -3
  36. package/dist/es/designer/service-components/service/common/raw-data.vue.js +2 -2
  37. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
  38. package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +2 -2
  39. package/dist/es/designer/service-components/service/http-service/config.vue2.js +2 -2
  40. package/dist/es/designer/service-components/service/http-service/index.vue2.js +2 -2
  41. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +7 -7
  42. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +2 -2
  43. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +7 -7
  44. package/dist/es/designer/service-flow-view/flow-util.js +4 -7
  45. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +3 -3
  46. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +3 -3
  47. package/dist/es/designer/service-flow-view/service-params.vue.js +6 -6
  48. package/dist/es/designer/service-flow-view/service-result.vue.js +7 -7
  49. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +6 -6
  50. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +3 -6
  51. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +3 -3
  52. package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
  53. package/dist/es/designer/service-flow-view/view-index.vue2.js +14 -15
  54. package/dist/es/designer/service-panel/component-panel.vue.d.ts +15 -3
  55. package/dist/es/designer/service-panel/component-panel.vue.js +1 -1
  56. package/dist/es/designer/service-panel/component-panel.vue2.js +16 -10
  57. package/dist/es/designer/service-panel/service-list.vue2.js +11 -11
  58. package/dist/es/designer/service-panel/service-panel.vue.d.ts +9 -0
  59. package/dist/es/designer/service-panel/service-panel.vue.js +1 -1
  60. package/dist/es/designer/service-panel/service-panel.vue2.js +13 -13
  61. package/dist/es/style.css +43 -43
  62. package/dist/es/utils/common-util.js +1 -1
  63. 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-847a60a4"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -10,7 +10,7 @@ import "element-plus/es/components/button/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/select/style/css";
12
12
  import "element-plus/es/components/option/style/css";
13
- import { defineComponent as p, ref as c, watch as m, openBlock as d, createBlock as v, withCtx as f, createVNode as g, createElementBlock as h, Fragment as y, renderList as b, unref as C, createTextVNode as w, createElementVNode as z } from "vue";
13
+ import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as f, createVNode as g, createElementBlock as h, Fragment as y, renderList as b, unref as C, createTextVNode as w, createElementVNode as z } from "vue";
14
14
  import { Search as S } from "@element-plus/icons-vue";
15
15
  import N from "agilebuilder-ui/src/utils/request";
16
16
  import { ElMessage as V } from "element-plus";
@@ -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
+ 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
65
  const m2 = o, N2 = t, V2 = s, _3 = n, T2 = a, P2 = i, O2 = u, B2 = r, X2 = l, G = e;
66
- return d(), v(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)])]), _: 1 }), g(_3, { size: "small", type: "primary", onClick: R }, { default: f(() => [...c2[12] || (c2[12] = [w(" 确定 ", -1)])]), _: 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(() => [(d(true), h(y, null, b(A.value, (e2) => (d(), v(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) => {
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) => {
67
67
  J($.value);
68
- }) }, { default: f(() => [...c2[9] || (c2[9] = [w("查询", -1)])]), _: 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)])]), _: 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, ["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"]);
@@ -3,7 +3,7 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/upload/style/css";
4
4
  import "element-plus/es/components/button/style/css";
5
5
  import "element-plus/es/components/icon/style/css";
6
- import { defineComponent as t, ref as s, openBlock as u, createBlock as a, withCtx as m, createVNode as n, createTextVNode as i, unref as p } from "vue";
6
+ import { defineComponent as t, ref as s, createBlock as u, openBlock as a, withCtx as m, createVNode as n, createTextVNode as i, unref as p } from "vue";
7
7
  import { Upload as r } from "@element-plus/icons-vue";
8
8
  import { genFileId as d } from "element-plus";
9
9
  import { getToken as c } from "agilebuilder-ui/src/utils/auth";
@@ -25,7 +25,7 @@ const V = t({ __name: "file-upload", props: { modelValue: { type: Object, defaul
25
25
  };
26
26
  return V2({}), (t3, s2) => {
27
27
  const d2 = o, c2 = l, f2 = e;
28
- return u(), a(f2, { ref_key: "upload", ref: _, name: "file", data: { systemCode: g.value, isExport: true }, "auto-upload": true, action: U, headers: x, limit: 1, "on-change": A, "on-exceed": P, "on-remove": C, "on-success": w, "file-list": j.value }, { default: m(() => [n(c2, { type: "default" }, { default: m(() => [s2[0] || (s2[0] = i(" 上传附件", -1)), n(d2, { class: "el-icon--right" }, { default: m(() => [n(p(r))]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data", "file-list"]);
28
+ return a(), u(f2, { ref_key: "upload", ref: _, name: "file", data: { systemCode: g.value, isExport: true }, "auto-upload": true, action: U, headers: x, limit: 1, "on-change": A, "on-exceed": P, "on-remove": C, "on-success": w, "file-list": j.value }, { default: m(() => [n(c2, { type: "default" }, { default: m(() => [s2[0] || (s2[0] = i(" 上传附件")), n(d2, { class: "el-icon--right" }, { default: m(() => [n(p(r))]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data", "file-list"]);
29
29
  };
30
30
  } });
31
31
  export {
@@ -1,7 +1,7 @@
1
1
  import { ElDialog as e } 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
- import { defineComponent as o, ref as t, watch as l, openBlock as s, createBlock as a, withCtx as n, createVNode as u } from "vue";
4
+ import { defineComponent as o, ref as t, watch as l, createBlock as s, openBlock as a, withCtx as n, createVNode as u } from "vue";
5
5
  import p from "./json-view.vue.js";
6
6
  const d = o({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-dialog", props: { jsonObject: { type: Object, default: () => {
7
7
  } }, appendToBody: { type: Boolean, default: false }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(o2, { emit: d2 }) {
@@ -14,7 +14,7 @@ const d = o({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-di
14
14
  };
15
15
  return (t2, l2) => {
16
16
  const d3 = e;
17
- return s(), a(d3, { "append-to-body": "", modelValue: r.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => r.value = e2), title: "格式化", width: "600", onClose: c }, { default: n(() => [u(p, { jsonObject: o2.jsonObject }, null, 8, ["jsonObject"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
17
+ return a(), s(d3, { "append-to-body": "", modelValue: r.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => r.value = e2), title: "格式化", width: "600", onClose: c }, { default: n(() => [u(p, { jsonObject: o2.jsonObject }, null, 8, ["jsonObject"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
18
18
  };
19
19
  } });
20
20
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, openBlock as i, createElementBlock as c } from "vue";
1
+ import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, createElementBlock as i, openBlock as c } from "vue";
2
2
  import { EditorView as s, basicSetup as a } from "codemirror";
3
3
  import { jsonLanguage as u } from "@codemirror/lang-json";
4
4
  import { EditorState as m, Facet as l } from "@codemirror/state";
@@ -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() {
@@ -47,7 +47,7 @@ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props:
47
47
  });
48
48
  });
49
49
  const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
50
- return (e3, t2) => (i(), c("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
50
+ return (e3, t2) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
51
51
  } });
52
52
  export {
53
53
  w as default
@@ -4,10 +4,10 @@ import "element-plus/es/components/form-item/style/css";
4
4
  import "element-plus/es/components/tooltip/style/css";
5
5
  import "element-plus/es/components/color-picker/style/css";
6
6
  import "element-plus/es/components/input/style/css";
7
- import { defineComponent as s, openBlock as p, createElementBlock as n, Fragment as r, createVNode as m, withCtx as a, createElementVNode as u } from "vue";
7
+ import { defineComponent as s, createElementBlock as p, openBlock as n, Fragment as r, createVNode as m, withCtx as a, createElementVNode as u } from "vue";
8
8
  const i = { style: { position: "absolute", right: "0" } }, d = s({ __name: "node-base-config", props: { properties: { type: Object, default: () => ({}) } }, setup: (s2, { expose: d2 }) => (d2({}), (d3, c) => {
9
9
  const f = l, y = t, V = o, b = e;
10
- return p(), n(r, null, [m(b, { label: "别名:" }, { default: a(() => [m(f, { modelValue: s2.properties.name, "onUpdate:modelValue": c[0] || (c[0] = (e2) => s2.properties.name = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), m(V, { effect: "dark", content: "主题颜色", placement: "top" }, { default: a(() => [u("span", i, [m(y, { modelValue: s2.properties.backgroundColor, "onUpdate:modelValue": c[1] || (c[1] = (e2) => s2.properties.backgroundColor = e2) }, null, 8, ["modelValue"])])]), _: 1 })]), _: 1 }), m(b, { label: "功能描述:" }, { default: a(() => [m(f, { modelValue: s2.properties.description, "onUpdate:modelValue": c[2] || (c[2] = (e2) => s2.properties.description = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"])]), _: 1 })], 64);
10
+ return n(), p(r, null, [m(b, { label: "别名:" }, { default: a(() => [m(f, { modelValue: s2.properties.name, "onUpdate:modelValue": c[0] || (c[0] = (e2) => s2.properties.name = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), m(V, { effect: "dark", content: "主题颜色", placement: "top" }, { default: a(() => [u("span", i, [m(y, { modelValue: s2.properties.backgroundColor, "onUpdate:modelValue": c[1] || (c[1] = (e2) => s2.properties.backgroundColor = e2) }, null, 8, ["modelValue"])])]), _: 1 })]), _: 1 }), m(b, { label: "功能描述:" }, { default: a(() => [m(f, { modelValue: s2.properties.description, "onUpdate:modelValue": c[2] || (c[2] = (e2) => s2.properties.description = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"])]), _: 1 })], 64);
11
11
  }) });
12
12
  export {
13
13
  d as default
@@ -1,7 +1,7 @@
1
1
  import { ElDialog as e } 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
- import { defineComponent as l, ref as o, watch as t, openBlock as a, createBlock as s, withCtx as p, createVNode as u } from "vue";
4
+ import { defineComponent as l, ref as o, watch as t, createBlock as a, openBlock as s, withCtx as p, createVNode as u } from "vue";
5
5
  import n from "./sql-view.vue2.js";
6
6
  const d = l({ name: "SqlViewDialog", inheritAttrs: false, __name: "sql-view-dialog", props: { sql: { type: String, default: null }, appendToBody: { type: Boolean, default: true }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(l2, { emit: d2 }) {
7
7
  const m = l2, i = d2, r = o(false);
@@ -13,7 +13,7 @@ const d = l({ name: "SqlViewDialog", inheritAttrs: false, __name: "sql-view-dial
13
13
  };
14
14
  return (o2, t2) => {
15
15
  const d3 = e;
16
- return a(), s(d3, { modelValue: r.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e2) => r.value = e2), "append-to-body": l2.appendToBody, title: "SQL预览", width: "600", onClose: y }, { default: p(() => [u(n, { sql: l2.sql, height: 400 }, null, 8, ["sql"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
16
+ return s(), a(d3, { modelValue: r.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e2) => r.value = e2), "append-to-body": l2.appendToBody, title: "SQL预览", width: "600", onClose: y }, { default: p(() => [u(n, { sql: l2.sql, height: 400 }, null, 8, ["sql"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
17
17
  };
18
18
  } });
19
19
  export {
@@ -1,32 +1,32 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as i, watch as o, openBlock as r, createElementBlock 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) => (r(), l("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
@@ -1,4 +1,4 @@
1
- const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "流程变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
1
+ const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "任务变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
2
2
  function r(a2) {
3
3
  return a2 && a2.length > 0 ? e.filter((e2) => a2.includes(e2.value)) : e;
4
4
  }
@@ -10,7 +10,7 @@ import "element-plus/es/components/col/style/css";
10
10
  import "element-plus/es/components/cascader-panel/style/css";
11
11
  import "element-plus/es/components/input/style/css";
12
12
  import "element-plus/es/components/button/style/css";
13
- import { defineComponent as p, ref as v, computed as c, openBlock as d, createElementBlock as m, toDisplayString as f, createBlock as y, withCtx as h, createVNode as V, normalizeStyle as g, unref as w, createElementVNode as x, withDirectives as b, createTextVNode as k, Fragment as z, renderList as C, vShow as O, withModifiers as S, nextTick as _ } from "vue";
13
+ import { defineComponent as p, ref as v, computed as c, createElementBlock as d, createBlock as m, openBlock as f, toDisplayString as y, withCtx as h, createVNode as V, normalizeStyle as g, createElementVNode as w, withDirectives as x, unref as b, createTextVNode as k, Fragment as z, renderList as C, vShow as O, withModifiers as S, nextTick as _ } from "vue";
14
14
  import { Plus as U, InfoFilled as j, Search as q, Delete as I } from "@element-plus/icons-vue";
15
15
  import { v4 as L } from "uuid";
16
16
  import { getTypeOptions as T, contextVarOptions as A, taskVarOptions as F } from "./option.js";
@@ -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), _(() => {
@@ -117,13 +117,13 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
117
117
  }
118
118
  return J2({ setSelectOptions: me }), (v2, c2) => {
119
119
  const _2 = i, L2 = s, T2 = t, A2 = a, F2 = u, $2 = o, M2 = r, R2 = n, J3 = l, N2 = e;
120
- return p2.showLabel ? (d(), m("span", B, f(te.value), 1)) : (d(), y(N2, { key: 1, ref_key: "popoverRef", ref: pe, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: be, formatter: ye, class: "input-with-select", "prefix-icon": w(q), modelValue: Z.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Z.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { type: "default", size: p2.inputSize, icon: w(I), onClick: S(ke, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: se.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => se.value = e2), onChange: he, props: { emitPath: false }, size: "small", style: g({ width: "fit-content", height: Y.value + "px", overflow: "auto" }), options: ee.value }, null, 8, ["modelValue", "style", "options"])]), _: 1 }), se.value ? "input" === le.value ? (d(), y(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => ie.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: w(U), circle: "" }, null, 8, ["icon"]), x("div", K, [V($2, null, { default: h(() => [V(w(j))]), _: 1 }), c2[5] || (c2[5] = x("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), b(x("div", { style: g({ fontSize: "10px", lineHeight: "30px", height: Y.value - 50 + "px", overflow: "auto" }) }, [c2[6] || (c2[6] = k(" 可用参数: ", -1)), (d(true), m(z, null, C(ue.value, (e2) => (d(), y(_2, { type: "primary", size: "small", onClick: (l2) => {
120
+ return p2.showLabel ? (f(), d("span", B, y(te.value), 1)) : (f(), m(N2, { key: 1, ref_key: "popoverRef", ref: pe, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: be, formatter: ye, class: "input-with-select", "prefix-icon": b(q), modelValue: Z.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Z.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { type: "default", size: p2.inputSize, icon: b(I), onClick: S(ke, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: se.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => se.value = e2), onChange: he, props: { emitPath: false }, size: "small", style: g({ width: "fit-content", height: Y.value + "px", overflow: "auto" }), options: ee.value }, null, 8, ["modelValue", "style", "options"])]), _: 1 }), se.value ? "input" === le.value ? (f(), m(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => ie.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), w("div", K, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[5] || (c2[5] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), x(w("div", { style: g({ fontSize: "10px", lineHeight: "30px", height: Y.value - 50 + "px", overflow: "auto" }) }, [c2[6] || (c2[6] = k(" 可用参数: ")), (f(true), d(z, null, C(ue.value, (e2) => (f(), m(_2, { type: "primary", size: "small", onClick: (l2) => {
121
121
  return a2 = e2.value, ie.value = a2, void ge();
122
122
  var a2;
123
- } }, { default: h(() => [k(f(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 4), [[O, "request" == se.value]])]), _: 1 })) : "file" === le.value ? (d(), y(A2, { key: 2, span: 16 }, { default: h(() => [V(E, { modelValue: ae.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => ae.value = e2), onOnSuccess: ze }, null, 8, ["modelValue"])]), _: 1 })) : (d(), y(A2, { key: 3, span: 16 }, { default: h(() => [x("div", H, [x("div", P, [V(L2, { size: "small", modelValue: re.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => re.value = e2), placeholder: "搜索", "suffix-icon": w(q), style: { width: "90%" } }, null, 8, ["modelValue", "suffix-icon"]), b(V(_2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: w(U), circle: "" }, null, 8, ["icon"]), [[O, "service" == se.value]]), b(x("div", D, [V($2, null, { default: h(() => [V(w(j))]), _: 1 }), c2[7] || (c2[7] = x("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[O, "service" == se.value]])]), V(R2, { ref_key: "tableRef", ref: xe, height: Y.value - 80, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: de.value, class: "flex-table" }, { default: h(() => [V(M2, { fixed: true, width: "service" === se.value ? "" : 70 }, { default: h((e2) => [V(_2, { type: "default", size: "small", onClick: (l2) => {
123
+ } }, { default: h(() => [k(y(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 4), [[O, "request" == se.value]])]), _: 1 })) : "file" === le.value ? (f(), m(A2, { key: 2, span: 16 }, { default: h(() => [V(E, { modelValue: ae.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => ae.value = e2), onOnSuccess: ze }, null, 8, ["modelValue"])]), _: 1 })) : (f(), m(A2, { key: 3, span: 16 }, { default: h(() => [w("div", H, [w("div", P, [V(L2, { size: "small", modelValue: re.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => re.value = e2), placeholder: "搜索", "suffix-icon": b(q), style: { width: "90%" } }, null, 8, ["modelValue", "suffix-icon"]), x(V(_2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), [[O, "service" == se.value]]), x(w("div", D, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[7] || (c2[7] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[O, "service" == se.value]])]), V(R2, { ref_key: "tableRef", ref: xe, height: Y.value - 80, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: de.value, class: "flex-table" }, { default: h(() => [V(M2, { fixed: true, width: "service" === se.value ? "" : 70 }, { default: h((e2) => [V(_2, { type: "default", size: "small", onClick: (l2) => {
124
124
  return a2 = e2.row, ie.value = a2.value, Z.value = "${" + se.value + "." + a2.value + "}", W("update:modelValue", Z.value), void pe.value.hide();
125
125
  var a2;
126
- } }, { default: h(() => [...c2[8] || (c2[8] = [k(" 选择 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["width"]), V(M2, { prop: "label" })]), _: 1 }, 8, ["height", "data"]), x("div", G, "总计:" + f(de.value.length), 1)])]), _: 1 })) : (d(), y(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
126
+ } }, { default: h(() => c2[8] || (c2[8] = [k(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["width"]), V(M2, { prop: "label" })]), _: 1 }, 8, ["height", "data"]), w("div", G, "总计:" + y(de.value.length), 1)])]), _: 1 })) : (f(), m(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
127
127
  };
128
128
  } });
129
129
  export {
@@ -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, openBlock as a, createBlock 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 a(), r(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 {
@@ -1,3 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1
4
  import "@logicflow/core";
2
- import { HtmlResize as o } from "@logicflow/extension";
3
- o.view;
5
+ import { HtmlResize as e } from "@logicflow/extension";
6
+ class t extends e.view {
7
+ constructor() {
8
+ super(...arguments);
9
+ __publicField(this, "isMounted", false);
10
+ __publicField(this, "r");
11
+ __publicField(this, "app");
12
+ }
13
+ setHtml(e2) {
14
+ if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
15
+ else {
16
+ this.isMounted = true;
17
+ const t2 = document.createElement("div");
18
+ e2.appendChild(t2), this.app.mount(t2);
19
+ }
20
+ }
21
+ }
22
+ export {
23
+ t as default
24
+ };
@@ -1,4 +1,26 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1
4
  import "@logicflow/core";
2
5
  import "vue";
3
- import { HtmlResize as o } from "@logicflow/extension";
4
- o.model;
6
+ import { HtmlResize as t } from "@logicflow/extension";
7
+ class e extends t.model {
8
+ constructor(t2, e2) {
9
+ super(t2, e2);
10
+ __publicField(this, "nodeWidth", 200);
11
+ __publicField(this, "nodeHeight", 115);
12
+ this.setAttributes();
13
+ }
14
+ setAttributes() {
15
+ this.text.editable = false, this.inputData = this.text.value, this.stroke = "#1E90FF", this.fill = "#F0F8FF", this.radius = 100, this.menu = [{ className: "lf-menu-delete", icon: true, text: "删除", callback: (t2) => {
16
+ this.graphModel.deleteNode(t2.id), this.graphModel.eventCenter.emit("custom:deleteNode", t2);
17
+ } }];
18
+ }
19
+ getOutlineStyle() {
20
+ const t2 = super.getOutlineStyle();
21
+ return t2.width = this.nodeWidth, t2.height = this.nodeHeight, t2;
22
+ }
23
+ }
24
+ export {
25
+ e as default
26
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, openBlock as s, createElementBlock as t, createElementVNode as p } from "vue";
1
+ import { defineComponent as e, createElementBlock as s, openBlock as t, createElementVNode as p } from "vue";
2
2
  import i from "../../../../assets/icon/end.svg.js";
3
- const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (s(), t("div", n, [...d2[0] || (d2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "结束")])], -1)])])) });
3
+ const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (t(), s("div", n, d2[0] || (d2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "结束")])], -1)]))) });
4
4
  export {
5
5
  d as default
6
6
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, openBlock as t, createElementBlock as s, createElementVNode as p } from "vue";
1
+ import { defineComponent as e, createElementBlock as t, openBlock as s, createElementVNode as p } from "vue";
2
2
  import i from "../../../../assets/icon/start.png.js";
3
- const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (t(), s("div", n, [...a2[0] || (a2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "开始")])], -1)])])) });
3
+ const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (s(), t("div", n, a2[0] || (a2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "开始")])], -1)]))) });
4
4
  export {
5
5
  a as default
6
6
  };
@@ -10,7 +10,7 @@ import "element-plus/es/components/form-item/style/css";
10
10
  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/divider/style/css";
13
- import { defineComponent as m, ref as u, onMounted as c, openBlock as d, createBlock as f, withCtx as v, createVNode as y, createElementBlock as b, Fragment as h, renderList as k, createTextVNode as g, createElementVNode as w, createCommentVNode as _, toDisplayString as x, unref as V } from "vue";
13
+ import { defineComponent as m, ref as u, onMounted as c, createBlock as d, openBlock as f, withCtx as v, createVNode as y, createElementBlock as b, Fragment as h, renderList as k, createTextVNode as g, createElementVNode as w, createCommentVNode as _, toDisplayString as x, unref as V } from "vue";
14
14
  import { Minus as O, Plus as S } from "@element-plus/icons-vue";
15
15
  import z from "../../../common/components/node-base-config.vue.js";
16
16
  const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E = { key: 1 }, U = { key: 0 }, j = m({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(m2, { expose: j2 }) {
@@ -41,12 +41,12 @@ const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E
41
41
  };
42
42
  return j2({}), (u2, c2) => {
43
43
  const j3 = l, F2 = s, I = a, J = t, K = r, L = o, M = i, N = p, P = n, Q = e;
44
- return d(), f(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(d(true), b(h, null, k(R.value, (e2) => (d(), f(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ", -1)), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (d(), f(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => [...c2[2] || (c2[2] = [g("添加", -1)])]), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (d(), b("span", $, "item")) : e2.row.$editing ? (d(), f(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
44
+ return f(), d(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(f(true), b(h, null, k(R.value, (e2) => (f(), d(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ")), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => c2[2] || (c2[2] = [g("添加")])), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", $, "item")) : e2.row.$editing ? (f(), d(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
45
45
  return t2 = l2, (a2 = e2.row).alias = "", void q.value.forEach((e3) => {
46
46
  e3.name === t2 && (a2.alias = e3.alias);
47
47
  });
48
48
  var t2, a2;
49
- }, "value-key": "name", size: "small" }, { default: v(() => [(d(true), b(h, null, k(q.value, (e3) => (d(), f(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), b("span", E, x(e2.row.alias), 1))]), _: 1 }), y(M, { prop: "order", label: "排序方式" }, { default: v((e2) => [e2.row.$editing ? (d(), f(I, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: v(() => [y(F2, { label: "升序", value: "asc" }), y(F2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (d(), b("span", U, x(e2.row.order), 1))]), _: 1 }), y(M, { align: "right" }, { header: v(() => [y(N, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (d(), f(K, { key: 0, type: "primary", size: "small", icon: V(S), circle: "", onClick: c2[1] || (c2[1] = (e2) => H()) }, null, 8, ["icon"])) : _("", true)]), _: 1 })]), default: v((e2) => [w("span", null, [y(N, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (d(), f(K, { key: 0, type: "danger", size: "small", icon: V(O), circle: "", onClick: (l2) => {
49
+ }, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(q.value, (e3) => (f(), d(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", E, x(e2.row.alias), 1))]), _: 1 }), y(M, { prop: "order", label: "排序方式" }, { default: v((e2) => [e2.row.$editing ? (f(), d(I, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: v(() => [y(F2, { label: "升序", value: "asc" }), y(F2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), b("span", U, x(e2.row.order), 1))]), _: 1 }), y(M, { align: "right" }, { header: v(() => [y(N, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "primary", size: "small", icon: V(S), circle: "", onClick: c2[1] || (c2[1] = (e2) => H()) }, null, 8, ["icon"])) : _("", true)]), _: 1 })]), default: v((e2) => [w("span", null, [y(N, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "danger", size: "small", icon: V(O), circle: "", onClick: (l2) => {
50
50
  return t2 = e2.$index, e2.row, void D.properties.sorts.splice(t2, 1);
51
51
  var t2;
52
52
  } }, null, 8, ["icon", "onClick"])) : _("", true)]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
@@ -1,11 +1,11 @@
1
1
  import { ElDivider as e } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/divider/style/css";
4
- import { defineComponent as s, openBlock as t, createElementBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
4
+ import { defineComponent as s, createElementBlock as t, openBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
5
5
  import n from "../../../../assets/icon/vardef-v.png.js";
6
6
  const c = { class: "serviceflow-nodeContent" }, m = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: m2 }) => (m3, d) => {
7
7
  const a = e;
8
- return t(), o("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "计算-排序", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
8
+ return o(), t("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "计算-排序", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
9
9
  } });
10
10
  export {
11
11
  m as default
@@ -8,7 +8,7 @@ import "element-plus/es/components/alert/style/css";
8
8
  import "element-plus/es/components/form-item/style/css";
9
9
  import "element-plus/es/components/input/style/css";
10
10
  import "element-plus/es/components/button/style/css";
11
- import { defineComponent as n, ref as m, onMounted as u, openBlock as c, createElementBlock as d, createVNode as y, withCtx as b, unref as v, createElementVNode as f, createTextVNode as g } from "vue";
11
+ import { defineComponent as n, ref as m, onMounted as u, createElementBlock as c, openBlock as d, createVNode as y, withCtx as b, createElementVNode as v, unref as f, createTextVNode as g } from "vue";
12
12
  import { Search as T, View as C, Check as S } from "@element-plus/icons-vue";
13
13
  import x from "../../../common/components/value-set-input/value-set-input.vue.js";
14
14
  import V from "../../../common/components/datatable-select.vue.js";
@@ -92,7 +92,7 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
92
92
  }
93
93
  return J2({}), (i2, m2) => {
94
94
  const u2 = o, j2 = s, h2 = t, w2 = l, _2 = a, N2 = p, q2 = r, I2 = e;
95
- return c(), d("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: b(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: b(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: b(() => [y(u2, { type: "default", icon: v(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), f("span", D, [y(u2, { type: "primary", icon: v(C), onClick: oe }, { default: b(() => [...m2[7] || (m2[7] = [g("预览sql", -1)])]), _: 1 }, 8, ["icon"])]), y(V, { visible: G.value, "onUpdate:visible": m2[2] || (m2[2] = (e2) => G.value = e2), modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[3] || (m2[3] = (e2) => n2.properties.dataTable = e2), systemCode: H.value, systemVersion: K.value, onSelect: $ }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), y(w2, { title: "统计维度", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(k, { properties: n2.properties, dataTableColumns: P.value, onChange: ee, style: { "margin-bottom": "10 px" } }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => [...m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月...", -1), f("br", null, null, -1), g("           2.未指定新字段名时,输出字段名同选择的字段名", -1), f("br", null, null, -1), g("           3.动态维度值有填写时需要匹配才会执行此分组", -1)])]), _: 1 }), y(w2, { title: "统计公式", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(F, { properties: n2.properties, dataTableColumns: L.value, onChange: ee }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => [...m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)", -1)])]), _: 1 }), y(w2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(h2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: b(() => [y(q2, { modelValue: n2.properties.result.valueSetScope, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => n2.properties.result.valueSetScope = e2), onChange: Y, class: "ml-4" }, { default: b(() => [y(N2, { value: "first" }, { default: b(() => [...m2[10] || (m2[10] = [g("仅第一条", -1)])]), _: 1 }), y(N2, { value: "all" }, { default: b(() => [...m2[11] || (m2[11] = [g(" 全部 ", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(h2, { label: "设置到:", style: { width: "100%" } }, { default: b(() => [f("div", E, [y(v(x), { width: "260", paramTypes: ["service"], modelValue: n2.properties.result.setTo, "onUpdate:modelValue": m2[5] || (m2[5] = (e2) => n2.properties.result.setTo = e2), autoCreateFieldType: R.value }, null, 8, ["modelValue", "autoCreateFieldType"]), y(u2, { icon: v(S), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: b(() => [...m2[12] || (m2[12] = [g(" 更新服务变量 ", -1)])]), _: 1 }, 8, ["icon"]), y(u2, { icon: v(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: b(() => [...m2[13] || (m2[13] = [g(" 设置为返回值 ", -1)])]), _: 1 }, 8, ["icon"])])]), _: 1 })]), _: 1 }), y(v(M), { sql: X.value, "model-value": W.value, "onUpdate:modelValue": m2[6] || (m2[6] = (e2) => W.value = e2) }, null, 8, ["sql", "model-value"])]);
95
+ return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: b(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: b(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: b(() => [y(u2, { type: "default", icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), v("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: b(() => m2[7] || (m2[7] = [g("预览sql")])), _: 1 }, 8, ["icon"])]), y(V, { visible: G.value, "onUpdate:visible": m2[2] || (m2[2] = (e2) => G.value = e2), modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[3] || (m2[3] = (e2) => n2.properties.dataTable = e2), systemCode: H.value, systemVersion: K.value, onSelect: $ }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), y(w2, { title: "统计维度", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(k, { properties: n2.properties, dataTableColumns: P.value, onChange: ee, style: { "margin-bottom": "10 px" } }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月..."), v("br", null, null, -1), g("           2.未指定新字段名时,输出字段名同选择的字段名"), v("br", null, null, -1), g("           3.动态维度值有填写时需要匹配才会执行此分组")])), _: 1 }), y(w2, { title: "统计公式", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(F, { properties: n2.properties, dataTableColumns: L.value, onChange: ee }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)")])), _: 1 }), y(w2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(h2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: b(() => [y(q2, { modelValue: n2.properties.result.valueSetScope, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => n2.properties.result.valueSetScope = e2), onChange: Y, class: "ml-4" }, { default: b(() => [y(N2, { value: "first" }, { default: b(() => m2[10] || (m2[10] = [g("仅第一条")])), _: 1 }), y(N2, { value: "all" }, { default: b(() => m2[11] || (m2[11] = [g(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(h2, { label: "设置到:", style: { width: "100%" } }, { default: b(() => [v("div", E, [y(f(x), { width: "260", paramTypes: ["service"], modelValue: n2.properties.result.setTo, "onUpdate:modelValue": m2[5] || (m2[5] = (e2) => n2.properties.result.setTo = e2), autoCreateFieldType: R.value }, null, 8, ["modelValue", "autoCreateFieldType"]), y(u2, { icon: f(S), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: b(() => m2[12] || (m2[12] = [g(" 更新服务变量 ")])), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: b(() => m2[13] || (m2[13] = [g(" 设置为返回值 ")])), _: 1 }, 8, ["icon"])])]), _: 1 })]), _: 1 }), y(f(M), { sql: X.value, "model-value": W.value, "onUpdate:modelValue": m2[6] || (m2[6] = (e2) => W.value = e2) }, null, 8, ["sql", "model-value"])]);
96
96
  };
97
97
  } });
98
98
  export {
@@ -7,7 +7,7 @@ import "element-plus/es/components/input/style/css";
7
7
  import "element-plus/es/components/select/style/css";
8
8
  import "element-plus/es/components/option/style/css";
9
9
  import "element-plus/es/components/table-column/style/css";
10
- import { defineComponent as m, openBlock as i, createBlock as p, withCtx as d, createVNode as r, createElementBlock as u, toDisplayString as c, Fragment as y, renderList as w, unref as b, createElementVNode as f } from "vue";
10
+ import { defineComponent as m, createBlock as i, openBlock as p, withCtx as d, createVNode as r, createElementBlock as u, toDisplayString as c, Fragment as y, renderList as w, unref as b, createElementVNode as f } from "vue";
11
11
  import { Minus as V, Plus as g } from "@element-plus/icons-vue";
12
12
  import { dateFormats as h } from "../../util/common-options.js";
13
13
  const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __name: "dimension-statistical", props: { properties: { type: Object, default: () => ({ statistics: {} }) }, dataTableColumns: { type: Array, default: () => [] } }, emits: ["change"], setup(m2, { emit: v2 }) {
@@ -22,7 +22,7 @@ const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __
22
22
  };
23
23
  return (v3, x) => {
24
24
  const E = l, F = t, A = a, D = o, j = s, I = n, M = e;
25
- return i(), p(M, { data: m2.properties.statistics, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: z, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [r(E, { type: "index", width: "50", label: "序号", align: "center" }), r(E, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (i(), p(A, { key: 1, onChange: (l2) => $(l2, e2.row), modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", filterable: "" }, { default: d(() => [(i(true), u(y, null, w(m2.dataTableColumns, (e3) => (i(), p(F, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["onChange", "modelValue", "onUpdate:modelValue"])) : (i(), u("span", k, c(e2.row.name), 1))]), _: 1 }), r(E, { prop: "name", label: "日期格式化", width: "120" }, { default: d((e2) => [e2.row.$editing ? (i(), p(A, { key: 1, disabled: "DATE" !== e2.row.dataType && "TIME" !== e2.row.dataType, filterable: true, "allow-create": true, modelValue: e2.row.dateFormat, "onUpdate:modelValue": (l2) => e2.row.dateFormat = l2, placeholder: "", size: "small" }, { default: d(() => [(i(true), u(y, null, w(b(h), (e3) => (i(), p(F, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (i(), u("span", C, c(e2.row.dateFormat), 1))]), _: 1 }), r(E, { prop: "newName", label: "新字段名", width: "160" }, { default: d((e2) => [e2.row.$editing ? (i(), p(D, { key: 1, modelValue: e2.row.newName, "onUpdate:modelValue": (l2) => e2.row.newName = l2, size: "small", onChange: (l2) => U("change", e2.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (i(), u("span", T, c(e2.row.newName), 1))]), _: 1 }), r(E, { prop: "dynamicValue", label: "动态维度值" }, { default: d((e2) => [e2.row.$editing ? (i(), p(D, { key: 1, modelValue: e2.row.dynamicValue, "onUpdate:modelValue": (l2) => e2.row.dynamicValue = l2, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (i(), u("span", _, c(e2.row.dynamicValue), 1))]), _: 1 }), r(E, { align: "center", width: "80" }, { header: d(() => [r(I, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [r(j, { type: "primary", size: "small", icon: b(g), circle: "", onClick: x[0] || (x[0] = (e2) => (N.properties.statistics || (N.properties.statistics = []), void N.properties.statistics.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [r(I, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [r(j, { type: "danger", size: "small", icon: b(V), circle: "", onClick: (l2) => {
25
+ return p(), i(M, { data: m2.properties.statistics, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: z, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [r(E, { type: "index", width: "50", label: "序号", align: "center" }), r(E, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, onChange: (l2) => $(l2, e2.row), modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", filterable: "" }, { default: d(() => [(p(true), u(y, null, w(m2.dataTableColumns, (e3) => (p(), i(F, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", k, c(e2.row.name), 1))]), _: 1 }), r(E, { prop: "name", label: "日期格式化", width: "120" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, disabled: "DATE" !== e2.row.dataType && "TIME" !== e2.row.dataType, filterable: true, "allow-create": true, modelValue: e2.row.dateFormat, "onUpdate:modelValue": (l2) => e2.row.dateFormat = l2, placeholder: "", size: "small" }, { default: d(() => [(p(true), u(y, null, w(b(h), (e3) => (p(), i(F, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", C, c(e2.row.dateFormat), 1))]), _: 1 }), r(E, { prop: "newName", label: "新字段名", width: "160" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.newName, "onUpdate:modelValue": (l2) => e2.row.newName = l2, size: "small", onChange: (l2) => U("change", e2.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), u("span", T, c(e2.row.newName), 1))]), _: 1 }), r(E, { prop: "dynamicValue", label: "动态维度值" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.dynamicValue, "onUpdate:modelValue": (l2) => e2.row.dynamicValue = l2, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), u("span", _, c(e2.row.dynamicValue), 1))]), _: 1 }), r(E, { align: "center", width: "80" }, { header: d(() => [r(I, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [r(j, { type: "primary", size: "small", icon: b(g), circle: "", onClick: x[0] || (x[0] = (e2) => (N.properties.statistics || (N.properties.statistics = []), void N.properties.statistics.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [r(I, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [r(j, { type: "danger", size: "small", icon: b(V), circle: "", onClick: (l2) => {
26
26
  return a2 = e2.$index, e2.row, N.properties.statistics.splice(a2, 1), void $("", null);
27
27
  var a2;
28
28
  } }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);