service-flow-designer 2.3.5-rc1-flow1 → 2.3.5-sit2-flow1
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/datatable-select.vue.js +1 -1
- package/dist/es/designer/common/components/datatable-select.vue2.js +34 -30
- package/dist/es/designer/common/components/file-upload.vue2.js +6 -6
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +1 -1
- package/dist/es/designer/common/components/json-view/json-view.vue.js +2 -52
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +52 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +16 -16
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +10 -10
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +1 -1
- 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 +12 -10
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +2 -2
- 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 +45 -42
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/form-data.vue.js +8 -8
- package/dist/es/designer/service-components/service/common/header-data.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +5 -5
- package/dist/es/designer/service-components/service/common/query-params.vue.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +1 -1
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +12 -12
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +12 -12
- package/dist/es/designer/service-flow-view/flow-util.js +4 -7
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
- package/dist/es/designer/service-flow-view/service-params.vue.js +6 -6
- package/dist/es/designer/service-flow-view/service-result.vue.js +11 -11
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +14 -14
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +9 -12
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +9 -9
- package/dist/es/designer/service-flow-view/view-index.vue2.js +14 -15
- package/dist/es/designer/service-panel/component-panel.vue2.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue2.js +11 -11
- package/dist/es/designer/service-panel/service-panel.vue2.js +9 -9
- package/dist/es/style.css +7 -7
- package/dist/es/utils/common-util.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElMessage as e, ElForm as l, ElFormItem as t, ElInput as a, ElButton as o, ElCheckbox as s, ElAlert as r, ElTable as p, ElTableColumn as i, ElSelect as n, ElOption as d, ElTooltip as m, ElRadioGroup as u, ElRadio as c, ElDivider as b } 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";
|
|
@@ -14,61 +14,64 @@ import "element-plus/es/components/form-item/style/css";
|
|
|
14
14
|
import "element-plus/es/components/input/style/css";
|
|
15
15
|
import "element-plus/es/components/button/style/css";
|
|
16
16
|
import "element-plus/es/components/checkbox/style/css";
|
|
17
|
-
import { defineComponent as
|
|
18
|
-
import { Search as
|
|
19
|
-
import { getLabel as O, sqlOperators as
|
|
20
|
-
import
|
|
21
|
-
import { getBaseUrl as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { useServiceFlowStore as
|
|
25
|
-
import
|
|
17
|
+
import { defineComponent as y, ref as f, onMounted as V, createElementBlock as h, openBlock as v, createVNode as w, withCtx as g, createElementVNode as k, unref as _, createTextVNode as U, createBlock as T, toDisplayString as x, Fragment as C, renderList as z, createCommentVNode as $ } from "vue";
|
|
18
|
+
import { Search as S, View as D, Minus as j, Plus as E } from "@element-plus/icons-vue";
|
|
19
|
+
import { getLabel as O, sqlOperators as I, logicOperators as q } from "../../util/common-options.js";
|
|
20
|
+
import B from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
21
|
+
import { getBaseUrl as N } from "../../../../utils/common-util.js";
|
|
22
|
+
import A from "agilebuilder-ui/src/utils/request";
|
|
23
|
+
import F from "../../../common/components/datatable-select.vue.js";
|
|
24
|
+
import { useServiceFlowStore as P } from "../../../../stores/page-store.js";
|
|
25
|
+
import M from "../../../common/components/node-base-config.vue.js";
|
|
26
26
|
import "codemirror";
|
|
27
27
|
import "@codemirror/lang-sql";
|
|
28
28
|
import "@codemirror/state";
|
|
29
|
-
import
|
|
30
|
-
import { getNodeRuntimeObject as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
import J from "../../../common/components/sql-view/sql-view-dialog.vue.js";
|
|
30
|
+
import { getNodeRuntimeObject as L } from "../../../service-flow-view/flow-util.js";
|
|
31
|
+
import "element-plus/es/components/message/style/css";
|
|
32
|
+
const R = { style: { position: "absolute", right: "0" } }, G = { key: 0 }, H = { key: 0 }, K = { key: 0 }, Q = { key: 0 }, W = { key: 0 }, X = { key: 0 }, Y = { key: 0 }, Z = y({ __name: "config", props: { properties: { type: Object, default: () => ({ search: {}, noData: {}, result: {} }) }, logicFlowInstance: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(y2, { expose: Z2 }) {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
const ee = P(), le = y2, te = f(false), ae = f(""), oe = f(false), se = f([]), re = f(ee.pageContext.systemCode);
|
|
35
|
+
((_a = le.properties) == null ? void 0 : _a.dataTableSystemCode) && (re.value = le.properties.dataTableSystemCode);
|
|
36
|
+
const pe = f(ee.pageContext.systemVersion);
|
|
37
|
+
((_b = le.properties) == null ? void 0 : _b.dataTableSystemVersion) && (pe.value = le.properties.dataTableSystemVersion), le.properties.search || (le.properties.search = {}), le.properties.noData || (le.properties.noData = {}), le.properties.result || (le.properties.result = {}), V(() => {
|
|
38
|
+
if (le.properties.dataTable && le.properties.dataTable !== ee.pageContext.tableName) {
|
|
39
|
+
const l2 = window.$vueApp.config.globalProperties.baseAPI;
|
|
40
|
+
if (!le.properties.dataTableSystemVersion) return void e.warning("未获取到数据表对应的版本。请重新选择数据表");
|
|
41
|
+
A.get(l2 + "/mms/data-tables/table-columns?tableName=" + le.properties.dataTable + "&systemCode=" + le.properties.dataTableSystemCode + "&publishVersion=" + le.properties.dataTableSystemVersion).then((e2) => {
|
|
42
|
+
se.value = e2;
|
|
40
43
|
});
|
|
41
|
-
} else
|
|
44
|
+
} else se.value = ee.pageContext.modelFields;
|
|
42
45
|
});
|
|
43
|
-
const
|
|
46
|
+
const ie = (e2, l2, t2) => {
|
|
44
47
|
e2.$editing = true;
|
|
45
|
-
},
|
|
46
|
-
"sort" === t2 ?
|
|
47
|
-
}, ne = (e2) => {
|
|
48
|
-
ee.properties.dataTable = e2.dataTable.name, ee.properties.dataTableSystemCode = e2.system.code, N.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns?tableName=" + e2.dataTable.name + "&systemCode=" + e2.system.code + "&publishVersion=" + e2.system.publishVersion).then((e3) => {
|
|
49
|
-
oe.value = e3;
|
|
50
|
-
});
|
|
48
|
+
}, ne = (e2, l2, t2) => {
|
|
49
|
+
"sort" === t2 ? le.properties.sort.splice(e2, 1) : "search" === t2 && le.properties.search.conditions.splice(e2, 1);
|
|
51
50
|
}, de = (e2) => {
|
|
52
|
-
e2
|
|
51
|
+
le.properties.dataTable = e2.dataTable.name, le.properties.dataTableSystemCode = e2.system.code, le.properties.dataTableSystemVersion = e2.system.publishVersion, A.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns?tableName=" + e2.dataTable.name + "&systemCode=" + e2.system.code + "&publishVersion=" + e2.system.publishVersion).then((e3) => {
|
|
52
|
+
se.value = e3;
|
|
53
|
+
});
|
|
54
|
+
}, me = (e2) => {
|
|
55
|
+
e2 || (le.properties.dataTable = "", se.value = ee.pageContext.modelFields);
|
|
53
56
|
};
|
|
54
57
|
function ue() {
|
|
55
|
-
|
|
56
|
-
const e2 =
|
|
57
|
-
e2.props = JSON.parse(JSON.stringify(
|
|
58
|
-
const l2 =
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
ae.value = "";
|
|
59
|
+
const e2 = L(le.logicFlowInstance.getNodeModelById(le.currentNode.data.id), le.service);
|
|
60
|
+
e2.props = JSON.parse(JSON.stringify(le.properties));
|
|
61
|
+
const l2 = N(le.pageContext.backendUrl, le.pageContext.isTest);
|
|
62
|
+
A.post(l2 + "/dsc/service-flow/test/database-node/show-sql", e2).then((e3) => {
|
|
63
|
+
te.value = true, ae.value = e3;
|
|
61
64
|
});
|
|
62
65
|
}
|
|
63
|
-
return
|
|
66
|
+
return Z2({ onClose: () => (le.properties.search.conditions && le.properties.search.conditions.forEach((e2) => {
|
|
64
67
|
e2.$editing && delete e2.$editing;
|
|
65
|
-
}),
|
|
68
|
+
}), le.properties.sort && le.properties.sort.forEach((e2) => {
|
|
66
69
|
e2.$editing && delete e2.$editing;
|
|
67
|
-
}),
|
|
68
|
-
const
|
|
69
|
-
return V(), h("div", null, [v(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [v(F, { properties: b2.properties }, null, 8, ["properties"]), v(J2, { label: "" }, { label: g((e2) => [v(q2, { onChange: de, modelValue: b2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => b2.properties.specifyDataTable = e3), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: !b2.properties.specifyDataTable, modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => b2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: g(() => [v(N2, { type: "default", icon: _($), onClick: f2[1] || (f2[1] = (e2) => ae.value = !ae.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), w("span", L, [v(N2, { type: "primary", icon: _(D), onClick: ue }, { default: g(() => f2[19] || (f2[19] = [k("预览sql", -1)])), _: 1, __: [19] }, 8, ["icon"])]), v(P, { visible: ae.value, "onUpdate:visible": f2[3] || (f2[3] = (e2) => ae.value = e2), modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e2) => b2.properties.dataTable = e2), systemCode: se.value, systemVersion: re.value, onSelect: ne }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), v(Y3, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "(((" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: "(", value: "(" }), v(me, { label: "((", value: "((" }), v(me, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", R, x(e2.row.leftBracket), 1))]), _: 1 }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", G, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "type", label: "比较" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(_(S), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", H, x(_(O)(e2.row.operator, _(S))), 1))]), _: 1 }), v(Z2, { prop: "value", label: "值", width: "150" }, { default: g((e2) => [v(_(I), { customInputTypes: ["data"], showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), v(Z2, { prop: "rightBracket", label: ")))" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: ")", value: ")" }), v(me, { label: "))", value: "))" }), v(me, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", K, x(e2.row.rightBracket), 1))]), _: 1 }), v(Z2, { prop: "logicOperator", label: "连接符" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(_(B), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", Q, x(_(O)(e2.row.logicOperator, _(B))), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[5] || (f2[5] = (e2) => (ee.properties.search.conditions || (ee.properties.search.conditions = []), void ee.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e3) => b2.properties.search.pageEnable = e3), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.pageEnable ? (V(), U(_(I), { key: 0, modelValue: b2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e2) => b2.properties.search.page = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e3) => b2.properties.search.limitEnable = e3), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.limitEnable ? (V(), U(_(I), { key: 0, modelValue: b2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e2) => b2.properties.search.limit = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e3) => b2.properties.search.totalEnable = e3), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.totalEnable ? (V(), U(_(I), { key: 0, customInputTypes: ["data"], size: "small", modelValue: b2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e2) => b2.properties.search.total = e2) }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(Y3, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", W, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "order", label: "排序方式" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: g(() => [v(me, { label: "升序", value: "asc" }), v(me, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", X, x(e2.row.order), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[12] || (f2[12] = (e2) => (ee.properties.sort || (ee.properties.sort = []), void ee.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(Y3, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(he, { modelValue: b2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e2) => b2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: g(() => [v(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [k("仅第一条", -1)])), _: 1, __: [20] }), v(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [k(" 全部 ", -1)])), _: 1, __: [21] })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [v(_(I), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: b2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e2) => b2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 }), v(Y3, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e2) => b2.properties.noData.action = e2), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [k(" 继续 ", -1)])), _: 1, __: [22] }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e3) => b2.properties.noData.action = e3), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: "throwException" !== b2.properties.noData.action, modelValue: b2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e2) => b2.properties.noData.exceptionMessage = e2), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), v(Ve)]), _: 1 }), v(_(M), { sql: te.value, "model-value": le.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e2) => le.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
70
|
+
}), le.properties) }), (e2, f2) => {
|
|
71
|
+
const V2 = s, N2 = o, A2 = a, P2 = t, L2 = r, Z3 = i, ee2 = d, ce = n, be = m, ye = p, fe = c, Ve = u, he = b, ve = l;
|
|
72
|
+
return v(), h("div", null, [w(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [w(M, { properties: y2.properties }, null, 8, ["properties"]), w(P2, { label: "" }, { label: g((e3) => [w(V2, { onChange: me, modelValue: y2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e4) => y2.properties.specifyDataTable = e4), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: !y2.properties.specifyDataTable, modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e3) => y2.properties.dataTable = e3), readonly: "", style: { width: "85%" } }, { append: g(() => [w(N2, { type: "default", icon: _(S), onClick: f2[1] || (f2[1] = (e3) => oe.value = !oe.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), k("span", R, [w(N2, { type: "primary", icon: _(D), onClick: ue }, { default: g(() => f2[19] || (f2[19] = [U("预览sql")])), _: 1 }, 8, ["icon"])]), w(F, { visible: oe.value, "onUpdate:visible": f2[3] || (f2[3] = (e3) => oe.value = e3), modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e3) => y2.properties.dataTable = e3), systemCode: re.value, systemVersion: pe.value, onSelect: de }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), w(L2, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "(((" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, size: "small", modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l2) => e3.row.leftBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: "(", value: "(" }), w(ee2, { label: "((", value: "((" }), w(ee2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", G, x(e3.row.leftBracket), 1))]), _: 1 }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(v(true), h(C, null, z(se.value, (e4) => (v(), T(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", H, x(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "type", label: "比较" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, modelValue: e3.row.operator, "onUpdate:modelValue": (l2) => e3.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(v(true), h(C, null, z(_(I), (e4) => (v(), T(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", K, x(_(O)(e3.row.operator, _(I))), 1))]), _: 1 }), w(Z3, { prop: "value", label: "值", width: "150" }, { default: g((e3) => [w(_(B), { customInputTypes: ["data"], showLabel: !e3.row.$editing, size: "small", modelValue: e3.row.value, "onUpdate:modelValue": (l2) => e3.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), w(Z3, { prop: "rightBracket", label: ")))" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, size: "small", modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l2) => e3.row.rightBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: ")", value: ")" }), w(ee2, { label: "))", value: "))" }), w(ee2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", Q, x(e3.row.rightBracket), 1))]), _: 1 }), w(Z3, { prop: "logicOperator", label: "连接符" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, modelValue: e3.row.logicOperator, "onUpdate:modelValue": (l2) => e3.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(v(true), h(C, null, z(_(q), (e4) => (v(), T(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", W, x(_(O)(e3.row.logicOperator, _(q))), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[5] || (f2[5] = (e3) => (le.properties.search.conditions || (le.properties.search.conditions = []), void le.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e4) => y2.properties.search.pageEnable = e4), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.pageEnable ? (v(), T(_(B), { key: 0, modelValue: y2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e3) => y2.properties.search.page = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e4) => y2.properties.search.limitEnable = e4), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.limitEnable ? (v(), T(_(B), { key: 0, modelValue: y2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e3) => y2.properties.search.limit = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e4) => y2.properties.search.totalEnable = e4), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.totalEnable ? (v(), T(_(B), { key: 0, customInputTypes: ["data"], size: "small", modelValue: y2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e3) => y2.properties.search.total = e3) }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(L2, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(v(true), h(C, null, z(se.value, (e4) => (v(), T(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", X, x(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "order", label: "排序方式" }, { default: g((e3) => [e3.row.$editing ? (v(), T(ce, { key: 1, size: "small", modelValue: e3.row.order, "onUpdate:modelValue": (l2) => e3.row.order = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "升序", value: "asc" }), w(ee2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", Y, x(e3.row.order), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[12] || (f2[12] = (e3) => (le.properties.sort || (le.properties.sort = []), void le.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(L2, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(Ve, { modelValue: y2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e3) => y2.properties.result.valueSetScope = e3), class: "ml-4" }, { default: g(() => [w(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [U("仅第一条")])), _: 1 }), w(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [U(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [w(_(B), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: y2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e3) => y2.properties.result.setTo = e3) }, null, 8, ["modelValue"])]), _: 1 }), w(L2, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e3) => y2.properties.noData.action = e3), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [U(" 继续 ")])), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e4) => y2.properties.noData.action = e4), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: "throwException" !== y2.properties.noData.action, modelValue: y2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e3) => y2.properties.noData.exceptionMessage = e3), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), w(he)]), _: 1 }), w(_(J), { sql: ae.value, "model-value": te.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e3) => te.value = e3) }, null, 8, ["sql", "model-value"])]);
|
|
70
73
|
};
|
|
71
74
|
} });
|
|
72
75
|
export {
|
|
73
|
-
|
|
76
|
+
Z as default
|
|
74
77
|
};
|
|
@@ -9,15 +9,15 @@ import r from "../../../common/components/value-set-input/value-set-input.vue.js
|
|
|
9
9
|
const i = t({ __name: "cookie-data", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { emit: i2 }) {
|
|
10
10
|
const c = i2, V = t2;
|
|
11
11
|
V.modelValue || c("update:modelValue", []);
|
|
12
|
-
const
|
|
12
|
+
const f = () => {
|
|
13
13
|
V.modelValue.push({ name: "", value: "", description: "" });
|
|
14
14
|
};
|
|
15
15
|
return (i3, c2) => {
|
|
16
|
-
const
|
|
17
|
-
return s(), n(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [u(
|
|
16
|
+
const v = o, y = l, _ = a, b = e;
|
|
17
|
+
return s(), n(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [u(y, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [u(v, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [u(p(r), { size: "small", paramTypes: ["service", "value"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [u(v, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y, { align: "center", width: "70" }, { header: m(() => [u(_, { type: "primary", size: "small", onClick: f, link: "" }, { default: m(() => c2[0] || (c2[0] = [d("添加 ")])), _: 1 })]), default: m((e2) => [u(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
|
|
18
18
|
return o2 = e2.$index, e2.row, void V.modelValue.splice(o2, 1);
|
|
19
19
|
var o2;
|
|
20
|
-
} }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 "
|
|
20
|
+
} }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -9,17 +9,17 @@ import "element-plus/es/components/option/style/css";
|
|
|
9
9
|
import { defineComponent as p, createBlock as m, createCommentVNode as n, openBlock as r, withCtx as d, createVNode as u, unref as i, createTextVNode as c } from "vue";
|
|
10
10
|
import V from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
11
11
|
const y = p({ __name: "form-data", props: { modelValue: { type: Array, default: () => ({ content: [] }) } }, emits: ["update:modelValue"], setup(p2, { expose: y2, emit: f }) {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
12
|
+
const w = f, v = p2;
|
|
13
|
+
v.modelValue || w("update:modelValue", []);
|
|
14
|
+
const b = () => {
|
|
15
|
+
v.modelValue.push({ name: "", value: "", paramType: "TEXT", description: "" });
|
|
16
16
|
};
|
|
17
17
|
return y2({}), (y3, f2) => {
|
|
18
|
-
const
|
|
19
|
-
return Array.isArray(p2.modelValue) ? (r(), m(k, { key: 0, data: p2.modelValue, border: "", size: "small" }, { default: d(() => [u(U, { prop: "name", label: "参数名", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, { append: d(() => [u(
|
|
20
|
-
return o2 = e2.$index, e2.row, void
|
|
18
|
+
const w2 = t, _ = a, T = o, U = l, h = s, k = e;
|
|
19
|
+
return Array.isArray(p2.modelValue) ? (r(), m(k, { key: 0, data: p2.modelValue, border: "", size: "small" }, { default: d(() => [u(U, { prop: "name", label: "参数名", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, { append: d(() => [u(_, { size: "small", modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, style: { width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: d(() => [u(w2, { label: "Text", value: "TEXT" }), u(w2, { label: "File", value: "FILE" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "prop", label: "值", align: "center" }, { default: d((e2) => [u(i(V), { size: "small", paramTypes: ["service", "data", "fixed"], showFileUpload: "FILE" === e2.row.paramType, modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showFileUpload", "modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { prop: "description", label: "说明", align: "center" }, { default: d((e2) => [u(T, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(U, { align: "center", width: "70" }, { header: d(() => [u(h, { type: "primary", size: "small", onClick: b, link: "" }, { default: d(() => f2[0] || (f2[0] = [c("添加 ")])), _: 1 })]), default: d((e2) => [u(h, { type: "danger", size: "small", link: "", onClick: (l2) => {
|
|
20
|
+
return o2 = e2.$index, e2.row, void v.modelValue.splice(o2, 1);
|
|
21
21
|
var o2;
|
|
22
|
-
} }, { default: d(() => f2[1] || (f2[1] = [c(" 删除 "
|
|
22
|
+
} }, { default: d(() => f2[1] || (f2[1] = [c(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
@@ -9,15 +9,15 @@ import r from "../../../common/components/value-set-input/value-set-input.vue.js
|
|
|
9
9
|
const i = t({ __name: "header-data", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: i2, emit: c }) {
|
|
10
10
|
const V = c, f = t2;
|
|
11
11
|
f.modelValue || V("update:modelValue", []);
|
|
12
|
-
const
|
|
12
|
+
const y = () => {
|
|
13
13
|
f.modelValue.push({ name: "", value: "", description: "" });
|
|
14
14
|
};
|
|
15
15
|
return i2({}), (i3, c2) => {
|
|
16
|
-
const V2 = o,
|
|
17
|
-
return n(), s(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(
|
|
16
|
+
const V2 = o, v = l, _ = a, b = e;
|
|
17
|
+
return n(), s(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(v, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [p(u(r), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { align: "center", width: "70" }, { header: m(() => [p(_, { type: "primary", size: "small", onClick: y, link: "" }, { default: m(() => c2[0] || (c2[0] = [d("添加 ")])), _: 1 })]), default: m((e2) => [p(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
|
|
18
18
|
return o2 = e2.$index, e2.row, void f.modelValue.splice(o2, 1);
|
|
19
19
|
var o2;
|
|
20
|
-
} }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 "
|
|
20
|
+
} }, { default: m(() => c2[1] || (c2[1] = [d(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -9,15 +9,15 @@ import i from "../../../common/components/value-set-input/value-set-input.vue.js
|
|
|
9
9
|
const c = t({ __name: "json-data", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: c2, emit: V }) {
|
|
10
10
|
const y = V, f = t2;
|
|
11
11
|
f.modelValue && Array.isArray(f.modelValue) || y("update:modelValue", []);
|
|
12
|
-
const
|
|
12
|
+
const v = () => {
|
|
13
13
|
f.modelValue.push({ name: "", value: "", description: "" });
|
|
14
14
|
};
|
|
15
15
|
return c2({}), (c3, V2) => {
|
|
16
|
-
const y2 = a,
|
|
17
|
-
return Array.isArray(t2.modelValue) ? (m(), s(w, { key: 0, data: t2.modelValue, border: "", size: "small" }, { default: r(() => [u(
|
|
16
|
+
const y2 = a, _ = l, b = o, w = e;
|
|
17
|
+
return Array.isArray(t2.modelValue) ? (m(), s(w, { key: 0, data: t2.modelValue, border: "", size: "small" }, { default: r(() => [u(_, { prop: "name", label: "参数名", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { prop: "prop", label: "值", align: "center" }, { default: r((e2) => [u(p(i), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { prop: "description", label: "说明", align: "center" }, { default: r((e2) => [u(y2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(_, { align: "center", width: "70" }, { header: r(() => [u(b, { type: "primary", size: "small", onClick: v, link: "" }, { default: r(() => V2[0] || (V2[0] = [d("添加 ")])), _: 1 })]), default: r((e2) => [u(b, { type: "danger", size: "small", link: "", onClick: (l2) => {
|
|
18
18
|
return a2 = e2.$index, e2.row, void f.modelValue.splice(a2, 1);
|
|
19
19
|
var a2;
|
|
20
|
-
} }, { default: r(() => V2[1] || (V2[1] = [d(" 删除 "
|
|
20
|
+
} }, { default: r(() => V2[1] || (V2[1] = [d(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : n("", true);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -7,13 +7,13 @@ import "element-plus/es/components/option/style/css";
|
|
|
7
7
|
import "element-plus/es/components/radio-group/style/css";
|
|
8
8
|
import "element-plus/es/components/radio/style/css";
|
|
9
9
|
import { defineComponent as d, ref as n, onMounted as s, createElementBlock as u, openBlock as r, Fragment as p, createVNode as i, createBlock as c, createCommentVNode as y, withCtx as f, createTextVNode as V, createElementVNode as b } from "vue";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import v from "./form-data.vue.js";
|
|
11
|
+
import w from "./json-data.vue.js";
|
|
12
|
+
import T from "../../../common/components/file-upload.vue.js";
|
|
13
13
|
import "codemirror";
|
|
14
14
|
import "@codemirror/lang-xml";
|
|
15
15
|
import "@codemirror/state";
|
|
16
|
-
import
|
|
16
|
+
import _ from "./raw-data.vue.js";
|
|
17
17
|
const x = d({ __name: "param-config", props: { modelValue: { type: Object, default: () => ({ bodyType: "none" }) } }, setup(d2, { expose: x2 }) {
|
|
18
18
|
const j = d2, g = n(), z = (e2) => {
|
|
19
19
|
j.modelValue.mediaType = U(e2), j.modelValue.content = "formData" === e2 || "formUrlencoded" === e2 || "json" === e2 ? [] : "raw" === e2 ? "" : {};
|
|
@@ -23,7 +23,7 @@ const x = d({ __name: "param-config", props: { modelValue: { type: Object, defau
|
|
|
23
23
|
return s(() => {
|
|
24
24
|
}), x2({}), (n2, s2) => {
|
|
25
25
|
const x3 = l, j2 = e, U2 = a, h = o, D = t, S = m;
|
|
26
|
-
return r(), u(p, null, [i(j2, { modelValue: d2.modelValue.bodyType, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.modelValue.bodyType = e2), style: { "margin-bottom": "10px" }, onChange: z }, { default: f(() => [i(x3, { value: "none", size: "small" }, { default: f(() => s2[6] || (s2[6] = [V("none"
|
|
26
|
+
return r(), u(p, null, [i(j2, { modelValue: d2.modelValue.bodyType, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.modelValue.bodyType = e2), style: { "margin-bottom": "10px" }, onChange: z }, { default: f(() => [i(x3, { value: "none", size: "small" }, { default: f(() => s2[6] || (s2[6] = [V("none")])), _: 1 }), i(x3, { value: "formData", size: "small" }, { default: f(() => s2[7] || (s2[7] = [V("form-data")])), _: 1 }), i(x3, { value: "formUrlencoded", size: "small" }, { default: f(() => s2[8] || (s2[8] = [V("x-www-form-urlencoded")])), _: 1 }), i(x3, { value: "json", size: "small" }, { default: f(() => s2[9] || (s2[9] = [V("json")])), _: 1 }), i(x3, { value: "raw", size: "small" }, { default: f(() => s2[10] || (s2[10] = [V("raw")])), _: 1 }), i(x3, { value: "binary", size: "small" }, { default: f(() => s2[11] || (s2[11] = [V("binary")])), _: 1 })]), _: 1 }, 8, ["modelValue"]), "raw" === d2.modelValue.bodyType ? (r(), c(h, { key: 0, size: "small", modelValue: d2.modelValue.mediaType, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => d2.modelValue.mediaType = e2), onChange: k, style: { "margin-left": "10px", width: "80px", "background-color": "var(--el-fill-color-blank)" } }, { default: f(() => [i(U2, { size: "small", label: "TEXT", value: "text/plain" }), i(U2, { size: "small", label: "JSON", value: "application/json" }), i(U2, { size: "small", label: "XML", value: "application/xml" })]), _: 1 }, 8, ["modelValue"])) : y("", true), "none" === d2.modelValue.bodyType ? (r(), c(D, { key: 1, description: "不需要请求体", style: { border: "1px solid #dcdfe6" } }, { image: f(() => s2[12] || (s2[12] = [b("span", null, null, -1)])), _: 1 })) : "formData" === d2.modelValue.bodyType || "formUrlencoded" === d2.modelValue.bodyType ? (r(), c(S, { key: 2, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(v, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[2] || (s2[2] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "json" === d2.modelValue.bodyType ? (r(), c(S, { key: 3, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(w, { modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[3] || (s2[3] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])]), _: 1 })) : "binary" === d2.modelValue.bodyType ? (r(), c(T, { key: 4, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[4] || (s2[4] = (e2) => d2.modelValue.content = e2) }, null, 8, ["modelValue"])) : "raw" === d2.modelValue.bodyType ? (r(), c(S, { key: 5, "label-width": "0", style: { "margin-bottom": "0px" } }, { default: f(() => [i(_, { ref_key: "rawDataRef", ref: g, modelValue: d2.modelValue.content, "onUpdate:modelValue": s2[5] || (s2[5] = (e2) => d2.modelValue.content = e2), httpSerivceBody: d2.modelValue }, null, 8, ["modelValue", "httpSerivceBody"])]), _: 1 })) : y("", true)], 64);
|
|
27
27
|
};
|
|
28
28
|
} });
|
|
29
29
|
export {
|
|
@@ -9,15 +9,15 @@ import d from "../../../common/components/value-set-input/value-set-input.vue.js
|
|
|
9
9
|
const i = t({ __name: "query-params", props: { modelValue: { type: Array, default: () => null } }, emits: ["update:modelValue"], setup(t2, { expose: i2, emit: c }) {
|
|
10
10
|
const V = c, f = t2;
|
|
11
11
|
f.modelValue || V("update:modelValue", []);
|
|
12
|
-
const
|
|
12
|
+
const y = () => {
|
|
13
13
|
f.modelValue.push({ name: "", value: "", description: "" });
|
|
14
14
|
};
|
|
15
15
|
return i2({}), (i3, c2) => {
|
|
16
|
-
const V2 = o,
|
|
17
|
-
return n(), s(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(
|
|
16
|
+
const V2 = o, v = l, _ = a, b = e;
|
|
17
|
+
return n(), s(b, { data: t2.modelValue, border: "", size: "small" }, { default: m(() => [p(v, { prop: "name", label: "参数名", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "prop", label: "值", align: "center" }, { default: m((e2) => [p(u(d), { size: "small", paramTypes: ["service", "fixed"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { prop: "description", label: "说明", align: "center" }, { default: m((e2) => [p(V2, { size: "small", modelValue: e2.row.description, "onUpdate:modelValue": (l2) => e2.row.description = l2, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(v, { align: "center", width: "70" }, { header: m(() => [p(_, { type: "primary", size: "small", onClick: y, link: "" }, { default: m(() => c2[0] || (c2[0] = [r("添加 ")])), _: 1 })]), default: m((e2) => [p(_, { type: "danger", size: "small", link: "", onClick: (l2) => {
|
|
18
18
|
return o2 = e2.$index, e2.row, void f.modelValue.splice(o2, 1);
|
|
19
19
|
var o2;
|
|
20
|
-
} }, { default: m(() => c2[1] || (c2[1] = [r(" 删除 "
|
|
20
|
+
} }, { default: m(() => c2[1] || (c2[1] = [r(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -10,8 +10,8 @@ import c from "../../../common/components/node-base-config.vue.js";
|
|
|
10
10
|
import d from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
11
11
|
import "@element-plus/icons-vue";
|
|
12
12
|
const f = p({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, setup: (p2, { expose: f2 }) => (f2({}), (f3, b) => {
|
|
13
|
-
const y = s, v = o,
|
|
14
|
-
return n(), m(
|
|
13
|
+
const y = s, v = o, x = t, V = l, _ = e;
|
|
14
|
+
return n(), m(_, { "label-width": "auto", "label-position": "left" }, { default: r(() => [a(c, { properties: p2.properties }, null, 8, ["properties"]), a(x, { label: "Bean名称:" }, { default: r(() => [a(y, { modelValue: p2.properties.beanName, "onUpdate:modelValue": b[0] || (b[0] = (e2) => p2.properties.beanName = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), a(v, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: r(() => b[2] || (b[2] = [i(" 说明:自定义bean需实现cn.ambitionq.serivceflow.core.ServiceNodeHandler接口重写execute方法 ")])), _: 1 })]), _: 1 }), a(V, { title: "输出设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), a(x, { label: "设置到:" }, { default: r(() => [a(u(d), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: p2.properties.resultSet, "onUpdate:modelValue": b[1] || (b[1] = (e2) => p2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
15
15
|
}) });
|
|
16
16
|
export {
|
|
17
17
|
f as default
|
|
@@ -27,7 +27,7 @@ const z = { style: { position: "absolute", right: "10px" } }, P = u({ __name: "c
|
|
|
27
27
|
};
|
|
28
28
|
return P2({}), (i2, P3) => {
|
|
29
29
|
const E2 = l, H = s, J = p, L = t, N = o, A = a, D = r, F = n, I = e;
|
|
30
|
-
return d(), m(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(() => [(d(true), b(f, null, v(h(_), (e3) => (d(), m(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(() => [P3[17] || (P3[17] = g(" 返回值设置 "
|
|
30
|
+
return d(), m(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(() => [(d(true), b(f, null, v(h(_), (e3) => (d(), m(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(() => [P3[17] || (P3[17] = g(" 返回值设置 ")), k("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 ? (d(), m(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"])) : V("", true), "application/xml" === u2.properties.responseContentType ? (d(), m(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"])) : V("", true), "text/plain" === u2.properties.responseContentType ? (d(), m(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"])) : V("", 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(() => [(d(true), b(f, null, v(h(C), (e2) => (d(), m(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(() => [(d(true), b(f, null, v(h(U), (e2) => (d(), m(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(() => [(d(true), b(f, null, v(h(j), (e2) => (d(), m(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
31
|
};
|
|
32
32
|
} });
|
|
33
33
|
export {
|
package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js
CHANGED
|
@@ -9,10 +9,10 @@ import "element-plus/es/components/select/style/css";
|
|
|
9
9
|
import "element-plus/es/components/option/style/css";
|
|
10
10
|
import "element-plus/es/components/table-column/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
|
-
import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as
|
|
13
|
-
import
|
|
14
|
-
import { v4 as
|
|
15
|
-
const
|
|
12
|
+
import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as b, unref as V, createTextVNode as k } from "vue";
|
|
13
|
+
import g from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
14
|
+
import { v4 as h } from "uuid";
|
|
15
|
+
const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
|
|
16
16
|
const z = $, T = i2;
|
|
17
17
|
T.modelValue && 0 !== T.modelValue.length || z("update:modelValue", []);
|
|
18
18
|
const U = ["any", "object", "array"], j = (e2) => {
|
|
@@ -31,23 +31,23 @@ const h = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-json-setting", p
|
|
|
31
31
|
const o2 = e2[t2];
|
|
32
32
|
if (o2.items && o2.items.length > 0 && L(o2.items, l2), o2.code === l2.code) return void e2.splice(t2, 1);
|
|
33
33
|
}
|
|
34
|
-
}, q = () => ({ level: 0, code:
|
|
35
|
-
return C2({}), (
|
|
34
|
+
}, q = () => ({ level: 0, code: h(), name: "", paramType: "any", value: "", items: [], $editing: true });
|
|
35
|
+
return C2({}), (h2, C3) => {
|
|
36
36
|
const $2 = t, z2 = l, D = s, R = o, S = n, B = r, F = m, G = a, H = e;
|
|
37
|
-
return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: j, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span",
|
|
37
|
+
return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: j, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
|
|
38
38
|
return t2 = l2, e2.$index, o2 = e2.row, void ("array" === t2 || o2.items && o2.items.length > 0 && ("object" === t2 ? o2.items = [] : o2.items && delete o2.items));
|
|
39
39
|
var t2, o2;
|
|
40
|
-
}, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null,
|
|
40
|
+
}, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? b("", true) : (d(), p(V(g), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: A, link: "" }, { default: u(() => C3[0] || (C3[0] = [k("添加 ")])), _: 1 })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
|
|
41
41
|
l3.items || (l3.items = []);
|
|
42
42
|
const t2 = q();
|
|
43
43
|
t2.level = l3.level + 1, l3.items.push(t2);
|
|
44
|
-
})(e2.$index, e2.row) }, { default: u(() => C3[2] || (C3[2] = [
|
|
44
|
+
})(e2.$index, e2.row) }, { default: u(() => C3[2] || (C3[2] = [k("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
|
|
45
45
|
return e2.$index, t2 = e2.row, void E(T.modelValue, t2);
|
|
46
46
|
var t2;
|
|
47
|
-
} }, { default: u(() => C3[3] || (C3[3] = [
|
|
48
|
-
return e2.$index, t2 = e2.row,
|
|
47
|
+
} }, { default: u(() => C3[3] || (C3[3] = [k("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => C3[1] || (C3[1] = [k(" 添加 ")])), _: 1 })]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
|
|
48
|
+
return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
|
|
49
49
|
var t2;
|
|
50
|
-
} }, { default: u(() => C3[4] || (C3[4] = [
|
|
50
|
+
} }, { default: u(() => C3[4] || (C3[4] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js
CHANGED
|
@@ -9,10 +9,10 @@ import "element-plus/es/components/select/style/css";
|
|
|
9
9
|
import "element-plus/es/components/option/style/css";
|
|
10
10
|
import "element-plus/es/components/table-column/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
|
-
import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as
|
|
13
|
-
import
|
|
14
|
-
import { v4 as
|
|
15
|
-
const
|
|
12
|
+
import { defineComponent as i, createBlock as p, openBlock as d, withCtx as u, createVNode as c, createElementBlock as y, toDisplayString as w, Fragment as f, renderList as v, createCommentVNode as b, unref as V, createTextVNode as k } from "vue";
|
|
13
|
+
import g from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
14
|
+
import { v4 as h } from "uuid";
|
|
15
|
+
const _ = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", props: { modelValue: { type: Array, default: () => [] }, contentType: { type: String, default: "" } }, emits: ["update:modelValue"], setup(i2, { expose: C2, emit: $ }) {
|
|
16
16
|
const z = $, T = i2;
|
|
17
17
|
T.modelValue && 0 !== T.modelValue.length || z("update:modelValue", []);
|
|
18
18
|
const U = ["any", "object", "array"], A = (e2) => {
|
|
@@ -31,23 +31,23 @@ const h = { key: 0 }, x = { key: 0 }, C = i({ __name: "response-xml-setting", pr
|
|
|
31
31
|
const o2 = e2[t2];
|
|
32
32
|
if (o2.items && o2.items.length > 0 && L(o2.items, l2), o2.code === l2.code) return void e2.splice(t2, 1);
|
|
33
33
|
}
|
|
34
|
-
}, q = () => ({ level: 0, code:
|
|
35
|
-
return C2({}), (
|
|
34
|
+
}, q = () => ({ level: 0, code: h(), name: "", paramType: "any", value: "", items: [], $editing: true });
|
|
35
|
+
return C2({}), (h2, C3) => {
|
|
36
36
|
const $2 = t, z2 = l, D = s, R = o, S = n, B = r, F = m, G = a, H = e;
|
|
37
|
-
return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: A, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span",
|
|
37
|
+
return d(), p(H, { data: i2.modelValue, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", size: "small", onRowDblclick: A, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: u(() => [c(z2, { prop: "name", label: "返回值字段" }, { default: u((e2) => [e2.row.$editing ? (d(), p($2, { key: 1, size: "small", disabled: e2.row.isArrayElement, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (d(), y("span", _, w(e2.row.name), 1))]), _: 1 }), c(z2, { prop: "paramType", width: "100", label: "类型" }, { default: u((e2) => [e2.row.$editing ? (d(), p(R, { key: 1, modelValue: e2.row.paramType, "onUpdate:modelValue": (l2) => e2.row.paramType = l2, onChange: (l2) => {
|
|
38
38
|
return t2 = l2, e2.$index, o2 = e2.row, void ("array" === t2 || o2.items && o2.items.length > 0 && ("object" === t2 ? o2.items = [] : o2.items && delete o2.items));
|
|
39
39
|
var t2, o2;
|
|
40
|
-
}, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ?
|
|
40
|
+
}, placeholder: "", size: "small" }, { default: u(() => [(d(), y(f, null, v(U, (e3) => c(D, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (d(), y("span", x, w(e2.row.paramType), 1))]), _: 1 }), c(z2, { prop: "value", label: "设置到" }, { default: u((e2) => [e2.row.isArrayElement ? b("", true) : (d(), p(V(g), { key: 0, showLabel: !e2.row.$editing, size: "small", paramTypes: ["request", "data", "service"], modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), c(z2, { align: "center", width: 150 }, { header: u(() => [c(S, { type: "primary", size: "small", onClick: E, link: "" }, { default: u(() => C3[0] || (C3[0] = [k("添加 ")])), _: 1 })]), default: u((e2) => [c(G, { size: "small", style: { "vertical-align": "middle" } }, { dropdown: u(() => [c(F, null, { default: u(() => ["object" === e2.row.paramType ? (d(), p(B, { key: 0, onClick: (l2) => ((e3, l3) => {
|
|
41
41
|
l3.items || (l3.items = []);
|
|
42
42
|
const t2 = q();
|
|
43
43
|
t2.level = l3.level + 1, l3.items.push(t2);
|
|
44
|
-
})(e2.$index, e2.row) }, { default: u(() => C3[1] || (C3[1] = [
|
|
44
|
+
})(e2.$index, e2.row) }, { default: u(() => C3[1] || (C3[1] = [k("添加下级节点")])), _: 2 }, 1032, ["onClick"])) : b("", true), e2.row.isArrayElement ? b("", true) : (d(), p(B, { key: 1, onClick: (l2) => {
|
|
45
45
|
return e2.$index, t2 = e2.row, void j(T.modelValue, t2);
|
|
46
46
|
var t2;
|
|
47
|
-
} }, { default: u(() => C3[2] || (C3[2] = [
|
|
48
|
-
return e2.$index, t2 = e2.row,
|
|
47
|
+
} }, { default: u(() => C3[2] || (C3[2] = [k("添加相邻节点")])), _: 2 }, 1032, ["onClick"]))]), _: 2 }, 1024)]), default: u(() => [c(S, { type: "primary", link: "", size: "small" }, { default: u(() => [k(" 添加 " + w(e2.row.type), 1)]), _: 2 }, 1024)]), _: 2 }, 1024), c(S, { type: "danger", size: "small", disabled: e2.row.isArrayElement, link: "", onClick: (l2) => {
|
|
48
|
+
return e2.$index, t2 = e2.row, void L(T.modelValue, t2);
|
|
49
49
|
var t2;
|
|
50
|
-
} }, { default: u(() => C3[3] || (C3[3] = [
|
|
50
|
+
} }, { default: u(() => C3[3] || (C3[3] = [k(" 删除 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
|
@@ -3,21 +3,18 @@ import { initNodes as o, serviceComponentGroups as t } from "../service-componen
|
|
|
3
3
|
import s from "../flow/edge/CustomLine.js";
|
|
4
4
|
import r from "@logicflow/core";
|
|
5
5
|
import { Dagre as c } from "@logicflow/layout";
|
|
6
|
-
import { Menu as i, DndPanel as n, SelectionSelect as l, MiniMap as
|
|
6
|
+
import { Menu as i, DndPanel as n, SelectionSelect as l, MiniMap as d, Group as a } from "@logicflow/extension";
|
|
7
7
|
const p = [{ type: "zoomOut", desc: "缩小", class: "serviceflow-control-item-zoomOut" }, { type: "zoomIn", desc: "放大", class: "serviceflow-control-item-zoomIn" }, { type: "fit", desc: "适应", class: "serviceflow-control-item-fit" }, { type: "undo", desc: "上一步", class: "serviceflow-control-item-undo" }, { type: "redo", desc: "下一步", class: "serviceflow-control-item-redo" }, { type: "reset", desc: "定位还原", class: "custom-reset" }, { type: "select", desc: "框选", class: "custom-select", clickStyle: true }, { type: "beautify", desc: "一键美化", class: "custom-beautify" }];
|
|
8
8
|
function f(e2) {
|
|
9
|
-
return new r({ container: e2, grid: { visible: false, size: 2 }, background: {}, plugins: [i, n, l,
|
|
9
|
+
return new r({ container: e2, grid: { visible: false, size: 2 }, background: {}, plugins: [i, n, l, d, a, c] });
|
|
10
10
|
}
|
|
11
11
|
function u(e2) {
|
|
12
12
|
e2.addNode({ id: "start", type: "start", x: 620, y: 50, properties: {} }), e2.addNode({ type: "end", x: 620, y: 550, properties: {} });
|
|
13
13
|
}
|
|
14
14
|
const m = (e2) => {
|
|
15
15
|
if (e2) {
|
|
16
|
-
for (const t2 of o)
|
|
17
|
-
for (const o2 of t)
|
|
18
|
-
o2.label;
|
|
19
|
-
for (const t2 of o2.items) t2.type, t2.label, e2.register(t2.nodeAndView);
|
|
20
|
-
}
|
|
16
|
+
for (const t2 of o) e2.register(t2.nodeAndView);
|
|
17
|
+
for (const o2 of t) for (const t2 of o2.items) e2.register(t2.nodeAndView);
|
|
21
18
|
e2.register(s), e2.setDefaultEdgeType("customLine");
|
|
22
19
|
}
|
|
23
20
|
};
|