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