service-flow-designer 2.1.58 → 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,39 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import e from "../../../flow/base/AbLogicNode.js";
|
|
2
|
+
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
3
3
|
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
4
4
|
import "../../../flow/base/AbLogicResizeNode.js";
|
|
5
|
-
import { h, createApp } from "vue";
|
|
6
|
-
import
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
model: props.model,
|
|
13
|
-
graphModel: props.graphModel,
|
|
14
|
-
disabled: props.graphModel.editConfigModel.isSilentMode,
|
|
15
|
-
isSelected: props.model.isSelected,
|
|
16
|
-
isHovered: props.model.isHovered,
|
|
17
|
-
properties: props.model.getProperties(),
|
|
18
|
-
onBtnClick: (i) => {
|
|
19
|
-
this.props.graphModel.eventCenter.emit(`node:select-click`, {
|
|
20
|
-
props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
this.app = createApp({
|
|
25
|
-
render: () => this.r
|
|
26
|
-
});
|
|
5
|
+
import { h as s, createApp as i } from "vue";
|
|
6
|
+
import t from "./index.vue.js";
|
|
7
|
+
const d = { type: "customBean", view: class extends e {
|
|
8
|
+
constructor(e2) {
|
|
9
|
+
super(e2), this.isMounted = false, this.r = s(t, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
10
|
+
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
11
|
+
} }), this.app = i({ render: () => this.r });
|
|
27
12
|
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
const customBean = {
|
|
32
|
-
type: "customBean",
|
|
33
|
-
view: CustomBeanNode,
|
|
34
|
-
model: CustomBeanNodeModel,
|
|
35
|
-
options: {}
|
|
36
|
-
};
|
|
13
|
+
}, model: class extends o {
|
|
14
|
+
}, options: {} };
|
|
37
15
|
export {
|
|
38
|
-
|
|
16
|
+
d as default
|
|
39
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./index.vue2.js";
|
|
2
2
|
import "./index.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-96d149c1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
import { ElDivider } from "element-plus/es";
|
|
1
|
+
import { ElDivider as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, null, -1));
|
|
11
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "serviceflow-nodeTitle" }, "服务-自定义bean", -1));
|
|
12
|
-
const _hoisted_3 = { class: "serviceflow-nodeContent" };
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: {
|
|
16
|
-
graphModel: Object,
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default: () => {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["btnClick"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
const _component_el_divider = ElDivider;
|
|
28
|
-
return openBlock(), createElementBlock("div", null, [
|
|
29
|
-
_hoisted_1,
|
|
30
|
-
createElementVNode("div", {
|
|
31
|
-
class: "serviceflow-nodeView",
|
|
32
|
-
style: normalizeStyle({ backgroundColor: __props.properties.backgroundColor })
|
|
33
|
-
}, [
|
|
34
|
-
_hoisted_2,
|
|
35
|
-
createVNode(_component_el_divider),
|
|
36
|
-
createElementVNode("div", _hoisted_3, toDisplayString(__props.properties.name), 1)
|
|
37
|
-
], 4)
|
|
38
|
-
]);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
});
|
|
4
|
+
import { defineComponent as s, openBlock as t, createElementBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p, pushScopeId as n, popScopeId as c } from "vue";
|
|
5
|
+
import d from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
+
const m = (e2) => (n("data-v-96d149c1"), e2 = e2(), c(), e2), a = m(() => i("img", { src: d, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), u = m(() => i("div", { class: "serviceflow-nodeTitle" }, "服务-自定义bean", -1)), v = { class: "serviceflow-nodeContent" }, f = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: n2 }) => (n3, c2) => {
|
|
7
|
+
const d2 = e;
|
|
8
|
+
return t(), o("div", null, [a, i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [u, l(d2), i("div", v, p(s2.properties.name), 1)], 4)]);
|
|
9
|
+
} });
|
|
42
10
|
export {
|
|
43
|
-
|
|
11
|
+
f as default
|
|
44
12
|
};
|
|
@@ -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-08737620"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElDivider, ElOption, ElSelect, ElInput, ElFormItem, ElTabPane, ElTabs, ElAlert, ElForm } from "element-plus/es";
|
|
1
|
+
import { ElDivider as e, ElOption as l, ElSelect as o, ElInput as t, ElFormItem as p, ElTabPane as s, ElTabs as r, ElAlert as a, ElForm as n } 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/alert/style/css";
|
|
@@ -9,300 +9,27 @@ import "element-plus/es/components/input/style/css";
|
|
|
9
9
|
import "element-plus/es/components/select/style/css";
|
|
10
10
|
import "element-plus/es/components/option/style/css";
|
|
11
11
|
import "element-plus/es/components/divider/style/css";
|
|
12
|
-
import { defineComponent, ref, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createElementVNode, createCommentVNode } from "vue";
|
|
13
|
-
import
|
|
14
|
-
import { httpMethods, operatorsForNumber, logicOperators, operatorsForString } from "../../util/common-options.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
properties:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
setup(__props, { expose: __expose }) {
|
|
34
|
-
const props = __props;
|
|
35
|
-
if (!props.properties.requestMethod) {
|
|
36
|
-
props.properties.requestMethod = "GET";
|
|
37
|
-
props.properties.responseContentType = "application/json";
|
|
38
|
-
}
|
|
39
|
-
if (!props.properties.httpSerivceBody) {
|
|
40
|
-
props.properties.httpSerivceBody = { mediaType: "none", content: null };
|
|
41
|
-
}
|
|
42
|
-
const activeName = ref("body");
|
|
43
|
-
const handleClick = (tab, event) => {
|
|
44
|
-
console.log(tab, event);
|
|
45
|
-
if (tab.name === "cookies") {
|
|
46
|
-
if (!props.properties.cookies) {
|
|
47
|
-
props.properties.cookies = [];
|
|
48
|
-
}
|
|
49
|
-
} else if (tab.name === "headers") {
|
|
50
|
-
if (!props.properties.headers) {
|
|
51
|
-
props.properties.headers = [];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
__expose({});
|
|
56
|
-
return (_ctx, _cache) => {
|
|
57
|
-
const _component_el_divider = ElDivider;
|
|
58
|
-
const _component_el_option = ElOption;
|
|
59
|
-
const _component_el_select = ElSelect;
|
|
60
|
-
const _component_el_input = ElInput;
|
|
61
|
-
const _component_el_form_item = ElFormItem;
|
|
62
|
-
const _component_el_tab_pane = ElTabPane;
|
|
63
|
-
const _component_el_tabs = ElTabs;
|
|
64
|
-
const _component_el_alert = ElAlert;
|
|
65
|
-
const _component_el_form = ElForm;
|
|
66
|
-
return openBlock(), createBlock(_component_el_form, {
|
|
67
|
-
"label-width": "110",
|
|
68
|
-
"label-position": "left"
|
|
69
|
-
}, {
|
|
70
|
-
default: withCtx(() => [
|
|
71
|
-
createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
|
|
72
|
-
createVNode(_component_el_divider),
|
|
73
|
-
createVNode(_component_el_form_item, { style: { "width": "100%" } }, {
|
|
74
|
-
label: withCtx((scope) => [
|
|
75
|
-
createVNode(_component_el_select, {
|
|
76
|
-
modelValue: __props.properties.requestMethod,
|
|
77
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.properties.requestMethod = $event),
|
|
78
|
-
placeholder: "请求方式"
|
|
79
|
-
}, {
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(httpMethods), (item) => {
|
|
82
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
83
|
-
key: item.value,
|
|
84
|
-
label: item.label,
|
|
85
|
-
value: item.value
|
|
86
|
-
}, null, 8, ["label", "value"]);
|
|
87
|
-
}), 128))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["modelValue"])
|
|
91
|
-
]),
|
|
92
|
-
default: withCtx(() => [
|
|
93
|
-
createVNode(_component_el_input, {
|
|
94
|
-
modelValue: __props.properties.url,
|
|
95
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.properties.url = $event),
|
|
96
|
-
placeholder: ""
|
|
97
|
-
}, null, 8, ["modelValue"])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}),
|
|
101
|
-
createVNode(_component_el_tabs, {
|
|
102
|
-
modelValue: activeName.value,
|
|
103
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => activeName.value = $event),
|
|
104
|
-
class: "demo-tabs",
|
|
105
|
-
onTabClick: handleClick
|
|
106
|
-
}, {
|
|
107
|
-
default: withCtx(() => [
|
|
108
|
-
createVNode(_component_el_tab_pane, {
|
|
109
|
-
label: "Params",
|
|
110
|
-
name: "params",
|
|
111
|
-
style: { "padding": "0 5px 5px 5px" }
|
|
112
|
-
}, {
|
|
113
|
-
default: withCtx(() => [
|
|
114
|
-
createVNode(_sfc_main$2, {
|
|
115
|
-
modelValue: __props.properties.queryParams,
|
|
116
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.properties.queryParams = $event)
|
|
117
|
-
}, null, 8, ["modelValue"])
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}),
|
|
121
|
-
createVNode(_component_el_tab_pane, {
|
|
122
|
-
label: "Headers",
|
|
123
|
-
name: "headers"
|
|
124
|
-
}, {
|
|
125
|
-
default: withCtx(() => [
|
|
126
|
-
createVNode(_sfc_main$3, {
|
|
127
|
-
modelValue: __props.properties.headers,
|
|
128
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.properties.headers = $event)
|
|
129
|
-
}, null, 8, ["modelValue"])
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
}),
|
|
133
|
-
createVNode(_component_el_tab_pane, {
|
|
134
|
-
label: "Body",
|
|
135
|
-
name: "body",
|
|
136
|
-
style: { "padding": "0 5px 5px 5px" }
|
|
137
|
-
}, {
|
|
138
|
-
default: withCtx(() => [
|
|
139
|
-
createVNode(paramConfig, {
|
|
140
|
-
modelValue: __props.properties.httpSerivceBody,
|
|
141
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.properties.httpSerivceBody = $event)
|
|
142
|
-
}, null, 8, ["modelValue"])
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}),
|
|
146
|
-
createVNode(_component_el_tab_pane, {
|
|
147
|
-
label: "Cookies",
|
|
148
|
-
name: "cookies"
|
|
149
|
-
}, {
|
|
150
|
-
default: withCtx(() => [
|
|
151
|
-
createVNode(_sfc_main$4, {
|
|
152
|
-
modelValue: __props.properties.cookies,
|
|
153
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.properties.cookies = $event)
|
|
154
|
-
}, null, 8, ["modelValue"])
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
})
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["modelValue"]),
|
|
161
|
-
createVNode(_component_el_alert, {
|
|
162
|
-
title: "返回值设置",
|
|
163
|
-
type: "info",
|
|
164
|
-
size: "small",
|
|
165
|
-
closable: false
|
|
166
|
-
}, {
|
|
167
|
-
title: withCtx(() => [
|
|
168
|
-
createTextVNode(" 返回值设置 "),
|
|
169
|
-
createElementVNode("span", _hoisted_1, [
|
|
170
|
-
createVNode(_component_el_select, {
|
|
171
|
-
size: "small",
|
|
172
|
-
onChange: _cache[7] || (_cache[7] = ($event) => __props.properties.responseSetting = []),
|
|
173
|
-
modelValue: __props.properties.responseContentType,
|
|
174
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.properties.responseContentType = $event),
|
|
175
|
-
style: { "width": "80px", "background-color": "var(--el-fill-color-blank)" }
|
|
176
|
-
}, {
|
|
177
|
-
default: withCtx(() => [
|
|
178
|
-
createVNode(_component_el_option, {
|
|
179
|
-
label: "JSON",
|
|
180
|
-
value: "application/json"
|
|
181
|
-
}),
|
|
182
|
-
createVNode(_component_el_option, {
|
|
183
|
-
label: "TEXT",
|
|
184
|
-
value: "text/plain"
|
|
185
|
-
}),
|
|
186
|
-
createVNode(_component_el_option, {
|
|
187
|
-
label: "XML",
|
|
188
|
-
value: "application/xml"
|
|
189
|
-
})
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
}, 8, ["modelValue"])
|
|
193
|
-
])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}),
|
|
197
|
-
__props.properties.responseContentType === "application/json" ? (openBlock(), createBlock(_sfc_main$5, {
|
|
198
|
-
key: 0,
|
|
199
|
-
modelValue: __props.properties.responseSetting,
|
|
200
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.properties.responseSetting = $event),
|
|
201
|
-
"content-type": __props.properties.responseContentType
|
|
202
|
-
}, null, 8, ["modelValue", "content-type"])) : createCommentVNode("", true),
|
|
203
|
-
__props.properties.responseContentType === "application/xml" ? (openBlock(), createBlock(_sfc_main$6, {
|
|
204
|
-
key: 1,
|
|
205
|
-
modelValue: __props.properties.responseSetting,
|
|
206
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.properties.responseSetting = $event),
|
|
207
|
-
"content-type": __props.properties.responseContentType
|
|
208
|
-
}, null, 8, ["modelValue", "content-type"])) : createCommentVNode("", true),
|
|
209
|
-
__props.properties.responseContentType === "text/plain" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
210
|
-
key: 2,
|
|
211
|
-
modelValue: __props.properties.responseSetting,
|
|
212
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.properties.responseSetting = $event),
|
|
213
|
-
"content-type": __props.properties.responseContentType
|
|
214
|
-
}, null, 8, ["modelValue", "content-type"])) : createCommentVNode("", true),
|
|
215
|
-
createVNode(_component_el_alert, {
|
|
216
|
-
title: "异常判断",
|
|
217
|
-
type: "info",
|
|
218
|
-
size: "small",
|
|
219
|
-
closable: false
|
|
220
|
-
}),
|
|
221
|
-
createVNode(_component_el_form_item, { label: "状态码:" }, {
|
|
222
|
-
default: withCtx(() => [
|
|
223
|
-
createVNode(_component_el_select, {
|
|
224
|
-
modelValue: __props.properties.statusCodeOperator,
|
|
225
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.properties.statusCodeOperator = $event),
|
|
226
|
-
placeholder: "",
|
|
227
|
-
style: { "width": "15%" }
|
|
228
|
-
}, {
|
|
229
|
-
default: withCtx(() => [
|
|
230
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(operatorsForNumber), (item) => {
|
|
231
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
232
|
-
key: item.value,
|
|
233
|
-
label: item.label,
|
|
234
|
-
value: item.value
|
|
235
|
-
}, null, 8, ["label", "value"]);
|
|
236
|
-
}), 128))
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
}, 8, ["modelValue"]),
|
|
240
|
-
createVNode(_component_el_input, {
|
|
241
|
-
type: "number",
|
|
242
|
-
style: { "margin-left": "10px", "width": "60%" },
|
|
243
|
-
modelValue: __props.properties.statusCode,
|
|
244
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.properties.statusCode = $event),
|
|
245
|
-
placeholder: ""
|
|
246
|
-
}, null, 8, ["modelValue"])
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}),
|
|
250
|
-
createVNode(_component_el_form_item, { label: "" }, {
|
|
251
|
-
default: withCtx(() => [
|
|
252
|
-
createVNode(_component_el_select, {
|
|
253
|
-
modelValue: __props.properties.logicOperator,
|
|
254
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.properties.logicOperator = $event),
|
|
255
|
-
placeholder: "",
|
|
256
|
-
style: { "width": "15%" }
|
|
257
|
-
}, {
|
|
258
|
-
default: withCtx(() => [
|
|
259
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(logicOperators), (item) => {
|
|
260
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
261
|
-
key: item.value,
|
|
262
|
-
label: item.label,
|
|
263
|
-
value: item.value
|
|
264
|
-
}, null, 8, ["label", "value"]);
|
|
265
|
-
}), 128))
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 8, ["modelValue"])
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}),
|
|
272
|
-
createVNode(_component_el_form_item, { label: "返回内容:" }, {
|
|
273
|
-
default: withCtx(() => [
|
|
274
|
-
createVNode(_component_el_select, {
|
|
275
|
-
modelValue: __props.properties.contentOperator,
|
|
276
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.properties.contentOperator = $event),
|
|
277
|
-
placeholder: "",
|
|
278
|
-
style: { "width": "15%" }
|
|
279
|
-
}, {
|
|
280
|
-
default: withCtx(() => [
|
|
281
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(operatorsForString), (item) => {
|
|
282
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
283
|
-
key: item.value,
|
|
284
|
-
label: item.label,
|
|
285
|
-
value: item.value
|
|
286
|
-
}, null, 8, ["label", "value"]);
|
|
287
|
-
}), 128))
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}, 8, ["modelValue"]),
|
|
291
|
-
createVNode(_component_el_input, {
|
|
292
|
-
modelValue: __props.properties.content,
|
|
293
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.properties.content = $event),
|
|
294
|
-
placeholder: "",
|
|
295
|
-
style: { "margin-left": "10px", "width": "60%" }
|
|
296
|
-
}, null, 8, ["modelValue"])
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
})
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
});
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
});
|
|
12
|
+
import { defineComponent as u, ref as i, openBlock as m, createBlock as d, withCtx as c, createVNode as y, createElementBlock as V, Fragment as b, renderList as f, unref as v, createTextVNode as h, createElementVNode as g, createCommentVNode as k } from "vue";
|
|
13
|
+
import x from "../../../common/components/node-base-config.vue.js";
|
|
14
|
+
import { httpMethods as _, operatorsForNumber as C, logicOperators as U, operatorsForString as j } from "../../util/common-options.js";
|
|
15
|
+
import T from "../common/param-config.vue.js";
|
|
16
|
+
import S from "../common/query-params.vue.js";
|
|
17
|
+
import w from "../common/header-data.vue.js";
|
|
18
|
+
import O from "../common/cookie-data.vue.js";
|
|
19
|
+
import q from "./response-json-setting.vue.js";
|
|
20
|
+
import B from "./response-xml-setting.vue.js";
|
|
21
|
+
import M from "./response-text-setting.vue.js";
|
|
22
|
+
const z = { style: { position: "absolute", right: "10px" } }, P = u({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, setup(u2, { expose: P2 }) {
|
|
23
|
+
const E = u2;
|
|
24
|
+
E.properties.requestMethod || (E.properties.requestMethod = "GET", E.properties.responseContentType = "application/json"), E.properties.httpSerivceBody || (E.properties.httpSerivceBody = { mediaType: "none", content: null });
|
|
25
|
+
const X = i("body"), G = (e2, l2) => {
|
|
26
|
+
"cookies" === e2.name ? E.properties.cookies || (E.properties.cookies = []) : "headers" === e2.name && (E.properties.headers || (E.properties.headers = []));
|
|
27
|
+
};
|
|
28
|
+
return P2({}), (i2, P3) => {
|
|
29
|
+
const E2 = e, H = l, J = o, L = t, N = p, A = s, D = r, F = a, I = n;
|
|
30
|
+
return m(), d(I, { "label-width": "110", "label-position": "left" }, { default: c(() => [y(x, { properties: u2.properties }, null, 8, ["properties"]), y(E2), y(N, { style: { width: "100%" } }, { label: c((e2) => [y(J, { modelValue: u2.properties.requestMethod, "onUpdate:modelValue": P3[0] || (P3[0] = (e3) => u2.properties.requestMethod = e3), placeholder: "请求方式" }, { default: c(() => [(m(true), V(b, null, f(v(_), (e3) => (m(), d(H, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), default: c(() => [y(L, { modelValue: u2.properties.url, "onUpdate:modelValue": P3[1] || (P3[1] = (e2) => u2.properties.url = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(D, { modelValue: X.value, "onUpdate:modelValue": P3[6] || (P3[6] = (e2) => X.value = e2), class: "demo-tabs", onTabClick: G }, { default: c(() => [y(A, { label: "Params", name: "params", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(S, { modelValue: u2.properties.queryParams, "onUpdate:modelValue": P3[2] || (P3[2] = (e2) => u2.properties.queryParams = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Headers", name: "headers" }, { default: c(() => [y(w, { modelValue: u2.properties.headers, "onUpdate:modelValue": P3[3] || (P3[3] = (e2) => u2.properties.headers = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Body", name: "body", style: { padding: "0 5px 5px 5px" } }, { default: c(() => [y(T, { modelValue: u2.properties.httpSerivceBody, "onUpdate:modelValue": P3[4] || (P3[4] = (e2) => u2.properties.httpSerivceBody = e2) }, null, 8, ["modelValue"])]), _: 1 }), y(A, { label: "Cookies", name: "cookies" }, { default: c(() => [y(O, { modelValue: u2.properties.cookies, "onUpdate:modelValue": P3[5] || (P3[5] = (e2) => u2.properties.cookies = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), y(F, { title: "返回值设置", type: "info", size: "small", closable: false }, { title: c(() => [h(" 返回值设置 "), g("span", z, [y(J, { size: "small", onChange: P3[7] || (P3[7] = (e2) => u2.properties.responseSetting = []), modelValue: u2.properties.responseContentType, "onUpdate:modelValue": P3[8] || (P3[8] = (e2) => u2.properties.responseContentType = e2), style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: c(() => [y(H, { label: "JSON", value: "application/json" }), y(H, { label: "TEXT", value: "text/plain" }), y(H, { label: "XML", value: "application/xml" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), "application/json" === u2.properties.responseContentType ? (m(), d(q, { key: 0, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[9] || (P3[9] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : k("", true), "application/xml" === u2.properties.responseContentType ? (m(), d(B, { key: 1, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[10] || (P3[10] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : k("", true), "text/plain" === u2.properties.responseContentType ? (m(), d(M, { key: 2, modelValue: u2.properties.responseSetting, "onUpdate:modelValue": P3[11] || (P3[11] = (e2) => u2.properties.responseSetting = e2), "content-type": u2.properties.responseContentType }, null, 8, ["modelValue", "content-type"])) : k("", true), y(F, { title: "异常判断", type: "info", size: "small", closable: false }), y(N, { label: "状态码:" }, { default: c(() => [y(J, { modelValue: u2.properties.statusCodeOperator, "onUpdate:modelValue": P3[12] || (P3[12] = (e2) => u2.properties.statusCodeOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(m(true), V(b, null, f(v(C), (e2) => (m(), d(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { type: "number", style: { "margin-left": "10px", width: "60%" }, modelValue: u2.properties.statusCode, "onUpdate:modelValue": P3[13] || (P3[13] = (e2) => u2.properties.statusCode = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 }), y(N, { label: "" }, { default: c(() => [y(J, { modelValue: u2.properties.logicOperator, "onUpdate:modelValue": P3[14] || (P3[14] = (e2) => u2.properties.logicOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(m(true), V(b, null, f(v(U), (e2) => (m(), d(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(N, { label: "返回内容:" }, { default: c(() => [y(J, { modelValue: u2.properties.contentOperator, "onUpdate:modelValue": P3[15] || (P3[15] = (e2) => u2.properties.contentOperator = e2), placeholder: "", style: { width: "15%" } }, { default: c(() => [(m(true), V(b, null, f(v(j), (e2) => (m(), d(H, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), y(L, { modelValue: u2.properties.content, "onUpdate:modelValue": P3[16] || (P3[16] = (e2) => u2.properties.content = e2), placeholder: "", style: { "margin-left": "10px", width: "60%" } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
31
|
+
};
|
|
32
|
+
} });
|
|
306
33
|
export {
|
|
307
|
-
|
|
34
|
+
P as default
|
|
308
35
|
};
|
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import e from "../../../flow/base/AbLogicNode.js";
|
|
2
|
+
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
3
3
|
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
4
4
|
import "../../../flow/base/AbLogicResizeNode.js";
|
|
5
|
-
import { h, createApp } from "vue";
|
|
6
|
-
import
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
model: props.model,
|
|
13
|
-
graphModel: props.graphModel,
|
|
14
|
-
disabled: props.graphModel.editConfigModel.isSilentMode,
|
|
15
|
-
isSelected: props.model.isSelected,
|
|
16
|
-
isHovered: props.model.isHovered,
|
|
17
|
-
properties: props.model.getProperties(),
|
|
18
|
-
onBtnClick: (i) => {
|
|
19
|
-
this.props.graphModel.eventCenter.emit(`node:select-click`, {
|
|
20
|
-
props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
this.app = createApp({
|
|
25
|
-
render: () => this.r
|
|
26
|
-
});
|
|
5
|
+
import { h as s, createApp as i } from "vue";
|
|
6
|
+
import t from "./index.vue.js";
|
|
7
|
+
const d = { type: "httpService", view: class extends e {
|
|
8
|
+
constructor(e2) {
|
|
9
|
+
super(e2), this.isMounted = false, this.r = s(t, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
10
|
+
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
11
|
+
} }), this.app = i({ render: () => this.r });
|
|
27
12
|
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
const httpService = {
|
|
32
|
-
type: "httpService",
|
|
33
|
-
view: HttpSerivceNode,
|
|
34
|
-
model: HttpSerivceNodeModel,
|
|
35
|
-
options: {}
|
|
36
|
-
};
|
|
13
|
+
}, model: class extends o {
|
|
14
|
+
}, options: {} };
|
|
37
15
|
export {
|
|
38
|
-
|
|
16
|
+
d as default
|
|
39
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./index.vue2.js";
|
|
2
2
|
import "./index.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-6b34f36c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
import { ElDivider } from "element-plus/es";
|
|
1
|
+
import { ElDivider as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, null, -1));
|
|
11
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "serviceflow-nodeTitle" }, "http服务", -1));
|
|
12
|
-
const _hoisted_3 = { class: "serviceflow-nodeContent" };
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "index",
|
|
15
|
-
props: {
|
|
16
|
-
graphModel: Object,
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default: () => {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["btnClick"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
const _component_el_divider = ElDivider;
|
|
28
|
-
return openBlock(), createElementBlock("div", null, [
|
|
29
|
-
_hoisted_1,
|
|
30
|
-
createElementVNode("div", {
|
|
31
|
-
class: "serviceflow-nodeView",
|
|
32
|
-
style: normalizeStyle({ backgroundColor: __props.properties.backgroundColor })
|
|
33
|
-
}, [
|
|
34
|
-
_hoisted_2,
|
|
35
|
-
createVNode(_component_el_divider),
|
|
36
|
-
createElementVNode("div", _hoisted_3, toDisplayString(__props.properties.name), 1)
|
|
37
|
-
], 4)
|
|
38
|
-
]);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
});
|
|
4
|
+
import { defineComponent as s, openBlock as t, createElementBlock as o, createElementVNode as i, normalizeStyle as p, createVNode as r, toDisplayString as l, pushScopeId as n, popScopeId as c } from "vue";
|
|
5
|
+
import d from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
+
const m = (e2) => (n("data-v-6b34f36c"), e2 = e2(), c(), e2), a = m(() => i("img", { src: d, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), f = m(() => i("div", { class: "serviceflow-nodeTitle" }, "http服务", -1)), u = { class: "serviceflow-nodeContent" }, v = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: n2 }) => (n3, c2) => {
|
|
7
|
+
const d2 = e;
|
|
8
|
+
return t(), o("div", null, [a, i("div", { class: "serviceflow-nodeView", style: p({ backgroundColor: s2.properties.backgroundColor }) }, [f, r(d2), i("div", u, l(s2.properties.name), 1)], 4)]);
|
|
9
|
+
} });
|
|
42
10
|
export {
|
|
43
|
-
|
|
11
|
+
v as default
|
|
44
12
|
};
|