service-flow-designer 2.1.59 → 2.1.96
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/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
- package/dist/es/assets/icon/base.png.js +2 -2
- package/dist/es/assets/icon/clean.svg.js +2 -2
- package/dist/es/assets/icon/condition.png.js +2 -2
- package/dist/es/assets/icon/connect.svg.js +2 -2
- package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
- package/dist/es/assets/icon/end.png.js +2 -2
- package/dist/es/assets/icon/end.svg.js +2 -2
- package/dist/es/assets/icon/function.png.js +2 -2
- package/dist/es/assets/icon/http-service.svg.js +2 -2
- package/dist/es/assets/icon/loop.svg.js +2 -2
- package/dist/es/assets/icon/notification.svg.js +2 -2
- package/dist/es/assets/icon/regularQuery.svg.js +2 -2
- package/dist/es/assets/icon/sort.svg.js +2 -2
- package/dist/es/assets/icon/split-joint.svg.js +2 -2
- package/dist/es/assets/icon/start.png.js +2 -2
- package/dist/es/assets/icon/statistics.svg.js +2 -2
- package/dist/es/assets/icon/vardef-v.png.js +2 -2
- package/dist/es/designer/common/components/database-select.vue.js +4 -4
- package/dist/es/designer/common/components/database-select.vue2.js +29 -205
- package/dist/es/designer/common/components/datatable-select.vue.js +4 -4
- package/dist/es/designer/common/components/datatable-select.vue2.js +52 -299
- package/dist/es/designer/common/components/file-upload.vue.js +4 -4
- package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +18 -60
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/json-view/json-view.vue.js +51 -137
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -2
- package/dist/es/designer/common/components/node-base-config.vue.js +7 -63
- package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +17 -62
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +30 -100
- package/dist/es/designer/common/components/value-set-input/index.js +2 -2
- package/dist/es/designer/common/components/value-set-input/option.js +6 -59
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +4 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +122 -557
- package/dist/es/designer/common/util/node-util.js +32 -42
- package/dist/es/designer/desginer-index.vue.js +4 -4
- package/dist/es/designer/desginer-index.vue2.js +31 -106
- package/dist/es/designer/flow/base/AbLogicNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -49
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +10 -26
- package/dist/es/designer/flow/edge/CustomLine.js +15 -42
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +55 -302
- package/dist/es/designer/service-components/base/custom-function/index.js +12 -34
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/end-node/index.js +25 -64
- package/dist/es/designer/service-components/base/end-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/base/judge-condition/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +61 -570
- package/dist/es/designer/service-components/base/judge-condition/index.js +13 -35
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +12 -63
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +9 -73
- package/dist/es/designer/service-components/base/loop-node/index.js +37 -145
- package/dist/es/designer/service-components/base/notification/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/notification/config.vue2.js +35 -320
- package/dist/es/designer/service-components/base/notification/index.js +12 -34
- package/dist/es/designer/service-components/base/notification/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +23 -146
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +17 -103
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +2 -2
- package/dist/es/designer/service-components/base/start-node/index.js +25 -65
- package/dist/es/designer/service-components/base/start-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/components-icons.js +17 -33
- package/dist/es/designer/service-components/computation/clean/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +40 -419
- package/dist/es/designer/service-components/computation/clean/index.js +12 -34
- package/dist/es/designer/service-components/computation/clean/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/connect/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +38 -506
- package/dist/es/designer/service-components/computation/connect/index.js +12 -34
- package/dist/es/designer/service-components/computation/connect/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/sort/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
- package/dist/es/designer/service-components/computation/sort/index.js +12 -34
- package/dist/es/designer/service-components/computation/sort/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +27 -327
- package/dist/es/designer/service-components/computation/split-joint/index.js +12 -34
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +41 -436
- package/dist/es/designer/service-components/computation/statistics/index.js +12 -34
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +75 -375
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +22 -217
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +30 -439
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/index.js +13 -35
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +22 -90
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +15 -177
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -185
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +66 -474
- package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +52 -749
- package/dist/es/designer/service-components/database/regular-query/index.js +13 -35
- package/dist/es/designer/service-components/database/regular-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +22 -85
- package/dist/es/designer/service-components/index.js +33 -224
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +18 -125
- package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/form-data.vue.js +18 -153
- package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/header-data.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/json-data.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
- package/dist/es/designer/service-components/service/common/param-config.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
- package/dist/es/designer/service-components/service/common/query-params.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/raw-data.vue.js +27 -93
- package/dist/es/designer/service-components/service/common/raw-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +9 -74
- package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
- package/dist/es/designer/service-components/service/custom-bean/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/config.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
- package/dist/es/designer/service-components/service/http-service/index.js +12 -34
- package/dist/es/designer/service-components/service/http-service/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +15 -63
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/util/common-options.js +15 -129
- package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
- package/dist/es/designer/service-flow-view/flow-util.js +52 -129
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +28 -153
- package/dist/es/designer/service-flow-view/service-params.vue.js +53 -421
- package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-result.vue.js +56 -310
- package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +40 -307
- package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +65 -326
- package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -234
- package/dist/es/designer/service-flow-view/view-index.vue.js +4 -4
- package/dist/es/designer/service-flow-view/view-index.vue2.js +92 -353
- package/dist/es/designer/service-panel/component-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
- package/dist/es/designer/service-panel/service-list.vue.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue2.js +76 -497
- package/dist/es/designer/service-panel/service-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.js +26 -73
- package/dist/es/style.css +288 -288
- package/dist/es/utils/common-util.js +103 -211
- package/package.json +3 -2
|
@@ -1,56 +1,46 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return result;
|
|
1
|
+
function e(e2, r2) {
|
|
2
|
+
const t2 = r2.edges.filter((r3) => r3.sourceNodeId === e2.id), n = [];
|
|
3
|
+
if (t2)
|
|
4
|
+
for (let e3 = 0; e3 < t2.length; e3++)
|
|
5
|
+
n.push(r2.nodes.find((r3) => r3.id === t2[e3].targetNodeId));
|
|
6
|
+
return n;
|
|
10
7
|
}
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (Array.isArray(tempData) && Array.isArray(flowData)) {
|
|
19
|
-
if (tempData.length !== flowData.length)
|
|
8
|
+
function r(e2, t2) {
|
|
9
|
+
if ("object" != typeof e2 || "object" != typeof t2)
|
|
10
|
+
return e2 === t2;
|
|
11
|
+
if (null == e2 || null == t2)
|
|
12
|
+
return e2 === t2;
|
|
13
|
+
if (Array.isArray(e2) && Array.isArray(t2)) {
|
|
14
|
+
if (e2.length !== t2.length)
|
|
20
15
|
return false;
|
|
21
|
-
for (let
|
|
22
|
-
if (!
|
|
16
|
+
for (let n = 0; n < e2.length; n++)
|
|
17
|
+
if (!r(e2[n], t2[n]))
|
|
23
18
|
return false;
|
|
24
|
-
}
|
|
25
19
|
return true;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
20
|
+
}
|
|
21
|
+
{
|
|
22
|
+
const n = Object.keys(e2), i = Object.keys(t2);
|
|
23
|
+
if (n.length !== i.length)
|
|
30
24
|
return false;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (!keys2.includes(key) || !isDeepEqual(tempData[key], flowData[key])) {
|
|
25
|
+
for (let f of n)
|
|
26
|
+
if (!i.includes(f) || !r(e2[f], t2[f]))
|
|
34
27
|
return false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
28
|
return true;
|
|
38
29
|
}
|
|
39
30
|
}
|
|
40
|
-
function
|
|
41
|
-
for (let
|
|
42
|
-
if (
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
}
|
|
31
|
+
function t(e2, r2) {
|
|
32
|
+
for (let n = 0; n < r2.length; n++) {
|
|
33
|
+
if (r2[n].code === e2)
|
|
34
|
+
return r2[n];
|
|
35
|
+
if (r2[n].children && r2[n].children.length > 0) {
|
|
36
|
+
const i = t(e2, r2[n].children);
|
|
37
|
+
if (i)
|
|
38
|
+
return i;
|
|
49
39
|
}
|
|
50
40
|
}
|
|
51
41
|
}
|
|
52
42
|
export {
|
|
53
|
-
findServcieByCode,
|
|
54
|
-
getNextNodeById,
|
|
55
|
-
isDeepEqual
|
|
43
|
+
t as findServcieByCode,
|
|
44
|
+
e as getNextNodeById,
|
|
45
|
+
r as isDeepEqual
|
|
56
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./desginer-index.vue2.js";
|
|
2
2
|
import "./desginer-index.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = r(e, [["__scopeId", "data-v-7117ba9e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,115 +1,40 @@
|
|
|
1
|
-
import { ElAside, ElMain, ElContainer } from "element-plus/es";
|
|
1
|
+
import { ElAside as e, ElMain as t, ElContainer as o } from "element-plus/es";
|
|
2
2
|
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, ref, computed, onMounted, openBlock, createElementBlock, createVNode, withCtx, normalizeStyle } from "vue";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import { defineComponent as n, ref as s, computed as l, onMounted as a, openBlock as r, createElementBlock as i, createVNode as c, withCtx as p, normalizeStyle as u } from "vue";
|
|
7
|
+
import v from "./service-panel/service-panel.vue.js";
|
|
8
|
+
import m from "./service-flow-view/view-index.vue.js";
|
|
9
9
|
import "./service-components/index.js";
|
|
10
|
-
import { useServiceFlowStore } from "../stores/page-store.js";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
import { useServiceFlowStore as g } from "../stores/page-store.js";
|
|
11
|
+
import d from "agilebuilder-ui/src/utils/request";
|
|
12
|
+
const f = n({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(n2) {
|
|
13
|
+
const f2 = n2, w = s([]);
|
|
14
|
+
g().setPageContext(f2.pageContext);
|
|
15
|
+
const y = s(null), C = s(), x = s(), F = l(() => ({ height: x.value - 60 + "px" })), D = s();
|
|
16
|
+
a(() => {
|
|
17
|
+
if (I(), D.value) {
|
|
18
|
+
const e2 = D.value.getBoundingClientRect();
|
|
19
|
+
(e2.y || 0 === e2.y) && (x.value = window.innerHeight - e2.y);
|
|
18
20
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const serviceFlowStoreUtil = useServiceFlowStore();
|
|
24
|
-
serviceFlowStoreUtil.setPageContext(props.pageContext);
|
|
25
|
-
const logicFlowInstance = ref(null);
|
|
26
|
-
const serviceFlowViewRef = ref();
|
|
27
|
-
const winHeight = ref();
|
|
28
|
-
const containerHeightStyle = computed(() => {
|
|
29
|
-
return {
|
|
30
|
-
height: winHeight.value - 60 + "px"
|
|
31
|
-
};
|
|
21
|
+
});
|
|
22
|
+
const I = () => {
|
|
23
|
+
d.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + f2.pageContext.systemCode + "/" + f2.pageContext.systemVersion).then((e2) => {
|
|
24
|
+
e2 && (w.value = e2.children);
|
|
32
25
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + props.pageContext.systemCode + "/" + props.pageContext.systemVersion
|
|
46
|
-
).then((res) => {
|
|
47
|
-
if (res) {
|
|
48
|
-
serviceTreeData.value = res.children;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const dragNode = (serviceComponent) => {
|
|
53
|
-
console.log("dragNode");
|
|
54
|
-
serviceFlowViewRef.value.onDragNode(serviceComponent);
|
|
55
|
-
};
|
|
56
|
-
const onServiceClick = (service) => {
|
|
57
|
-
console.log("service-click", service);
|
|
58
|
-
serviceFlowViewRef.value.onServiceClick(service);
|
|
59
|
-
};
|
|
60
|
-
const clearFlowCanvas = () => {
|
|
61
|
-
serviceFlowViewRef.value.clearFlowCanvas();
|
|
62
|
-
logicFlowInstance.value = null;
|
|
63
|
-
};
|
|
64
|
-
return (_ctx, _cache) => {
|
|
65
|
-
const _component_el_aside = ElAside;
|
|
66
|
-
const _component_el_main = ElMain;
|
|
67
|
-
const _component_el_container = ElContainer;
|
|
68
|
-
return openBlock(), createElementBlock("div", {
|
|
69
|
-
ref_key: "serviceFlowContainerRef",
|
|
70
|
-
ref: serviceFlowContainerRef
|
|
71
|
-
}, [
|
|
72
|
-
createVNode(_component_el_container, { class: "amb-container" }, {
|
|
73
|
-
default: withCtx(() => [
|
|
74
|
-
createVNode(_component_el_aside, { class: "serviceflow-container-left" }, {
|
|
75
|
-
default: withCtx(() => [
|
|
76
|
-
createVNode(ServicePanel, {
|
|
77
|
-
logicFlowInstance: logicFlowInstance.value,
|
|
78
|
-
"onUpdate:logicFlowInstance": _cache[0] || (_cache[0] = ($event) => logicFlowInstance.value = $event),
|
|
79
|
-
serviceTreeData: serviceTreeData.value,
|
|
80
|
-
onServiceClick,
|
|
81
|
-
onClearFlowCanvas: clearFlowCanvas,
|
|
82
|
-
onLoadTreeData: loadTreeData,
|
|
83
|
-
onDragNode: dragNode,
|
|
84
|
-
style: normalizeStyle(containerHeightStyle.value)
|
|
85
|
-
}, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}),
|
|
89
|
-
createVNode(_component_el_main, {
|
|
90
|
-
class: "serviceflow-container-main",
|
|
91
|
-
style: normalizeStyle(containerHeightStyle.value)
|
|
92
|
-
}, {
|
|
93
|
-
default: withCtx(() => [
|
|
94
|
-
createVNode(ServiceFlowView, {
|
|
95
|
-
logicFlowInstance: logicFlowInstance.value,
|
|
96
|
-
"onUpdate:logicFlowInstance": _cache[1] || (_cache[1] = ($event) => logicFlowInstance.value = $event),
|
|
97
|
-
serviceTreeData: serviceTreeData.value,
|
|
98
|
-
pageContext: __props.pageContext,
|
|
99
|
-
onLoadTreeData: loadTreeData,
|
|
100
|
-
ref_key: "serviceFlowViewRef",
|
|
101
|
-
ref: serviceFlowViewRef
|
|
102
|
-
}, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["style"])
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
})
|
|
109
|
-
], 512);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
26
|
+
}, _ = (e2) => {
|
|
27
|
+
C.value.onDragNode(e2);
|
|
28
|
+
}, b = (e2) => {
|
|
29
|
+
C.value.onServiceClick(e2);
|
|
30
|
+
}, T = () => {
|
|
31
|
+
C.value.clearFlowCanvas(), y.value = null;
|
|
32
|
+
};
|
|
33
|
+
return (s2, l2) => {
|
|
34
|
+
const a2 = e, g2 = t, d2 = o;
|
|
35
|
+
return r(), i("div", { ref_key: "serviceFlowContainerRef", ref: D }, [c(d2, { class: "amb-container" }, { default: p(() => [c(a2, { class: "serviceflow-container-left" }, { default: p(() => [c(v, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => y.value = e2), serviceTreeData: w.value, onServiceClick: b, onClearFlowCanvas: T, onLoadTreeData: I, onDragNode: _, style: u(F.value) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: u(F.value) }, { default: p(() => [c(m, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => y.value = e2), serviceTreeData: w.value, pageContext: n2.pageContext, onLoadTreeData: I, ref_key: "serviceFlowViewRef", ref: C }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 })], 512);
|
|
36
|
+
};
|
|
37
|
+
} });
|
|
113
38
|
export {
|
|
114
|
-
|
|
39
|
+
f as default
|
|
115
40
|
};
|
|
@@ -4,26 +4,25 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { HtmlNode } from "@logicflow/core";
|
|
7
|
+
import { HtmlNode as e } from "@logicflow/core";
|
|
8
8
|
import "@logicflow/extension";
|
|
9
|
-
class
|
|
9
|
+
class t extends e {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
__publicField(this, "isMounted", false);
|
|
13
13
|
__publicField(this, "r");
|
|
14
14
|
__publicField(this, "app");
|
|
15
15
|
}
|
|
16
|
-
setHtml(
|
|
17
|
-
if (
|
|
18
|
-
this.isMounted = true;
|
|
19
|
-
const node = document.createElement("div");
|
|
20
|
-
rootEl.appendChild(node);
|
|
21
|
-
this.app.mount(node);
|
|
22
|
-
} else {
|
|
16
|
+
setHtml(e2) {
|
|
17
|
+
if (this.isMounted)
|
|
23
18
|
this.r.component.props.properties = this.props.model.getProperties();
|
|
19
|
+
else {
|
|
20
|
+
this.isMounted = true;
|
|
21
|
+
const t2 = document.createElement("div");
|
|
22
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
t as default
|
|
29
28
|
};
|
|
@@ -4,68 +4,40 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { HtmlNodeModel } from "@logicflow/core";
|
|
7
|
+
import { HtmlNodeModel as e } from "@logicflow/core";
|
|
8
8
|
import "vue";
|
|
9
|
-
class
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
9
|
+
class t extends e {
|
|
10
|
+
constructor(e2, t2) {
|
|
11
|
+
super(e2, t2);
|
|
12
12
|
__publicField(this, "nodeWidth", 200);
|
|
13
13
|
__publicField(this, "nodeHeight", 115);
|
|
14
|
-
console.log("----constructor---AbLogicNodeModel---");
|
|
15
14
|
this.setAttributes();
|
|
16
15
|
}
|
|
17
16
|
setAttributes() {
|
|
18
|
-
this.width = this.nodeWidth
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.inputData = this.text.value;
|
|
22
|
-
this.stroke = "#1E90FF";
|
|
23
|
-
this.fill = "#F0F8FF";
|
|
24
|
-
this.radius = 100;
|
|
25
|
-
this.menu = [
|
|
26
|
-
{
|
|
27
|
-
className: "lf-menu-delete",
|
|
28
|
-
icon: true,
|
|
29
|
-
text: "删除",
|
|
30
|
-
callback: (node) => {
|
|
31
|
-
this.graphModel.deleteNode(node.id);
|
|
32
|
-
this.graphModel.eventCenter.emit("custom:deleteNode", node);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
];
|
|
17
|
+
this.width = this.nodeWidth, this.height = this.nodeHeight, 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: (e2) => {
|
|
18
|
+
this.graphModel.deleteNode(e2.id), this.graphModel.eventCenter.emit("custom:deleteNode", e2);
|
|
19
|
+
} }];
|
|
36
20
|
}
|
|
37
21
|
getOutlineStyle() {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
style.height = this.nodeHeight;
|
|
41
|
-
return style;
|
|
22
|
+
const e2 = super.getOutlineStyle();
|
|
23
|
+
return e2.width = this.nodeWidth, e2.height = this.nodeHeight, e2;
|
|
42
24
|
}
|
|
43
|
-
initNodeData(
|
|
44
|
-
super.initNodeData(
|
|
25
|
+
initNodeData(e2) {
|
|
26
|
+
super.initNodeData(e2);
|
|
45
27
|
}
|
|
46
28
|
getConnectedSourceRules() {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
let isValid = true;
|
|
56
|
-
if (excludes.indexOf(source.type) === -1) {
|
|
57
|
-
const n = source.graphModel.getNodeOutgoingEdge(source.id);
|
|
58
|
-
if (n.length > 0) {
|
|
59
|
-
isValid = false;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return isValid;
|
|
29
|
+
const e2 = super.getConnectedSourceRules(), t2 = ["judgeCondition", "end"], i = { message: "条件判断才能作为source有多条边连线!", validate: (e3, i2, s, d) => {
|
|
30
|
+
if (!e3)
|
|
31
|
+
return false;
|
|
32
|
+
let o = true;
|
|
33
|
+
if (-1 === t2.indexOf(e3.type)) {
|
|
34
|
+
e3.graphModel.getNodeOutgoingEdge(e3.id).length > 0 && (o = false);
|
|
63
35
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return
|
|
36
|
+
return o;
|
|
37
|
+
} };
|
|
38
|
+
return e2.push(i), e2;
|
|
67
39
|
}
|
|
68
40
|
}
|
|
69
41
|
export {
|
|
70
|
-
|
|
42
|
+
t as default
|
|
71
43
|
};
|
|
@@ -5,25 +5,24 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import "@logicflow/core";
|
|
8
|
-
import { HtmlResize } from "@logicflow/extension";
|
|
9
|
-
class
|
|
8
|
+
import { HtmlResize as e } from "@logicflow/extension";
|
|
9
|
+
class t extends e.view {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
__publicField(this, "isMounted", false);
|
|
13
13
|
__publicField(this, "r");
|
|
14
14
|
__publicField(this, "app");
|
|
15
15
|
}
|
|
16
|
-
setHtml(
|
|
17
|
-
if (
|
|
18
|
-
this.isMounted = true;
|
|
19
|
-
const node = document.createElement("div");
|
|
20
|
-
rootEl.appendChild(node);
|
|
21
|
-
this.app.mount(node);
|
|
22
|
-
} else {
|
|
16
|
+
setHtml(e2) {
|
|
17
|
+
if (this.isMounted)
|
|
23
18
|
this.r.component.props.properties = this.props.model.getProperties();
|
|
19
|
+
else {
|
|
20
|
+
this.isMounted = true;
|
|
21
|
+
const t2 = document.createElement("div");
|
|
22
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
t as default
|
|
29
28
|
};
|
|
@@ -6,40 +6,24 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import "@logicflow/core";
|
|
8
8
|
import "vue";
|
|
9
|
-
import { HtmlResize } from "@logicflow/extension";
|
|
10
|
-
class
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
9
|
+
import { HtmlResize as t } from "@logicflow/extension";
|
|
10
|
+
class e extends t.model {
|
|
11
|
+
constructor(t2, e2) {
|
|
12
|
+
super(t2, e2);
|
|
13
13
|
__publicField(this, "nodeWidth", 200);
|
|
14
14
|
__publicField(this, "nodeHeight", 115);
|
|
15
|
-
console.log("----constructor---AbLogicNodeModel---");
|
|
16
15
|
this.setAttributes();
|
|
17
16
|
}
|
|
18
17
|
setAttributes() {
|
|
19
|
-
this.text.editable = false
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.fill = "#F0F8FF";
|
|
23
|
-
this.radius = 100;
|
|
24
|
-
this.menu = [
|
|
25
|
-
{
|
|
26
|
-
className: "lf-menu-delete",
|
|
27
|
-
icon: true,
|
|
28
|
-
text: "删除",
|
|
29
|
-
callback: (node) => {
|
|
30
|
-
this.graphModel.deleteNode(node.id);
|
|
31
|
-
this.graphModel.eventCenter.emit("custom:deleteNode", node);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
];
|
|
18
|
+
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) => {
|
|
19
|
+
this.graphModel.deleteNode(t2.id), this.graphModel.eventCenter.emit("custom:deleteNode", t2);
|
|
20
|
+
} }];
|
|
35
21
|
}
|
|
36
22
|
getOutlineStyle() {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
style.height = this.nodeHeight;
|
|
40
|
-
return style;
|
|
23
|
+
const t2 = super.getOutlineStyle();
|
|
24
|
+
return t2.width = this.nodeWidth, t2.height = this.nodeHeight, t2;
|
|
41
25
|
}
|
|
42
26
|
}
|
|
43
27
|
export {
|
|
44
|
-
|
|
28
|
+
e as default
|
|
45
29
|
};
|
|
@@ -1,49 +1,22 @@
|
|
|
1
|
-
import { PolylineEdge, PolylineEdgeModel } from "@logicflow/core";
|
|
2
|
-
class
|
|
3
|
-
}
|
|
4
|
-
class CustomLineModel extends PolylineEdgeModel {
|
|
1
|
+
import { PolylineEdge as e, PolylineEdgeModel as t } from "@logicflow/core";
|
|
2
|
+
const s = { type: "customLine", view: class extends e {
|
|
3
|
+
}, model: class extends t {
|
|
5
4
|
getEdgeStyle() {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
style.stroke = this.isSelected ? "#ff7f0e" : "#C8CDD4";
|
|
9
|
-
return style;
|
|
5
|
+
const e2 = super.getEdgeStyle();
|
|
6
|
+
return e2.strokeWidth = 2, e2.stroke = this.isSelected ? "#ff7f0e" : "#C8CDD4", e2;
|
|
10
7
|
}
|
|
11
8
|
getTextPosition() {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let [x2, y2] = currentPositionList[1].split(",");
|
|
20
|
-
let distence = 50;
|
|
21
|
-
const newX1 = Number(x1);
|
|
22
|
-
const newY1 = Number(y1);
|
|
23
|
-
const newx2 = Number(x2);
|
|
24
|
-
const newy2 = Number(y2);
|
|
25
|
-
if (newX1 === newx2) {
|
|
26
|
-
if (newy2 < newY1) {
|
|
27
|
-
distence = -50;
|
|
28
|
-
}
|
|
29
|
-
position.y = newY1 + distence;
|
|
30
|
-
position.x = newX1;
|
|
31
|
-
} else {
|
|
32
|
-
if (newx2 < newX1) {
|
|
33
|
-
distence = -50;
|
|
34
|
-
}
|
|
35
|
-
position.x = newX1 + distence;
|
|
36
|
-
position.y = newY1 - 10;
|
|
37
|
-
}
|
|
9
|
+
const e2 = super.getTextPosition(), t2 = this.points.split(" ");
|
|
10
|
+
if (t2 && t2.forEach((e3) => {
|
|
11
|
+
e3.split(",");
|
|
12
|
+
}), t2.length > 1) {
|
|
13
|
+
let [s2, o] = t2[0].split(","), [i, r] = t2[1].split(","), l = 50;
|
|
14
|
+
const n = Number(s2), c = Number(o), p = Number(i), u = Number(r);
|
|
15
|
+
n === p ? (u < c && (l = -50), e2.y = c + l, e2.x = n) : (p < n && (l = -50), e2.x = n + l, e2.y = c - 10);
|
|
38
16
|
}
|
|
39
|
-
return
|
|
17
|
+
return e2;
|
|
40
18
|
}
|
|
41
|
-
}
|
|
42
|
-
const CustomLine$1 = {
|
|
43
|
-
type: "customLine",
|
|
44
|
-
view: CustomLine,
|
|
45
|
-
model: CustomLineModel
|
|
46
|
-
};
|
|
19
|
+
} };
|
|
47
20
|
export {
|
|
48
|
-
|
|
21
|
+
s as default
|
|
49
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./config.vue2.js";
|
|
2
2
|
import "./config.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = e(o, [["__scopeId", "data-v-d55ab098"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|