service-flow-designer 2.3.5-rc1-flow1 → 2.3.5-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 (38) 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 +34 -30
  3. package/dist/es/designer/common/components/file-upload.vue2.js +6 -6
  4. package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +1 -1
  5. package/dist/es/designer/common/components/json-view/json-view.vue.js +2 -52
  6. package/dist/es/designer/common/components/json-view/json-view.vue2.js +52 -2
  7. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +16 -16
  8. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +10 -10
  9. package/dist/es/designer/service-components/computation/sort/config.vue2.js +1 -1
  10. package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +1 -1
  11. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +12 -10
  12. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
  13. package/dist/es/designer/service-components/database/regular-query/config.vue.js +1 -1
  14. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +45 -42
  15. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +4 -4
  16. package/dist/es/designer/service-components/service/common/form-data.vue.js +8 -8
  17. package/dist/es/designer/service-components/service/common/header-data.vue.js +4 -4
  18. package/dist/es/designer/service-components/service/common/json-data.vue2.js +4 -4
  19. package/dist/es/designer/service-components/service/common/param-config.vue2.js +5 -5
  20. package/dist/es/designer/service-components/service/common/query-params.vue.js +4 -4
  21. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
  22. package/dist/es/designer/service-components/service/http-service/config.vue2.js +1 -1
  23. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +12 -12
  24. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +12 -12
  25. package/dist/es/designer/service-flow-view/flow-util.js +4 -7
  26. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
  27. package/dist/es/designer/service-flow-view/service-params.vue.js +6 -6
  28. package/dist/es/designer/service-flow-view/service-result.vue.js +11 -11
  29. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +14 -14
  30. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +9 -12
  31. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +9 -9
  32. package/dist/es/designer/service-flow-view/view-index.vue2.js +14 -15
  33. package/dist/es/designer/service-panel/component-panel.vue2.js +4 -4
  34. package/dist/es/designer/service-panel/service-list.vue2.js +11 -11
  35. package/dist/es/designer/service-panel/service-panel.vue2.js +9 -9
  36. package/dist/es/style.css +7 -7
  37. package/dist/es/utils/common-util.js +1 -1
  38. 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-21206c52"]]);
4
+ const a = t(e, [["__scopeId", "data-v-075d5fc4"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -10,59 +10,63 @@ 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 m, watch as c, createBlock as d, openBlock as v, withCtx as g, createVNode as f, createElementBlock as h, Fragment as y, renderList as b, unref as z, createTextVNode as C, createElementVNode as _ } from "vue";
14
- import { Search as w } from "@element-plus/icons-vue";
15
- import V from "agilebuilder-ui/src/utils/request";
16
- import { ElMessage as S } from "element-plus";
17
- const k = { class: "dialog-footer" }, N = p({ name: "DatatableSelect", inheritAttrs: false, __name: "datatable-select", props: { visible: { type: Boolean, default: false }, systemCode: { type: String, default: "" }, systemVersion: { type: Number, default: -1 } }, emits: ["update:visible", "select"], setup(p2, { emit: N2 }) {
18
- const T = N2, P = p2, x = m(false), A = m([]), $ = m(""), U = m([]), I = m({ searchCode: "", searchName: "" }), B = m({ name: "" }), E = m({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), M = m();
19
- function D(e2) {
20
- U.value = [], E.value.currentPage = 1, E.value.total = 0, $.value = e2, j(e2);
13
+ import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as g, createVNode as f, createElementBlock as h, Fragment as y, renderList as b, unref as z, createTextVNode as C, createElementVNode as w } from "vue";
14
+ import { Search as V } from "@element-plus/icons-vue";
15
+ import S from "agilebuilder-ui/src/utils/request";
16
+ import { ElMessage as N } from "element-plus";
17
+ const k = { class: "dialog-footer" }, T = p({ name: "DatatableSelect", inheritAttrs: false, __name: "datatable-select", props: { visible: { type: Boolean, default: false }, systemCode: { type: String, default: "" }, systemVersion: { type: Number, default: -1 } }, emits: ["update:visible", "select"], setup(p2, { emit: T2 }) {
18
+ const _ = T2, P = p2, x = c(false), A = c([]), $ = c({ code: "", publishVersion: 1 }), U = c([]), I = c({ searchCode: "", searchName: "" }), B = c({ name: "" }), E = c({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), M = c();
19
+ function O(e2) {
20
+ U.value = [], E.value.currentPage = 1, E.value.total = 0;
21
+ const l2 = R(e2);
22
+ $.value = l2, F($.value);
21
23
  }
22
- function F() {
23
- j($.value);
24
+ function D() {
25
+ F($.value);
24
26
  }
25
- function j(e2) {
27
+ function F(e2) {
26
28
  B.value = { name: "" };
27
29
  const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
28
30
  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 });
29
- const a2 = e2 || P.systemCode;
30
- V.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + P.systemVersion, l2).then((e3) => {
31
+ const a2 = e2.code || P.systemCode;
32
+ S.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
31
33
  U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
32
34
  });
33
35
  }
34
- function O(e2) {
36
+ function j(e2) {
35
37
  B.value = e2;
36
38
  }
37
- function R() {
39
+ function J() {
38
40
  if (B.value.name) {
39
- const l2 = (e2 = $.value, A.value.filter((l3) => l3.code === e2));
40
- T("select", { dataTable: B.value, system: l2[0] }), T("update:visible", false);
41
- } else S.warning("请选择一条记录!");
42
- var e2;
41
+ const e2 = R($.value.code);
42
+ _("select", { dataTable: B.value, system: e2 }), _("update:visible", false);
43
+ } else N.warning("请选择一条记录!");
44
+ }
45
+ function R(e2) {
46
+ return A.value.find((l2) => l2.code === e2);
43
47
  }
44
48
  function X() {
45
- T("update:visible", false);
49
+ _("update:visible", false);
46
50
  }
47
- c(() => P.visible, (e2) => {
48
- x.value = e2, e2 && V.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
51
+ m(() => P.visible, (e2) => {
52
+ x.value = e2, e2 && S.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
49
53
  e3 && e3.forEach((e4) => {
50
54
  e4.name = e4.name + "(" + e4.publishVersion + ")";
51
55
  });
52
56
  const l2 = e3.findIndex((e4) => e4.code === P.systemCode);
53
- -1 === l2 ? $.value = e3[0].code : ($.value = e3[l2].code, -1 !== l2 && 0 !== l2 && ([e3[0], e3[l2]] = [e3[l2], e3[0]])), A.value = e3, j($.value);
57
+ $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, F($.value);
54
58
  });
55
59
  });
56
- return (p3, m2) => {
57
- const c2 = o, V2 = t, S2 = s, N3 = n, T2 = a, P2 = r, B2 = u, q = i, G = l, H = e;
58
- return v(), d(H, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": m2[7] || (m2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": X }, { footer: g(() => [_("div", k, [f(N3, { type: "default", size: "small", onClick: m2[6] || (m2[6] = (e2) => x.value = false) }, { default: g(() => m2[9] || (m2[9] = [C("返回", -1)])), _: 1, __: [9] }), f(N3, { size: "small", type: "primary", onClick: R }, { default: g(() => m2[10] || (m2[10] = [C(" 确定 ", -1)])), _: 1, __: [10] })])]), default: g(() => [f(G, { style: { height: "400px" } }, { default: g(() => [f(T2, { style: { padding: "0", height: "50px" } }, { default: g(() => [f(V2, { modelValue: $.value, "onUpdate:modelValue": m2[0] || (m2[0] = (e2) => $.value = e2), onChange: D, "value-key": "code", size: "small", style: { width: "240px" } }, { default: g(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(c2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), f(S2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), f(S2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": m2[2] || (m2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), f(N3, { type: "primary", size: "small", icon: z(w), onClick: m2[3] || (m2[3] = (e2) => {
59
- j($.value);
60
- }) }, { default: g(() => m2[8] || (m2[8] = [C("查询", -1)])), _: 1, __: [8] }, 8, ["icon"])]), _: 1 }), f(B2, { ref_key: "tableRef", ref: M, "current-row-key": "code", "row-key": "code", onRowClick: O, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: g(() => [f(P2, { type: "index", width: "50" }), f(P2, { prop: "name", label: "编码" }), f(P2, { prop: "alias", label: "名称" }), f(P2, { prop: "modifierName", label: "修改人" }), f(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
60
+ return (p3, c2) => {
61
+ const m2 = o, S2 = t, N2 = s, T3 = n, _2 = a, P2 = r, B2 = u, R2 = i, q = l, G = e;
62
+ return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[7] || (c2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": X }, { footer: g(() => [w("div", k, [f(T3, { type: "default", size: "small", onClick: c2[6] || (c2[6] = (e2) => x.value = false) }, { default: g(() => c2[9] || (c2[9] = [C("返回")])), _: 1 }), f(T3, { size: "small", type: "primary", onClick: J }, { default: g(() => c2[10] || (c2[10] = [C(" 确定 ")])), _: 1 })])]), default: g(() => [f(q, { style: { height: "400px" } }, { default: g(() => [f(_2, { style: { padding: "0", height: "50px" } }, { default: g(() => [f(S2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: O, "value-key": "code", size: "small", style: { width: "240px" } }, { default: g(() => [(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"]), f(N2, { 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"]), f(N2, { 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"]), f(T3, { type: "primary", size: "small", icon: z(V), onClick: c2[3] || (c2[3] = (e2) => {
63
+ F($.value);
64
+ }) }, { default: g(() => c2[8] || (c2[8] = [C("查询")])), _: 1 }, 8, ["icon"])]), _: 1 }), f(B2, { ref_key: "tableRef", ref: M, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: g(() => [f(P2, { type: "index", width: "50" }), f(P2, { prop: "name", label: "编码" }), f(P2, { prop: "alias", label: "名称" }), f(P2, { prop: "modifierName", label: "修改人" }), f(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
61
65
  let l2 = new Date(e3);
62
66
  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)}`;
63
- })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), f(q, { "current-page": E.value.currentPage, "onUpdate:currentPage": m2[4] || (m2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": m2[5] || (m2[5] = (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"]);
67
+ })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), f(R2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[4] || (c2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[5] || (c2[5] = (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: D, onCurrentChange: D }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
64
68
  };
65
69
  } });
66
70
  export {
67
- N as default
71
+ T as default
68
72
  };
@@ -9,23 +9,23 @@ import { genFileId as d } from "element-plus";
9
9
  import { getToken as c } from "agilebuilder-ui/src/utils/auth";
10
10
  import { useServiceFlowStore as f } from "../../../stores/page-store.js";
11
11
  const V = t({ __name: "file-upload", props: { modelValue: { type: Object, default: () => ({}) } }, emits: ["update:modelValue", "on-success"], setup(t2, { expose: V2, emit: v }) {
12
- const y = f(), b = v, h = t2, _ = s("");
13
- _.value = y.pageContext.systemCode, h.modelValue && "object" == typeof h.modelValue || b("update:modelValue", {});
14
- const g = s(), x = { Authorization: c() }, U = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads", j = s([]);
12
+ const y = f(), b = v, h = t2, g = s("");
13
+ g.value = y.pageContext.systemCode, h.modelValue && "object" == typeof h.modelValue || b("update:modelValue", {});
14
+ const _ = s(), x = { Authorization: c() }, U = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads", j = s([]);
15
15
  h.modelValue && h.modelValue.fileUuid && j.value.push({ name: h.modelValue.name, url: h.modelValue.fileUuid });
16
16
  const A = (e2, l2) => {
17
17
  }, C = (e2, l2) => {
18
18
  h.modelValue.name = "", h.modelValue.fileUuid = "";
19
19
  }, P = (e2) => {
20
- g.value.clearFiles();
20
+ _.value.clearFiles();
21
21
  const l2 = e2[0];
22
- l2.uid = d(), g.value.handleStart(l2), g.value.submit();
22
+ l2.uid = d(), _.value.handleStart(l2), _.value.submit();
23
23
  }, w = (e2, l2, o2) => {
24
24
  h.modelValue.name = e2.name, h.modelValue.fileUuid = e2.serverPath, b("on-success");
25
25
  };
26
26
  return V2({}), (t3, s2) => {
27
27
  const d2 = o, c2 = l, f2 = e;
28
- return a(), u(f2, { ref_key: "upload", ref: g, name: "file", data: { systemCode: _.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, __: [0] })]), _: 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 {
@@ -2,7 +2,7 @@ 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
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
- import p from "./json-view.vue.js";
5
+ import p from "./json-view.vue2.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 }) {
8
8
  const m = o2, i = d2, r = t(false);
@@ -1,54 +1,4 @@
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
- import { EditorView as s, basicSetup as a } from "codemirror";
3
- import { jsonLanguage as u } from "@codemirror/lang-json";
4
- import { EditorState as m, Facet as l } from "@codemirror/state";
5
- import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
6
- const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
7
- } }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
8
- const w2 = e2, y = t(null), b = t(), x = t("400px");
9
- function O() {
10
- y.value && y.value.destroy();
11
- const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
12
- if (w2.height) x.value = w2.height + "px";
13
- else if (b.value) {
14
- const e4 = b.value.getBoundingClientRect();
15
- (e4.y || 0 === e4.y) && (window.innerHeight, e4.y, x.value = window.innerHeight - e4.y - 100 + "px");
16
- }
17
- const t2 = function(e4) {
18
- const t3 = function() {
19
- if (w2.theme) switch (w2.theme) {
20
- case "xcodeLight":
21
- return j;
22
- case "xcodeDark":
23
- return v;
24
- case "vscodeDark":
25
- return p;
26
- case "dracula":
27
- return g;
28
- case "githubLight":
29
- return d;
30
- case "githubDark":
31
- return h;
32
- case "eclipse":
33
- return f;
34
- }
35
- return s.theme({});
36
- }(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
37
- return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
38
- }(e3);
39
- let r2 = document.getElementById("cf-codemirror-view-json");
40
- r2 && (y.value = new s({ state: t2, parent: r2 }));
41
- }
42
- r(() => w2.jsonObject, (e3) => {
43
- y.value && O();
44
- }, { deep: true }), n(() => {
45
- o(() => {
46
- O();
47
- });
48
- });
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) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
51
- } });
1
+ import e from "./json-view.vue2.js";
52
2
  export {
53
- w as default
3
+ e as default
54
4
  };
@@ -1,4 +1,54 @@
1
- import e from "./json-view.vue.js";
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
+ import { EditorView as s, basicSetup as a } from "codemirror";
3
+ import { jsonLanguage as u } from "@codemirror/lang-json";
4
+ import { EditorState as m, Facet as l } from "@codemirror/state";
5
+ import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
6
+ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
7
+ } }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
8
+ const w2 = e2, y = t(null), b = t(), x = t("400px");
9
+ function O() {
10
+ y.value && y.value.destroy();
11
+ const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
12
+ if (w2.height) x.value = w2.height + "px";
13
+ else if (b.value) {
14
+ const e4 = b.value.getBoundingClientRect();
15
+ (e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
16
+ }
17
+ const t2 = function(e4) {
18
+ const t3 = function() {
19
+ if (w2.theme) switch (w2.theme) {
20
+ case "xcodeLight":
21
+ return j;
22
+ case "xcodeDark":
23
+ return v;
24
+ case "vscodeDark":
25
+ return p;
26
+ case "dracula":
27
+ return g;
28
+ case "githubLight":
29
+ return d;
30
+ case "githubDark":
31
+ return h;
32
+ case "eclipse":
33
+ return f;
34
+ }
35
+ return s.theme({});
36
+ }(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
37
+ return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
38
+ }(e3);
39
+ let r2 = document.getElementById("cf-codemirror-view-json");
40
+ r2 && (y.value = new s({ state: t2, parent: r2 }));
41
+ }
42
+ r(() => w2.jsonObject, (e3) => {
43
+ y.value && O();
44
+ }, { deep: true }), n(() => {
45
+ o(() => {
46
+ O();
47
+ });
48
+ });
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) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
51
+ } });
2
52
  export {
3
- e as default
53
+ w as default
4
54
  };
@@ -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
@@ -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, 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 _, withModifiers as O, nextTick as S } 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";
@@ -37,7 +37,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
37
37
  const e2 = X.modelValue.match(/\${(.*?)\.(.*?)}/);
38
38
  if (e2) {
39
39
  const l2 = e2[1], a2 = e2[2];
40
- se.value = l2, ie.value = a2, ce(), "file" === se.value ? le.value = "file" : ve.includes(l2) ? ("system" === se.value && _e(), le.value = "select") : le.value = "input";
40
+ se.value = l2, ie.value = a2, ce(), "file" === se.value ? le.value = "file" : ve.includes(l2) ? ("system" === se.value && Oe(), le.value = "select") : le.value = "input";
41
41
  }
42
42
  te.value = ye();
43
43
  }
@@ -72,7 +72,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
72
72
  var e2;
73
73
  }
74
74
  function he(e2) {
75
- ie.value = "", "file" === e2 ? le.value = "file" : ve.includes(e2) ? (le.value = "select", "system" === e2 ? _e() : Ve(e2)) : le.value = "input";
75
+ ie.value = "", "file" === e2 ? le.value = "file" : ve.includes(e2) ? (le.value = "select", "system" === e2 ? Oe() : Ve(e2)) : le.value = "input";
76
76
  }
77
77
  function Ve(e2) {
78
78
  "context" === e2 ? oe.value = A : "system" === e2 ? oe.value = ne.value.systemVarOptions || [] : "task" === e2 ? oe.value = F : "data" === e2 ? oe.value = ne.value.dataModelOptions || [] : "service" === e2 && (oe.value = ne.value.serviceVarOptions || []);
@@ -87,10 +87,10 @@ 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
- ce(), me(), se.value && Ve(se.value), S(() => {
93
+ ce(), me(), se.value && Ve(se.value), _(() => {
94
94
  !function() {
95
95
  if (!X.showLabel && "select" === le.value) {
96
96
  const e2 = de.value.findIndex((e3) => e3.value === ie.value);
@@ -106,7 +106,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
106
106
  Z.value = "${file." + ae.value.name + "|" + ae.value.fileUuid + "}", ie.value = ae.value.name + "|" + ae.value.fileUuid, W("update:modelValue", Z.value), pe.value.hide();
107
107
  }
108
108
  let Ce = null;
109
- function _e() {
109
+ function Oe() {
110
110
  if (Ce && Ce == re.value) return;
111
111
  const e2 = { query: re.value };
112
112
  Ce = re.value, M.post("/component/system-params/query", e2).then((e3) => {
@@ -116,14 +116,14 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
116
116
  });
117
117
  }
118
118
  return J2({ setSelectOptions: me }), (v2, c2) => {
119
- const S2 = i, L2 = s, T2 = t, A2 = a, F2 = u, $2 = o, M2 = r, R2 = n, J3 = l, N2 = e;
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(S2, { type: "default", size: p2.inputSize, icon: b(I), onClick: O(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(S2, { 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(" 可用参数: ", -1)), (f(true), d(z, null, C(ue.value, (e2) => (f(), m(S2, { type: "primary", size: "small", onClick: (l2) => {
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 ? (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(y(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 4), [[_, "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(S2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), [[_, "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), [[_, "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(S2, { 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)])), _: 2, __: [8] }, 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));
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 {
@@ -41,7 +41,7 @@ const C = { style: { position: "absolute", right: "10px" } }, E = { key: 0 }, $
41
41
  };
42
42
  return U2({}), (u2, c2) => {
43
43
  const U3 = l, B2 = a, H = s, I = t, J = r, K = o, L = i, M = p, N = n, P = e;
44
- return f(), d(P, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(U3), y(I, { label: "数据源:" }, { default: v(() => [y(H, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: A }, { default: v(() => [(f(true), b(h, null, k(D.value, (e2) => (f(), d(B2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(K, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ", -1)), _("span", C, [-1 === q.value.indexOf(m2.properties.dataSource) ? (f(), d(J, { key: 0, size: "small", type: "primary", onClick: G }, { default: v(() => c2[2] || (c2[2] = [g("添加", -1)])), _: 1, __: [2] })) : w("", true)])]), _: 1 }), y(N, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: F, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(L, { type: "index", width: "50", label: "序号" }), y(L, { prop: "name", label: "字段名" }, { default: v((e2) => [q.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", E, "item")) : (f(), d(H, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
44
+ return f(), d(P, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(U3), y(I, { label: "数据源:" }, { default: v(() => [y(H, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: A }, { default: v(() => [(f(true), b(h, null, k(D.value, (e2) => (f(), d(B2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(K, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ")), _("span", C, [-1 === q.value.indexOf(m2.properties.dataSource) ? (f(), d(J, { key: 0, size: "small", type: "primary", onClick: G }, { default: v(() => c2[2] || (c2[2] = [g("添加")])), _: 1 })) : w("", true)])]), _: 1 }), y(N, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: F, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(L, { type: "index", width: "50", label: "序号" }), y(L, { prop: "name", label: "字段名" }, { default: v((e2) => [q.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", E, "item")) : (f(), d(H, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
45
45
  return t2 = l2, (s2 = e2.row).alias = "", void R.value.forEach((e3) => {
46
46
  e3.name === t2 && (s2.alias = e3.alias);
47
47
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./config.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-c544c25e"]]);
4
+ const r = e(o, [["__scopeId", "data-v-c47f34ac"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -8,12 +8,12 @@ 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, createElementBlock as c, openBlock as d, createVNode as y, withCtx as v, createElementVNode as b, unref as f, createTextVNode as g } from "vue";
12
- import { Search as T, View as C, Check as _ } from "@element-plus/icons-vue";
13
- import S from "../../../common/components/value-set-input/value-set-input.vue.js";
14
- import x from "../../../common/components/datatable-select.vue.js";
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
+ import { Search as T, View as C, Check as S } from "@element-plus/icons-vue";
13
+ import x from "../../../common/components/value-set-input/value-set-input.vue.js";
14
+ import V from "../../../common/components/datatable-select.vue.js";
15
15
  import { useServiceFlowStore as j } from "../../../../stores/page-store.js";
16
- import { queryTableFields as h, updateServiceParams as w, updateServiceReturns as V, getBaseUrl as N } from "../../../../utils/common-util.js";
16
+ import { queryTableFields as h, updateServiceParams as w, updateServiceReturns as _, getBaseUrl as N } from "../../../../utils/common-util.js";
17
17
  import q from "agilebuilder-ui/src/utils/request";
18
18
  import "uuid";
19
19
  import k from "./dimension-statistical.vue.js";
@@ -34,12 +34,14 @@ import "@codemirror/state";
34
34
  import M from "../../../common/components/sql-view/sql-view-dialog.vue.js";
35
35
  import "element-plus/es/components/message/style/css";
36
36
  const D = { style: { position: "absolute", right: "0" } }, E = { style: { display: "flex" } }, J = n({ __name: "config", props: { properties: { type: Object, default: () => ({ search: {}, noData: {}, result: {} }) }, logicFlowInstance: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(n2, { expose: J2 }) {
37
- var _a;
37
+ var _a, _b;
38
38
  const B = j(), A = n2;
39
39
  A.properties.result || (A.properties.result = {});
40
40
  const G = m(false), H = m(B.pageContext.systemCode);
41
41
  ((_a = A.properties) == null ? void 0 : _a.dataTableSystemCode) && (H.value = A.properties.dataTableSystemCode);
42
- const K = m(B.pageContext.systemVersion), L = m([]), P = m([]), Q = m([]);
42
+ const K = m(B.pageContext.systemVersion);
43
+ ((_b = A.properties) == null ? void 0 : _b.dataTableSystemVersion) && (K.value = A.properties.dataTableSystemVersion);
44
+ const L = m([]), P = m([]), Q = m([]);
43
45
  A.properties.result.valueSetScope || (A.properties.result.valueSetScope = "all");
44
46
  const R = m("array"), W = m(false), X = m("");
45
47
  function Y() {
@@ -77,7 +79,7 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
77
79
  function se() {
78
80
  if (!A.properties.result.setTo) return void i.error("请先设置结果参数!");
79
81
  const e2 = "first" == A.properties.result.valueSetScope ? "object" : "array";
80
- V(A.properties.result.setTo, e2, Q.value);
82
+ _(A.properties.result.setTo, e2, Q.value);
81
83
  }
82
84
  function oe() {
83
85
  X.value = "";
@@ -89,8 +91,8 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
89
91
  });
90
92
  }
91
93
  return J2({}), (i2, m2) => {
92
- const u2 = o, j2 = s, h2 = t, w2 = l, V2 = a, N2 = p, q2 = r, I2 = e;
93
- return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: v(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: v(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: v(() => [y(u2, { type: "default", icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), b("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: v(() => m2[7] || (m2[7] = [g("预览sql", -1)])), _: 1, __: [7] }, 8, ["icon"])]), y(x, { 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(V2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: v(() => m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月...", -1), b("br", null, null, -1), g("           2.未指定新字段名时,输出字段名同选择的字段名", -1), b("br", null, null, -1), g("           3.动态维度值有填写时需要匹配才会执行此分组", -1)])), _: 1, __: [8] }), 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(V2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: v(() => m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)", -1)])), _: 1, __: [9] }), 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: v(() => [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: v(() => [y(N2, { value: "first" }, { default: v(() => m2[10] || (m2[10] = [g("仅第一条", -1)])), _: 1, __: [10] }), y(N2, { value: "all" }, { default: v(() => m2[11] || (m2[11] = [g(" 全部 ", -1)])), _: 1, __: [11] })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(h2, { label: "设置到:", style: { width: "100%" } }, { default: v(() => [b("div", E, [y(f(S), { 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(_), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: v(() => m2[12] || (m2[12] = [g(" 更新服务变量 ", -1)])), _: 1, __: [12] }, 8, ["icon"]), y(u2, { icon: f(_), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: v(() => m2[13] || (m2[13] = [g(" 设置为返回值 ", -1)])), _: 1, __: [13] }, 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"])]);
94
+ const u2 = o, j2 = s, h2 = t, w2 = l, _2 = a, N2 = p, q2 = r, I2 = e;
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"])]);
94
96
  };
95
97
  } });
96
98
  export {
@@ -14,7 +14,7 @@ import "element-plus/es/components/select/style/css";
14
14
  import "element-plus/es/components/option/style/css";
15
15
  import "element-plus/es/components/form-item/style/css";
16
16
  import "element-plus/es/components/divider/style/css";
17
- import { defineComponent as f, ref as v, onMounted as b, createElementBlock as h, openBlock as y, createVNode as g, withCtx as x, createElementVNode as _, withDirectives as S, unref as k, Fragment as V, renderList as z, createBlock as w, vShow as D, createTextVNode as L } from "vue";
17
+ import { defineComponent as f, ref as v, onMounted as b, createElementBlock as h, openBlock as y, createVNode as g, withCtx as x, createElementVNode as S, withDirectives as _, unref as k, Fragment as V, renderList as z, createBlock as w, vShow as D, createTextVNode as L } from "vue";
18
18
  import { useLocalStorage as C } from "@vueuse/core";
19
19
  import H from "../../../common/components/node-base-config.vue.js";
20
20
  import { Search as O, FullScreen as j, CaretRight as U } from "@element-plus/icons-vue";
@@ -94,7 +94,7 @@ const R = { style: {} }, Y = { style: { padding: "8px 16px", margin: "10px 0px",
94
94
  };
95
95
  return $2({}), (v2, b2) => {
96
96
  const C2 = t, T2 = l, q2 = a, E2 = s, G2 = o, W2 = n, X2 = i, B2 = p, J2 = u, N2 = r, Q2 = m, A2 = d, F2 = c, K2 = e;
97
- return y(), h("div", R, [g(K2, { "label-width": "auto", "label-position": "left" }, { default: x(() => [g(H, { properties: f2.properties }, null, 8, ["properties"]), g(C2), g(T2), _("div", Y, [b2[5] || (b2[5] = _("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), _("span", Z, [g(G2, { effect: "dark", content: "切换主题", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", onChange: ie, modelValue: ne.value.theme, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => ne.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: x(() => [g(q2, { label: "默认", value: "default" }), g(q2, { label: "VScodeDark", value: "vscodeDark" }), g(q2, { label: "Dracula", value: "dracula" }), g(q2, { label: "GithubLight", value: "githubLight" }), g(q2, { label: "GithubDark", value: "githubDark" }), g(q2, { label: "Eclipse", value: "eclipse" }), g(q2, { label: "XcodeLight", value: "xcodeLight" }), g(q2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(G2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", modelValue: ne.value.fontSize, "onUpdate:modelValue": b2[1] || (b2[1] = (e2) => ne.value.fontSize = e2), placeholder: "", onChange: ie, size: "small", style: { width: "80px" } }, { default: x(() => [g(q2, { label: "12", value: 12 }), g(q2, { label: "14", value: 14 }), g(q2, { label: "16", value: 16 }), g(q2, { label: "18", value: 18 }), g(q2, { label: "20", value: 20 }), g(q2, { label: "22", value: 22 }), g(q2, { label: "24", value: 24 }), g(q2, { label: "26", value: 26 }), g(q2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), g(G2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: x(() => [g(W2, { class: "editorOption", onClick: de }, { default: x(() => [g(k(O))]), _: 1 })]), _: 1 }), g(G2, { effect: "dark", content: ae.value ? "退出全屏" : "全屏", placement: "top" }, { default: x(() => [g(W2, { style: { cursor: "pointer" }, onClick: ue }, { default: x(() => [g(k(j))]), _: 1 })]), _: 1 }, 8, ["content"]), g(W2, { style: { cursor: "pointer" }, onClick: fe, size: 25 }, { default: x(() => [g(k(U))]), _: 1 })]), b2[8] || (b2[8] = _("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), S(g(N2, { modelValue: se.value, "onUpdate:modelValue": b2[2] || (b2[2] = (e2) => se.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: x(() => [(y(true), h(V, null, z(oe.value, (e2, t2) => (y(), w(J2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: x(() => [g(B2, { data: e2, style: { width: "100%" } }, { default: x(() => [(y(true), h(V, null, z(e2[0], (e3, t3) => (y(), w(X2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[D, oe.value && oe.value.lenght > 0]]), g(Q2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), g(T2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: x(() => [g(F2, { modelValue: f2.properties.result.valueSetScope, "onUpdate:modelValue": b2[3] || (b2[3] = (e2) => f2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: x(() => [g(A2, { value: "first" }, { default: x(() => b2[6] || (b2[6] = [L("仅第一条", -1)])), _: 1, __: [6] }), g(A2, { value: "all" }, { default: x(() => b2[7] || (b2[7] = [L(" 全部 ", -1)])), _: 1, __: [7] })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(T2, { label: "设置到:", style: { width: "100%" } }, { default: x(() => [g(k(I), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: f2.properties.result.setTo, "onUpdate:modelValue": b2[4] || (b2[4] = (e2) => f2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1, __: [8] })]);
97
+ return y(), h("div", R, [g(K2, { "label-width": "auto", "label-position": "left" }, { default: x(() => [g(H, { properties: f2.properties }, null, 8, ["properties"]), g(C2), g(T2), S("div", Y, [b2[5] || (b2[5] = S("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), S("span", Z, [g(G2, { effect: "dark", content: "切换主题", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", onChange: ie, modelValue: ne.value.theme, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => ne.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: x(() => [g(q2, { label: "默认", value: "default" }), g(q2, { label: "VScodeDark", value: "vscodeDark" }), g(q2, { label: "Dracula", value: "dracula" }), g(q2, { label: "GithubLight", value: "githubLight" }), g(q2, { label: "GithubDark", value: "githubDark" }), g(q2, { label: "Eclipse", value: "eclipse" }), g(q2, { label: "XcodeLight", value: "xcodeLight" }), g(q2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(G2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", modelValue: ne.value.fontSize, "onUpdate:modelValue": b2[1] || (b2[1] = (e2) => ne.value.fontSize = e2), placeholder: "", onChange: ie, size: "small", style: { width: "80px" } }, { default: x(() => [g(q2, { label: "12", value: 12 }), g(q2, { label: "14", value: 14 }), g(q2, { label: "16", value: 16 }), g(q2, { label: "18", value: 18 }), g(q2, { label: "20", value: 20 }), g(q2, { label: "22", value: 22 }), g(q2, { label: "24", value: 24 }), g(q2, { label: "26", value: 26 }), g(q2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), g(G2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: x(() => [g(W2, { class: "editorOption", onClick: de }, { default: x(() => [g(k(O))]), _: 1 })]), _: 1 }), g(G2, { effect: "dark", content: ae.value ? "退出全屏" : "全屏", placement: "top" }, { default: x(() => [g(W2, { style: { cursor: "pointer" }, onClick: ue }, { default: x(() => [g(k(j))]), _: 1 })]), _: 1 }, 8, ["content"]), g(W2, { style: { cursor: "pointer" }, onClick: fe, size: 25 }, { default: x(() => [g(k(U))]), _: 1 })]), b2[8] || (b2[8] = S("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), _(g(N2, { modelValue: se.value, "onUpdate:modelValue": b2[2] || (b2[2] = (e2) => se.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: x(() => [(y(true), h(V, null, z(oe.value, (e2, t2) => (y(), w(J2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: x(() => [g(B2, { data: e2, style: { width: "100%" } }, { default: x(() => [(y(true), h(V, null, z(e2[0], (e3, t3) => (y(), w(X2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[D, oe.value && oe.value.lenght > 0]]), g(Q2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), g(T2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: x(() => [g(F2, { modelValue: f2.properties.result.valueSetScope, "onUpdate:modelValue": b2[3] || (b2[3] = (e2) => f2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: x(() => [g(A2, { value: "first" }, { default: x(() => b2[6] || (b2[6] = [L("仅第一条")])), _: 1 }), g(A2, { value: "all" }, { default: x(() => b2[7] || (b2[7] = [L(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(T2, { label: "设置到:", style: { width: "100%" } }, { default: x(() => [g(k(I), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: f2.properties.result.setTo, "onUpdate:modelValue": b2[4] || (b2[4] = (e2) => f2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
98
98
  };
99
99
  } });
100
100
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./config.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-451718f5"]]);
4
+ const r = e(o, [["__scopeId", "data-v-c119b3b3"]]);
5
5
  export {
6
6
  r as default
7
7
  };