service-flow-designer 2.1.29 → 2.1.35
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/sql-view/index.d.ts +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.d.ts +36 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +63 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue.d.ts +32 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue.js +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +98 -0
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.d.ts +18 -0
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +55 -12
- package/dist/es/designer/service-components/database/regular-query/config.vue.d.ts +18 -0
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +70 -25
- package/dist/es/designer/service-flow-view/flow-util.d.ts +2 -0
- package/dist/es/designer/service-flow-view/flow-util.js +16 -0
- package/dist/es/designer/service-flow-view/service-node-config.vue.d.ts +9 -0
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +6 -1
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +0 -1
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +47 -21
- package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue2.js +3 -2
- package/dist/es/style.css +257 -257
- package/dist/es/utils/common-util.d.ts +1 -0
- package/dist/es/utils/common-util.js +13 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElCheckbox,
|
|
1
|
+
import { ElCheckbox, ElButton, ElInput, ElFormItem, ElAlert, ElTableColumn, ElOption, ElSelect, ElTooltip, ElTable, ElRadio, ElRadioGroup, ElDivider, ElForm } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/form/style/css";
|
|
4
4
|
import "element-plus/es/components/divider/style/css";
|
|
@@ -11,24 +11,31 @@ import "element-plus/es/components/option/style/css";
|
|
|
11
11
|
import "element-plus/es/components/table-column/style/css";
|
|
12
12
|
import "element-plus/es/components/alert/style/css";
|
|
13
13
|
import "element-plus/es/components/form-item/style/css";
|
|
14
|
-
import "element-plus/es/components/button/style/css";
|
|
15
14
|
import "element-plus/es/components/input/style/css";
|
|
15
|
+
import "element-plus/es/components/button/style/css";
|
|
16
16
|
import "element-plus/es/components/checkbox/style/css";
|
|
17
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, toDisplayString, createBlock, Fragment, renderList
|
|
18
|
-
import { Search, Plus, Minus } from "@element-plus/icons-vue";
|
|
17
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, createTextVNode, toDisplayString, createBlock, Fragment, renderList } from "vue";
|
|
18
|
+
import { Search, View, Plus, Minus } from "@element-plus/icons-vue";
|
|
19
19
|
import { getLabel, sqlOperators, logicOperators } from "../../util/common-options.js";
|
|
20
20
|
import ValueSetInput from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
21
|
+
import { getBaseUrl } from "../../../../utils/common-util.js";
|
|
21
22
|
import http from "agilebuilder-ui/src/utils/request";
|
|
22
23
|
import DatatableSelect from "../../../common/components/datatable-select.vue.js";
|
|
23
24
|
import { useServiceFlowStore } from "../../../../stores/page-store.js";
|
|
24
25
|
import _sfc_main$1 from "../../../common/components/node-base-config.vue.js";
|
|
25
|
-
|
|
26
|
+
import "codemirror";
|
|
27
|
+
import "@codemirror/lang-sql";
|
|
28
|
+
import "@codemirror/state";
|
|
29
|
+
import _sfc_main$2 from "../../../common/components/sql-view/sql-view-dialog.vue.js";
|
|
30
|
+
import { getNodeRuntimeObject } from "../../../service-flow-view/flow-util.js";
|
|
31
|
+
const _hoisted_1 = { style: { "position": "absolute", "right": "0" } };
|
|
26
32
|
const _hoisted_2 = { key: 0 };
|
|
27
33
|
const _hoisted_3 = { key: 0 };
|
|
28
34
|
const _hoisted_4 = { key: 0 };
|
|
29
35
|
const _hoisted_5 = { key: 0 };
|
|
30
36
|
const _hoisted_6 = { key: 0 };
|
|
31
37
|
const _hoisted_7 = { key: 0 };
|
|
38
|
+
const _hoisted_8 = { key: 0 };
|
|
32
39
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
40
|
__name: "config",
|
|
34
41
|
props: {
|
|
@@ -49,11 +56,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
56
|
default: () => {
|
|
50
57
|
return {};
|
|
51
58
|
}
|
|
59
|
+
},
|
|
60
|
+
pageContext: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: () => ({})
|
|
63
|
+
},
|
|
64
|
+
service: {
|
|
65
|
+
type: Object,
|
|
66
|
+
default: () => ({})
|
|
52
67
|
}
|
|
53
68
|
},
|
|
54
69
|
setup(__props, { expose: __expose }) {
|
|
55
70
|
const serviceFlowStoreUtil = useServiceFlowStore();
|
|
56
71
|
const props = __props;
|
|
72
|
+
const showSqlViewDialog = ref(false);
|
|
73
|
+
const sql = ref("");
|
|
57
74
|
const showSelectTable = ref(false);
|
|
58
75
|
const dataTableColumns = ref([]);
|
|
59
76
|
const systemCode = ref(serviceFlowStoreUtil.pageContext.systemCode);
|
|
@@ -130,11 +147,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
147
|
dataTableColumns.value = serviceFlowStoreUtil.pageContext.modelFields;
|
|
131
148
|
}
|
|
132
149
|
};
|
|
150
|
+
function viewSql() {
|
|
151
|
+
sql.value = "";
|
|
152
|
+
const node = getNodeRuntimeObject(props.logicFlowInstance.getNodeModelById(props.currentNode.data.id), props.service);
|
|
153
|
+
node["props"] = JSON.parse(JSON.stringify(props.properties));
|
|
154
|
+
const baseUrl = getBaseUrl(props.pageContext.backendUrl, props.pageContext.isTest);
|
|
155
|
+
http.post(baseUrl + "/dsc/service-flow/test/database-node/show-sql", node).then((res) => {
|
|
156
|
+
showSqlViewDialog.value = true;
|
|
157
|
+
sql.value = res;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
133
160
|
__expose({ onClose });
|
|
134
161
|
return (_ctx, _cache) => {
|
|
135
162
|
const _component_el_checkbox = ElCheckbox;
|
|
136
|
-
const _component_el_input = ElInput;
|
|
137
163
|
const _component_el_button = ElButton;
|
|
164
|
+
const _component_el_input = ElInput;
|
|
138
165
|
const _component_el_form_item = ElFormItem;
|
|
139
166
|
const _component_el_alert = ElAlert;
|
|
140
167
|
const _component_el_table_column = ElTableColumn;
|
|
@@ -149,7 +176,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
176
|
return openBlock(), createElementBlock("div", null, [
|
|
150
177
|
createVNode(_component_el_form, {
|
|
151
178
|
"label-width": "auto",
|
|
152
|
-
"label-position": "left"
|
|
179
|
+
"label-position": "left",
|
|
180
|
+
size: "small"
|
|
153
181
|
}, {
|
|
154
182
|
default: withCtx(() => [
|
|
155
183
|
createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
|
|
@@ -167,18 +195,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
167
195
|
createVNode(_component_el_input, {
|
|
168
196
|
disabled: !__props.properties.specifyDataTable,
|
|
169
197
|
modelValue: __props.properties.dataTable,
|
|
170
|
-
"onUpdate:modelValue": _cache[
|
|
198
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.properties.dataTable = $event),
|
|
171
199
|
readonly: "",
|
|
172
200
|
style: { "width": "85%" }
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
},
|
|
201
|
+
}, {
|
|
202
|
+
append: withCtx(() => [
|
|
203
|
+
createVNode(_component_el_button, {
|
|
204
|
+
icon: unref(Search),
|
|
205
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showSelectTable.value = !showSelectTable.value)
|
|
206
|
+
}, null, 8, ["icon"])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["disabled", "modelValue"]),
|
|
210
|
+
createElementVNode("span", _hoisted_1, [
|
|
211
|
+
createVNode(_component_el_button, {
|
|
212
|
+
type: "primary",
|
|
213
|
+
icon: unref(View),
|
|
214
|
+
onClick: viewSql
|
|
215
|
+
}, {
|
|
216
|
+
default: withCtx(() => [
|
|
217
|
+
createTextVNode("预览sql")
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["icon"])
|
|
221
|
+
]),
|
|
182
222
|
createVNode(DatatableSelect, {
|
|
183
223
|
visible: showSelectTable.value,
|
|
184
224
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => showSelectTable.value = $event),
|
|
@@ -219,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
259
|
label: "((("
|
|
220
260
|
}, {
|
|
221
261
|
default: withCtx((scope) => [
|
|
222
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
262
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(scope.row.leftBracket), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
223
263
|
key: 1,
|
|
224
264
|
size: "small",
|
|
225
265
|
modelValue: scope.row.leftBracket,
|
|
@@ -254,7 +294,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
294
|
label: "字段名"
|
|
255
295
|
}, {
|
|
256
296
|
default: withCtx((scope) => [
|
|
257
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
297
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(scope.row.name), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
258
298
|
key: 1,
|
|
259
299
|
modelValue: scope.row.name,
|
|
260
300
|
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
@@ -280,7 +320,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
320
|
label: "比较"
|
|
281
321
|
}, {
|
|
282
322
|
default: withCtx((scope) => [
|
|
283
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
323
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(getLabel)(scope.row.operator, unref(sqlOperators))), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
284
324
|
key: 1,
|
|
285
325
|
modelValue: scope.row.operator,
|
|
286
326
|
"onUpdate:modelValue": ($event) => scope.row.operator = $event,
|
|
@@ -322,7 +362,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
322
362
|
label: ")))"
|
|
323
363
|
}, {
|
|
324
364
|
default: withCtx((scope) => [
|
|
325
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
365
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(scope.row.rightBracket), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
326
366
|
key: 1,
|
|
327
367
|
size: "small",
|
|
328
368
|
modelValue: scope.row.rightBracket,
|
|
@@ -357,7 +397,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
357
397
|
label: "连接符"
|
|
358
398
|
}, {
|
|
359
399
|
default: withCtx((scope) => [
|
|
360
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
400
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(unref(getLabel)(scope.row.logicOperator, unref(logicOperators))), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
361
401
|
key: 1,
|
|
362
402
|
modelValue: scope.row.logicOperator,
|
|
363
403
|
"onUpdate:modelValue": ($event) => scope.row.logicOperator = $event,
|
|
@@ -471,7 +511,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
471
511
|
label: "字段名"
|
|
472
512
|
}, {
|
|
473
513
|
default: withCtx((scope) => [
|
|
474
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
514
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(scope.row.name), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
475
515
|
key: 1,
|
|
476
516
|
modelValue: scope.row.name,
|
|
477
517
|
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
@@ -497,7 +537,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
497
537
|
label: "排序方式"
|
|
498
538
|
}, {
|
|
499
539
|
default: withCtx((scope) => [
|
|
500
|
-
!scope.row.$editing ? (openBlock(), createElementBlock("span",
|
|
540
|
+
!scope.row.$editing ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(scope.row.order), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
501
541
|
key: 1,
|
|
502
542
|
size: "small",
|
|
503
543
|
modelValue: scope.row.order,
|
|
@@ -665,7 +705,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
665
705
|
createVNode(_component_el_divider)
|
|
666
706
|
]),
|
|
667
707
|
_: 1
|
|
668
|
-
})
|
|
708
|
+
}),
|
|
709
|
+
createVNode(unref(_sfc_main$2), {
|
|
710
|
+
sql: sql.value,
|
|
711
|
+
"model-value": showSqlViewDialog.value,
|
|
712
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => showSqlViewDialog.value = $event)
|
|
713
|
+
}, null, 8, ["sql", "model-value"])
|
|
669
714
|
]);
|
|
670
715
|
};
|
|
671
716
|
}
|
|
@@ -33,6 +33,7 @@ export declare function getRuntimeJson(service: any): {
|
|
|
33
33
|
variables: ServiceVariable[];
|
|
34
34
|
nodes: ServiceNode[];
|
|
35
35
|
};
|
|
36
|
+
export declare function getNodeRuntimeObject(node: ServiceNode, service: any): ServiceNode;
|
|
36
37
|
declare const _default: {
|
|
37
38
|
customControl: ({
|
|
38
39
|
type: string;
|
|
@@ -49,5 +50,6 @@ declare const _default: {
|
|
|
49
50
|
newLogicFlow: typeof newLogicFlow;
|
|
50
51
|
registerNode: (lf: any) => void;
|
|
51
52
|
addInitNode: typeof addInitNode;
|
|
53
|
+
getNodeRuntimeObject: typeof getNodeRuntimeObject;
|
|
52
54
|
};
|
|
53
55
|
export default _default;
|
|
@@ -114,9 +114,25 @@ function convertVariable(variable) {
|
|
|
114
114
|
}
|
|
115
115
|
return tempVar;
|
|
116
116
|
}
|
|
117
|
+
function getNodeRuntimeObject(node, service) {
|
|
118
|
+
const tempNode = {};
|
|
119
|
+
tempNode.code = node.id;
|
|
120
|
+
tempNode.type = node.type;
|
|
121
|
+
tempNode.props = node.properties;
|
|
122
|
+
if (node.type === "loop") {
|
|
123
|
+
tempNode.children = node.children;
|
|
124
|
+
}
|
|
125
|
+
tempNode.tos = [];
|
|
126
|
+
const nextNodes = getNextNodeById(node, service.flow);
|
|
127
|
+
nextNodes.forEach((nextNode) => {
|
|
128
|
+
tempNode.tos.push({ code: nextNode.id });
|
|
129
|
+
});
|
|
130
|
+
return tempNode;
|
|
131
|
+
}
|
|
117
132
|
export {
|
|
118
133
|
addInitNode,
|
|
119
134
|
customControl,
|
|
135
|
+
getNodeRuntimeObject,
|
|
120
136
|
getRuntimeJson,
|
|
121
137
|
newLogicFlow,
|
|
122
138
|
registerNode
|
|
@@ -16,6 +16,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
type: ObjectConstructor;
|
|
17
17
|
default: () => {};
|
|
18
18
|
};
|
|
19
|
+
pageContext: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
19
23
|
}, {
|
|
20
24
|
onBlankClick: typeof onBlankClick;
|
|
21
25
|
onNodeClick: typeof onNodeClick;
|
|
@@ -38,10 +42,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
38
42
|
type: ObjectConstructor;
|
|
39
43
|
default: () => {};
|
|
40
44
|
};
|
|
45
|
+
pageContext: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
41
49
|
}>> & {
|
|
42
50
|
onOnConfigChange?: (...args: any[]) => any;
|
|
43
51
|
"onUpdate:currentNode"?: (...args: any[]) => any;
|
|
44
52
|
}, {
|
|
53
|
+
pageContext: Record<string, any>;
|
|
45
54
|
service: Record<string, any>;
|
|
46
55
|
logicFlowInstance: Record<string, any>;
|
|
47
56
|
currentNode: Record<string, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./service-node-config.vue2.js";
|
|
2
2
|
import "./service-node-config.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const serviceNodeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const serviceNodeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5185214"]]);
|
|
5
5
|
export {
|
|
6
6
|
serviceNodeConfig as default
|
|
7
7
|
};
|
|
@@ -24,6 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
default: () => {
|
|
25
25
|
return {};
|
|
26
26
|
}
|
|
27
|
+
},
|
|
28
|
+
pageContext: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => ({})
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
emits: ["onConfigChange", "update:currentNode"],
|
|
@@ -140,8 +144,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
144
|
currentNode: __props.currentNode,
|
|
141
145
|
properties: properties.value,
|
|
142
146
|
service: __props.service,
|
|
147
|
+
pageContext: __props.pageContext,
|
|
143
148
|
onFullScreen: fullScreenConfig
|
|
144
|
-
}, null, 40, ["logicFlowInstance", "currentNode", "properties", "service"]))
|
|
149
|
+
}, null, 40, ["logicFlowInstance", "currentNode", "properties", "service", "pageContext"]))
|
|
145
150
|
]),
|
|
146
151
|
_: 1
|
|
147
152
|
}, 8, ["modelValue", "with-header", "title", "size"]);
|
|
@@ -125,7 +125,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
}
|
|
126
126
|
const testRun = () => {
|
|
127
127
|
const testRunDTO = packageTestRunDTO();
|
|
128
|
-
debugger;
|
|
129
128
|
const baseUrl = getBaseUrl(props.pageContext.backendUrl, props.pageContext.isTest);
|
|
130
129
|
http.post(baseUrl + "/dsc/service-flow/test", testRunDTO).then((res) => {
|
|
131
130
|
console.log(res);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./service-update-log.vue2.js";
|
|
2
2
|
import "./service-update-log.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const serviceUpdateLog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const serviceUpdateLog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a4cbbaf"]]);
|
|
5
5
|
export {
|
|
6
6
|
serviceUpdateLog as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { ElInput, ElFormItem, ElCheckbox, ElForm, ElTableColumn, ElTable, ElButton, ElDialog } from "element-plus/es";
|
|
1
|
+
import { ElInput, ElFormItem, ElCheckbox, ElForm, ElTableColumn, ElTable, ElPagination, ElButton, ElDialog } 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";
|
|
5
|
+
import "element-plus/es/components/pagination/style/css";
|
|
5
6
|
import "element-plus/es/components/table/style/css";
|
|
6
7
|
import "element-plus/es/components/table-column/style/css";
|
|
7
8
|
import "element-plus/es/components/form/style/css";
|
|
8
9
|
import "element-plus/es/components/checkbox/style/css";
|
|
9
10
|
import "element-plus/es/components/form-item/style/css";
|
|
10
11
|
import "element-plus/es/components/input/style/css";
|
|
11
|
-
import { defineComponent, ref, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode } from "vue";
|
|
12
|
+
import { defineComponent, ref, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode, pushScopeId, popScopeId } from "vue";
|
|
12
13
|
import { isDeepEqual } from "../common/util/node-util.js";
|
|
13
14
|
import http from "agilebuilder-ui/src/utils/request";
|
|
14
15
|
import { ElMessage } from "element-plus";
|
|
15
|
-
const
|
|
16
|
+
const _withScopeId = (n) => (pushScopeId("data-v-7a4cbbaf"), n = n(), popScopeId(), n);
|
|
17
|
+
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { style: { "text-align": "center" } }, "修改记录", -1));
|
|
18
|
+
const _hoisted_2 = { class: "dialog-footer" };
|
|
16
19
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
20
|
__name: "service-update-log",
|
|
18
21
|
props: {
|
|
@@ -44,13 +47,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
47
|
const onSave = ref(false);
|
|
45
48
|
const selectLatestLog = ref(false);
|
|
46
49
|
const description = ref("");
|
|
50
|
+
const queryParams = ref({
|
|
51
|
+
currentPage: 1,
|
|
52
|
+
pageSize: 10,
|
|
53
|
+
showTotal: true
|
|
54
|
+
});
|
|
55
|
+
const logDataTotal = ref(0);
|
|
47
56
|
function showDialog(event) {
|
|
48
|
-
http.
|
|
49
|
-
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/design-log/SERVICE_FLOW_DESIGN/" + props.cloneService.id
|
|
57
|
+
http.post(
|
|
58
|
+
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/design-log/SERVICE_FLOW_DESIGN/" + props.cloneService.id,
|
|
59
|
+
{ pagination: queryParams.value }
|
|
50
60
|
).then((res) => {
|
|
51
61
|
if (res) {
|
|
52
|
-
res.
|
|
53
|
-
|
|
62
|
+
logData.value = res.data;
|
|
63
|
+
logDataTotal.value = res.total;
|
|
54
64
|
if (event && event.beforeSave) {
|
|
55
65
|
const gdata = props.lf.getGraphData();
|
|
56
66
|
const sourceDataEqual = isDeepEqual(props.sourceService, props.cloneService);
|
|
@@ -105,20 +115,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
115
|
const _component_el_form = ElForm;
|
|
106
116
|
const _component_el_table_column = ElTableColumn;
|
|
107
117
|
const _component_el_table = ElTable;
|
|
118
|
+
const _component_el_pagination = ElPagination;
|
|
108
119
|
const _component_el_button = ElButton;
|
|
109
120
|
const _component_el_dialog = ElDialog;
|
|
110
121
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
111
122
|
modelValue: dialogVisible.value,
|
|
112
|
-
"onUpdate:modelValue": _cache[
|
|
123
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => dialogVisible.value = $event),
|
|
113
124
|
"append-to-body": "",
|
|
114
|
-
title: "
|
|
125
|
+
title: "保存服务",
|
|
115
126
|
width: "50%"
|
|
116
127
|
}, {
|
|
117
128
|
footer: withCtx(() => [
|
|
118
|
-
createElementVNode("div",
|
|
129
|
+
createElementVNode("div", _hoisted_2, [
|
|
119
130
|
createVNode(_component_el_button, {
|
|
120
131
|
size: "small",
|
|
121
|
-
onClick: _cache[
|
|
132
|
+
onClick: _cache[5] || (_cache[5] = ($event) => dialogVisible.value = false)
|
|
122
133
|
}, {
|
|
123
134
|
default: withCtx(() => [
|
|
124
135
|
createTextVNode("返回")
|
|
@@ -152,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
163
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => description.value = $event),
|
|
153
164
|
rows: 4,
|
|
154
165
|
type: "textarea",
|
|
155
|
-
placeholder: "
|
|
166
|
+
placeholder: "请填写修改日志"
|
|
156
167
|
}, null, 8, ["modelValue"])
|
|
157
168
|
]),
|
|
158
169
|
_: 1
|
|
@@ -176,7 +187,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
187
|
createVNode(_component_el_table, {
|
|
177
188
|
data: logData.value,
|
|
178
189
|
border: "",
|
|
179
|
-
size: "small"
|
|
190
|
+
size: "small",
|
|
191
|
+
"max-height": "350"
|
|
180
192
|
}, {
|
|
181
193
|
default: withCtx(() => [
|
|
182
194
|
createVNode(_component_el_table_column, {
|
|
@@ -186,26 +198,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
198
|
label: "序号"
|
|
187
199
|
}),
|
|
188
200
|
createVNode(_component_el_table_column, {
|
|
189
|
-
align: "
|
|
190
|
-
prop: "description"
|
|
191
|
-
|
|
201
|
+
align: "left",
|
|
202
|
+
prop: "description"
|
|
203
|
+
}, {
|
|
204
|
+
header: withCtx(() => [
|
|
205
|
+
_hoisted_1
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
192
208
|
}),
|
|
193
209
|
createVNode(_component_el_table_column, {
|
|
194
210
|
align: "center",
|
|
195
211
|
prop: "creatorName",
|
|
196
|
-
label: "
|
|
212
|
+
label: "修改人",
|
|
197
213
|
width: "100"
|
|
198
214
|
}),
|
|
199
215
|
createVNode(_component_el_table_column, {
|
|
200
216
|
align: "center",
|
|
201
217
|
prop: "createdTime",
|
|
202
|
-
|
|
218
|
+
width: "180",
|
|
219
|
+
label: "修改时间",
|
|
203
220
|
formatter: (row) => formatDate(row.createdTime)
|
|
204
|
-
}, null, 8, ["formatter"])
|
|
205
|
-
createTextVNode(' label="修改日期" width="150" /> ')
|
|
221
|
+
}, null, 8, ["formatter"])
|
|
206
222
|
]),
|
|
207
223
|
_: 1
|
|
208
|
-
}, 8, ["data"])
|
|
224
|
+
}, 8, ["data"]),
|
|
225
|
+
createVNode(_component_el_pagination, {
|
|
226
|
+
"current-page": queryParams.value.currentPage,
|
|
227
|
+
"onUpdate:currentPage": _cache[2] || (_cache[2] = ($event) => queryParams.value.currentPage = $event),
|
|
228
|
+
"page-size": queryParams.value.pageSize,
|
|
229
|
+
"onUpdate:pageSize": _cache[3] || (_cache[3] = ($event) => queryParams.value.pageSize = $event),
|
|
230
|
+
onChange: _cache[4] || (_cache[4] = ($event) => showDialog({ beforeSave: true })),
|
|
231
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
232
|
+
total: logDataTotal.value,
|
|
233
|
+
style: { "margin": "10px 0", "justify-content": "center" }
|
|
234
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
209
235
|
]),
|
|
210
236
|
_: 1
|
|
211
237
|
}, 8, ["modelValue"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./view-index.vue2.js";
|
|
2
2
|
import "./view-index.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ServiceFlowView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ServiceFlowView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04746c34"]]);
|
|
5
5
|
export {
|
|
6
6
|
ServiceFlowView as default
|
|
7
7
|
};
|
|
@@ -18,7 +18,7 @@ import "../service-components/index.js";
|
|
|
18
18
|
import { findServcieByCode, isDeepEqual } from "../common/util/node-util.js";
|
|
19
19
|
import { useServiceFlowStore } from "../../stores/page-store.js";
|
|
20
20
|
import { ElMessageBox, ElMessage } from "element-plus";
|
|
21
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
21
|
+
const _withScopeId = (n) => (pushScopeId("data-v-04746c34"), n = n(), popScopeId(), n);
|
|
22
22
|
const _hoisted_1 = {
|
|
23
23
|
class: "serviceflow-design-content",
|
|
24
24
|
ref: "ambServiceFlowContent"
|
|
@@ -357,9 +357,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
357
357
|
"onUpdate:currentNode": _cache[1] || (_cache[1] = ($event) => currentClickNode.value = $event),
|
|
358
358
|
sourceService: sourceService.value,
|
|
359
359
|
service: cloneService.value,
|
|
360
|
+
pageContext: __props.pageContext,
|
|
360
361
|
ref_key: "serviceNodeConfigRef",
|
|
361
362
|
ref: serviceNodeConfigRef
|
|
362
|
-
}, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service"])
|
|
363
|
+
}, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])
|
|
363
364
|
], 64);
|
|
364
365
|
};
|
|
365
366
|
}
|