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,4 +1,4 @@
|
|
|
1
|
-
import { ElRadioButton, ElRadioGroup, ElTabPane, ElTabs, ElAside, ElContainer, ElButton, ElDialog } from "element-plus/es";
|
|
1
|
+
import { ElRadioButton as e, ElRadioGroup as t, ElTabPane as l, ElTabs as o, ElAside as n, ElContainer as s, ElButton as a, ElDialog as u } 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 "element-plus/es/components/button/style/css";
|
|
@@ -8,331 +8,70 @@ import "element-plus/es/components/tabs/style/css";
|
|
|
8
8
|
import "element-plus/es/components/tab-pane/style/css";
|
|
9
9
|
import "element-plus/es/components/radio-group/style/css";
|
|
10
10
|
import "element-plus/es/components/radio-button/style/css";
|
|
11
|
-
import { defineComponent, ref, watch, nextTick, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, withDirectives, vShow, unref } from "vue";
|
|
12
|
-
import { EditorView, basicSetup } from "codemirror";
|
|
13
|
-
import { json } from "@codemirror/lang-json";
|
|
14
|
-
import { EditorState } from "@codemirror/state";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { vscodeDark } from "@uiw/codemirror-themes-all";
|
|
19
|
-
import
|
|
20
|
-
import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
|
|
21
|
-
import { getRuntimeJson } from "../flow-util.js";
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
import { defineComponent as r, ref as i, watch as m, nextTick as p, openBlock as d, createBlock as c, withCtx as f, createElementVNode as v, createVNode as y, createTextVNode as g, withDirectives as b, vShow as w, unref as V } from "vue";
|
|
12
|
+
import { EditorView as h, basicSetup as J } from "codemirror";
|
|
13
|
+
import { json as _ } from "@codemirror/lang-json";
|
|
14
|
+
import { EditorState as j } from "@codemirror/state";
|
|
15
|
+
import S from "agilebuilder-ui/src/utils/request";
|
|
16
|
+
import x from "@logicflow/core";
|
|
17
|
+
import O from "../../common/components/json-view/json-view.vue.js";
|
|
18
|
+
import { vscodeDark as C } from "@uiw/codemirror-themes-all";
|
|
19
|
+
import N from "./request-params.vue.js";
|
|
20
|
+
import { getSystemBackendUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
|
21
|
+
import { getRuntimeJson as k } from "../flow-util.js";
|
|
22
|
+
const q = { class: "dialog-footer" }, B = r({ __name: "service-test", props: { modelValue: { type: Boolean, default: false }, appendToBody: { type: Boolean, default: false }, cloneService: { type: Object, default: () => {
|
|
23
|
+
} }, lf: { type: x, default: () => {
|
|
24
|
+
} }, pageContext: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(r2, { emit: x2 }) {
|
|
25
|
+
const B2 = r2, U = x2, z = i(), H = i(false), D = i("entity"), R = i("json"), L = i("returnValue"), P = i([]), A = i([]), E = i(null), F = i(""), G = i(), I = i(null);
|
|
26
|
+
m(() => B2.modelValue, (e2) => {
|
|
27
|
+
e2 && $();
|
|
28
|
+
});
|
|
29
|
+
const $ = () => {
|
|
30
|
+
H.value = true, p(() => {
|
|
31
|
+
!function() {
|
|
32
|
+
E.value && E.value.destroy();
|
|
33
|
+
const e2 = function() {
|
|
34
|
+
const e3 = C;
|
|
35
|
+
if (G.value = window.innerHeight - 100, z.value) {
|
|
36
|
+
const e4 = z.value.getBoundingClientRect();
|
|
37
|
+
(e4.y || 0 === e4.y) && (G.value = window.innerHeight - e4.y - 100);
|
|
38
|
+
}
|
|
39
|
+
const t3 = h.theme({ ".cm-content, .cm-gutter": { minHeight: G.value + "px" }, "&": { height: G.value + "px", maxHeight: G.value + "px", fontSize: "12px" } });
|
|
40
|
+
return j.create({ doc: F.value, extensions: [j.tabSize.of(16), J, _(), e3, t3, h.updateListener.of(function(e4) {
|
|
41
|
+
F.value = e4.state.doc.toString();
|
|
42
|
+
})] });
|
|
43
|
+
}();
|
|
44
|
+
let t2 = document.getElementById("cfCodemirrorJsonTest");
|
|
45
|
+
t2 && (E.value = new h({ state: e2, parent: t2 }));
|
|
46
|
+
}();
|
|
47
|
+
});
|
|
48
|
+
}, K = () => {
|
|
49
|
+
H.value = false, U("update:modelValue", false);
|
|
50
|
+
};
|
|
51
|
+
const M = () => {
|
|
52
|
+
const e2 = Q(), t2 = function(e3, t3) {
|
|
53
|
+
if (t3)
|
|
54
|
+
return e3;
|
|
55
|
+
{
|
|
56
|
+
let t4 = window.$vueApp.config.globalProperties.baseURL;
|
|
57
|
+
return e3 && (t4 = T(e3)), t4;
|
|
37
58
|
}
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const showJsonDialog = ref(false);
|
|
55
|
-
const activeName = ref("entity");
|
|
56
|
-
const inputType = ref("json");
|
|
57
|
-
const returnValueType = ref("returnValue");
|
|
58
|
-
const entityData = ref([]);
|
|
59
|
-
const requestData = ref([]);
|
|
60
|
-
const editor = ref(null);
|
|
61
|
-
const jsonValue = ref("");
|
|
62
|
-
const eitorHeight = ref();
|
|
63
|
-
const jsonObject = ref(null);
|
|
64
|
-
watch(
|
|
65
|
-
() => props.modelValue,
|
|
66
|
-
(newVal) => {
|
|
67
|
-
if (newVal) {
|
|
68
|
-
showJson();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
const showJson = () => {
|
|
73
|
-
showJsonDialog.value = true;
|
|
74
|
-
nextTick(() => {
|
|
75
|
-
loadEditor();
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
const close = () => {
|
|
79
|
-
showJsonDialog.value = false;
|
|
80
|
-
emits("update:modelValue", false);
|
|
81
|
-
};
|
|
82
|
-
function loadEditor() {
|
|
83
|
-
if (editor.value) {
|
|
84
|
-
editor.value.destroy();
|
|
85
|
-
}
|
|
86
|
-
const state = getEditorState();
|
|
87
|
-
let element = document.getElementById("cfCodemirrorJsonTest");
|
|
88
|
-
if (element) {
|
|
89
|
-
editor.value = new EditorView({
|
|
90
|
-
state,
|
|
91
|
-
parent: element
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function getEditorState() {
|
|
96
|
-
const mytheme = vscodeDark;
|
|
97
|
-
eitorHeight.value = window.innerHeight - 100;
|
|
98
|
-
if (cfCodemirrorJsonTestRef.value) {
|
|
99
|
-
const rect = cfCodemirrorJsonTestRef.value.getBoundingClientRect();
|
|
100
|
-
if (rect.y || rect.y === 0) {
|
|
101
|
-
eitorHeight.value = window.innerHeight - rect.y - 100;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const baseTheme = EditorView.theme({
|
|
105
|
-
".cm-content, .cm-gutter": { minHeight: eitorHeight.value + "px" },
|
|
106
|
-
"&": {
|
|
107
|
-
height: eitorHeight.value + "px",
|
|
108
|
-
maxHeight: eitorHeight.value + "px",
|
|
109
|
-
fontSize: "12px"
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
return EditorState.create({
|
|
113
|
-
doc: jsonValue.value,
|
|
114
|
-
extensions: [
|
|
115
|
-
EditorState.tabSize.of(16),
|
|
116
|
-
basicSetup,
|
|
117
|
-
json(),
|
|
118
|
-
mytheme,
|
|
119
|
-
baseTheme,
|
|
120
|
-
EditorView.updateListener.of(function(value) {
|
|
121
|
-
jsonValue.value = value.state.doc.toString();
|
|
122
|
-
})
|
|
123
|
-
]
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
const testRun = () => {
|
|
127
|
-
const testRunDTO = packageTestRunDTO();
|
|
128
|
-
const baseUrl = getBaseUrl(props.pageContext.backendUrl, props.pageContext.isTest);
|
|
129
|
-
http.post(baseUrl + "/dsc/service-flow/test", testRunDTO).then((res) => {
|
|
130
|
-
console.log(res);
|
|
131
|
-
jsonObject.value = res;
|
|
132
|
-
}).catch((err) => {
|
|
133
|
-
console.log(err);
|
|
134
|
-
jsonObject.value = err.response;
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
const packageTestRunDTO = () => {
|
|
138
|
-
const testRunDTO = {
|
|
139
|
-
inputType: inputType.value,
|
|
140
|
-
inputJson: jsonValue.value,
|
|
141
|
-
entity: entityData.value,
|
|
142
|
-
requestParams: requestData.value,
|
|
143
|
-
serviceFlowJson: getServiceFlowJson(),
|
|
144
|
-
pageDesignJson: getPageDesignJson()
|
|
145
|
-
};
|
|
146
|
-
console.log(entityData.value, "1");
|
|
147
|
-
console.log(requestData.value, "2");
|
|
148
|
-
return testRunDTO;
|
|
149
|
-
};
|
|
150
|
-
const getServiceFlowJson = () => {
|
|
151
|
-
var _a;
|
|
152
|
-
const data = JSON.parse(JSON.stringify(props.cloneService));
|
|
153
|
-
data.flow = (_a = props.lf) == null ? void 0 : _a.getGraphData();
|
|
154
|
-
data.runtimeJson = JSON.stringify(getRuntimeJson(data));
|
|
155
|
-
data.variables = JSON.stringify(data.variables);
|
|
156
|
-
data.log = JSON.stringify(data.log);
|
|
157
|
-
data.flow = JSON.stringify(data.flow);
|
|
158
|
-
data.returnValues = JSON.stringify(data.returnValues);
|
|
159
|
-
return JSON.stringify(data);
|
|
160
|
-
};
|
|
161
|
-
const getPageDesignJson = () => {
|
|
162
|
-
const data = {
|
|
163
|
-
// code: serviceFlowStoreUtil.pageContext.code,
|
|
164
|
-
// name: serviceFlowStoreUtil.pageContext.name,
|
|
165
|
-
// version: serviceFlowStoreUtil.pageContext.version,
|
|
166
|
-
// systemCode: serviceFlowStoreUtil.pageContext.systemCode,
|
|
167
|
-
// systemVersion: serviceFlowStoreUtil.pageContext.systemVersion,
|
|
168
|
-
// dbName: serviceFlowStoreUtil.pageContext.dbName,
|
|
169
|
-
tableCode: "test_servicflow_query"
|
|
170
|
-
// workflowCode: serviceFlowStoreUtil.pageContext.workflowCode,
|
|
171
|
-
// workflowVersion: serviceFlowStoreUtil.pageContext.workflowVersion,
|
|
172
|
-
//模型的字段
|
|
173
|
-
// modelFields: serviceFlowStoreUtil.pageContext.modelFields
|
|
174
|
-
};
|
|
175
|
-
return JSON.stringify(data);
|
|
176
|
-
};
|
|
177
|
-
function getBaseUrl(backendUrl, isTest) {
|
|
178
|
-
if (isTest) {
|
|
179
|
-
return backendUrl;
|
|
180
|
-
} else {
|
|
181
|
-
let baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
182
|
-
if (backendUrl) {
|
|
183
|
-
baseUrl = getSystemBackendUrl(backendUrl);
|
|
184
|
-
}
|
|
185
|
-
return baseUrl;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return (_ctx, _cache) => {
|
|
189
|
-
const _component_el_radio_button = ElRadioButton;
|
|
190
|
-
const _component_el_radio_group = ElRadioGroup;
|
|
191
|
-
const _component_el_tab_pane = ElTabPane;
|
|
192
|
-
const _component_el_tabs = ElTabs;
|
|
193
|
-
const _component_el_aside = ElAside;
|
|
194
|
-
const _component_el_container = ElContainer;
|
|
195
|
-
const _component_el_button = ElButton;
|
|
196
|
-
const _component_el_dialog = ElDialog;
|
|
197
|
-
return openBlock(), createBlock(_component_el_dialog, {
|
|
198
|
-
fullscreen: true,
|
|
199
|
-
"destroy-on-close": "",
|
|
200
|
-
modelValue: showJsonDialog.value,
|
|
201
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => showJsonDialog.value = $event),
|
|
202
|
-
"append-to-body": __props.appendToBody,
|
|
203
|
-
title: "测试",
|
|
204
|
-
onClose: close
|
|
205
|
-
}, {
|
|
206
|
-
footer: withCtx(() => [
|
|
207
|
-
createElementVNode("div", _hoisted_1, [
|
|
208
|
-
createVNode(_component_el_button, {
|
|
209
|
-
onClick: _cache[3] || (_cache[3] = ($event) => showJsonDialog.value = false)
|
|
210
|
-
}, {
|
|
211
|
-
default: withCtx(() => [
|
|
212
|
-
createTextVNode("关闭")
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}),
|
|
216
|
-
createVNode(_component_el_button, {
|
|
217
|
-
type: "primary",
|
|
218
|
-
onClick: testRun
|
|
219
|
-
}, {
|
|
220
|
-
default: withCtx(() => [
|
|
221
|
-
createTextVNode(" 运行 ")
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
})
|
|
225
|
-
])
|
|
226
|
-
]),
|
|
227
|
-
default: withCtx(() => [
|
|
228
|
-
createVNode(_component_el_container, null, {
|
|
229
|
-
default: withCtx(() => [
|
|
230
|
-
createVNode(_component_el_aside, {
|
|
231
|
-
width: "50%",
|
|
232
|
-
style: { "padding": "0 10px" }
|
|
233
|
-
}, {
|
|
234
|
-
default: withCtx(() => [
|
|
235
|
-
createElementVNode("div", null, [
|
|
236
|
-
createVNode(_component_el_radio_group, {
|
|
237
|
-
modelValue: inputType.value,
|
|
238
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputType.value = $event),
|
|
239
|
-
size: "small"
|
|
240
|
-
}, {
|
|
241
|
-
default: withCtx(() => [
|
|
242
|
-
createVNode(_component_el_radio_button, {
|
|
243
|
-
label: "JSON",
|
|
244
|
-
value: "json"
|
|
245
|
-
}),
|
|
246
|
-
createVNode(_component_el_radio_button, {
|
|
247
|
-
label: "变量录入",
|
|
248
|
-
value: "custom"
|
|
249
|
-
})
|
|
250
|
-
]),
|
|
251
|
-
_: 1
|
|
252
|
-
}, 8, ["modelValue"]),
|
|
253
|
-
withDirectives(createVNode(_component_el_tabs, {
|
|
254
|
-
modelValue: activeName.value,
|
|
255
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => activeName.value = $event),
|
|
256
|
-
class: "demo-tabs"
|
|
257
|
-
}, {
|
|
258
|
-
default: withCtx(() => [
|
|
259
|
-
createVNode(_component_el_tab_pane, {
|
|
260
|
-
label: "entity",
|
|
261
|
-
name: "entity"
|
|
262
|
-
}, {
|
|
263
|
-
default: withCtx(() => [
|
|
264
|
-
createVNode(_sfc_main$1, { "entity-data": entityData.value }, null, 8, ["entity-data"])
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}),
|
|
268
|
-
createVNode(_component_el_tab_pane, {
|
|
269
|
-
label: "request",
|
|
270
|
-
name: "request"
|
|
271
|
-
}, {
|
|
272
|
-
default: withCtx(() => [
|
|
273
|
-
createVNode(_sfc_main$1, { "entity-data": requestData.value }, null, 8, ["entity-data"])
|
|
274
|
-
]),
|
|
275
|
-
_: 1
|
|
276
|
-
})
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["modelValue"]), [
|
|
280
|
-
[vShow, inputType.value === "custom"]
|
|
281
|
-
]),
|
|
282
|
-
withDirectives(createElementVNode("div", {
|
|
283
|
-
style: {
|
|
284
|
-
marginTop: "10px",
|
|
285
|
-
backgroundColor: "#fff",
|
|
286
|
-
color: "#333"
|
|
287
|
-
},
|
|
288
|
-
ref_key: "cfCodemirrorJsonTestRef",
|
|
289
|
-
ref: cfCodemirrorJsonTestRef,
|
|
290
|
-
id: "cfCodemirrorJsonTest"
|
|
291
|
-
}, null, 512), [
|
|
292
|
-
[vShow, inputType.value === "json"]
|
|
293
|
-
])
|
|
294
|
-
])
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
}),
|
|
298
|
-
createVNode(_component_el_aside, {
|
|
299
|
-
width: "50%",
|
|
300
|
-
style: { "padding": "0 10px" }
|
|
301
|
-
}, {
|
|
302
|
-
default: withCtx(() => [
|
|
303
|
-
createElementVNode("div", null, [
|
|
304
|
-
createVNode(_component_el_radio_group, {
|
|
305
|
-
modelValue: returnValueType.value,
|
|
306
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => returnValueType.value = $event),
|
|
307
|
-
size: "small",
|
|
308
|
-
style: { "margin-bottom": "10px" }
|
|
309
|
-
}, {
|
|
310
|
-
default: withCtx(() => [
|
|
311
|
-
createVNode(_component_el_radio_button, {
|
|
312
|
-
label: "返回结果",
|
|
313
|
-
value: "returnValue"
|
|
314
|
-
})
|
|
315
|
-
]),
|
|
316
|
-
_: 1
|
|
317
|
-
}, 8, ["modelValue"]),
|
|
318
|
-
createVNode(unref(_sfc_main$2), {
|
|
319
|
-
jsonObject: jsonObject.value,
|
|
320
|
-
height: eitorHeight.value,
|
|
321
|
-
theme: "vscodeDark"
|
|
322
|
-
}, null, 8, ["jsonObject", "height"])
|
|
323
|
-
])
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
})
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
})
|
|
330
|
-
]),
|
|
331
|
-
_: 1
|
|
332
|
-
}, 8, ["modelValue", "append-to-body"]);
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
});
|
|
59
|
+
}(B2.pageContext.backendUrl, B2.pageContext.isTest);
|
|
60
|
+
S.post(t2 + "/dsc/service-flow/test", e2).then((e3) => {
|
|
61
|
+
I.value = e3;
|
|
62
|
+
}).catch((e3) => {
|
|
63
|
+
I.value = e3.response;
|
|
64
|
+
});
|
|
65
|
+
}, Q = () => ({ inputType: R.value, inputJson: F.value, entity: P.value, requestParams: A.value, serviceFlowJson: W(), pageDesignJson: X() }), W = () => {
|
|
66
|
+
var _a;
|
|
67
|
+
const e2 = JSON.parse(JSON.stringify(B2.cloneService));
|
|
68
|
+
return e2.flow = (_a = B2.lf) == null ? void 0 : _a.getGraphData(), e2.runtimeJson = JSON.stringify(k(e2)), e2.variables = JSON.stringify(e2.variables), e2.log = JSON.stringify(e2.log), e2.flow = JSON.stringify(e2.flow), e2.returnValues = JSON.stringify(e2.returnValues), JSON.stringify(e2);
|
|
69
|
+
}, X = () => JSON.stringify({ tableCode: "test_servicflow_query" });
|
|
70
|
+
return (i2, m2) => {
|
|
71
|
+
const p2 = e, h2 = t, J2 = l, _2 = o, j2 = n, S2 = s, x3 = a, C2 = u;
|
|
72
|
+
return d(), c(C2, { fullscreen: true, "destroy-on-close": "", modelValue: H.value, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => H.value = e2), "append-to-body": r2.appendToBody, title: "测试", onClose: K }, { footer: f(() => [v("div", q, [y(x3, { onClick: m2[3] || (m2[3] = (e2) => H.value = false) }, { default: f(() => [g("关闭")]), _: 1 }), y(x3, { type: "primary", onClick: M }, { default: f(() => [g(" 运行 ")]), _: 1 })])]), default: f(() => [y(S2, null, { default: f(() => [y(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [v("div", null, [y(h2, { modelValue: R.value, "onUpdate:modelValue": m2[0] || (m2[0] = (e2) => R.value = e2), size: "small" }, { default: f(() => [y(p2, { label: "JSON", value: "json" }), y(p2, { label: "变量录入", value: "custom" })]), _: 1 }, 8, ["modelValue"]), b(y(_2, { modelValue: D.value, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => D.value = e2), class: "demo-tabs" }, { default: f(() => [y(J2, { label: "entity", name: "entity" }, { default: f(() => [y(N, { "entity-data": P.value }, null, 8, ["entity-data"])]), _: 1 }), y(J2, { label: "request", name: "request" }, { default: f(() => [y(N, { "entity-data": A.value }, null, 8, ["entity-data"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), [[w, "custom" === R.value]]), b(v("div", { style: { marginTop: "10px", backgroundColor: "#fff", color: "#333" }, ref_key: "cfCodemirrorJsonTestRef", ref: z, id: "cfCodemirrorJsonTest" }, null, 512), [[w, "json" === R.value]])])]), _: 1 }), y(j2, { width: "50%", style: { padding: "0 10px" } }, { default: f(() => [v("div", null, [y(h2, { modelValue: L.value, "onUpdate:modelValue": m2[2] || (m2[2] = (e2) => L.value = e2), size: "small", style: { "margin-bottom": "10px" } }, { default: f(() => [y(p2, { label: "返回结果", value: "returnValue" })]), _: 1 }, 8, ["modelValue"]), y(V(O), { jsonObject: I.value, height: G.value, theme: "vscodeDark" }, null, 8, ["jsonObject", "height"])])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "append-to-body"]);
|
|
73
|
+
};
|
|
74
|
+
} });
|
|
336
75
|
export {
|
|
337
|
-
|
|
76
|
+
B as default
|
|
338
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./service-update-log.vue2.js";
|
|
2
2
|
import "./service-update-log.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-7d8d63a2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|