service-flow-designer 2.3.0-tmp1 → 2.3.4-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 (24) hide show
  1. package/dist/es/designer/common/components/datatable-select.vue2.js +15 -15
  2. package/dist/es/designer/common/components/file-upload.vue2.js +6 -6
  3. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +9 -9
  4. package/dist/es/designer/service-components/computation/sort/config.vue2.js +1 -1
  5. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +11 -11
  6. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +13 -13
  7. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
  8. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +2 -2
  9. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +4 -4
  10. package/dist/es/designer/service-components/service/common/form-data.vue.js +8 -8
  11. package/dist/es/designer/service-components/service/common/header-data.vue.js +4 -4
  12. package/dist/es/designer/service-components/service/common/json-data.vue2.js +4 -4
  13. package/dist/es/designer/service-components/service/common/param-config.vue2.js +5 -5
  14. package/dist/es/designer/service-components/service/common/query-params.vue.js +4 -4
  15. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
  16. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +11 -11
  17. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +11 -11
  18. package/dist/es/designer/service-flow-view/service-params.vue.js +6 -6
  19. package/dist/es/designer/service-flow-view/service-result.vue.js +11 -11
  20. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +14 -14
  21. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +7 -7
  22. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +9 -9
  23. package/dist/es/designer/service-panel/service-list.vue2.js +2 -2
  24. package/package.json +2 -2
@@ -10,12 +10,12 @@ 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();
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 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 k } from "element-plus";
17
+ const N = { 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 = 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
19
  function D(e2) {
20
20
  U.value = [], E.value.currentPage = 1, E.value.total = 0, $.value = e2, j(e2);
21
21
  }
@@ -27,7 +27,7 @@ const k = { class: "dialog-footer" }, N = p({ name: "DatatableSelect", inheritAt
27
27
  const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
28
28
  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
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) => {
30
+ S.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + P.systemVersion, l2).then((e3) => {
31
31
  U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
32
32
  });
33
33
  }
@@ -37,15 +37,15 @@ const k = { class: "dialog-footer" }, N = p({ name: "DatatableSelect", inheritAt
37
37
  function R() {
38
38
  if (B.value.name) {
39
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("请选择一条记录!");
40
+ _("select", { dataTable: B.value, system: l2[0] }), _("update:visible", false);
41
+ } else k.warning("请选择一条记录!");
42
42
  var e2;
43
43
  }
44
44
  function X() {
45
- T("update:visible", false);
45
+ _("update:visible", false);
46
46
  }
47
47
  c(() => P.visible, (e2) => {
48
- x.value = e2, e2 && V.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
48
+ x.value = e2, e2 && S.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
49
49
  e3 && e3.forEach((e4) => {
50
50
  e4.name = e4.name + "(" + e4.publishVersion + ")";
51
51
  });
@@ -54,15 +54,15 @@ const k = { class: "dialog-footer" }, N = p({ name: "DatatableSelect", inheritAt
54
54
  });
55
55
  });
56
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, __: [9] }), f(N3, { size: "small", type: "primary", onClick: R }, { default: g(() => m2[10] || (m2[10] = [C(" 确定 ")])), _: 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) => {
57
+ const c2 = o, S2 = t, k2 = s, T3 = n, _2 = 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(() => [w("div", N, [f(T3, { type: "default", size: "small", onClick: m2[6] || (m2[6] = (e2) => x.value = false) }, { default: g(() => m2[9] || (m2[9] = [C("返回")])), _: 1 }), f(T3, { size: "small", type: "primary", onClick: R }, { default: g(() => m2[10] || (m2[10] = [C(" 确定 ")])), _: 1 })])]), default: g(() => [f(G, { style: { height: "400px" } }, { default: g(() => [f(_2, { style: { padding: "0", height: "50px" } }, { default: g(() => [f(S2, { 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(k2, { 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(k2, { 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(T3, { type: "primary", size: "small", icon: z(V), onClick: m2[3] || (m2[3] = (e2) => {
59
59
  j($.value);
60
- }) }, { default: g(() => m2[8] || (m2[8] = [C("查询")])), _: 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
+ }) }, { default: g(() => m2[8] || (m2[8] = [C("查询")])), _: 1 }, 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) => {
61
61
  let l2 = new Date(e3);
62
62
  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
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"]);
64
64
  };
65
65
  } });
66
66
  export {
67
- N as default
67
+ T as default
68
68
  };
@@ -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(" 上传附件")), 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 {
@@ -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 || []);
@@ -90,7 +90,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
90
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(" 可用参数: ")), (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(" 选择 ")])), _: 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(" 排序条件 ")), _("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, __: [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
  });
@@ -9,11 +9,11 @@ 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
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";
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";
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 j from "../../../common/components/datatable-select.vue.js";
15
+ import { useServiceFlowStore as h } from "../../../../stores/page-store.js";
16
+ import { queryTableFields as w, updateServiceParams as V, 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";
@@ -35,7 +35,7 @@ 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
37
  var _a;
38
- const B = j(), A = n2;
38
+ const B = h(), 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);
@@ -47,7 +47,7 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
47
47
  }
48
48
  function Z() {
49
49
  const e2 = A.properties.dataTable, t2 = A.properties.dataTableSystemCode, s2 = A.properties.dataTableSystemVersion;
50
- e2 ? h(t2, s2, e2).then((e3) => {
50
+ e2 ? w(t2, s2, e2).then((e3) => {
51
51
  L.value = e3, P.value = L.value;
52
52
  }) : (L.value = [], P.value = L.value);
53
53
  }
@@ -72,12 +72,12 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
72
72
  function te() {
73
73
  if (!A.properties.result.setTo) return void i.error("请先设置结果参数!");
74
74
  const e2 = "first" == A.properties.result.valueSetScope ? "object" : "array";
75
- w(A.properties.result.setTo, e2, Q.value);
75
+ V(A.properties.result.setTo, e2, Q.value);
76
76
  }
77
77
  function se() {
78
78
  if (!A.properties.result.setTo) return void i.error("请先设置结果参数!");
79
79
  const e2 = "first" == A.properties.result.valueSetScope ? "object" : "array";
80
- V(A.properties.result.setTo, e2, Q.value);
80
+ _(A.properties.result.setTo, e2, Q.value);
81
81
  }
82
82
  function oe() {
83
83
  X.value = "";
@@ -89,8 +89,8 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
89
89
  });
90
90
  }
91
91
  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, __: [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位月..."), b("br", null, null, -1), g("           2.未指定新字段名时,输出字段名同选择的字段名"), b("br", null, null, -1), g("           3.动态维度值有填写时需要匹配才会执行此分组")])), _: 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, __: [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, __: [10] }), y(N2, { value: "all" }, { default: v(() => m2[11] || (m2[11] = [g(" 全部 ")])), _: 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, __: [12] }, 8, ["icon"]), y(u2, { icon: f(_), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: v(() => m2[13] || (m2[13] = [g(" 设置为返回值 ")])), _: 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"])]);
92
+ const u2 = o, h2 = s, w2 = t, V2 = l, _2 = 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(w2, { label: "选择数据表" }, { default: v(() => [y(h2, { 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 }, 8, ["icon"])]), y(j, { 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(V2, { 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: v(() => m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月..."), b("br", null, null, -1), g("           2.未指定新字段名时,输出字段名同选择的字段名"), b("br", null, null, -1), g("           3.动态维度值有填写时需要匹配才会执行此分组")])), _: 1 }), y(V2, { 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: v(() => m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)")])), _: 1 }), y(V2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(V2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(V2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(w2, { 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 }), y(N2, { value: "all" }, { default: v(() => m2[11] || (m2[11] = [g(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(w2, { label: "设置到:", style: { width: "100%" } }, { default: v(() => [b("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: v(() => m2[12] || (m2[12] = [g(" 更新服务变量 ")])), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: v(() => 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
94
  };
95
95
  } });
96
96
  export {
@@ -6,34 +6,34 @@ import "element-plus/es/components/button/style/css";
6
6
  import "element-plus/es/components/select/style/css";
7
7
  import "element-plus/es/components/option/style/css";
8
8
  import "element-plus/es/components/table-column/style/css";
9
- import { defineComponent as p, createBlock as n, openBlock as u, withCtx as d, createVNode as i, createElementBlock as s, toDisplayString as m, Fragment as T, renderList as c, withDirectives as w, vShow as b, unref as y, createElementVNode as f } from "vue";
9
+ import { defineComponent as p, createBlock as n, openBlock as u, withCtx as d, createVNode as i, createElementBlock as s, toDisplayString as m, Fragment as T, renderList as c, withDirectives as w, vShow as y, unref as b, createElementVNode as f } from "vue";
10
10
  import { Minus as v, Plus as E } from "@element-plus/icons-vue";
11
11
  import { v4 as N } from "uuid";
12
12
  import V from "../../../common/components/value-set-input/value-set-input.vue.js";
13
13
  import { logicOperators as k } from "../../util/common-options.js";
14
- const _ = { key: 0 }, h = { key: 0 }, L = { key: 0 }, g = { key: 0 }, C = { key: 0 }, U = { key: 0 }, I = p({ __name: "filter-conditions", props: { properties: { type: Object, default: () => ({ filterConditions: [] }) }, dataTableColumns: { type: Array, default: () => [] } }, setup(p2) {
15
- const I2 = p2, O = (e2) => {
14
+ const L = { key: 0 }, _ = { key: 0 }, h = { key: 0 }, g = { key: 0 }, C = { key: 0 }, I = { key: 0 }, O = p({ __name: "filter-conditions", props: { properties: { type: Object, default: () => ({ filterConditions: [] }) }, dataTableColumns: { type: Array, default: () => [] } }, setup(p2) {
15
+ const O2 = p2, U = (e2) => {
16
16
  G(e2);
17
17
  };
18
18
  function G(e2) {
19
19
  e2.$editing = true;
20
20
  }
21
21
  return (A, B) => {
22
- const z = l, $ = o, D = a, R = r, x = t, X = e;
23
- return u(), n(X, { data: p2.properties.filterConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowClick: O, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [i(z, { type: "index", width: "50", label: "序号", align: "center" }), i(z, { prop: "leftBracket", label: "((((", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i($, { label: "(", value: "(" }), i($, { label: "((", value: "((" }), i($, { label: "(((", value: "(((" }), i($, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", _, m(e2.row.leftBracket), 1))]), _: 1 }), i(z, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, modelValue: e2.row.propName, "onUpdate:modelValue": (l2) => e2.row.propName = l2, placeholder: "", filterable: true, "allow-create": true, size: "small", onChange: (l2) => function(e3, l3) {
24
- if (!l3 || !I2.dataTableColumns) return;
25
- const a2 = I2.dataTableColumns.filter((e4) => e4.name == l3.propName || e4.dbColumnName == l3.propName), o2 = l3.dataType;
22
+ const z = l, R = o, $ = a, D = r, x = t, X = e;
23
+ return u(), n(X, { data: p2.properties.filterConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowClick: U, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [i(z, { type: "index", width: "50", label: "序号", align: "center" }), i(z, { prop: "leftBracket", label: "((((", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i(R, { label: "(", value: "(" }), i(R, { label: "((", value: "((" }), i(R, { label: "(((", value: "(((" }), i(R, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", L, m(e2.row.leftBracket), 1))]), _: 1 }), i(z, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.propName, "onUpdate:modelValue": (l2) => e2.row.propName = l2, placeholder: "", filterable: true, "allow-create": true, size: "small", onChange: (l2) => function(e3, l3) {
24
+ if (!l3 || !O2.dataTableColumns) return;
25
+ const a2 = O2.dataTableColumns.filter((e4) => e4.name == l3.propName || e4.dbColumnName == l3.propName), o2 = l3.dataType;
26
26
  a2 && a2.length > 0 ? l3.dataType = a2[0].dataType : l3.dataType = "TEXT", o2 != l3.dataType && (l3.operator = null);
27
- }(A.val, e2.row), title: e2.row.propName }, { default: d(() => [(u(true), s(T, null, c(p2.dataTableColumns, (e3) => (u(), n($, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "title"])) : (u(), s("span", h, m(e2.row.propName), 1))]), _: 1 }), i(z, { prop: "operator", label: "操作符", width: "100" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small", title: e2.row.operator }, { default: d(() => [w(i($, { label: "大于", value: "GT" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "小于", value: "LT" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "大于", value: "GT" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i($, { label: "小于", value: "LT" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i($, { label: "等于", value: "EQ" }), w(i($, { label: "小于等于", value: "LET" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "大于等于", value: "GET" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "小于等于", value: "LET" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i($, { label: "大于等于", value: "GET" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i($, { label: "不等于", value: "NET" }), w(i($, { label: "包含", value: "CONTAIN" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "左匹配", value: "LEFT_LIKE" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "右匹配", value: "RIGHT_LIKE" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "不包含", value: "NOT_CONTAIN" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "IN", value: "RANGE_QUERY" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), i($, { label: "等于Null", value: "IS_NULL" }), i($, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])) : (u(), s("span", L, m(e2.row.operator), 1))]), _: 1 }), i(z, { prop: "propValue", label: "值" }, { default: d((e2) => [i(y(V), { showLabel: !e2.row.$editing, size: "small", paramTypes: ["system", "context", "service", "request", "fixed"], modelValue: e2.row.propValue, "onUpdate:modelValue": (l2) => e2.row.propValue = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), i(z, { prop: "rightBracket", label: "))))", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i($, { label: ")", value: ")" }), i($, { label: "))", value: "))" }), i($, { label: ")))", value: ")))" }), i($, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", g, m(e2.row.rightBracket), 1))]), _: 1 }), i(z, { prop: "joinSign", label: "连接符", width: "70" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, clearable: "", placeholder: "", size: "small" }, { default: d(() => [(u(true), s(T, null, c(y(k), (e3) => (u(), n($, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", C, m(e2.row.logicOperator), 1))]), _: 1 }), i(z, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, modelValue: e2.row.variableIsNull, "onUpdate:modelValue": (l2) => e2.row.variableIsNull = l2, clearable: "", placeholder: "请选择" }, { default: d(() => [i($, { label: "Null", value: "null" }), i($, { label: "忽略(1=1)", value: "ignore" }), i($, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", U, m(e2.row.variableIsNull), 1))]), _: 1 }), i(z, { align: "center", width: "60" }, { header: d(() => [i(x, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [i(R, { type: "primary", size: "small", icon: y(E), circle: "", onClick: B[0] || (B[0] = (e2) => (() => {
28
- I2.properties.filterConditions || (I2.properties.filterConditions = []);
27
+ }(A.val, e2.row), title: e2.row.propName }, { default: d(() => [(u(true), s(T, null, c(p2.dataTableColumns, (e3) => (u(), n(R, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "title"])) : (u(), s("span", _, m(e2.row.propName), 1))]), _: 1 }), i(z, { prop: "operator", label: "操作符", width: "100" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small", title: e2.row.operator }, { default: d(() => [w(i(R, { label: "大于", value: "GT" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "小于", value: "LT" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "大于", value: "GT" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i(R, { label: "小于", value: "LT" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i(R, { label: "等于", value: "EQ" }), w(i(R, { label: "小于等于", value: "LET" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "大于等于", value: "GET" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "小于等于", value: "LET" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i(R, { label: "大于等于", value: "GET" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i(R, { label: "不等于", value: "NET" }), w(i(R, { label: "包含", value: "CONTAIN" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "左匹配", value: "LEFT_LIKE" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "右匹配", value: "RIGHT_LIKE" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "不包含", value: "NOT_CONTAIN" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "IN", value: "RANGE_QUERY" }, null, 512), [[y, "TEXT" == e2.row.dataType || "LONG" == e2.row.dataType || "INTEGER" == e2.row.dataType]]), i(R, { label: "等于Null", value: "IS_NULL" }), i(R, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])) : (u(), s("span", h, m(e2.row.operator), 1))]), _: 1 }), i(z, { prop: "propValue", label: "值" }, { default: d((e2) => [i(b(V), { showLabel: !e2.row.$editing, size: "small", paramTypes: ["system", "context", "service", "request", "fixed"], modelValue: e2.row.propValue, "onUpdate:modelValue": (l2) => e2.row.propValue = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), i(z, { prop: "rightBracket", label: "))))", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i(R, { label: ")", value: ")" }), i(R, { label: "))", value: "))" }), i(R, { label: ")))", value: ")))" }), i(R, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", g, m(e2.row.rightBracket), 1))]), _: 1 }), i(z, { prop: "joinSign", label: "连接符", width: "70" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, clearable: "", placeholder: "", size: "small" }, { default: d(() => [(u(true), s(T, null, c(b(k), (e3) => (u(), n(R, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", C, m(e2.row.logicOperator), 1))]), _: 1 }), i(z, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.variableIsNull, "onUpdate:modelValue": (l2) => e2.row.variableIsNull = l2, clearable: "", placeholder: "请选择" }, { default: d(() => [i(R, { label: "Null", value: "null" }), i(R, { label: "忽略(1=1)", value: "ignore" }), i(R, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", I, m(e2.row.variableIsNull), 1))]), _: 1 }), i(z, { align: "center", width: "60" }, { header: d(() => [i(x, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [i(D, { type: "primary", size: "small", icon: b(E), circle: "", onClick: B[0] || (B[0] = (e2) => (() => {
28
+ O2.properties.filterConditions || (O2.properties.filterConditions = []);
29
29
  const e3 = { code: N() };
30
- I2.properties.filterConditions.push(e3), G(e3);
31
- })()) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [i(x, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [i(R, { type: "danger", size: "small", icon: y(v), circle: "", onClick: (l2) => {
32
- return a2 = e2.$index, e2.row, void I2.properties.filterConditions.splice(a2, 1);
30
+ O2.properties.filterConditions.push(e3), G(e3);
31
+ })()) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [i(x, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [i(D, { type: "danger", size: "small", icon: b(v), circle: "", onClick: (l2) => {
32
+ return a2 = e2.$index, e2.row, void O2.properties.filterConditions.splice(a2, 1);
33
33
  var a2;
34
34
  } }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
35
35
  };
36
36
  } });
37
37
  export {
38
- I as default
38
+ O as default
39
39
  };
@@ -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, __: [6] }), g(A2, { value: "all" }, { default: x(() => b2[7] || (b2[7] = [L(" 全部 ")])), _: 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 {
@@ -14,7 +14,7 @@ import "element-plus/es/components/form-item/style/css";
14
14
  import "element-plus/es/components/input/style/css";
15
15
  import "element-plus/es/components/button/style/css";
16
16
  import "element-plus/es/components/checkbox/style/css";
17
- import { defineComponent as b, ref as y, onMounted as f, createElementBlock as h, openBlock as V, createVNode as v, withCtx as g, createElementVNode as w, unref as _, createTextVNode as k, createBlock as U, toDisplayString as x, Fragment as C, renderList as T, createCommentVNode as z } from "vue";
17
+ import { defineComponent as b, ref as y, onMounted as f, createElementBlock as h, openBlock as V, createVNode as v, withCtx as g, createElementVNode as w, unref as k, createTextVNode as _, createBlock as U, toDisplayString as x, Fragment as C, renderList as T, createCommentVNode as z } from "vue";
18
18
  import { Search as $, View as D, Minus as j, Plus as E } from "@element-plus/icons-vue";
19
19
  import { getLabel as O, sqlOperators as S, logicOperators as B } from "../../util/common-options.js";
20
20
  import I from "../../../common/components/value-set-input/value-set-input.vue.js";
@@ -66,7 +66,7 @@ const L = { style: { position: "absolute", right: "0" } }, R = { key: 0 }, G = {
66
66
  e2.$editing && delete e2.$editing;
67
67
  }), ee.properties) }), (y2, f2) => {
68
68
  const q2 = o, N2 = a, A2 = t, J2 = l, Y3 = s, Z2 = p, me = n, ce = i, be = d, ye = r, fe = m, he = u, Ve = c, ve = e;
69
- return V(), h("div", null, [v(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [v(F, { properties: b2.properties }, null, 8, ["properties"]), v(J2, { label: "" }, { label: g((e2) => [v(q2, { onChange: de, modelValue: b2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => b2.properties.specifyDataTable = e3), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: !b2.properties.specifyDataTable, modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => b2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: g(() => [v(N2, { type: "default", icon: _($), onClick: f2[1] || (f2[1] = (e2) => ae.value = !ae.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), w("span", L, [v(N2, { type: "primary", icon: _(D), onClick: ue }, { default: g(() => f2[19] || (f2[19] = [k("预览sql")])), _: 1, __: [19] }, 8, ["icon"])]), v(P, { visible: ae.value, "onUpdate:visible": f2[3] || (f2[3] = (e2) => ae.value = e2), modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e2) => b2.properties.dataTable = e2), systemCode: se.value, systemVersion: re.value, onSelect: ne }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), v(Y3, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "(((" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: "(", value: "(" }), v(me, { label: "((", value: "((" }), v(me, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", R, x(e2.row.leftBracket), 1))]), _: 1 }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", G, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "type", label: "比较" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(_(S), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", H, x(_(O)(e2.row.operator, _(S))), 1))]), _: 1 }), v(Z2, { prop: "value", label: "值", width: "150" }, { default: g((e2) => [v(_(I), { customInputTypes: ["data"], showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), v(Z2, { prop: "rightBracket", label: ")))" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: ")", value: ")" }), v(me, { label: "))", value: "))" }), v(me, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", K, x(e2.row.rightBracket), 1))]), _: 1 }), v(Z2, { prop: "logicOperator", label: "连接符" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(_(B), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", Q, x(_(O)(e2.row.logicOperator, _(B))), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[5] || (f2[5] = (e2) => (ee.properties.search.conditions || (ee.properties.search.conditions = []), void ee.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e3) => b2.properties.search.pageEnable = e3), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.pageEnable ? (V(), U(_(I), { key: 0, modelValue: b2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e2) => b2.properties.search.page = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e3) => b2.properties.search.limitEnable = e3), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.limitEnable ? (V(), U(_(I), { key: 0, modelValue: b2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e2) => b2.properties.search.limit = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e3) => b2.properties.search.totalEnable = e3), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.totalEnable ? (V(), U(_(I), { key: 0, customInputTypes: ["data"], size: "small", modelValue: b2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e2) => b2.properties.search.total = e2) }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(Y3, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", W, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "order", label: "排序方式" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: g(() => [v(me, { label: "升序", value: "asc" }), v(me, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", X, x(e2.row.order), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[12] || (f2[12] = (e2) => (ee.properties.sort || (ee.properties.sort = []), void ee.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(Y3, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(he, { modelValue: b2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e2) => b2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: g(() => [v(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [k("仅第一条")])), _: 1, __: [20] }), v(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [k(" 全部 ")])), _: 1, __: [21] })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [v(_(I), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: b2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e2) => b2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 }), v(Y3, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e2) => b2.properties.noData.action = e2), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [k(" 继续 ")])), _: 1, __: [22] }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e3) => b2.properties.noData.action = e3), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: "throwException" !== b2.properties.noData.action, modelValue: b2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e2) => b2.properties.noData.exceptionMessage = e2), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), v(Ve)]), _: 1 }), v(_(M), { sql: te.value, "model-value": le.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e2) => le.value = e2) }, null, 8, ["sql", "model-value"])]);
69
+ return V(), h("div", null, [v(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [v(F, { properties: b2.properties }, null, 8, ["properties"]), v(J2, { label: "" }, { label: g((e2) => [v(q2, { onChange: de, modelValue: b2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => b2.properties.specifyDataTable = e3), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: !b2.properties.specifyDataTable, modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => b2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: g(() => [v(N2, { type: "default", icon: k($), onClick: f2[1] || (f2[1] = (e2) => ae.value = !ae.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), w("span", L, [v(N2, { type: "primary", icon: k(D), onClick: ue }, { default: g(() => f2[19] || (f2[19] = [_("预览sql")])), _: 1 }, 8, ["icon"])]), v(P, { visible: ae.value, "onUpdate:visible": f2[3] || (f2[3] = (e2) => ae.value = e2), modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e2) => b2.properties.dataTable = e2), systemCode: se.value, systemVersion: re.value, onSelect: ne }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), v(Y3, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "(((" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: "(", value: "(" }), v(me, { label: "((", value: "((" }), v(me, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", R, x(e2.row.leftBracket), 1))]), _: 1 }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", G, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "type", label: "比较" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(k(S), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", H, x(k(O)(e2.row.operator, k(S))), 1))]), _: 1 }), v(Z2, { prop: "value", label: "值", width: "150" }, { default: g((e2) => [v(k(I), { customInputTypes: ["data"], showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), v(Z2, { prop: "rightBracket", label: ")))" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: ")", value: ")" }), v(me, { label: "))", value: "))" }), v(me, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", K, x(e2.row.rightBracket), 1))]), _: 1 }), v(Z2, { prop: "logicOperator", label: "连接符" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(k(B), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", Q, x(k(O)(e2.row.logicOperator, k(B))), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: k(E), circle: "", onClick: f2[5] || (f2[5] = (e2) => (ee.properties.search.conditions || (ee.properties.search.conditions = []), void ee.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: k(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e3) => b2.properties.search.pageEnable = e3), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.pageEnable ? (V(), U(k(I), { key: 0, modelValue: b2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e2) => b2.properties.search.page = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e3) => b2.properties.search.limitEnable = e3), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.limitEnable ? (V(), U(k(I), { key: 0, modelValue: b2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e2) => b2.properties.search.limit = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e3) => b2.properties.search.totalEnable = e3), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.totalEnable ? (V(), U(k(I), { key: 0, customInputTypes: ["data"], size: "small", modelValue: b2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e2) => b2.properties.search.total = e2) }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(Y3, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", W, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "order", label: "排序方式" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: g(() => [v(me, { label: "升序", value: "asc" }), v(me, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", X, x(e2.row.order), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: k(E), circle: "", onClick: f2[12] || (f2[12] = (e2) => (ee.properties.sort || (ee.properties.sort = []), void ee.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: k(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(Y3, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(he, { modelValue: b2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e2) => b2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: g(() => [v(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [_("仅第一条")])), _: 1 }), v(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [_(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [v(k(I), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: b2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e2) => b2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 }), v(Y3, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e2) => b2.properties.noData.action = e2), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [_(" 继续 ")])), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e3) => b2.properties.noData.action = e3), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: "throwException" !== b2.properties.noData.action, modelValue: b2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e2) => b2.properties.noData.exceptionMessage = e2), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), v(Ve)]), _: 1 }), v(k(M), { sql: te.value, "model-value": le.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e2) => le.value = e2) }, null, 8, ["sql", "model-value"])]);
70
70
  };
71
71
  } });
72
72
  export {
@@ -9,15 +9,15 @@ import r from "../../../common/components/value-set-input/value-set-input.vue.js
9
9
  const i = t({ __name: "cookie-data", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { emit: i2 }) {
10
10
  const c = i2, V = t2;
11
11
  V.modelValue || c("update:modelValue", []);
12
- const _ = () => {
12
+ const f = () => {
13
13
  V.modelValue.push({ name: "", value: "", description: "" });
14
14
  };
15
15
  return (i3, c2) => {
16
- const f = o, v = l, y = a, b = e;
17
- return s(), n(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [u(v, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [u(f, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [u(p(r), { size: "small", paramTypes: ["service", "value"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [u(f, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(v, { align: "center", width: "70" }, { header: m(() => [u(y, { type: "primary", size: "small", onClick: _, link: "" }, { default: m(() => c2[0] || (c2[0] = [d("添加 ")])), _: 1, __: [0] })]), default: m((e2) => [u(y, { type: "danger", size: "small", link: "", onClick: (l2) => {
16
+ const v = o, y = l, _ = a, b = e;
17
+ return s(), n(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [u(y, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [u(v, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [u(p(r), { size: "small", paramTypes: ["service", "value"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [u(v, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { align: "center", width: "70" }, { header: m(() => [u(_, { type: "primary", size: "small", onClick: f, link: "" }, { default: m(() => c2[0] || (c2[0] = [d("添加 ")])), _: 1 })]), default: m((e2) => [u(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
18
18
  return o2 = e2.$index, e2.row, void V.modelValue.splice(o2, 1);
19
19
  var o2;
20
- } }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 ")])), _: 2, __: [1] }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
20
+ } }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -9,17 +9,17 @@ import "element-plus/es/components/option/style/css";
9
9
  import { defineComponent as p, createBlock as m, createCommentVNode as n, openBlock as r, withCtx as d, createVNode as u, unref as i, createTextVNode as c } from "vue";
10
10
  import V from "../../../common/components/value-set-input/value-set-input.vue.js";
11
11
  const y = p({ __name: "form-data", props: { modelValue: { type: Array, default: () => ({ content: [] }) } }, emits: ["update:modelValue"], setup(p2, { expose: y2, emit: f }) {
12
- const _ = f, w = p2;
13
- w.modelValue || _("update:modelValue", []);
14
- const v = () => {
15
- w.modelValue.push({ name: "", value: "", paramType: "TEXT", description: "" });
12
+ const w = f, v = p2;
13
+ v.modelValue || w("update:modelValue", []);
14
+ const b = () => {
15
+ v.modelValue.push({ name: "", value: "", paramType: "TEXT", description: "" });
16
16
  };
17
17
  return y2({}), (y3, f2) => {
18
- const _2 = t, b = a, T = o, U = l, h = s, k = e;
19
- return Array.isArray(p2.modelValue) ? (r(), m(k, { key: 0, data: p2.modelValue, border: "", size: "small" }, { default: d(() => [u(U, { prop: "name", label: "参数名", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, { append: d(() => [u(b, { size: "small", modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: d(() => [u(_2, { label: "Text", value: "TEXT" }), u(_2, { label: "File", value: "FILE" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "prop", label: "值", align: "center" }, { default: d((e2) => [u(i(V), { size: "small", paramTypes: ["service", "data", "fixed"], showFileUpload: "FILE" === e2.row.paramType, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showFileUpload", "modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "description", label: "说明", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { align: "center", width: "70" }, { header: d(() => [u(h, { type: "primary", size: "small", onClick: v, link: "" }, { default: d(() => f2[0] || (f2[0] = [c("添加 ")])), _: 1, __: [0] })]), default: d((e2) => [u(h, { type: "danger", size: "small", link: "", onClick: (l2) => {
20
- return o2 = e2.$index, e2.row, void w.modelValue.splice(o2, 1);
18
+ const w2 = t, _ = a, T = o, U = l, h = s, k = e;
19
+ return Array.isArray(p2.modelValue) ? (r(), m(k, { key: 0, data: p2.modelValue, border: "", size: "small" }, { default: d(() => [u(U, { prop: "name", label: "参数名", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, { append: d(() => [u(_, { size: "small", modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: d(() => [u(w2, { label: "Text", value: "TEXT" }), u(w2, { label: "File", value: "FILE" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "prop", label: "值", align: "center" }, { default: d((e2) => [u(i(V), { size: "small", paramTypes: ["service", "data", "fixed"], showFileUpload: "FILE" === e2.row.paramType, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showFileUpload", "modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "description", label: "说明", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { align: "center", width: "70" }, { header: d(() => [u(h, { type: "primary", size: "small", onClick: b, link: "" }, { default: d(() => f2[0] || (f2[0] = [c("添加 ")])), _: 1 })]), default: d((e2) => [u(h, { type: "danger", size: "small", link: "", onClick: (l2) => {
20
+ return o2 = e2.$index, e2.row, void v.modelValue.splice(o2, 1);
21
21
  var o2;
22
- } }, { default: d(() => f2[1] || (f2[1] = [c(" 删除 ")])), _: 2, __: [1] }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
22
+ } }, { default: d(() => f2[1] || (f2[1] = [c(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
23
23
  };
24
24
  } });
25
25
  export {