service-flow-designer 2.3.26-flow1 → 2.3.28-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 +3 -3
- package/dist/es/designer/common/components/json-view/json-view.vue.js +2 -52
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +52 -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/option.js +1 -1
- 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 +23 -2
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +24 -2
- 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 +3 -3
- 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, createBlock as d, openBlock as v, withCtx as f, createVNode as g, createElementBlock as h, Fragment as y, renderList as b, unref as C, createTextVNode as w, createElementVNode as z } from "vue";
|
|
14
14
|
import { Search as S } from "@element-plus/icons-vue";
|
|
15
15
|
import N from "agilebuilder-ui/src/utils/request";
|
|
16
16
|
import { ElMessage as V } from "element-plus";
|
|
@@ -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 v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[8] || (c2[8] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(_3, { type: "default", size: "small", onClick: c2[7] || (c2[7] = (e2) => x.value = false) }, { default: f(() => [...c2[11] || (c2[11] = [w("返回", -1)])]), _: 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(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(_3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
|
|
67
67
|
J($.value);
|
|
68
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, createBlock as u, openBlock as a, withCtx as m, createVNode as n, createTextVNode as i, unref as p } from "vue";
|
|
7
7
|
import { Upload as r } from "@element-plus/icons-vue";
|
|
8
8
|
import { genFileId as d } from "element-plus";
|
|
9
9
|
import { getToken as c } from "agilebuilder-ui/src/utils/auth";
|
|
@@ -25,7 +25,7 @@ const V = t({ __name: "file-upload", props: { modelValue: { type: Object, defaul
|
|
|
25
25
|
};
|
|
26
26
|
return V2({}), (t3, s2) => {
|
|
27
27
|
const d2 = o, c2 = l, f2 = e;
|
|
28
|
-
return
|
|
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(" 上传附件", -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,8 +1,8 @@
|
|
|
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,
|
|
5
|
-
import p from "./json-view.
|
|
4
|
+
import { defineComponent as o, ref as t, watch as l, createBlock as s, openBlock as a, withCtx as n, createVNode as u } from "vue";
|
|
5
|
+
import p from "./json-view.vue2.js";
|
|
6
6
|
const d = o({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-dialog", props: { jsonObject: { type: Object, default: () => {
|
|
7
7
|
} }, appendToBody: { type: Boolean, default: false }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(o2, { emit: d2 }) {
|
|
8
8
|
const m = o2, i = d2, r = t(false);
|
|
@@ -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 a(), s(d3, { "append-to-body": "", modelValue: r.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => r.value = e2), title: "格式化", width: "600", onClose: c }, { default: n(() => [u(p, { jsonObject: o2.jsonObject }, null, 8, ["jsonObject"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
|
|
18
18
|
};
|
|
19
19
|
} });
|
|
20
20
|
export {
|
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { EditorView as s, basicSetup as a } from "codemirror";
|
|
3
|
-
import { jsonLanguage as u } from "@codemirror/lang-json";
|
|
4
|
-
import { EditorState as m, Facet as l } from "@codemirror/state";
|
|
5
|
-
import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
|
|
6
|
-
const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
|
|
7
|
-
} }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
|
|
8
|
-
const w2 = e2, y = t(null), b = t(), x = t("400px");
|
|
9
|
-
function O() {
|
|
10
|
-
y.value && y.value.destroy();
|
|
11
|
-
const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
|
|
12
|
-
if (w2.height) x.value = w2.height + "px";
|
|
13
|
-
else if (b.value) {
|
|
14
|
-
const e4 = b.value.getBoundingClientRect();
|
|
15
|
-
(e4.y || 0 === e4.y) && (window.innerHeight, e4.y, x.value = window.innerHeight - e4.y - 100 + "px");
|
|
16
|
-
}
|
|
17
|
-
const t2 = function(e4) {
|
|
18
|
-
const t3 = function() {
|
|
19
|
-
if (w2.theme) switch (w2.theme) {
|
|
20
|
-
case "xcodeLight":
|
|
21
|
-
return j;
|
|
22
|
-
case "xcodeDark":
|
|
23
|
-
return v;
|
|
24
|
-
case "vscodeDark":
|
|
25
|
-
return p;
|
|
26
|
-
case "dracula":
|
|
27
|
-
return g;
|
|
28
|
-
case "githubLight":
|
|
29
|
-
return d;
|
|
30
|
-
case "githubDark":
|
|
31
|
-
return h;
|
|
32
|
-
case "eclipse":
|
|
33
|
-
return f;
|
|
34
|
-
}
|
|
35
|
-
return s.theme({});
|
|
36
|
-
}(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
|
|
37
|
-
return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
|
|
38
|
-
}(e3);
|
|
39
|
-
let r2 = document.getElementById("cf-codemirror-view-json");
|
|
40
|
-
r2 && (y.value = new s({ state: t2, parent: r2 }));
|
|
41
|
-
}
|
|
42
|
-
r(() => w2.jsonObject, (e3) => {
|
|
43
|
-
y.value && O();
|
|
44
|
-
}, { deep: true }), n(() => {
|
|
45
|
-
o(() => {
|
|
46
|
-
O();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
|
|
50
|
-
return (e3, t2) => (i(), c("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
|
|
51
|
-
} });
|
|
1
|
+
import e from "./json-view.vue2.js";
|
|
52
2
|
export {
|
|
53
|
-
|
|
3
|
+
e as default
|
|
54
4
|
};
|
|
@@ -1,4 +1,54 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, createElementBlock as i, openBlock as c } from "vue";
|
|
2
|
+
import { EditorView as s, basicSetup as a } from "codemirror";
|
|
3
|
+
import { jsonLanguage as u } from "@codemirror/lang-json";
|
|
4
|
+
import { EditorState as m, Facet as l } from "@codemirror/state";
|
|
5
|
+
import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
|
|
6
|
+
const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
|
|
7
|
+
} }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
|
|
8
|
+
const w2 = e2, y = t(null), b = t(), x = t("400px");
|
|
9
|
+
function O() {
|
|
10
|
+
y.value && y.value.destroy();
|
|
11
|
+
const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
|
|
12
|
+
if (w2.height) x.value = w2.height + "px";
|
|
13
|
+
else if (b.value) {
|
|
14
|
+
const e4 = b.value.getBoundingClientRect();
|
|
15
|
+
(e4.y || 0 === e4.y) && (window.innerHeight, e4.y, x.value = window.innerHeight - e4.y - 100 + "px");
|
|
16
|
+
}
|
|
17
|
+
const t2 = function(e4) {
|
|
18
|
+
const t3 = function() {
|
|
19
|
+
if (w2.theme) switch (w2.theme) {
|
|
20
|
+
case "xcodeLight":
|
|
21
|
+
return j;
|
|
22
|
+
case "xcodeDark":
|
|
23
|
+
return v;
|
|
24
|
+
case "vscodeDark":
|
|
25
|
+
return p;
|
|
26
|
+
case "dracula":
|
|
27
|
+
return g;
|
|
28
|
+
case "githubLight":
|
|
29
|
+
return d;
|
|
30
|
+
case "githubDark":
|
|
31
|
+
return h;
|
|
32
|
+
case "eclipse":
|
|
33
|
+
return f;
|
|
34
|
+
}
|
|
35
|
+
return s.theme({});
|
|
36
|
+
}(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
|
|
37
|
+
return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
|
|
38
|
+
}(e3);
|
|
39
|
+
let r2 = document.getElementById("cf-codemirror-view-json");
|
|
40
|
+
r2 && (y.value = new s({ state: t2, parent: r2 }));
|
|
41
|
+
}
|
|
42
|
+
r(() => w2.jsonObject, (e3) => {
|
|
43
|
+
y.value && O();
|
|
44
|
+
}, { deep: true }), n(() => {
|
|
45
|
+
o(() => {
|
|
46
|
+
O();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
|
|
50
|
+
return (e3, t2) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
|
|
51
|
+
} });
|
|
2
52
|
export {
|
|
3
|
-
|
|
53
|
+
w as default
|
|
4
54
|
};
|
|
@@ -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, createElementBlock as p, openBlock as n, Fragment as r, createVNode as m, withCtx as a, createElementVNode as u } from "vue";
|
|
8
8
|
const i = { style: { position: "absolute", right: "0" } }, d = s({ __name: "node-base-config", props: { properties: { type: Object, default: () => ({}) } }, setup: (s2, { expose: d2 }) => (d2({}), (d3, c) => {
|
|
9
9
|
const f = l, y = t, V = o, b = e;
|
|
10
|
-
return
|
|
10
|
+
return n(), p(r, null, [m(b, { label: "别名:" }, { default: a(() => [m(f, { modelValue: s2.properties.name, "onUpdate:modelValue": c[0] || (c[0] = (e2) => s2.properties.name = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), m(V, { effect: "dark", content: "主题颜色", placement: "top" }, { default: a(() => [u("span", i, [m(y, { modelValue: s2.properties.backgroundColor, "onUpdate:modelValue": c[1] || (c[1] = (e2) => s2.properties.backgroundColor = e2) }, null, 8, ["modelValue"])])]), _: 1 })]), _: 1 }), m(b, { label: "功能描述:" }, { default: a(() => [m(f, { modelValue: s2.properties.description, "onUpdate:modelValue": c[2] || (c[2] = (e2) => s2.properties.description = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"])]), _: 1 })], 64);
|
|
11
11
|
}) });
|
|
12
12
|
export {
|
|
13
13
|
d as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElDialog as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/dialog/style/css";
|
|
4
|
-
import { defineComponent as l, ref as o, watch as t,
|
|
4
|
+
import { defineComponent as l, ref as o, watch as t, createBlock as a, openBlock as s, withCtx as p, createVNode as u } from "vue";
|
|
5
5
|
import n from "./sql-view.vue2.js";
|
|
6
6
|
const d = l({ name: "SqlViewDialog", inheritAttrs: false, __name: "sql-view-dialog", props: { sql: { type: String, default: null }, appendToBody: { type: Boolean, default: true }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(l2, { emit: d2 }) {
|
|
7
7
|
const m = l2, i = d2, r = o(false);
|
|
@@ -13,7 +13,7 @@ const d = l({ name: "SqlViewDialog", inheritAttrs: false, __name: "sql-view-dial
|
|
|
13
13
|
};
|
|
14
14
|
return (o2, t2) => {
|
|
15
15
|
const d3 = e;
|
|
16
|
-
return
|
|
16
|
+
return s(), a(d3, { modelValue: r.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e2) => r.value = e2), "append-to-body": l2.appendToBody, title: "SQL预览", width: "600", onClose: y }, { default: p(() => [u(n, { sql: l2.sql, height: 400 }, null, 8, ["sql"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
|
@@ -1,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, createElementBlock as r, openBlock as l } from "vue";
|
|
2
2
|
import { EditorView as u, basicSetup as m } from "codemirror";
|
|
3
3
|
import { sql as s } from "@codemirror/lang-sql";
|
|
4
4
|
import { Facet as a, EditorState as c } from "@codemirror/state";
|
|
@@ -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) => (l(), r("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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "
|
|
1
|
+
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "任务变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
|
|
2
2
|
function r(a2) {
|
|
3
3
|
return a2 && a2.length > 0 ? e.filter((e2) => a2.includes(e2.value)) : e;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@ import "element-plus/es/components/col/style/css";
|
|
|
10
10
|
import "element-plus/es/components/cascader-panel/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
12
|
import "element-plus/es/components/button/style/css";
|
|
13
|
-
import { defineComponent as p, ref as v, computed as c,
|
|
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";
|
|
@@ -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 ? (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(" 可用参数: ", -1)), (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(
|
|
123
|
+
} }, { default: h(() => [k(y(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 4), [[O, "request" == se.value]])]), _: 1 })) : "file" === le.value ? (f(), m(A2, { key: 2, span: 16 }, { default: h(() => [V(E, { modelValue: ae.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => ae.value = e2), onOnSuccess: ze }, null, 8, ["modelValue"])]), _: 1 })) : (f(), m(A2, { key: 3, span: 16 }, { default: h(() => [w("div", H, [w("div", P, [V(L2, { size: "small", modelValue: re.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => re.value = e2), placeholder: "搜索", "suffix-icon": b(q), style: { width: "90%" } }, null, 8, ["modelValue", "suffix-icon"]), x(V(_2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), [[O, "service" == se.value]]), x(w("div", D, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[7] || (c2[7] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[O, "service" == se.value]])]), V(R2, { ref_key: "tableRef", ref: xe, height: Y.value - 80, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: de.value, class: "flex-table" }, { default: h(() => [V(M2, { fixed: true, width: "service" === se.value ? "" : 70 }, { default: h((e2) => [V(_2, { type: "default", size: "small", onClick: (l2) => {
|
|
124
124
|
return a2 = e2.row, ie.value = a2.value, Z.value = "${" + se.value + "." + a2.value + "}", W("update:modelValue", Z.value), void pe.value.hide();
|
|
125
125
|
var a2;
|
|
126
|
-
} }, { default: h(() => [...c2[8] || (c2[8] = [k(" 选择 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["width"]), V(M2, { prop: "label" })]), _: 1 }, 8, ["height", "data"]),
|
|
126
|
+
} }, { default: h(() => [...c2[8] || (c2[8] = [k(" 选择 ", -1)])]), _: 1 }, 8, ["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 {
|
|
@@ -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, createBlock as a, openBlock as r, withCtx as i, createVNode as c, normalizeStyle as p } from "vue";
|
|
7
7
|
import u from "./service-panel/service-panel.vue.js";
|
|
8
8
|
import m from "./service-flow-view/view-index.vue.js";
|
|
9
9
|
import "./service-components/index.js";
|
|
@@ -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 r(), a(d3, { class: "amb-container" }, { default: i(() => [c(v2, { class: "serviceflow-container-left" }, { default: i(() => [c(u, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => w.value = e2), serviceTreeData: f.value, onServiceClick: F, onClearFlowCanvas: D, onLoadTreeData: C, onDragNode: x, style: p(n2.containerHeightStyle) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: p(n2.containerHeightStyle) }, { default: i(() => [c(m, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => w.value = e2), serviceTreeData: f.value, pageContext: s2.pageContext, onLoadTreeData: C, ref_key: "serviceFlowViewRef", ref: y }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 });
|
|
33
33
|
};
|
|
34
34
|
} });
|
|
35
35
|
export {
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import "@logicflow/core";
|
|
2
|
-
import { HtmlResize as
|
|
3
|
-
|
|
5
|
+
import { HtmlResize as e } from "@logicflow/extension";
|
|
6
|
+
class t extends e.view {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
__publicField(this, "isMounted", false);
|
|
10
|
+
__publicField(this, "r");
|
|
11
|
+
__publicField(this, "app");
|
|
12
|
+
}
|
|
13
|
+
setHtml(e2) {
|
|
14
|
+
if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
|
|
15
|
+
else {
|
|
16
|
+
this.isMounted = true;
|
|
17
|
+
const t2 = document.createElement("div");
|
|
18
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
t as default
|
|
24
|
+
};
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import "@logicflow/core";
|
|
2
5
|
import "vue";
|
|
3
|
-
import { HtmlResize as
|
|
4
|
-
|
|
6
|
+
import { HtmlResize as t } from "@logicflow/extension";
|
|
7
|
+
class e extends t.model {
|
|
8
|
+
constructor(t2, e2) {
|
|
9
|
+
super(t2, e2);
|
|
10
|
+
__publicField(this, "nodeWidth", 200);
|
|
11
|
+
__publicField(this, "nodeHeight", 115);
|
|
12
|
+
this.setAttributes();
|
|
13
|
+
}
|
|
14
|
+
setAttributes() {
|
|
15
|
+
this.text.editable = false, this.inputData = this.text.value, this.stroke = "#1E90FF", this.fill = "#F0F8FF", this.radius = 100, this.menu = [{ className: "lf-menu-delete", icon: true, text: "删除", callback: (t2) => {
|
|
16
|
+
this.graphModel.deleteNode(t2.id), this.graphModel.eventCenter.emit("custom:deleteNode", t2);
|
|
17
|
+
} }];
|
|
18
|
+
}
|
|
19
|
+
getOutlineStyle() {
|
|
20
|
+
const t2 = super.getOutlineStyle();
|
|
21
|
+
return t2.width = this.nodeWidth, t2.height = this.nodeHeight, t2;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
e as default
|
|
26
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createElementBlock as s, openBlock as t, createElementVNode as p } from "vue";
|
|
2
2
|
import i from "../../../../assets/icon/end.svg.js";
|
|
3
|
-
const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (
|
|
3
|
+
const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (t(), s("div", n, [...d2[0] || (d2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "结束")])], -1)])])) });
|
|
4
4
|
export {
|
|
5
5
|
d as default
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createElementBlock as t, openBlock as s, createElementVNode as p } from "vue";
|
|
2
2
|
import i from "../../../../assets/icon/start.png.js";
|
|
3
|
-
const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (
|
|
3
|
+
const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (s(), t("div", n, [...a2[0] || (a2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "开始")])], -1)])])) });
|
|
4
4
|
export {
|
|
5
5
|
a as default
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ import "element-plus/es/components/form-item/style/css";
|
|
|
10
10
|
import "element-plus/es/components/select/style/css";
|
|
11
11
|
import "element-plus/es/components/option/style/css";
|
|
12
12
|
import "element-plus/es/components/divider/style/css";
|
|
13
|
-
import { defineComponent as m, ref as u, onMounted as c,
|
|
13
|
+
import { defineComponent as m, ref as u, onMounted as c, createBlock as d, openBlock as f, withCtx as v, createVNode as y, createElementBlock as b, Fragment as h, renderList as k, createTextVNode as g, createElementVNode as w, createCommentVNode as _, toDisplayString as x, unref as V } from "vue";
|
|
14
14
|
import { Minus as O, Plus as S } from "@element-plus/icons-vue";
|
|
15
15
|
import z from "../../../common/components/node-base-config.vue.js";
|
|
16
16
|
const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E = { key: 1 }, U = { key: 0 }, j = m({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(m2, { expose: j2 }) {
|
|
@@ -41,12 +41,12 @@ const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E
|
|
|
41
41
|
};
|
|
42
42
|
return j2({}), (u2, c2) => {
|
|
43
43
|
const j3 = l, F2 = s, I = a, J = t, K = r, L = o, M = i, N = p, P = n, Q = e;
|
|
44
|
-
return
|
|
44
|
+
return f(), d(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(f(true), b(h, null, k(R.value, (e2) => (f(), d(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ", -1)), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => [...c2[2] || (c2[2] = [g("添加", -1)])]), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", $, "item")) : e2.row.$editing ? (f(), d(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
45
45
|
return t2 = l2, (a2 = e2.row).alias = "", void q.value.forEach((e3) => {
|
|
46
46
|
e3.name === t2 && (a2.alias = e3.alias);
|
|
47
47
|
});
|
|
48
48
|
var t2, a2;
|
|
49
|
-
}, "value-key": "name", size: "small" }, { default: v(() => [(
|
|
49
|
+
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(q.value, (e3) => (f(), d(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", E, x(e2.row.alias), 1))]), _: 1 }), y(M, { prop: "order", label: "排序方式" }, { default: v((e2) => [e2.row.$editing ? (f(), d(I, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: v(() => [y(F2, { label: "升序", value: "asc" }), y(F2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (f(), b("span", U, x(e2.row.order), 1))]), _: 1 }), y(M, { align: "right" }, { header: v(() => [y(N, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "primary", size: "small", icon: V(S), circle: "", onClick: c2[1] || (c2[1] = (e2) => H()) }, null, 8, ["icon"])) : _("", true)]), _: 1 })]), default: v((e2) => [w("span", null, [y(N, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "danger", size: "small", icon: V(O), circle: "", onClick: (l2) => {
|
|
50
50
|
return t2 = e2.$index, e2.row, void D.properties.sorts.splice(t2, 1);
|
|
51
51
|
var t2;
|
|
52
52
|
} }, null, 8, ["icon", "onClick"])) : _("", true)]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ElDivider as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent as s,
|
|
4
|
+
import { defineComponent as s, createElementBlock as t, openBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
|
|
5
5
|
import n from "../../../../assets/icon/vardef-v.png.js";
|
|
6
6
|
const c = { class: "serviceflow-nodeContent" }, m = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: m2 }) => (m3, d) => {
|
|
7
7
|
const a = e;
|
|
8
|
-
return
|
|
8
|
+
return o(), t("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "计算-排序", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
|
|
9
9
|
} });
|
|
10
10
|
export {
|
|
11
11
|
m as default
|
|
@@ -8,7 +8,7 @@ import "element-plus/es/components/alert/style/css";
|
|
|
8
8
|
import "element-plus/es/components/form-item/style/css";
|
|
9
9
|
import "element-plus/es/components/input/style/css";
|
|
10
10
|
import "element-plus/es/components/button/style/css";
|
|
11
|
-
import { defineComponent as n, ref as m, onMounted as u,
|
|
11
|
+
import { defineComponent as n, ref as m, onMounted as u, createElementBlock as c, openBlock as d, createVNode as y, withCtx as b, createElementVNode as v, unref as f, createTextVNode as g } from "vue";
|
|
12
12
|
import { Search as T, View as C, Check as S } from "@element-plus/icons-vue";
|
|
13
13
|
import x from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
14
14
|
import V from "../../../common/components/datatable-select.vue.js";
|
|
@@ -92,7 +92,7 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
|
|
|
92
92
|
}
|
|
93
93
|
return J2({}), (i2, m2) => {
|
|
94
94
|
const u2 = o, j2 = s, h2 = t, w2 = l, _2 = a, N2 = p, q2 = r, I2 = e;
|
|
95
|
-
return
|
|
95
|
+
return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: b(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: b(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: b(() => [y(u2, { type: "default", icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), v("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: b(() => [...m2[7] || (m2[7] = [g("预览sql", -1)])]), _: 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), v("br", null, null, -1), g(" 2.未指定新字段名时,输出字段名同选择的字段名", -1), v("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(() => [v("div", E, [y(f(x), { width: "260", paramTypes: ["service"], modelValue: n2.properties.result.setTo, "onUpdate:modelValue": m2[5] || (m2[5] = (e2) => n2.properties.result.setTo = e2), autoCreateFieldType: R.value }, null, 8, ["modelValue", "autoCreateFieldType"]), y(u2, { icon: f(S), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: b(() => [...m2[12] || (m2[12] = [g(" 更新服务变量 ", -1)])]), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: b(() => [...m2[13] || (m2[13] = [g(" 设置为返回值 ", -1)])]), _: 1 }, 8, ["icon"])])]), _: 1 })]), _: 1 }), y(f(M), { sql: X.value, "model-value": W.value, "onUpdate:modelValue": m2[6] || (m2[6] = (e2) => W.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
96
96
|
};
|
|
97
97
|
} });
|
|
98
98
|
export {
|
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, createBlock as i, openBlock as p, withCtx as d, createVNode as r, createElementBlock as u, toDisplayString as c, Fragment as y, renderList as w, unref as b, createElementVNode as f } from "vue";
|
|
11
11
|
import { Minus as V, Plus as g } from "@element-plus/icons-vue";
|
|
12
12
|
import { dateFormats as h } from "../../util/common-options.js";
|
|
13
13
|
const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __name: "dimension-statistical", props: { properties: { type: Object, default: () => ({ statistics: {} }) }, dataTableColumns: { type: Array, default: () => [] } }, emits: ["change"], setup(m2, { emit: v2 }) {
|
|
@@ -22,7 +22,7 @@ const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __
|
|
|
22
22
|
};
|
|
23
23
|
return (v3, x) => {
|
|
24
24
|
const E = l, F = t, A = a, D = o, j = s, I = n, M = e;
|
|
25
|
-
return
|
|
25
|
+
return p(), i(M, { data: m2.properties.statistics, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: z, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [r(E, { type: "index", width: "50", label: "序号", align: "center" }), r(E, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, onChange: (l2) => $(l2, e2.row), modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", filterable: "" }, { default: d(() => [(p(true), u(y, null, w(m2.dataTableColumns, (e3) => (p(), i(F, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["onChange", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", k, c(e2.row.name), 1))]), _: 1 }), r(E, { prop: "name", label: "日期格式化", width: "120" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, disabled: "DATE" !== e2.row.dataType && "TIME" !== e2.row.dataType, filterable: true, "allow-create": true, modelValue: e2.row.dateFormat, "onUpdate:modelValue": (l2) => e2.row.dateFormat = l2, placeholder: "", size: "small" }, { default: d(() => [(p(true), u(y, null, w(b(h), (e3) => (p(), i(F, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", C, c(e2.row.dateFormat), 1))]), _: 1 }), r(E, { prop: "newName", label: "新字段名", width: "160" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.newName, "onUpdate:modelValue": (l2) => e2.row.newName = l2, size: "small", onChange: (l2) => U("change", e2.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), u("span", T, c(e2.row.newName), 1))]), _: 1 }), r(E, { prop: "dynamicValue", label: "动态维度值" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.dynamicValue, "onUpdate:modelValue": (l2) => e2.row.dynamicValue = l2, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), u("span", _, c(e2.row.dynamicValue), 1))]), _: 1 }), r(E, { align: "center", width: "80" }, { header: d(() => [r(I, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [r(j, { type: "primary", size: "small", icon: b(g), circle: "", onClick: x[0] || (x[0] = (e2) => (N.properties.statistics || (N.properties.statistics = []), void N.properties.statistics.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [r(I, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [r(j, { type: "danger", size: "small", icon: b(V), circle: "", onClick: (l2) => {
|
|
26
26
|
return a2 = e2.$index, e2.row, N.properties.statistics.splice(a2, 1), void $("", null);
|
|
27
27
|
var a2;
|
|
28
28
|
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
|