service-flow-designer 0.0.2-tmp7 → 1.0.2
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/value-set-input/option.js +4 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.css +3 -3
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.d.ts +0 -8
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +1 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +15 -155
- package/dist/es/designer/service-components/base/custom-function/index.css +2 -4
- package/dist/es/designer/service-components/base/judge-condition/index.css +2 -4
- package/dist/es/designer/service-components/base/notification/config.vue2.js +0 -5
- package/dist/es/designer/service-components/base/notification/index.css +2 -4
- package/dist/es/designer/service-components/computation/clean/index.css +2 -4
- package/dist/es/designer/service-components/computation/connect/index.css +2 -4
- package/dist/es/designer/service-components/computation/sort/index.css +2 -4
- package/dist/es/designer/service-components/computation/split-joint/index.css +2 -4
- package/dist/es/designer/service-components/computation/statistics/index.css +2 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.css +2 -2
- 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 +93 -161
- package/dist/es/designer/service-components/database/aggregate-query/dimension-additional.vue.js +186 -0
- package/dist/es/designer/service-components/database/aggregate-query/dimension-additional.vue2.js +4 -0
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +13 -37
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +55 -203
- package/dist/es/designer/service-components/database/aggregate-query/index.css +8 -10
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +3 -8
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +17 -21
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.d.ts +2 -6
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -23
- package/dist/es/designer/service-components/database/dynamic-sql/index.css +2 -4
- package/dist/es/designer/service-components/database/regular-query/index.css +2 -4
- package/dist/es/designer/service-components/service/custom-bean/index.css +2 -4
- package/dist/es/designer/service-components/service/http-service/index.css +2 -4
- package/dist/es/designer/service-components/util/common-options.js +8 -10
- package/dist/es/designer/service-flow-view/service-node-config.css +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
- package/dist/es/designer/service-flow-view/service-params.vue.js +18 -44
- package/dist/es/designer/service-flow-view/service-result.vue.js +57 -89
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/assets/icon/end.svg.js +3 -0
- package/dist/lib/assets/icon/start.png.js +3 -0
- package/dist/lib/assets/icon/vardef-v.png.js +3 -0
- package/dist/lib/designer/common/components/database-select.css +10 -0
- package/dist/lib/designer/common/components/database-select.vue.js +6 -0
- package/dist/lib/designer/common/components/database-select.vue2.js +217 -0
- package/dist/lib/designer/common/components/datatable-select.css +10 -0
- package/dist/lib/designer/common/components/datatable-select.vue.js +6 -0
- package/dist/lib/designer/common/components/datatable-select.vue2.js +307 -0
- package/dist/lib/designer/common/components/file-upload.css +7 -0
- package/dist/lib/designer/common/components/file-upload.vue.js +6 -0
- package/dist/lib/designer/common/components/file-upload.vue2.js +103 -0
- package/dist/lib/designer/common/components/json-view/json-view-dialog.vue.js +63 -0
- package/dist/lib/designer/common/components/json-view/json-view-dialog.vue2.js +3 -0
- package/dist/lib/designer/common/components/json-view/json-view.vue.js +141 -0
- package/dist/lib/designer/common/components/json-view/json-view.vue2.js +3 -0
- package/dist/lib/designer/common/components/node-base-config.vue.js +69 -0
- package/dist/lib/designer/common/components/node-base-config.vue2.js +3 -0
- package/dist/lib/designer/common/components/value-set-input/index.js +3 -0
- package/dist/lib/designer/common/components/value-set-input/option.js +62 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.css +14 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue.d.ts +0 -8
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue.js +6 -0
- package/dist/lib/designer/common/components/value-set-input/value-set-input.vue2.js +431 -0
- package/dist/lib/designer/common/util/node-util.js +56 -0
- package/dist/lib/designer/desginer-index.css +24 -0
- package/dist/lib/designer/desginer-index.vue.js +6 -0
- package/dist/lib/designer/desginer-index.vue2.js +113 -0
- package/dist/lib/designer/flow/base/AbLogicNode.js +28 -0
- package/dist/lib/designer/flow/base/AbLogicNodeModel.js +70 -0
- package/dist/lib/designer/flow/base/AbLogicResizeNode.js +28 -0
- package/dist/lib/designer/flow/base/AbLogicResizeNodeModel.js +44 -0
- package/dist/lib/designer/flow/edge/CustomLine.js +48 -0
- package/dist/lib/designer/service-components/base/custom-function/config.css +13 -0
- package/dist/lib/designer/service-components/base/custom-function/config.vue.js +6 -0
- package/dist/lib/designer/service-components/base/custom-function/config.vue2.js +320 -0
- package/dist/lib/designer/service-components/base/custom-function/index.css +49 -0
- package/dist/lib/designer/service-components/base/custom-function/index.js +38 -0
- package/dist/lib/designer/service-components/base/custom-function/index.vue.js +6 -0
- package/dist/lib/designer/service-components/base/custom-function/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/base/end-node/index.css +20 -0
- package/dist/lib/designer/service-components/base/end-node/index.js +83 -0
- package/dist/lib/designer/service-components/base/end-node/index.vue.js +6 -0
- package/dist/lib/designer/service-components/base/end-node/index.vue2.js +30 -0
- package/dist/lib/designer/service-components/base/judge-condition/config.vue.js +3 -0
- package/dist/lib/designer/service-components/base/judge-condition/config.vue2.js +588 -0
- package/dist/lib/designer/service-components/base/judge-condition/index.css +50 -0
- package/dist/lib/designer/service-components/base/judge-condition/index.js +48 -0
- package/dist/lib/designer/service-components/base/judge-condition/index.vue.js +6 -0
- package/dist/lib/designer/service-components/base/judge-condition/index.vue2.js +66 -0
- package/dist/lib/designer/service-components/base/loop-node/config.css +4 -0
- package/dist/lib/designer/service-components/base/loop-node/config.vue.js +6 -0
- package/dist/lib/designer/service-components/base/loop-node/config.vue2.js +79 -0
- package/dist/lib/designer/service-components/base/loop-node/index.css +20 -0
- package/dist/lib/designer/service-components/base/loop-node/index.js +176 -0
- package/dist/lib/designer/service-components/base/notification/config.vue.js +3 -0
- package/dist/lib/designer/service-components/base/notification/config.vue2.js +333 -0
- package/dist/lib/designer/service-components/base/notification/index.css +49 -0
- package/dist/lib/designer/service-components/base/notification/index.js +38 -0
- package/dist/lib/designer/service-components/base/notification/index.vue.js +6 -0
- package/dist/lib/designer/service-components/base/notification/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/base/notification/recipients-select.css +4 -0
- package/dist/lib/designer/service-components/base/notification/recipients-select.vue.js +6 -0
- package/dist/lib/designer/service-components/base/notification/recipients-select.vue2.js +152 -0
- package/dist/lib/designer/service-components/base/notification/select-mail-template.vue.js +109 -0
- package/dist/lib/designer/service-components/base/notification/select-mail-template.vue2.js +3 -0
- package/dist/lib/designer/service-components/base/start-node/index.css +20 -0
- package/dist/lib/designer/service-components/base/start-node/index.js +84 -0
- package/dist/lib/designer/service-components/base/start-node/index.vue.js +6 -0
- package/dist/lib/designer/service-components/base/start-node/index.vue2.js +30 -0
- package/dist/lib/designer/service-components/computation/clean/config.css +10 -0
- package/dist/lib/designer/service-components/computation/clean/config.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/clean/config.vue2.js +433 -0
- package/dist/lib/designer/service-components/computation/clean/index.css +49 -0
- package/dist/lib/designer/service-components/computation/clean/index.js +38 -0
- package/dist/lib/designer/service-components/computation/clean/index.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/clean/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/computation/connect/config.css +7 -0
- package/dist/lib/designer/service-components/computation/connect/config.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/connect/config.vue2.js +521 -0
- package/dist/lib/designer/service-components/computation/connect/index.css +49 -0
- package/dist/lib/designer/service-components/computation/connect/index.js +38 -0
- package/dist/lib/designer/service-components/computation/connect/index.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/connect/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/computation/sort/config.css +10 -0
- package/dist/lib/designer/service-components/computation/sort/config.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/sort/config.vue2.js +312 -0
- package/dist/lib/designer/service-components/computation/sort/index.css +49 -0
- package/dist/lib/designer/service-components/computation/sort/index.js +38 -0
- package/dist/lib/designer/service-components/computation/sort/index.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/sort/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/computation/split-joint/config.css +7 -0
- package/dist/lib/designer/service-components/computation/split-joint/config.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/split-joint/config.vue2.js +342 -0
- package/dist/lib/designer/service-components/computation/split-joint/index.css +49 -0
- package/dist/lib/designer/service-components/computation/split-joint/index.js +38 -0
- package/dist/lib/designer/service-components/computation/split-joint/index.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/split-joint/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/computation/statistics/config.css +7 -0
- package/dist/lib/designer/service-components/computation/statistics/config.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/statistics/config.vue2.js +451 -0
- package/dist/lib/designer/service-components/computation/statistics/index.css +49 -0
- package/dist/lib/designer/service-components/computation/statistics/index.js +38 -0
- package/dist/lib/designer/service-components/computation/statistics/index.vue.js +6 -0
- package/dist/lib/designer/service-components/computation/statistics/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/database/aggregate-query/config.css +7 -0
- package/dist/lib/designer/service-components/database/aggregate-query/config.vue.js +6 -0
- package/dist/lib/designer/service-components/database/aggregate-query/config.vue2.js +283 -0
- package/dist/lib/designer/service-components/database/aggregate-query/dimension-additional.vue.js +185 -0
- package/dist/lib/designer/service-components/database/aggregate-query/dimension-additional.vue2.js +3 -0
- package/dist/lib/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +203 -0
- package/dist/lib/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +3 -0
- package/dist/lib/designer/service-components/database/aggregate-query/filter-conditions.vue.js +298 -0
- package/dist/lib/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +3 -0
- package/dist/lib/designer/service-components/database/aggregate-query/index.css +50 -0
- package/dist/lib/designer/service-components/database/aggregate-query/index.js +48 -0
- package/dist/lib/designer/service-components/database/aggregate-query/index.vue.js +6 -0
- package/dist/lib/designer/service-components/database/aggregate-query/index.vue2.js +89 -0
- package/dist/lib/designer/service-components/database/aggregate-query/sort-conditions.vue.js +182 -0
- package/dist/lib/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +3 -0
- package/dist/lib/designer/service-components/database/aggregate-query/statistical-formula.vue.d.ts +2 -6
- package/dist/lib/designer/service-components/database/aggregate-query/statistical-formula.vue.js +187 -0
- package/dist/lib/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +3 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/config.css +13 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/config.vue.js +6 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/config.vue2.js +504 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/index.css +49 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/index.js +38 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/index.vue.js +6 -0
- package/dist/lib/designer/service-components/database/dynamic-sql/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/database/regular-query/config.css +7 -0
- package/dist/lib/designer/service-components/database/regular-query/config.vue.js +6 -0
- package/dist/lib/designer/service-components/database/regular-query/config.vue2.js +674 -0
- package/dist/lib/designer/service-components/database/regular-query/index.css +50 -0
- package/dist/lib/designer/service-components/database/regular-query/index.js +48 -0
- package/dist/lib/designer/service-components/database/regular-query/index.vue.js +6 -0
- package/dist/lib/designer/service-components/database/regular-query/index.vue2.js +89 -0
- package/dist/lib/designer/service-components/index.js +230 -0
- package/dist/lib/designer/service-components/service/common/cookie-data.vue.js +131 -0
- package/dist/lib/designer/service-components/service/common/cookie-data.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/common/form-data.vue.js +161 -0
- package/dist/lib/designer/service-components/service/common/form-data.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/common/header-data.vue.js +132 -0
- package/dist/lib/designer/service-components/service/common/header-data.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/common/json-data.css +4 -0
- package/dist/lib/designer/service-components/service/common/json-data.vue.js +6 -0
- package/dist/lib/designer/service-components/service/common/json-data.vue2.js +133 -0
- package/dist/lib/designer/service-components/service/common/param-config.css +7 -0
- package/dist/lib/designer/service-components/service/common/param-config.vue.js +6 -0
- package/dist/lib/designer/service-components/service/common/param-config.vue2.js +222 -0
- package/dist/lib/designer/service-components/service/common/query-params.vue.js +132 -0
- package/dist/lib/designer/service-components/service/common/query-params.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/common/raw-data.vue.js +95 -0
- package/dist/lib/designer/service-components/service/common/raw-data.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/custom-bean/config.vue.js +3 -0
- package/dist/lib/designer/service-components/service/custom-bean/config.vue2.js +70 -0
- package/dist/lib/designer/service-components/service/custom-bean/index.css +49 -0
- package/dist/lib/designer/service-components/service/custom-bean/index.js +38 -0
- package/dist/lib/designer/service-components/service/custom-bean/index.vue.js +6 -0
- package/dist/lib/designer/service-components/service/custom-bean/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/service/http-service/config.css +7 -0
- package/dist/lib/designer/service-components/service/http-service/config.vue.js +6 -0
- package/dist/lib/designer/service-components/service/http-service/config.vue2.js +307 -0
- package/dist/lib/designer/service-components/service/http-service/index.css +49 -0
- package/dist/lib/designer/service-components/service/http-service/index.js +38 -0
- package/dist/lib/designer/service-components/service/http-service/index.vue.js +6 -0
- package/dist/lib/designer/service-components/service/http-service/index.vue2.js +43 -0
- package/dist/lib/designer/service-components/service/http-service/response-json-setting.vue.js +274 -0
- package/dist/lib/designer/service-components/service/http-service/response-json-setting.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/http-service/response-text-setting.vue.js +67 -0
- package/dist/lib/designer/service-components/service/http-service/response-text-setting.vue2.js +3 -0
- package/dist/lib/designer/service-components/service/http-service/response-xml-setting.vue.js +274 -0
- package/dist/lib/designer/service-components/service/http-service/response-xml-setting.vue2.js +3 -0
- package/dist/lib/designer/service-components/util/common-options.js +131 -0
- package/dist/lib/designer/service-flow-view/flow-tool-util.js +44 -0
- package/dist/lib/designer/service-flow-view/flow-util.js +123 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.css +130 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-flow-tool.vue2.js +193 -0
- package/dist/lib/designer/service-flow-view/service-node-config.css +10 -0
- package/dist/lib/designer/service-flow-view/service-node-config.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-node-config.vue2.js +152 -0
- package/dist/lib/designer/service-flow-view/service-params.vue.js +402 -0
- package/dist/lib/designer/service-flow-view/service-params.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-result.vue.js +284 -0
- package/dist/lib/designer/service-flow-view/service-result.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-test/request-params.vue.js +321 -0
- package/dist/lib/designer/service-flow-view/service-test/request-params.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-test/service-test.vue.js +449 -0
- package/dist/lib/designer/service-flow-view/service-test/service-test.vue2.js +3 -0
- package/dist/lib/designer/service-flow-view/service-update-log.css +5 -0
- package/dist/lib/designer/service-flow-view/service-update-log.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/service-update-log.vue2.js +214 -0
- package/dist/lib/designer/service-flow-view/view-index.css +102 -0
- package/dist/lib/designer/service-flow-view/view-index.vue.js +6 -0
- package/dist/lib/designer/service-flow-view/view-index.vue2.js +353 -0
- package/dist/lib/designer/service-panel/component-panel.css +66 -0
- package/dist/lib/designer/service-panel/component-panel.vue.js +6 -0
- package/dist/lib/designer/service-panel/component-panel.vue2.js +93 -0
- package/dist/lib/designer/service-panel/service-list.css +36 -0
- package/dist/lib/designer/service-panel/service-list.vue.js +6 -0
- package/dist/lib/designer/service-panel/service-list.vue2.js +351 -0
- package/dist/lib/designer/service-panel/service-panel.css +41 -0
- package/dist/lib/designer/service-panel/service-panel.vue.js +6 -0
- package/dist/lib/designer/service-panel/service-panel.vue2.js +80 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.js +3 -0
- package/dist/lib/stores/page-store.js +79 -0
- package/package.json +14 -13
- package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +0 -19
- package/dist/es/utils/common-util.d.ts +0 -21
- package/dist/es/utils/common-util.js +0 -235
- package/dist/lib/designer/service-components/base/notification/quill-example.vue.d.ts +0 -19
- package/dist/lib/utils/common-util.d.ts +0 -21
package/dist/lib/designer/service-components/service/http-service/response-json-setting.vue.js
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const es = require("element-plus/es");
|
|
3
|
+
require("element-plus/es/components/base/style/css");
|
|
4
|
+
require("element-plus/es/components/table/style/css");
|
|
5
|
+
require("element-plus/es/components/dropdown/style/css");
|
|
6
|
+
require("element-plus/es/components/dropdown-menu/style/css");
|
|
7
|
+
require("element-plus/es/components/dropdown-item/style/css");
|
|
8
|
+
require("element-plus/es/components/button/style/css");
|
|
9
|
+
require("element-plus/es/components/select/style/css");
|
|
10
|
+
require("element-plus/es/components/option/style/css");
|
|
11
|
+
require("element-plus/es/components/table-column/style/css");
|
|
12
|
+
require("element-plus/es/components/input/style/css");
|
|
13
|
+
const vue = require("vue");
|
|
14
|
+
const valueSetInput = require("../../../common/components/value-set-input/value-set-input.vue.js");
|
|
15
|
+
const uuid = require("uuid");
|
|
16
|
+
const _hoisted_1 = { key: 0 };
|
|
17
|
+
const _hoisted_2 = { key: 0 };
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
__name: "response-json-setting",
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
contentType: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue"],
|
|
33
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
34
|
+
const emits = __emit;
|
|
35
|
+
const props = __props;
|
|
36
|
+
if (!props.modelValue || props.modelValue.length === 0) {
|
|
37
|
+
emits("update:modelValue", []);
|
|
38
|
+
}
|
|
39
|
+
const typeOptions = ["any", "object", "array"];
|
|
40
|
+
const rowDblclick = (row) => {
|
|
41
|
+
row.$editing = true;
|
|
42
|
+
};
|
|
43
|
+
const typeChange = (value, index, row) => {
|
|
44
|
+
if (value === "array")
|
|
45
|
+
;
|
|
46
|
+
else if (row.items && row.items.length > 0) {
|
|
47
|
+
if (value === "object") {
|
|
48
|
+
row.items = [];
|
|
49
|
+
} else {
|
|
50
|
+
if (row.items) {
|
|
51
|
+
delete row.items;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const addRootRow = () => {
|
|
57
|
+
props.modelValue.push(getNewItem());
|
|
58
|
+
};
|
|
59
|
+
const addChildrenItem = (index, row) => {
|
|
60
|
+
if (!row.items) {
|
|
61
|
+
row.items = [];
|
|
62
|
+
}
|
|
63
|
+
const item = getNewItem();
|
|
64
|
+
item.level = row.level + 1;
|
|
65
|
+
row.items.push(item);
|
|
66
|
+
};
|
|
67
|
+
const addAdjacentNode = (index, row) => {
|
|
68
|
+
clidNodeAddAdjacentNode(props.modelValue, row);
|
|
69
|
+
};
|
|
70
|
+
const clidNodeAddAdjacentNode = (tableData, clickRow) => {
|
|
71
|
+
tableData.forEach((row, index) => {
|
|
72
|
+
if (row.code === clickRow.code) {
|
|
73
|
+
const item = getNewItem();
|
|
74
|
+
item.level = row.level;
|
|
75
|
+
tableData.splice(index + 1, 0, item);
|
|
76
|
+
} else {
|
|
77
|
+
if (row.items && row.items.length > 0) {
|
|
78
|
+
clidNodeAddAdjacentNode(row.items, clickRow);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const handleDelete = (index, row) => {
|
|
84
|
+
console.log(row, props.modelValue, "===========");
|
|
85
|
+
deleteClidNode(props.modelValue, row);
|
|
86
|
+
};
|
|
87
|
+
const deleteClidNode = (tableData, clickRow) => {
|
|
88
|
+
for (let index = 0; index < tableData.length; index++) {
|
|
89
|
+
const row = tableData[index];
|
|
90
|
+
if (row.items && row.items.length > 0) {
|
|
91
|
+
deleteClidNode(row.items, clickRow);
|
|
92
|
+
}
|
|
93
|
+
if (row.code === clickRow.code) {
|
|
94
|
+
tableData.splice(index, 1);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const getNewItem = () => {
|
|
100
|
+
return {
|
|
101
|
+
level: 0,
|
|
102
|
+
code: uuid.v4(),
|
|
103
|
+
name: "",
|
|
104
|
+
paramType: "any",
|
|
105
|
+
value: "",
|
|
106
|
+
items: [],
|
|
107
|
+
$editing: true
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
__expose({});
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
const _component_el_input = es.ElInput;
|
|
113
|
+
const _component_el_table_column = es.ElTableColumn;
|
|
114
|
+
const _component_el_option = es.ElOption;
|
|
115
|
+
const _component_el_select = es.ElSelect;
|
|
116
|
+
const _component_el_button = es.ElButton;
|
|
117
|
+
const _component_el_dropdown_item = es.ElDropdownItem;
|
|
118
|
+
const _component_el_dropdown_menu = es.ElDropdownMenu;
|
|
119
|
+
const _component_el_dropdown = es.ElDropdown;
|
|
120
|
+
const _component_el_table = es.ElTable;
|
|
121
|
+
return vue.openBlock(), vue.createBlock(_component_el_table, {
|
|
122
|
+
data: __props.modelValue,
|
|
123
|
+
style: { "width": "100%", "margin-top": "20px", "margin-bottom": "20px" },
|
|
124
|
+
"row-key": "code",
|
|
125
|
+
size: "small",
|
|
126
|
+
onRowDblclick: rowDblclick,
|
|
127
|
+
border: "",
|
|
128
|
+
"tree-props": { children: "items" },
|
|
129
|
+
"default-expand-all": ""
|
|
130
|
+
}, {
|
|
131
|
+
default: vue.withCtx(() => [
|
|
132
|
+
vue.createVNode(_component_el_table_column, {
|
|
133
|
+
prop: "name",
|
|
134
|
+
label: "返回值字段"
|
|
135
|
+
}, {
|
|
136
|
+
default: vue.withCtx((scope) => [
|
|
137
|
+
!scope.row.$editing ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(scope.row.name), 1)) : (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
138
|
+
key: 1,
|
|
139
|
+
size: "small",
|
|
140
|
+
disabled: scope.row.isArrayElement,
|
|
141
|
+
modelValue: scope.row.name,
|
|
142
|
+
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
143
|
+
placeholder: ""
|
|
144
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"]))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
vue.createVNode(_component_el_table_column, {
|
|
149
|
+
prop: "paramType",
|
|
150
|
+
width: "100",
|
|
151
|
+
label: "类型"
|
|
152
|
+
}, {
|
|
153
|
+
default: vue.withCtx((scope) => [
|
|
154
|
+
!scope.row.$editing ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(scope.row.paramType), 1)) : (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
155
|
+
key: 1,
|
|
156
|
+
modelValue: scope.row.paramType,
|
|
157
|
+
"onUpdate:modelValue": ($event) => scope.row.paramType = $event,
|
|
158
|
+
onChange: ($event) => typeChange($event, scope.$index, scope.row),
|
|
159
|
+
placeholder: "",
|
|
160
|
+
size: "small"
|
|
161
|
+
}, {
|
|
162
|
+
default: vue.withCtx(() => [
|
|
163
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions, (item) => {
|
|
164
|
+
return vue.createVNode(_component_el_option, {
|
|
165
|
+
key: item,
|
|
166
|
+
label: item,
|
|
167
|
+
value: item
|
|
168
|
+
}, null, 8, ["label", "value"]);
|
|
169
|
+
}), 64))
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}),
|
|
176
|
+
vue.createVNode(_component_el_table_column, {
|
|
177
|
+
prop: "value",
|
|
178
|
+
label: "设置到"
|
|
179
|
+
}, {
|
|
180
|
+
default: vue.withCtx((scope) => [
|
|
181
|
+
!scope.row.isArrayElement ? (vue.openBlock(), vue.createBlock(vue.unref(valueSetInput), {
|
|
182
|
+
key: 0,
|
|
183
|
+
showLabel: !scope.row.$editing,
|
|
184
|
+
size: "small",
|
|
185
|
+
paramTypes: ["request", "data", "service"],
|
|
186
|
+
modelValue: scope.row.value,
|
|
187
|
+
"onUpdate:modelValue": ($event) => scope.row.value = $event
|
|
188
|
+
}, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
vue.createVNode(_component_el_table_column, {
|
|
193
|
+
align: "center",
|
|
194
|
+
width: 150
|
|
195
|
+
}, {
|
|
196
|
+
header: vue.withCtx(() => [
|
|
197
|
+
vue.createVNode(_component_el_button, {
|
|
198
|
+
type: "primary",
|
|
199
|
+
size: "small",
|
|
200
|
+
onClick: addRootRow,
|
|
201
|
+
link: ""
|
|
202
|
+
}, {
|
|
203
|
+
default: vue.withCtx(() => [
|
|
204
|
+
vue.createTextVNode("添加 ")
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
default: vue.withCtx((scope) => [
|
|
210
|
+
vue.createVNode(_component_el_dropdown, {
|
|
211
|
+
size: "small",
|
|
212
|
+
style: { "vertical-align": "middle" }
|
|
213
|
+
}, {
|
|
214
|
+
dropdown: vue.withCtx(() => [
|
|
215
|
+
vue.createVNode(_component_el_dropdown_menu, null, {
|
|
216
|
+
default: vue.withCtx(() => [
|
|
217
|
+
scope.row.paramType === "object" ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
218
|
+
key: 0,
|
|
219
|
+
onClick: ($event) => addChildrenItem(scope.$index, scope.row)
|
|
220
|
+
}, {
|
|
221
|
+
default: vue.withCtx(() => [
|
|
222
|
+
vue.createTextVNode("添加下级节点")
|
|
223
|
+
]),
|
|
224
|
+
_: 2
|
|
225
|
+
}, 1032, ["onClick"])) : vue.createCommentVNode("", true),
|
|
226
|
+
!scope.row.isArrayElement ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
227
|
+
key: 1,
|
|
228
|
+
onClick: ($event) => addAdjacentNode(scope.$index, scope.row)
|
|
229
|
+
}, {
|
|
230
|
+
default: vue.withCtx(() => [
|
|
231
|
+
vue.createTextVNode("添加相邻节点")
|
|
232
|
+
]),
|
|
233
|
+
_: 2
|
|
234
|
+
}, 1032, ["onClick"])) : vue.createCommentVNode("", true)
|
|
235
|
+
]),
|
|
236
|
+
_: 2
|
|
237
|
+
}, 1024)
|
|
238
|
+
]),
|
|
239
|
+
default: vue.withCtx(() => [
|
|
240
|
+
vue.createVNode(_component_el_button, {
|
|
241
|
+
type: "primary",
|
|
242
|
+
link: "",
|
|
243
|
+
size: "small"
|
|
244
|
+
}, {
|
|
245
|
+
default: vue.withCtx(() => [
|
|
246
|
+
vue.createTextVNode(" 添加 ")
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
})
|
|
250
|
+
]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1024),
|
|
253
|
+
vue.createVNode(_component_el_button, {
|
|
254
|
+
type: "danger",
|
|
255
|
+
size: "small",
|
|
256
|
+
disabled: scope.row.isArrayElement,
|
|
257
|
+
link: "",
|
|
258
|
+
onClick: ($event) => handleDelete(scope.$index, scope.row)
|
|
259
|
+
}, {
|
|
260
|
+
default: vue.withCtx(() => [
|
|
261
|
+
vue.createTextVNode(" 删除 ")
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["disabled", "onClick"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}, 8, ["data"]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
module.exports = _sfc_main;
|
package/dist/lib/designer/service-components/service/http-service/response-text-setting.vue.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const es = require("element-plus/es");
|
|
3
|
+
require("element-plus/es/components/base/style/css");
|
|
4
|
+
require("element-plus/es/components/table/style/css");
|
|
5
|
+
require("element-plus/es/components/table-column/style/css");
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const valueSetInput = require("../../../common/components/value-set-input/value-set-input.vue.js");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "response-text-setting",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
contentType: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
24
|
+
const emits = __emit;
|
|
25
|
+
const props = __props;
|
|
26
|
+
if (!props.modelValue || props.modelValue.length === 0) {
|
|
27
|
+
emits("update:modelValue", [{ value: "" }]);
|
|
28
|
+
}
|
|
29
|
+
const rowDblclick = (row) => {
|
|
30
|
+
row.$editing = true;
|
|
31
|
+
};
|
|
32
|
+
__expose({});
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
const _component_el_table_column = es.ElTableColumn;
|
|
35
|
+
const _component_el_table = es.ElTable;
|
|
36
|
+
return vue.openBlock(), vue.createBlock(_component_el_table, {
|
|
37
|
+
data: __props.modelValue,
|
|
38
|
+
style: { "width": "100%", "margin-top": "20px", "margin-bottom": "20px" },
|
|
39
|
+
"row-key": "code",
|
|
40
|
+
size: "small",
|
|
41
|
+
onRowDblclick: rowDblclick,
|
|
42
|
+
border: "",
|
|
43
|
+
"tree-props": { children: "items" },
|
|
44
|
+
"default-expand-all": ""
|
|
45
|
+
}, {
|
|
46
|
+
default: vue.withCtx(() => [
|
|
47
|
+
vue.createVNode(_component_el_table_column, {
|
|
48
|
+
prop: "value",
|
|
49
|
+
label: "设置到"
|
|
50
|
+
}, {
|
|
51
|
+
default: vue.withCtx((scope) => [
|
|
52
|
+
vue.createVNode(vue.unref(valueSetInput), {
|
|
53
|
+
size: "small",
|
|
54
|
+
paramTypes: ["request", "data", "service"],
|
|
55
|
+
modelValue: scope.row.value,
|
|
56
|
+
"onUpdate:modelValue": ($event) => scope.row.value = $event
|
|
57
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
})
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["data"]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const es = require("element-plus/es");
|
|
3
|
+
require("element-plus/es/components/base/style/css");
|
|
4
|
+
require("element-plus/es/components/table/style/css");
|
|
5
|
+
require("element-plus/es/components/dropdown/style/css");
|
|
6
|
+
require("element-plus/es/components/dropdown-menu/style/css");
|
|
7
|
+
require("element-plus/es/components/dropdown-item/style/css");
|
|
8
|
+
require("element-plus/es/components/button/style/css");
|
|
9
|
+
require("element-plus/es/components/select/style/css");
|
|
10
|
+
require("element-plus/es/components/option/style/css");
|
|
11
|
+
require("element-plus/es/components/table-column/style/css");
|
|
12
|
+
require("element-plus/es/components/input/style/css");
|
|
13
|
+
const vue = require("vue");
|
|
14
|
+
const valueSetInput = require("../../../common/components/value-set-input/value-set-input.vue.js");
|
|
15
|
+
const uuid = require("uuid");
|
|
16
|
+
const _hoisted_1 = { key: 0 };
|
|
17
|
+
const _hoisted_2 = { key: 0 };
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
__name: "response-xml-setting",
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
contentType: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue"],
|
|
33
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
34
|
+
const emits = __emit;
|
|
35
|
+
const props = __props;
|
|
36
|
+
if (!props.modelValue || props.modelValue.length === 0) {
|
|
37
|
+
emits("update:modelValue", []);
|
|
38
|
+
}
|
|
39
|
+
const typeOptions = ["any", "object", "array"];
|
|
40
|
+
const rowDblclick = (row) => {
|
|
41
|
+
row.$editing = true;
|
|
42
|
+
};
|
|
43
|
+
const typeChange = (value, index, row) => {
|
|
44
|
+
if (value === "array")
|
|
45
|
+
;
|
|
46
|
+
else if (row.items && row.items.length > 0) {
|
|
47
|
+
if (value === "object") {
|
|
48
|
+
row.items = [];
|
|
49
|
+
} else {
|
|
50
|
+
if (row.items) {
|
|
51
|
+
delete row.items;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const addRootRow = () => {
|
|
57
|
+
props.modelValue.push(getNewItem());
|
|
58
|
+
};
|
|
59
|
+
const addChildrenItem = (index, row) => {
|
|
60
|
+
if (!row.items) {
|
|
61
|
+
row.items = [];
|
|
62
|
+
}
|
|
63
|
+
const item = getNewItem();
|
|
64
|
+
item.level = row.level + 1;
|
|
65
|
+
row.items.push(item);
|
|
66
|
+
};
|
|
67
|
+
const addAdjacentNode = (index, row) => {
|
|
68
|
+
clidNodeAddAdjacentNode(props.modelValue, row);
|
|
69
|
+
};
|
|
70
|
+
const clidNodeAddAdjacentNode = (tableData, clickRow) => {
|
|
71
|
+
tableData.forEach((row, index) => {
|
|
72
|
+
if (row.code === clickRow.code) {
|
|
73
|
+
const item = getNewItem();
|
|
74
|
+
item.level = row.level;
|
|
75
|
+
tableData.splice(index + 1, 0, item);
|
|
76
|
+
} else {
|
|
77
|
+
if (row.items && row.items.length > 0) {
|
|
78
|
+
clidNodeAddAdjacentNode(row.items, clickRow);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const handleDelete = (index, row) => {
|
|
84
|
+
console.log(row, props.modelValue, "===========");
|
|
85
|
+
deleteClidNode(props.modelValue, row);
|
|
86
|
+
};
|
|
87
|
+
const deleteClidNode = (tableData, clickRow) => {
|
|
88
|
+
for (let index = 0; index < tableData.length; index++) {
|
|
89
|
+
const row = tableData[index];
|
|
90
|
+
if (row.items && row.items.length > 0) {
|
|
91
|
+
deleteClidNode(row.items, clickRow);
|
|
92
|
+
}
|
|
93
|
+
if (row.code === clickRow.code) {
|
|
94
|
+
tableData.splice(index, 1);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const getNewItem = () => {
|
|
100
|
+
return {
|
|
101
|
+
level: 0,
|
|
102
|
+
code: uuid.v4(),
|
|
103
|
+
name: "",
|
|
104
|
+
paramType: "any",
|
|
105
|
+
value: "",
|
|
106
|
+
items: [],
|
|
107
|
+
$editing: true
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
__expose({});
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
const _component_el_input = es.ElInput;
|
|
113
|
+
const _component_el_table_column = es.ElTableColumn;
|
|
114
|
+
const _component_el_option = es.ElOption;
|
|
115
|
+
const _component_el_select = es.ElSelect;
|
|
116
|
+
const _component_el_button = es.ElButton;
|
|
117
|
+
const _component_el_dropdown_item = es.ElDropdownItem;
|
|
118
|
+
const _component_el_dropdown_menu = es.ElDropdownMenu;
|
|
119
|
+
const _component_el_dropdown = es.ElDropdown;
|
|
120
|
+
const _component_el_table = es.ElTable;
|
|
121
|
+
return vue.openBlock(), vue.createBlock(_component_el_table, {
|
|
122
|
+
data: __props.modelValue,
|
|
123
|
+
style: { "width": "100%", "margin-top": "20px", "margin-bottom": "20px" },
|
|
124
|
+
"row-key": "code",
|
|
125
|
+
size: "small",
|
|
126
|
+
onRowDblclick: rowDblclick,
|
|
127
|
+
border: "",
|
|
128
|
+
"tree-props": { children: "items" },
|
|
129
|
+
"default-expand-all": ""
|
|
130
|
+
}, {
|
|
131
|
+
default: vue.withCtx(() => [
|
|
132
|
+
vue.createVNode(_component_el_table_column, {
|
|
133
|
+
prop: "name",
|
|
134
|
+
label: "返回值字段"
|
|
135
|
+
}, {
|
|
136
|
+
default: vue.withCtx((scope) => [
|
|
137
|
+
!scope.row.$editing ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(scope.row.name), 1)) : (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
138
|
+
key: 1,
|
|
139
|
+
size: "small",
|
|
140
|
+
disabled: scope.row.isArrayElement,
|
|
141
|
+
modelValue: scope.row.name,
|
|
142
|
+
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
143
|
+
placeholder: ""
|
|
144
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"]))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
vue.createVNode(_component_el_table_column, {
|
|
149
|
+
prop: "paramType",
|
|
150
|
+
width: "100",
|
|
151
|
+
label: "类型"
|
|
152
|
+
}, {
|
|
153
|
+
default: vue.withCtx((scope) => [
|
|
154
|
+
!scope.row.$editing ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(scope.row.paramType), 1)) : (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
155
|
+
key: 1,
|
|
156
|
+
modelValue: scope.row.paramType,
|
|
157
|
+
"onUpdate:modelValue": ($event) => scope.row.paramType = $event,
|
|
158
|
+
onChange: ($event) => typeChange($event, scope.$index, scope.row),
|
|
159
|
+
placeholder: "",
|
|
160
|
+
size: "small"
|
|
161
|
+
}, {
|
|
162
|
+
default: vue.withCtx(() => [
|
|
163
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions, (item) => {
|
|
164
|
+
return vue.createVNode(_component_el_option, {
|
|
165
|
+
key: item,
|
|
166
|
+
label: item,
|
|
167
|
+
value: item
|
|
168
|
+
}, null, 8, ["label", "value"]);
|
|
169
|
+
}), 64))
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}),
|
|
176
|
+
vue.createVNode(_component_el_table_column, {
|
|
177
|
+
prop: "value",
|
|
178
|
+
label: "设置到"
|
|
179
|
+
}, {
|
|
180
|
+
default: vue.withCtx((scope) => [
|
|
181
|
+
!scope.row.isArrayElement ? (vue.openBlock(), vue.createBlock(vue.unref(valueSetInput), {
|
|
182
|
+
key: 0,
|
|
183
|
+
showLabel: !scope.row.$editing,
|
|
184
|
+
size: "small",
|
|
185
|
+
paramTypes: ["request", "data", "service"],
|
|
186
|
+
modelValue: scope.row.value,
|
|
187
|
+
"onUpdate:modelValue": ($event) => scope.row.value = $event
|
|
188
|
+
}, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
vue.createVNode(_component_el_table_column, {
|
|
193
|
+
align: "center",
|
|
194
|
+
width: 150
|
|
195
|
+
}, {
|
|
196
|
+
header: vue.withCtx(() => [
|
|
197
|
+
vue.createVNode(_component_el_button, {
|
|
198
|
+
type: "primary",
|
|
199
|
+
size: "small",
|
|
200
|
+
onClick: addRootRow,
|
|
201
|
+
link: ""
|
|
202
|
+
}, {
|
|
203
|
+
default: vue.withCtx(() => [
|
|
204
|
+
vue.createTextVNode("添加 ")
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
default: vue.withCtx((scope) => [
|
|
210
|
+
vue.createVNode(_component_el_dropdown, {
|
|
211
|
+
size: "small",
|
|
212
|
+
style: { "vertical-align": "middle" }
|
|
213
|
+
}, {
|
|
214
|
+
dropdown: vue.withCtx(() => [
|
|
215
|
+
vue.createVNode(_component_el_dropdown_menu, null, {
|
|
216
|
+
default: vue.withCtx(() => [
|
|
217
|
+
scope.row.paramType === "object" ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
218
|
+
key: 0,
|
|
219
|
+
onClick: ($event) => addChildrenItem(scope.$index, scope.row)
|
|
220
|
+
}, {
|
|
221
|
+
default: vue.withCtx(() => [
|
|
222
|
+
vue.createTextVNode("添加下级节点")
|
|
223
|
+
]),
|
|
224
|
+
_: 2
|
|
225
|
+
}, 1032, ["onClick"])) : vue.createCommentVNode("", true),
|
|
226
|
+
!scope.row.isArrayElement ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
227
|
+
key: 1,
|
|
228
|
+
onClick: ($event) => addAdjacentNode(scope.$index, scope.row)
|
|
229
|
+
}, {
|
|
230
|
+
default: vue.withCtx(() => [
|
|
231
|
+
vue.createTextVNode("添加相邻节点")
|
|
232
|
+
]),
|
|
233
|
+
_: 2
|
|
234
|
+
}, 1032, ["onClick"])) : vue.createCommentVNode("", true)
|
|
235
|
+
]),
|
|
236
|
+
_: 2
|
|
237
|
+
}, 1024)
|
|
238
|
+
]),
|
|
239
|
+
default: vue.withCtx(() => [
|
|
240
|
+
vue.createVNode(_component_el_button, {
|
|
241
|
+
type: "primary",
|
|
242
|
+
link: "",
|
|
243
|
+
size: "small"
|
|
244
|
+
}, {
|
|
245
|
+
default: vue.withCtx(() => [
|
|
246
|
+
vue.createTextVNode(" 添加 " + vue.toDisplayString(scope.row.type), 1)
|
|
247
|
+
]),
|
|
248
|
+
_: 2
|
|
249
|
+
}, 1024)
|
|
250
|
+
]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1024),
|
|
253
|
+
vue.createVNode(_component_el_button, {
|
|
254
|
+
type: "danger",
|
|
255
|
+
size: "small",
|
|
256
|
+
disabled: scope.row.isArrayElement,
|
|
257
|
+
link: "",
|
|
258
|
+
onClick: ($event) => handleDelete(scope.$index, scope.row)
|
|
259
|
+
}, {
|
|
260
|
+
default: vue.withCtx(() => [
|
|
261
|
+
vue.createTextVNode(" 删除 ")
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["disabled", "onClick"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}, 8, ["data"]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
module.exports = _sfc_main;
|