service-flow-designer 2.2.87 → 2.2.91-sit1
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/json-view/json-view-dialog.vue.js +1 -1
- 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/value-set-input/value-set-input.vue.js +1 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +61 -61
- package/dist/es/designer/service-components/database/aggregate-query/index.d.ts +3 -0
- package/dist/es/designer/service-components/database/regular-query/index.d.ts +3 -0
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +1 -1
- package/dist/es/style.css +15 -3
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { ElDialog as e } from "element-plus/es";
|
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/dialog/style/css";
|
|
4
4
|
import { defineComponent as o, ref as t, watch as l, createBlock as s, openBlock as a, withCtx as n, createVNode as u } from "vue";
|
|
5
|
-
import p from "./json-view.
|
|
5
|
+
import p from "./json-view.vue2.js";
|
|
6
6
|
const d = o({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-dialog", props: { jsonObject: { type: Object, default: () => {
|
|
7
7
|
} }, appendToBody: { type: Boolean, default: false }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(o2, { emit: d2 }) {
|
|
8
8
|
const m = o2, i = d2, r = t(false);
|
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { EditorView as s, basicSetup as a } from "codemirror";
|
|
3
|
-
import { jsonLanguage as u } from "@codemirror/lang-json";
|
|
4
|
-
import { EditorState as m, Facet as l } from "@codemirror/state";
|
|
5
|
-
import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
|
|
6
|
-
const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
|
|
7
|
-
} }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
|
|
8
|
-
const w2 = e2, y = t(null), b = t(), x = t("400px");
|
|
9
|
-
function O() {
|
|
10
|
-
y.value && y.value.destroy();
|
|
11
|
-
const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
|
|
12
|
-
if (w2.height) x.value = w2.height + "px";
|
|
13
|
-
else if (b.value) {
|
|
14
|
-
const e4 = b.value.getBoundingClientRect();
|
|
15
|
-
(e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
|
|
16
|
-
}
|
|
17
|
-
const t2 = function(e4) {
|
|
18
|
-
const t3 = function() {
|
|
19
|
-
if (w2.theme) switch (w2.theme) {
|
|
20
|
-
case "xcodeLight":
|
|
21
|
-
return j;
|
|
22
|
-
case "xcodeDark":
|
|
23
|
-
return v;
|
|
24
|
-
case "vscodeDark":
|
|
25
|
-
return p;
|
|
26
|
-
case "dracula":
|
|
27
|
-
return g;
|
|
28
|
-
case "githubLight":
|
|
29
|
-
return d;
|
|
30
|
-
case "githubDark":
|
|
31
|
-
return h;
|
|
32
|
-
case "eclipse":
|
|
33
|
-
return f;
|
|
34
|
-
}
|
|
35
|
-
return s.theme({});
|
|
36
|
-
}(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
|
|
37
|
-
return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
|
|
38
|
-
}(e3);
|
|
39
|
-
let r2 = document.getElementById("cf-codemirror-view-json");
|
|
40
|
-
r2 && (y.value = new s({ state: t2, parent: r2 }));
|
|
41
|
-
}
|
|
42
|
-
r(() => w2.jsonObject, (e3) => {
|
|
43
|
-
y.value && O();
|
|
44
|
-
}, { deep: true }), n(() => {
|
|
45
|
-
o(() => {
|
|
46
|
-
O();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
|
|
50
|
-
return (e3, t2) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
|
|
51
|
-
} });
|
|
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) && (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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./value-set-input.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const p = t(e, [["__scopeId", "data-v-5a96f1f6"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElPopover as e, ElRow as l, ElCol as a, ElCascaderPanel as t, ElEmpty as u, ElInput as s, ElButton as
|
|
1
|
+
import { ElPopover as e, ElRow as l, ElCol as a, ElCascaderPanel as t, ElEmpty as u, ElInput as s, ElButton as i, ElIcon as o, ElTable as n, ElTableColumn as r } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/popover/style/css";
|
|
4
4
|
import "element-plus/es/components/row/style/css";
|
|
@@ -10,7 +10,7 @@ import "element-plus/es/components/col/style/css";
|
|
|
10
10
|
import "element-plus/es/components/cascader-panel/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
12
|
import "element-plus/es/components/button/style/css";
|
|
13
|
-
import { defineComponent as p, ref as v, computed as c, createElementBlock as d, createBlock as m, openBlock as f, toDisplayString as y, withCtx as h, createVNode as V,
|
|
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";
|
|
@@ -18,36 +18,36 @@ import { useServiceFlowStore as $ } from "../../../../stores/page-store.js";
|
|
|
18
18
|
import E from "../file-upload.vue.js";
|
|
19
19
|
import M from "agilebuilder-ui/src/utils/request";
|
|
20
20
|
import { ElMessage as R } from "element-plus";
|
|
21
|
-
const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } },
|
|
22
|
-
const Q = $(), W = N, X = p2, Y = v(null);
|
|
23
|
-
|
|
24
|
-
const
|
|
21
|
+
const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, H = { class: "vertical-flex" }, P = { style: { "margin-bottom": "5px" } }, D = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, G = { class: "totalStyle" }, J = p({ name: "ValueSetInput", inheritAttrs: false, __name: "value-set-input", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "default" }, inputSize: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, width: { type: String, default: "" }, customInputTypes: { type: Array, default: [] }, customOptions: { type: Object, default: () => ({}) }, showFileUpload: { type: Boolean, default: false }, autoCreateFieldType: { type: String, required: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(p2, { expose: J2, emit: N }) {
|
|
22
|
+
const Q = $(), W = N, X = p2, Y = v(250), Z = v(null);
|
|
23
|
+
Z.value = X.modelValue;
|
|
24
|
+
const ee = v([]), le = v(""), ae = v({}), te = v(null), ue = v([]), se = v(null), ie = v(null), oe = v([]), ne = v({}), re = v(null), pe = v(), ve = ["context", "system", "task", "data", "service"];
|
|
25
25
|
X.customInputTypes.forEach((e2) => {
|
|
26
|
-
const l2 =
|
|
27
|
-
l2 >= 0 &&
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
if (X.showFileUpload) -1 ===
|
|
26
|
+
const l2 = ve.findIndex((l3) => e2 === l3);
|
|
27
|
+
l2 >= 0 && ve.splice(l2, 1);
|
|
28
|
+
}), ee.value = T(X.paramTypes), me();
|
|
29
|
+
const ce = () => {
|
|
30
|
+
if (X.showFileUpload) -1 === ee.value.findIndex((e2) => "file" === e2.value) && ee.value.push({ label: "文件", value: "file" });
|
|
31
31
|
else {
|
|
32
|
-
const e2 =
|
|
33
|
-
e2 >= 0 &&
|
|
32
|
+
const e2 = ee.value.findIndex((e3) => "file" === e3.value);
|
|
33
|
+
e2 >= 0 && ee.value.splice(e2, 1);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
if (X.modelValue) {
|
|
37
37
|
const e2 = X.modelValue.match(/\${(.*?)\.(.*?)}/);
|
|
38
38
|
if (e2) {
|
|
39
39
|
const l2 = e2[1], a2 = e2[2];
|
|
40
|
-
|
|
40
|
+
se.value = l2, ie.value = a2, ce(), "file" === se.value ? le.value = "file" : ve.includes(l2) ? ("system" === se.value && Oe(), le.value = "select") : le.value = "input";
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
te.value = ye();
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
|
|
44
|
+
const de = c(() => oe.value.filter((e2) => !re.value || e2.label.toLowerCase().includes(re.value.toLowerCase() || e2.value.toLowerCase().includes(re.value.toLowerCase()))));
|
|
45
|
+
function me() {
|
|
46
|
+
ne.value.dataModelOptions = Q.pageContextVarOptions.dataOptions, X.customOptions.data && (ne.value.dataModelOptions = X.customOptions.data), ne.value.serviceVarOptions = Q.getServiceVarOptions();
|
|
47
47
|
const e2 = [{ value: "query", label: "query" }];
|
|
48
|
-
Q.pageContext &&
|
|
48
|
+
Q.pageContext && fe(Q.pageContext.variables, e2, ""), ue.value = e2;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function fe(e2, l2, a2) {
|
|
51
51
|
if (e2) for (let t2 of e2) {
|
|
52
52
|
if (!t2.name) continue;
|
|
53
53
|
let e3 = a2;
|
|
@@ -57,73 +57,73 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
|
|
|
57
57
|
const s2 = t2.alias ? u2 + "(" + t2.alias + ")" : u2;
|
|
58
58
|
l2.push({ value: u2, label: s2 }), e3 = u2;
|
|
59
59
|
}
|
|
60
|
-
t2.items &&
|
|
60
|
+
t2.items && fe(t2.items, l2, e3);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ye() {
|
|
64
64
|
var _a;
|
|
65
|
-
return X.modelValue ? (e2 =
|
|
66
|
-
if (
|
|
67
|
-
const e4 =
|
|
65
|
+
return X.modelValue ? (e2 = se.value, ((_a = ee.value.find((l2) => l2.value === e2)) == null ? void 0 : _a.label) + " : " + function(e3, l2) {
|
|
66
|
+
if (ve.includes(e3)) {
|
|
67
|
+
const e4 = oe.value.find((e5) => e5.value === l2);
|
|
68
68
|
if (e4) return e4.label;
|
|
69
69
|
} else if ("file" === e3) return l2.split("|")[0];
|
|
70
70
|
return l2;
|
|
71
|
-
}(
|
|
71
|
+
}(se.value, ie.value)) : X.modelValue;
|
|
72
72
|
var e2;
|
|
73
73
|
}
|
|
74
|
-
function ye(e2) {
|
|
75
|
-
se.value = "", "file" === e2 ? ee.value = "file" : pe.includes(e2) ? (ee.value = "select", "system" === e2 ? Ce() : he(e2)) : ee.value = "input";
|
|
76
|
-
}
|
|
77
74
|
function he(e2) {
|
|
78
|
-
|
|
75
|
+
ie.value = "", "file" === e2 ? le.value = "file" : ve.includes(e2) ? (le.value = "select", "system" === e2 ? Oe() : Ve(e2)) : le.value = "input";
|
|
79
76
|
}
|
|
80
|
-
function Ve() {
|
|
81
|
-
|
|
77
|
+
function Ve(e2) {
|
|
78
|
+
"context" === e2 ? oe.value = A : "system" === e2 ? oe.value = ne.value.systemVarOptions || [] : "task" === e2 ? oe.value = F : "data" === e2 ? oe.value = ne.value.dataModelOptions || [] : "service" === e2 && (oe.value = ne.value.serviceVarOptions || []);
|
|
82
79
|
}
|
|
83
80
|
function ge() {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
ie.value ? (Z.value = "${" + se.value + "." + ie.value + "}", W("update:modelValue", Z.value), pe.value.hide()) : R.warning("请输入参数名");
|
|
82
|
+
}
|
|
83
|
+
function we() {
|
|
84
|
+
if (re.value = re.value.trim(), !re.value) return void R.warning("请输入参数名");
|
|
85
|
+
const e2 = ne.value.serviceVarOptions || [];
|
|
86
|
+
for (let l3 of e2) if (l3.value === re.value) return void R.warning("该变量已存在!");
|
|
87
|
+
const l2 = { code: L(), level: 1, name: re.value, alias: re.value, type: X.autoCreateFieldType ? X.autoCreateFieldType : "string", defaultValue: "", items: [] };
|
|
88
|
+
"array" == l2.type && l2.items.push({ level: l2.level + 1, code: L(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), Q.currentService.variables || (Q.currentService.variables = []), Q.currentService.variables.push(l2), ne.value.serviceVarOptions = Q.getServiceVarOptions(), Ve(se.value), ie.value = re.value, Z.value = "${" + se.value + "." + re.value + "}", W("update:modelValue", Z.value), pe.value.hide();
|
|
89
89
|
}
|
|
90
|
-
!
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
|
|
90
|
+
!se.value && ee.value.length > 0 && (se.value = ee.value[0].value, he(se.value));
|
|
91
|
+
const xe = v();
|
|
92
|
+
const be = () => {
|
|
93
|
+
ce(), me(), se.value && Ve(se.value), _(() => {
|
|
94
94
|
!function() {
|
|
95
|
-
if (!X.showLabel && "select" ===
|
|
96
|
-
const e2 =
|
|
97
|
-
|
|
95
|
+
if (!X.showLabel && "select" === le.value) {
|
|
96
|
+
const e2 = de.value.findIndex((e3) => e3.value === ie.value);
|
|
97
|
+
xe.value.setCurrentRow(de.value[e2]);
|
|
98
98
|
}
|
|
99
99
|
}();
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
function be() {
|
|
103
|
-
Y.value = null, ue.value = null, se.value = null, W("update:modelValue", Y.value);
|
|
104
|
-
}
|
|
105
102
|
function ke() {
|
|
106
|
-
|
|
103
|
+
Z.value = null, se.value = null, ie.value = null, W("update:modelValue", Z.value);
|
|
104
|
+
}
|
|
105
|
+
function ze() {
|
|
106
|
+
Z.value = "${file." + ae.value.name + "|" + ae.value.fileUuid + "}", ie.value = ae.value.name + "|" + ae.value.fileUuid, W("update:modelValue", Z.value), pe.value.hide();
|
|
107
107
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
110
|
-
if (
|
|
111
|
-
const e2 = { query:
|
|
112
|
-
|
|
108
|
+
let Ce = null;
|
|
109
|
+
function Oe() {
|
|
110
|
+
if (Ce && Ce == re.value) return;
|
|
111
|
+
const e2 = { query: re.value };
|
|
112
|
+
Ce = re.value, M.post("/component/system-params/query", e2).then((e3) => {
|
|
113
113
|
const l2 = [];
|
|
114
114
|
for (let a2 of e3) l2.push({ value: a2.propKey, label: a2.propKey + " (" + a2.propValue + ")" });
|
|
115
|
-
|
|
115
|
+
ne.value.systemVarOptions = l2, "system" == se.value && Ve(se.value);
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
return J2({ setSelectOptions:
|
|
119
|
-
const _2 =
|
|
120
|
-
return p2.showLabel ? (f(), d("span", B, y(
|
|
121
|
-
return a2 = e2.value,
|
|
118
|
+
return J2({ setSelectOptions: me }), (v2, c2) => {
|
|
119
|
+
const _2 = i, L2 = s, T2 = t, A2 = a, F2 = u, $2 = o, M2 = r, R2 = n, J3 = l, N2 = e;
|
|
120
|
+
return p2.showLabel ? (f(), d("span", B, y(te.value), 1)) : (f(), m(N2, { key: 1, ref_key: "popoverRef", ref: pe, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: be, formatter: ye, class: "input-with-select", "prefix-icon": b(q), modelValue: Z.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Z.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { type: "default", size: p2.inputSize, icon: b(I), onClick: S(ke, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: se.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => se.value = e2), onChange: he, props: { emitPath: false }, size: "small", style: g({ width: "fit-content", height: Y.value + "px", overflow: "auto" }), options: ee.value }, null, 8, ["modelValue", "style", "options"])]), _: 1 }), se.value ? "input" === le.value ? (f(), m(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => ie.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), w("div", K, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[5] || (c2[5] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), x(w("div", { style: g({ fontSize: "10px", lineHeight: "30px", height: Y.value - 50 + "px", overflow: "auto" }) }, [c2[6] || (c2[6] = k(" 可用参数: ")), (f(true), d(z, null, C(ue.value, (e2) => (f(), m(_2, { type: "primary", size: "small", onClick: (l2) => {
|
|
121
|
+
return a2 = e2.value, ie.value = a2, void ge();
|
|
122
122
|
var a2;
|
|
123
|
-
} }, { default: h(() => [
|
|
124
|
-
return a2 = e2.row,
|
|
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
|
+
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] = [
|
|
126
|
+
} }, { default: h(() => c2[8] || (c2[8] = [k(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["width"]), V(M2, { prop: "label" })]), _: 1 }, 8, ["height", "data"]), w("div", G, "总计:" + y(de.value.length), 1)])]), _: 1 })) : (f(), m(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
127
127
|
};
|
|
128
128
|
} });
|
|
129
129
|
export {
|
|
@@ -14,7 +14,7 @@ import { json as _ } from "@codemirror/lang-json";
|
|
|
14
14
|
import { EditorState as j } from "@codemirror/state";
|
|
15
15
|
import S from "agilebuilder-ui/src/utils/request";
|
|
16
16
|
import x from "@logicflow/core";
|
|
17
|
-
import O from "../../common/components/json-view/json-view.
|
|
17
|
+
import O from "../../common/components/json-view/json-view.vue2.js";
|
|
18
18
|
import { vscodeDark as C } from "@uiw/codemirror-themes-all";
|
|
19
19
|
import N from "./request-params.vue.js";
|
|
20
20
|
import { getSystemBackendUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
package/dist/es/style.css
CHANGED
|
@@ -1050,18 +1050,30 @@
|
|
|
1050
1050
|
width: 100%;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
[data-v-
|
|
1053
|
+
[data-v-5a96f1f6] .el-cascader-menu {
|
|
1054
1054
|
min-width: 120px !important;
|
|
1055
1055
|
}
|
|
1056
|
-
.totalStyle[data-v-
|
|
1056
|
+
.totalStyle[data-v-5a96f1f6] {
|
|
1057
1057
|
display: flex;
|
|
1058
1058
|
height: 15px;
|
|
1059
1059
|
align-items: center;
|
|
1060
1060
|
justify-content: center;
|
|
1061
1061
|
font-size: 10px;
|
|
1062
1062
|
}
|
|
1063
|
-
[data-v-
|
|
1063
|
+
[data-v-5a96f1f6] .el-input-group__append {
|
|
1064
1064
|
cursor: pointer;
|
|
1065
|
+
}
|
|
1066
|
+
.vertical-flex[data-v-5a96f1f6] {
|
|
1067
|
+
display: flex;
|
|
1068
|
+
flex-direction: column;
|
|
1069
|
+
height: 100%;
|
|
1070
|
+
}
|
|
1071
|
+
.flex-table[data-v-5a96f1f6] {
|
|
1072
|
+
flex: 1 1 auto;
|
|
1073
|
+
min-height: 0;
|
|
1074
|
+
}
|
|
1075
|
+
.totalStyle[data-v-5a96f1f6] {
|
|
1076
|
+
margin-top: 8px;
|
|
1065
1077
|
}
|
|
1066
1078
|
.serviceflow-design-content[data-v-0e8afd53] {
|
|
1067
1079
|
overflow: auto;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "service-flow-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.91-sit1",
|
|
4
4
|
"description": "AgileBuilder Service Flow Designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@logicflow/layout": "1.2.0-alpha.16",
|
|
62
62
|
"@uiw/codemirror-themes-all": "^4.21.25",
|
|
63
63
|
"@vueuse/core": "^10.9.0",
|
|
64
|
-
"agilebuilder-ui": "1.1.
|
|
64
|
+
"agilebuilder-ui": "1.1.33-sit2",
|
|
65
65
|
"codemirror": "^6.0.1",
|
|
66
66
|
"nprogress": "^0.2.0",
|
|
67
67
|
"pinia": "^2.1.7",
|