service-flow-designer 1.1.3 → 1.1.4
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/file-upload.css +7 -0
- package/dist/es/designer/common/components/file-upload.vue.d.ts +20 -0
- package/dist/es/designer/common/components/file-upload.vue.js +7 -0
- package/dist/es/designer/common/components/file-upload.vue2.js +99 -0
- package/dist/es/designer/common/components/json-view/index.d.ts +4 -0
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.d.ts +36 -0
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +61 -0
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +4 -0
- package/dist/es/designer/common/components/json-view/json-view.vue.d.ts +32 -0
- package/dist/es/designer/common/components/json-view/json-view.vue.js +142 -0
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +4 -0
- package/dist/es/designer/common/components/value-set-input/index.d.ts +3 -0
- package/dist/es/designer/common/components/value-set-input/index.js +4 -0
- package/dist/es/designer/common/components/value-set-input/option.d.ts +12 -0
- package/dist/es/designer/common/components/value-set-input/option.js +62 -0
- package/dist/es/designer/common/components/value-set-input/value-set-input.css +14 -0
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.d.ts +145 -0
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +7 -0
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +420 -0
- package/dist/es/designer/common/types/common-type.d.ts +18 -0
- package/dist/es/designer/common/types/select.d.ts +7 -0
- package/dist/es/designer/common/util/node-util.d.ts +27 -0
- package/dist/es/designer/common/util/node-util.js +56 -0
- package/dist/es/designer/desginer-index.css +23 -3
- package/dist/es/designer/desginer-index.vue.d.ts +13 -1
- package/dist/es/designer/desginer-index.vue.js +1 -1
- package/dist/es/designer/desginer-index.vue2.js +94 -10
- package/dist/es/designer/flow/edge/CustomLine.d.ts +25 -0
- package/dist/es/designer/flow/edge/CustomLine.js +49 -0
- package/dist/es/designer/service-flow-view/flow-tool-util.d.ts +2 -0
- package/dist/es/designer/service-flow-view/flow-tool-util.js +44 -0
- package/dist/es/designer/service-flow-view/flow-util.d.ts +53 -0
- package/dist/es/designer/service-flow-view/flow-util.js +111 -0
- package/dist/es/designer/service-flow-view/service-flow-tool.css +130 -0
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.d.ts +33 -0
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +7 -0
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +188 -0
- package/dist/es/designer/service-flow-view/service-node-config.css +10 -0
- package/dist/es/designer/service-flow-view/service-node-config.vue.d.ts +49 -0
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +7 -0
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +139 -0
- package/dist/es/designer/service-flow-view/service-params.vue.d.ts +18 -0
- package/dist/es/designer/service-flow-view/service-params.vue.js +387 -0
- package/dist/es/designer/service-flow-view/service-params.vue2.js +4 -0
- package/dist/es/designer/service-flow-view/service-result.vue.d.ts +18 -0
- package/dist/es/designer/service-flow-view/service-result.vue.js +274 -0
- package/dist/es/designer/service-flow-view/service-result.vue2.js +4 -0
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.d.ts +16 -0
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +309 -0
- package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +4 -0
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.d.ts +47 -0
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +440 -0
- package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +4 -0
- package/dist/es/designer/service-flow-view/service-update-log.css +5 -0
- package/dist/es/designer/service-flow-view/service-update-log.vue.d.ts +41 -0
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +7 -0
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +205 -0
- package/dist/es/designer/service-flow-view/view-index.css +102 -0
- package/dist/es/designer/service-flow-view/view-index.vue.d.ts +40 -0
- package/dist/es/designer/service-flow-view/view-index.vue.js +7 -0
- package/dist/es/designer/service-flow-view/view-index.vue2.js +347 -0
- package/dist/es/designer/service-panel/component-panel.css +66 -0
- package/dist/es/designer/service-panel/component-panel.vue.d.ts +6 -0
- package/dist/es/designer/service-panel/component-panel.vue.js +7 -0
- package/dist/es/designer/service-panel/component-panel.vue2.js +86 -0
- package/dist/es/designer/service-panel/service-list.css +36 -0
- package/dist/es/designer/service-panel/service-list.vue.d.ts +22 -0
- package/dist/es/designer/service-panel/service-list.vue.js +7 -0
- package/dist/es/designer/service-panel/service-list.vue2.js +341 -0
- package/dist/es/designer/service-panel/service-panel.css +41 -0
- package/dist/es/designer/service-panel/service-panel.vue.d.ts +35 -0
- package/dist/es/designer/service-panel/service-panel.vue.js +7 -0
- package/dist/es/designer/service-panel/service-panel.vue2.js +80 -0
- package/dist/es/stores/page-store.d.ts +23 -0
- package/dist/es/stores/page-store.js +79 -0
- package/dist/lib/designer/common/components/file-upload.css +7 -0
- package/dist/lib/designer/common/components/file-upload.vue.d.ts +20 -0
- package/dist/lib/designer/common/components/file-upload.vue.js +6 -0
- package/dist/lib/designer/common/components/file-upload.vue2.js +98 -0
- package/dist/lib/designer/common/components/json-view/index.d.ts +4 -0
- package/dist/lib/designer/common/components/json-view/json-view-dialog.vue.d.ts +36 -0
- package/dist/lib/designer/common/components/json-view/json-view-dialog.vue.js +60 -0
- package/dist/lib/designer/common/components/json-view/json-view-dialog.vue2.js +3 -0
- package/dist/lib/designer/common/components/json-view/json-view.vue.d.ts +32 -0
- package/dist/lib/designer/common/components/json-view/json-view.vue.js +141 -0
- package/dist/lib/designer/common/components/json-view/json-view.vue2.js +3 -0
- package/dist/lib/designer/common/components/value-set-input/index.d.ts +3 -0
- package/dist/lib/designer/common/components/value-set-input/index.js +3 -0
- package/dist/lib/designer/common/components/value-set-input/option.d.ts +12 -0
- package/dist/lib/designer/common/components/value-set-input/option.js +62 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.css +14 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue.d.ts +145 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue.js +6 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue2.js +419 -0
- package/dist/lib/designer/common/types/common-type.d.ts +18 -0
- package/dist/lib/designer/common/types/select.d.ts +7 -0
- package/dist/lib/designer/common/util/node-util.d.ts +27 -0
- package/dist/lib/designer/common/util/node-util.js +56 -0
- package/dist/lib/designer/desginer-index.css +23 -3
- package/dist/lib/designer/desginer-index.vue.d.ts +13 -1
- package/dist/lib/designer/desginer-index.vue.js +1 -1
- package/dist/lib/designer/desginer-index.vue2.js +93 -9
- package/dist/lib/designer/flow/edge/CustomLine.d.ts +25 -0
- package/dist/lib/designer/flow/edge/CustomLine.js +48 -0
- package/dist/lib/designer/service-flow-view/flow-tool-util.d.ts +2 -0
- package/dist/lib/designer/service-flow-view/flow-tool-util.js +44 -0
- package/dist/lib/designer/service-flow-view/flow-util.d.ts +53 -0
- package/dist/lib/designer/service-flow-view/flow-util.js +111 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.css +130 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.vue.d.ts +33 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.vue2.js +187 -0
- package/dist/lib/designer/service-flow-view/service-node-config.css +10 -0
- package/dist/lib/designer/service-flow-view/service-node-config.vue.d.ts +49 -0
- package/dist/lib/designer/service-flow-view/service-node-config.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-node-config.vue2.js +138 -0
- package/dist/lib/designer/service-flow-view/service-params.vue.d.ts +18 -0
- package/dist/lib/designer/service-flow-view/service-params.vue.js +386 -0
- package/dist/lib/designer/service-flow-view/service-params.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-result.vue.d.ts +18 -0
- package/dist/lib/designer/service-flow-view/service-result.vue.js +273 -0
- package/dist/lib/designer/service-flow-view/service-result.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-test/request-params.vue.d.ts +16 -0
- package/dist/lib/designer/service-flow-view/service-test/request-params.vue.js +308 -0
- package/dist/lib/designer/service-flow-view/service-test/request-params.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-test/service-test.vue.d.ts +47 -0
- package/dist/lib/designer/service-flow-view/service-test/service-test.vue.js +439 -0
- package/dist/lib/designer/service-flow-view/service-test/service-test.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-update-log.css +5 -0
- package/dist/lib/designer/service-flow-view/service-update-log.vue.d.ts +41 -0
- package/dist/lib/designer/service-flow-view/service-update-log.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-update-log.vue2.js +204 -0
- package/dist/lib/designer/service-flow-view/view-index.css +102 -0
- package/dist/lib/designer/service-flow-view/view-index.vue.d.ts +40 -0
- package/dist/lib/designer/service-flow-view/view-index.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/view-index.vue2.js +346 -0
- package/dist/lib/designer/service-panel/component-panel.css +66 -0
- package/dist/lib/designer/service-panel/component-panel.vue.d.ts +6 -0
- package/dist/lib/designer/service-panel/component-panel.vue.js +6 -0
- package/dist/lib/designer/service-panel/component-panel.vue2.js +86 -0
- package/dist/lib/designer/service-panel/service-list.css +36 -0
- package/dist/lib/designer/service-panel/service-list.vue.d.ts +22 -0
- package/dist/lib/designer/service-panel/service-list.vue.js +6 -0
- package/dist/lib/designer/service-panel/service-list.vue2.js +340 -0
- package/dist/lib/designer/service-panel/service-panel.css +41 -0
- package/dist/lib/designer/service-panel/service-panel.vue.d.ts +35 -0
- package/dist/lib/designer/service-panel/service-panel.vue.js +6 -0
- package/dist/lib/designer/service-panel/service-panel.vue2.js +79 -0
- package/dist/lib/stores/page-store.d.ts +23 -0
- package/dist/lib/stores/page-store.js +79 -0
- package/package.json +1 -1
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, withDirectives, vShow, unref } from "vue";
|
|
2
|
+
import { EditorView, basicSetup } from "codemirror";
|
|
3
|
+
import { json } from "@codemirror/lang-json";
|
|
4
|
+
import { EditorState } from "@codemirror/state";
|
|
5
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
6
|
+
import LogicFlow from "@logicflow/core";
|
|
7
|
+
import _sfc_main$2 from "../../common/components/json-view/json-view.vue.js";
|
|
8
|
+
import { vscodeDark } from "@uiw/codemirror-themes-all";
|
|
9
|
+
import _sfc_main$1 from "./request-params.vue.js";
|
|
10
|
+
const _hoisted_1 = { class: "dialog-footer" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "service-test",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
appendToBody: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
cloneService: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => {
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
lf: {
|
|
28
|
+
type: LogicFlow,
|
|
29
|
+
default: () => {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emits = __emit;
|
|
37
|
+
const cfCodemirrorJsonTestRef = ref();
|
|
38
|
+
const showJsonDialog = ref(false);
|
|
39
|
+
const activeName = ref("entity");
|
|
40
|
+
const inputType = ref("json");
|
|
41
|
+
const returnValueType = ref("returnValue");
|
|
42
|
+
const entityData = ref([
|
|
43
|
+
{
|
|
44
|
+
code: "8ed5163f-5e92-4510-b93d-324a873f7f61",
|
|
45
|
+
name: "name",
|
|
46
|
+
type: "string",
|
|
47
|
+
value: "a"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
code: "527e5f5e-69f2-40cc-bcff-d82d181f73b9",
|
|
51
|
+
name: "height",
|
|
52
|
+
type: "int",
|
|
53
|
+
value: 12
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
code: "744e73c4-31a4-401f-9684-04e22f13afe5",
|
|
57
|
+
name: "weight",
|
|
58
|
+
type: "int",
|
|
59
|
+
value: 123
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
62
|
+
const requestData = ref([
|
|
63
|
+
{
|
|
64
|
+
code: "4dadbac5-6fab-4010-8b95-8a093bed3286",
|
|
65
|
+
name: "height",
|
|
66
|
+
type: "int",
|
|
67
|
+
value: 12
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
code: "f9eb7085-a8de-41ba-80d6-42bfca245e48",
|
|
71
|
+
name: "weight",
|
|
72
|
+
type: "int",
|
|
73
|
+
value: 123
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
code: "4926d447-a1cb-4097-a7d0-f6ca4da3c580",
|
|
77
|
+
name: "v1",
|
|
78
|
+
type: "string",
|
|
79
|
+
value: "http"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
code: "5c491ff8-5204-446a-a684-ca90263d4c84",
|
|
83
|
+
name: "v2",
|
|
84
|
+
type: "array",
|
|
85
|
+
value: "",
|
|
86
|
+
items: [
|
|
87
|
+
{
|
|
88
|
+
isArrayElement: true,
|
|
89
|
+
code: "5baf0a42-ddb3-4dd5-a80d-c2d8c299c07f",
|
|
90
|
+
name: "items",
|
|
91
|
+
type: "string",
|
|
92
|
+
value: "",
|
|
93
|
+
items: [
|
|
94
|
+
{
|
|
95
|
+
code: "e10177c3-4ccb-4483-b12e-7c1eccd6e45f",
|
|
96
|
+
name: "",
|
|
97
|
+
type: "string",
|
|
98
|
+
value: "sss",
|
|
99
|
+
lockedName: true,
|
|
100
|
+
lockedType: true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: "46fdb05a-d5e3-40d0-9105-197880659751",
|
|
104
|
+
name: "",
|
|
105
|
+
type: "string",
|
|
106
|
+
value: "sss"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
code: "a0bf495d-f493-49d0-a35a-d98d89a8479f",
|
|
110
|
+
name: "",
|
|
111
|
+
type: "string",
|
|
112
|
+
value: "sss",
|
|
113
|
+
lockedName: true,
|
|
114
|
+
lockedType: true
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
code: "ed64fe94-e19d-4bab-9b47-9836899ac2d2",
|
|
122
|
+
name: "v3",
|
|
123
|
+
type: "object",
|
|
124
|
+
value: "",
|
|
125
|
+
items: [
|
|
126
|
+
{
|
|
127
|
+
code: "72d87f04-d58e-470e-82e0-184d4d814f42",
|
|
128
|
+
name: "v31",
|
|
129
|
+
type: "int",
|
|
130
|
+
value: 1
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
code: "4fa68c62-0f35-45ed-a44b-8677b2c642e3",
|
|
136
|
+
name: "v4",
|
|
137
|
+
type: "boolean",
|
|
138
|
+
value: false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
code: "69e3d96b-30c5-4b91-b7e7-d3f79659c091",
|
|
142
|
+
name: "v6",
|
|
143
|
+
type: "object",
|
|
144
|
+
value: "",
|
|
145
|
+
items: [
|
|
146
|
+
{
|
|
147
|
+
code: "91352f2c-39f7-4424-a058-050412b4b1c0",
|
|
148
|
+
name: "v66",
|
|
149
|
+
type: "string",
|
|
150
|
+
value: "a"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
code: "63157b30-0ed3-4e7f-81de-73758d0652bc",
|
|
156
|
+
name: "v7a",
|
|
157
|
+
type: "object",
|
|
158
|
+
value: "",
|
|
159
|
+
items: [
|
|
160
|
+
{
|
|
161
|
+
code: "23bc3a92-c233-4262-afd9-58669d17bc7e",
|
|
162
|
+
name: "v71",
|
|
163
|
+
type: "string",
|
|
164
|
+
value: "sss"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
code: "07357f81-f2b4-4c2e-aefa-a5511cec8e94",
|
|
168
|
+
name: "v72",
|
|
169
|
+
type: "int",
|
|
170
|
+
value: 2
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
]);
|
|
175
|
+
const editor = ref(null);
|
|
176
|
+
const jsonValue = ref("");
|
|
177
|
+
const eitorHeight = ref();
|
|
178
|
+
const jsonObject = ref(null);
|
|
179
|
+
watch(
|
|
180
|
+
() => props.modelValue,
|
|
181
|
+
(newVal) => {
|
|
182
|
+
if (newVal) {
|
|
183
|
+
showJson();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
const showJson = () => {
|
|
188
|
+
showJsonDialog.value = true;
|
|
189
|
+
nextTick(() => {
|
|
190
|
+
loadEditor();
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
const close = () => {
|
|
194
|
+
showJsonDialog.value = false;
|
|
195
|
+
emits("update:modelValue", false);
|
|
196
|
+
};
|
|
197
|
+
function loadEditor() {
|
|
198
|
+
if (editor.value) {
|
|
199
|
+
editor.value.destroy();
|
|
200
|
+
}
|
|
201
|
+
const state = getEditorState();
|
|
202
|
+
let element = document.getElementById("cfCodemirrorJsonTest");
|
|
203
|
+
if (element) {
|
|
204
|
+
editor.value = new EditorView({
|
|
205
|
+
state,
|
|
206
|
+
parent: element
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function getEditorState() {
|
|
211
|
+
const mytheme = vscodeDark;
|
|
212
|
+
eitorHeight.value = window.innerHeight - 100;
|
|
213
|
+
if (cfCodemirrorJsonTestRef.value) {
|
|
214
|
+
const rect = cfCodemirrorJsonTestRef.value.getBoundingClientRect();
|
|
215
|
+
if (rect.y || rect.y === 0) {
|
|
216
|
+
eitorHeight.value = window.innerHeight - rect.y - 100;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const baseTheme = EditorView.theme({
|
|
220
|
+
".cm-content, .cm-gutter": { minHeight: eitorHeight.value + "px" },
|
|
221
|
+
"&": {
|
|
222
|
+
height: eitorHeight.value + "px",
|
|
223
|
+
maxHeight: eitorHeight.value + "px",
|
|
224
|
+
fontSize: "12px"
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
return EditorState.create({
|
|
228
|
+
doc: jsonValue.value,
|
|
229
|
+
extensions: [
|
|
230
|
+
EditorState.tabSize.of(16),
|
|
231
|
+
basicSetup,
|
|
232
|
+
json(),
|
|
233
|
+
mytheme,
|
|
234
|
+
baseTheme,
|
|
235
|
+
EditorView.updateListener.of(function(value) {
|
|
236
|
+
jsonValue.value = value.state.doc.toString();
|
|
237
|
+
})
|
|
238
|
+
]
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
const testRun = () => {
|
|
242
|
+
const testRunDTO = packageTestRunDTO();
|
|
243
|
+
http.post("/dsc/service-flow/test", testRunDTO).then((res) => {
|
|
244
|
+
console.log(res);
|
|
245
|
+
jsonObject.value = res;
|
|
246
|
+
}).catch((err) => {
|
|
247
|
+
console.log(err);
|
|
248
|
+
jsonObject.value = err.response;
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
const packageTestRunDTO = () => {
|
|
252
|
+
const testRunDTO = {
|
|
253
|
+
inputType: inputType.value,
|
|
254
|
+
inputJson: jsonValue.value,
|
|
255
|
+
entity: entityData.value,
|
|
256
|
+
requestParams: requestData.value,
|
|
257
|
+
serviceFlowJson: getServiceFlowJson(),
|
|
258
|
+
pageDesignJson: getPageDesignJson()
|
|
259
|
+
};
|
|
260
|
+
console.log(entityData.value, "1");
|
|
261
|
+
console.log(requestData.value, "2");
|
|
262
|
+
return testRunDTO;
|
|
263
|
+
};
|
|
264
|
+
const getServiceFlowJson = () => {
|
|
265
|
+
var _a;
|
|
266
|
+
const data = JSON.parse(JSON.stringify(props.cloneService));
|
|
267
|
+
data.flow = (_a = props.lf) == null ? void 0 : _a.getGraphData();
|
|
268
|
+
data.variables = JSON.stringify(data.variables);
|
|
269
|
+
data.log = JSON.stringify(data.log);
|
|
270
|
+
data.flow = JSON.stringify(data.flow);
|
|
271
|
+
data.returnValues = JSON.stringify(data.returnValues);
|
|
272
|
+
return JSON.stringify(data);
|
|
273
|
+
};
|
|
274
|
+
const getPageDesignJson = () => {
|
|
275
|
+
const data = {
|
|
276
|
+
// code: serviceFlowStoreUtil.pageContext.code,
|
|
277
|
+
// name: serviceFlowStoreUtil.pageContext.name,
|
|
278
|
+
// version: serviceFlowStoreUtil.pageContext.version,
|
|
279
|
+
// systemCode: serviceFlowStoreUtil.pageContext.systemCode,
|
|
280
|
+
// systemVersion: serviceFlowStoreUtil.pageContext.systemVersion,
|
|
281
|
+
// dbName: serviceFlowStoreUtil.pageContext.dbName,
|
|
282
|
+
tableCode: "test_servicflow_query"
|
|
283
|
+
// workflowCode: serviceFlowStoreUtil.pageContext.workflowCode,
|
|
284
|
+
// workflowVersion: serviceFlowStoreUtil.pageContext.workflowVersion,
|
|
285
|
+
//模型的字段
|
|
286
|
+
// modelFields: serviceFlowStoreUtil.pageContext.modelFields
|
|
287
|
+
};
|
|
288
|
+
return JSON.stringify(data);
|
|
289
|
+
};
|
|
290
|
+
return (_ctx, _cache) => {
|
|
291
|
+
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
292
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
293
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
294
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
|
295
|
+
const _component_el_aside = resolveComponent("el-aside");
|
|
296
|
+
const _component_el_container = resolveComponent("el-container");
|
|
297
|
+
const _component_el_button = resolveComponent("el-button");
|
|
298
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
299
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
300
|
+
fullscreen: true,
|
|
301
|
+
"destroy-on-close": "",
|
|
302
|
+
modelValue: showJsonDialog.value,
|
|
303
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => showJsonDialog.value = $event),
|
|
304
|
+
"append-to-body": __props.appendToBody,
|
|
305
|
+
title: "测试",
|
|
306
|
+
onClose: close
|
|
307
|
+
}, {
|
|
308
|
+
footer: withCtx(() => [
|
|
309
|
+
createElementVNode("div", _hoisted_1, [
|
|
310
|
+
createVNode(_component_el_button, {
|
|
311
|
+
onClick: _cache[3] || (_cache[3] = ($event) => showJsonDialog.value = false)
|
|
312
|
+
}, {
|
|
313
|
+
default: withCtx(() => [
|
|
314
|
+
createTextVNode("关闭")
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}),
|
|
318
|
+
createVNode(_component_el_button, {
|
|
319
|
+
type: "primary",
|
|
320
|
+
onClick: testRun
|
|
321
|
+
}, {
|
|
322
|
+
default: withCtx(() => [
|
|
323
|
+
createTextVNode(" 运行 ")
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
})
|
|
327
|
+
])
|
|
328
|
+
]),
|
|
329
|
+
default: withCtx(() => [
|
|
330
|
+
createVNode(_component_el_container, null, {
|
|
331
|
+
default: withCtx(() => [
|
|
332
|
+
createVNode(_component_el_aside, {
|
|
333
|
+
width: "50%",
|
|
334
|
+
style: { "padding": "0 10px" }
|
|
335
|
+
}, {
|
|
336
|
+
default: withCtx(() => [
|
|
337
|
+
createElementVNode("div", null, [
|
|
338
|
+
createVNode(_component_el_radio_group, {
|
|
339
|
+
modelValue: inputType.value,
|
|
340
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputType.value = $event),
|
|
341
|
+
size: "small"
|
|
342
|
+
}, {
|
|
343
|
+
default: withCtx(() => [
|
|
344
|
+
createVNode(_component_el_radio_button, {
|
|
345
|
+
label: "JSON",
|
|
346
|
+
value: "json"
|
|
347
|
+
}),
|
|
348
|
+
createVNode(_component_el_radio_button, {
|
|
349
|
+
label: "变量录入",
|
|
350
|
+
value: "custom"
|
|
351
|
+
})
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}, 8, ["modelValue"]),
|
|
355
|
+
withDirectives(createVNode(_component_el_tabs, {
|
|
356
|
+
modelValue: activeName.value,
|
|
357
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => activeName.value = $event),
|
|
358
|
+
class: "demo-tabs"
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [
|
|
361
|
+
createVNode(_component_el_tab_pane, {
|
|
362
|
+
label: "entity",
|
|
363
|
+
name: "entity"
|
|
364
|
+
}, {
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
createVNode(_sfc_main$1, { "entity-data": entityData.value }, null, 8, ["entity-data"])
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
369
|
+
}),
|
|
370
|
+
createVNode(_component_el_tab_pane, {
|
|
371
|
+
label: "request",
|
|
372
|
+
name: "request"
|
|
373
|
+
}, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createVNode(_sfc_main$1, { "entity-data": requestData.value }, null, 8, ["entity-data"])
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
})
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["modelValue"]), [
|
|
382
|
+
[vShow, inputType.value === "custom"]
|
|
383
|
+
]),
|
|
384
|
+
withDirectives(createElementVNode("div", {
|
|
385
|
+
style: {
|
|
386
|
+
marginTop: "10px",
|
|
387
|
+
backgroundColor: "#fff",
|
|
388
|
+
color: "#333"
|
|
389
|
+
},
|
|
390
|
+
ref_key: "cfCodemirrorJsonTestRef",
|
|
391
|
+
ref: cfCodemirrorJsonTestRef,
|
|
392
|
+
id: "cfCodemirrorJsonTest"
|
|
393
|
+
}, null, 512), [
|
|
394
|
+
[vShow, inputType.value === "json"]
|
|
395
|
+
])
|
|
396
|
+
])
|
|
397
|
+
]),
|
|
398
|
+
_: 1
|
|
399
|
+
}),
|
|
400
|
+
createVNode(_component_el_aside, {
|
|
401
|
+
width: "50%",
|
|
402
|
+
style: { "padding": "0 10px" }
|
|
403
|
+
}, {
|
|
404
|
+
default: withCtx(() => [
|
|
405
|
+
createElementVNode("div", null, [
|
|
406
|
+
createVNode(_component_el_radio_group, {
|
|
407
|
+
modelValue: returnValueType.value,
|
|
408
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => returnValueType.value = $event),
|
|
409
|
+
size: "small",
|
|
410
|
+
style: { "margin-bottom": "10px" }
|
|
411
|
+
}, {
|
|
412
|
+
default: withCtx(() => [
|
|
413
|
+
createVNode(_component_el_radio_button, {
|
|
414
|
+
label: "返回结果",
|
|
415
|
+
value: "returnValue"
|
|
416
|
+
})
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}, 8, ["modelValue"]),
|
|
420
|
+
createVNode(unref(_sfc_main$2), {
|
|
421
|
+
jsonObject: jsonObject.value,
|
|
422
|
+
height: eitorHeight.value,
|
|
423
|
+
theme: "vscodeDark"
|
|
424
|
+
}, null, 8, ["jsonObject", "height"])
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
})
|
|
429
|
+
]),
|
|
430
|
+
_: 1
|
|
431
|
+
})
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, ["modelValue", "append-to-body"]);
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
export {
|
|
439
|
+
_sfc_main as default
|
|
440
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare function showDialog(event: any): void;
|
|
2
|
+
declare function closeDialog(): void;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
lf: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
cloneService: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
sourceService: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
showDialog: typeof showDialog;
|
|
18
|
+
closeDialog: typeof closeDialog;
|
|
19
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
save: (...args: any[]) => void;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
+
lf: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
cloneService: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
sourceService: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {};
|
|
33
|
+
};
|
|
34
|
+
}>> & {
|
|
35
|
+
onSave?: (...args: any[]) => any;
|
|
36
|
+
}, {
|
|
37
|
+
lf: Record<string, any>;
|
|
38
|
+
cloneService: Record<string, any>;
|
|
39
|
+
sourceService: Record<string, any>;
|
|
40
|
+
}, {}>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./service-update-log.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const serviceUpdateLog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-24162035"]]);
|
|
5
|
+
export {
|
|
6
|
+
serviceUpdateLog as default
|
|
7
|
+
};
|