service-flow-designer 2.1.58 → 2.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
- package/dist/es/assets/icon/base.png.js +2 -2
- package/dist/es/assets/icon/clean.svg.js +2 -2
- package/dist/es/assets/icon/condition.png.js +2 -2
- package/dist/es/assets/icon/connect.svg.js +2 -2
- package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
- package/dist/es/assets/icon/end.png.js +2 -2
- package/dist/es/assets/icon/end.svg.js +2 -2
- package/dist/es/assets/icon/function.png.js +2 -2
- package/dist/es/assets/icon/http-service.svg.js +2 -2
- package/dist/es/assets/icon/loop.svg.js +2 -2
- package/dist/es/assets/icon/notification.svg.js +2 -2
- package/dist/es/assets/icon/regularQuery.svg.js +2 -2
- package/dist/es/assets/icon/sort.svg.js +2 -2
- package/dist/es/assets/icon/split-joint.svg.js +2 -2
- package/dist/es/assets/icon/start.png.js +2 -2
- package/dist/es/assets/icon/statistics.svg.js +2 -2
- package/dist/es/assets/icon/vardef-v.png.js +2 -2
- package/dist/es/designer/common/components/database-select.vue.js +4 -4
- package/dist/es/designer/common/components/database-select.vue2.js +29 -205
- package/dist/es/designer/common/components/datatable-select.vue.js +4 -4
- package/dist/es/designer/common/components/datatable-select.vue2.js +52 -299
- package/dist/es/designer/common/components/file-upload.vue.js +4 -4
- package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +18 -60
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/json-view/json-view.vue.js +51 -137
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -2
- package/dist/es/designer/common/components/node-base-config.vue.js +7 -63
- package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +17 -62
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +30 -100
- package/dist/es/designer/common/components/value-set-input/index.js +2 -2
- package/dist/es/designer/common/components/value-set-input/option.js +6 -59
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +4 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +122 -557
- package/dist/es/designer/common/util/node-util.js +32 -42
- package/dist/es/designer/desginer-index.vue.js +4 -4
- package/dist/es/designer/desginer-index.vue2.js +31 -106
- package/dist/es/designer/flow/base/AbLogicNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -49
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -10
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +10 -26
- package/dist/es/designer/flow/edge/CustomLine.js +15 -42
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +55 -302
- package/dist/es/designer/service-components/base/custom-function/index.js +12 -34
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/end-node/index.js +25 -64
- package/dist/es/designer/service-components/base/end-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/base/judge-condition/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +61 -570
- package/dist/es/designer/service-components/base/judge-condition/index.js +13 -35
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +12 -63
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +4 -4
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +9 -73
- package/dist/es/designer/service-components/base/loop-node/index.js +37 -145
- package/dist/es/designer/service-components/base/notification/config.vue.js +2 -2
- package/dist/es/designer/service-components/base/notification/config.vue2.js +35 -320
- package/dist/es/designer/service-components/base/notification/index.js +12 -34
- package/dist/es/designer/service-components/base/notification/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/index.vue2.js +8 -40
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +4 -4
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +23 -146
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +17 -103
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +2 -2
- package/dist/es/designer/service-components/base/start-node/index.js +25 -65
- package/dist/es/designer/service-components/base/start-node/index.vue.js +4 -4
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/components-icons.js +17 -33
- package/dist/es/designer/service-components/computation/clean/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +40 -419
- package/dist/es/designer/service-components/computation/clean/index.js +12 -34
- package/dist/es/designer/service-components/computation/clean/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/connect/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +38 -506
- package/dist/es/designer/service-components/computation/connect/index.js +12 -34
- package/dist/es/designer/service-components/computation/connect/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/sort/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
- package/dist/es/designer/service-components/computation/sort/index.js +12 -34
- package/dist/es/designer/service-components/computation/sort/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +27 -327
- package/dist/es/designer/service-components/computation/split-joint/index.js +12 -34
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +41 -436
- package/dist/es/designer/service-components/computation/statistics/index.js +12 -34
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +4 -4
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +75 -375
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +22 -217
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +30 -439
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/index.js +13 -35
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +22 -90
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +15 -177
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -185
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +66 -474
- package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +52 -749
- package/dist/es/designer/service-components/database/regular-query/index.js +13 -35
- package/dist/es/designer/service-components/database/regular-query/index.vue.js +4 -4
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +22 -85
- package/dist/es/designer/service-components/index.js +33 -224
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +18 -125
- package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/form-data.vue.js +18 -153
- package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/header-data.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/json-data.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
- package/dist/es/designer/service-components/service/common/param-config.vue.js +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
- package/dist/es/designer/service-components/service/common/query-params.vue.js +18 -126
- package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/raw-data.vue.js +27 -93
- package/dist/es/designer/service-components/service/common/raw-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +9 -74
- package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
- package/dist/es/designer/service-components/service/custom-bean/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/config.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
- package/dist/es/designer/service-components/service/http-service/index.js +12 -34
- package/dist/es/designer/service-components/service/http-service/index.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +15 -63
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +44 -262
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/util/common-options.js +15 -129
- package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
- package/dist/es/designer/service-flow-view/flow-util.js +52 -129
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +28 -153
- package/dist/es/designer/service-flow-view/service-params.vue.js +53 -421
- package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-result.vue.js +56 -310
- package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +40 -307
- package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +65 -326
- package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -234
- package/dist/es/designer/service-flow-view/view-index.vue.js +4 -4
- package/dist/es/designer/service-flow-view/view-index.vue2.js +92 -353
- package/dist/es/designer/service-panel/component-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
- package/dist/es/designer/service-panel/service-list.vue.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue2.js +76 -497
- package/dist/es/designer/service-panel/service-panel.vue.js +4 -4
- package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.js +26 -73
- package/dist/es/style.css +288 -288
- package/dist/es/utils/common-util.js +103 -211
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElButton, ElInput, ElCascaderPanel, ElCol, ElEmpty, ElIcon, ElTableColumn, ElTable, ElRow, ElPopover } from "element-plus/es";
|
|
1
|
+
import { ElButton as e, ElInput as l, ElCascaderPanel as a, ElCol as t, ElEmpty as u, ElIcon as s, ElTableColumn as n, ElTable as o, ElRow as i, ElPopover as r } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/popover/style/css";
|
|
4
4
|
import "element-plus/es/components/row/style/css";
|
|
@@ -10,567 +10,132 @@ import "element-plus/es/components/col/style/css";
|
|
|
10
10
|
import "element-plus/es/components/cascader-panel/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
12
|
import "element-plus/es/components/button/style/css";
|
|
13
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, toDisplayString, createBlock, withCtx, createVNode, normalizeStyle, unref, withModifiers, createElementVNode, withDirectives, createTextVNode, Fragment, renderList, vShow, nextTick, pushScopeId, popScopeId } from "vue";
|
|
14
|
-
import { Search, Delete, Plus, InfoFilled } from "@element-plus/icons-vue";
|
|
15
|
-
import { v4 } from "uuid";
|
|
16
|
-
import { getTypeOptions, contextVarOptions
|
|
17
|
-
import { useServiceFlowStore } from "../../../../stores/page-store.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { ElMessage } from "element-plus";
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
default: false
|
|
56
|
-
},
|
|
57
|
-
width: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: ""
|
|
60
|
-
},
|
|
61
|
-
customInputTypes: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: []
|
|
64
|
-
},
|
|
65
|
-
customOptions: {
|
|
66
|
-
type: Object,
|
|
67
|
-
default: () => ({})
|
|
68
|
-
},
|
|
69
|
-
showFileUpload: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: false
|
|
72
|
-
},
|
|
73
|
-
//自动创建服务字段的类型
|
|
74
|
-
autoCreateFieldType: {
|
|
75
|
-
type: String,
|
|
76
|
-
required: false
|
|
77
|
-
},
|
|
78
|
-
placeholder: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: "请选择"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
emits: ["update:modelValue"],
|
|
84
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
85
|
-
const serviceFlowStoreUtil = useServiceFlowStore();
|
|
86
|
-
const emits = __emit;
|
|
87
|
-
const props = __props;
|
|
88
|
-
const defalutValue = ref(null);
|
|
89
|
-
defalutValue.value = props.modelValue;
|
|
90
|
-
const typeOptions = ref([]);
|
|
91
|
-
const showInputType = ref("");
|
|
92
|
-
const fileObject = ref({});
|
|
93
|
-
const labelValue = ref(null);
|
|
94
|
-
const requestParams = ref([]);
|
|
95
|
-
const paramType = ref(null);
|
|
96
|
-
const paramValue = ref(null);
|
|
97
|
-
const valueOptions = ref([]);
|
|
98
|
-
const selectOptions = ref({});
|
|
99
|
-
const searchValue = ref(null);
|
|
100
|
-
const popoverRef = ref();
|
|
101
|
-
const selectInputType = ["context", "system", "task", "data", "service"];
|
|
102
|
-
props.customInputTypes.forEach((item) => {
|
|
103
|
-
const index = selectInputType.findIndex((type) => item === type);
|
|
104
|
-
if (index >= 0) {
|
|
105
|
-
selectInputType.splice(index, 1);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
typeOptions.value = getTypeOptions(props.paramTypes);
|
|
109
|
-
setSelectOptions();
|
|
110
|
-
const showFileUploadOption = () => {
|
|
111
|
-
if (props.showFileUpload) {
|
|
112
|
-
if (typeOptions.value.findIndex((item) => item.value === "file") === -1) {
|
|
113
|
-
typeOptions.value.push({ label: "文件", value: "file" });
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
const index = typeOptions.value.findIndex((item) => item.value === "file");
|
|
117
|
-
if (index >= 0) {
|
|
118
|
-
typeOptions.value.splice(index, 1);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
if (props.modelValue) {
|
|
123
|
-
const match = props.modelValue.match(/\${(.*?)\.(.*?)}/);
|
|
124
|
-
if (match) {
|
|
125
|
-
const type = match[1];
|
|
126
|
-
const val = match[2];
|
|
127
|
-
paramType.value = type;
|
|
128
|
-
paramValue.value = val;
|
|
129
|
-
showFileUploadOption();
|
|
130
|
-
if (paramType.value === "file") {
|
|
131
|
-
showInputType.value = "file";
|
|
132
|
-
} else if (selectInputType.includes(type)) {
|
|
133
|
-
if (paramType.value === "system") {
|
|
134
|
-
querySystemParams();
|
|
135
|
-
}
|
|
136
|
-
showInputType.value = "select";
|
|
137
|
-
} else {
|
|
138
|
-
showInputType.value = "input";
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
labelValue.value = formatter();
|
|
142
|
-
}
|
|
143
|
-
const filterTableData = computed(
|
|
144
|
-
() => valueOptions.value.filter(
|
|
145
|
-
(data) => !searchValue.value || data.label.toLowerCase().includes(searchValue.value.toLowerCase() || data.value.toLowerCase().includes(searchValue.value.toLowerCase()))
|
|
146
|
-
)
|
|
147
|
-
);
|
|
148
|
-
function setSelectOptions() {
|
|
149
|
-
selectOptions.value.dataModelOptions = serviceFlowStoreUtil.pageContextVarOptions.dataOptions;
|
|
150
|
-
if (props.customOptions.data) {
|
|
151
|
-
selectOptions.value.dataModelOptions = props.customOptions.data;
|
|
152
|
-
}
|
|
153
|
-
selectOptions.value.serviceVarOptions = serviceFlowStoreUtil.getServiceVarOptions();
|
|
154
|
-
const tempParams = [
|
|
155
|
-
{
|
|
156
|
-
value: "query",
|
|
157
|
-
label: "query"
|
|
158
|
-
}
|
|
159
|
-
];
|
|
160
|
-
if (serviceFlowStoreUtil.pageContext) {
|
|
161
|
-
convertVariablesToParams(serviceFlowStoreUtil.pageContext.variables, tempParams, "");
|
|
162
|
-
}
|
|
163
|
-
requestParams.value = tempParams;
|
|
164
|
-
}
|
|
165
|
-
function convertVariablesToParams(variables, tempParams, parentFieldName) {
|
|
166
|
-
if (!variables) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
for (let v of variables) {
|
|
170
|
-
if (!v.name) {
|
|
13
|
+
import { defineComponent as p, ref as v, computed as c, openBlock as d, createElementBlock as m, toDisplayString as f, createBlock as y, withCtx as h, createVNode as V, normalizeStyle as g, unref as w, withModifiers as x, createElementVNode as b, withDirectives as k, createTextVNode as z, Fragment as C, renderList as O, vShow as S, nextTick as _, pushScopeId as U, popScopeId as j } from "vue";
|
|
14
|
+
import { Search as q, Delete as I, Plus as L, InfoFilled as T } from "@element-plus/icons-vue";
|
|
15
|
+
import { v4 as A } from "uuid";
|
|
16
|
+
import { getTypeOptions as F, contextVarOptions as $, taskVarOptions as E } from "./option.js";
|
|
17
|
+
import { useServiceFlowStore as M } from "../../../../stores/page-store.js";
|
|
18
|
+
import R from "../file-upload.vue.js";
|
|
19
|
+
import B from "agilebuilder-ui/src/utils/request";
|
|
20
|
+
import { ElMessage as K } from "element-plus";
|
|
21
|
+
const P = (e2) => (U("data-v-21f429a9"), e2 = e2(), j(), e2), D = { key: 0 }, G = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, H = P(() => b("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1)), J = { style: { "font-size": "10px", "line-height": "30px" } }, N = { style: { "margin-bottom": "5px" } }, Q = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, W = P(() => b("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1)), X = { class: "totalStyle" }, Y = p({ name: "ValueSetInput", inheritAttrs: false, __name: "value-set-input", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "default" }, inputSize: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, width: { type: String, default: "" }, customInputTypes: { type: Array, default: [] }, customOptions: { type: Object, default: () => ({}) }, showFileUpload: { type: Boolean, default: false }, autoCreateFieldType: { type: String, required: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(p2, { expose: U2, emit: j2 }) {
|
|
22
|
+
const P2 = M(), Y2 = j2, Z = p2, ee = v(null);
|
|
23
|
+
ee.value = Z.modelValue;
|
|
24
|
+
const le = v([]), ae = v(""), te = v({}), ue = v(null), se = v([]), ne = v(null), oe = v(null), ie = v([]), re = v({}), pe = v(null), ve = v(), ce = ["context", "system", "task", "data", "service"];
|
|
25
|
+
Z.customInputTypes.forEach((e2) => {
|
|
26
|
+
const l2 = ce.findIndex((l3) => e2 === l3);
|
|
27
|
+
l2 >= 0 && ce.splice(l2, 1);
|
|
28
|
+
}), le.value = F(Z.paramTypes), fe();
|
|
29
|
+
const de = () => {
|
|
30
|
+
if (Z.showFileUpload)
|
|
31
|
+
-1 === le.value.findIndex((e2) => "file" === e2.value) && le.value.push({ label: "文件", value: "file" });
|
|
32
|
+
else {
|
|
33
|
+
const e2 = le.value.findIndex((e3) => "file" === e3.value);
|
|
34
|
+
e2 >= 0 && le.value.splice(e2, 1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
if (Z.modelValue) {
|
|
38
|
+
const e2 = Z.modelValue.match(/\${(.*?)\.(.*?)}/);
|
|
39
|
+
if (e2) {
|
|
40
|
+
const l2 = e2[1], a2 = e2[2];
|
|
41
|
+
ne.value = l2, oe.value = a2, de(), "file" === ne.value ? ae.value = "file" : ce.includes(l2) ? ("system" === ne.value && Se(), ae.value = "select") : ae.value = "input";
|
|
42
|
+
}
|
|
43
|
+
ue.value = he();
|
|
44
|
+
}
|
|
45
|
+
const me = c(() => ie.value.filter((e2) => !pe.value || e2.label.toLowerCase().includes(pe.value.toLowerCase() || e2.value.toLowerCase().includes(pe.value.toLowerCase()))));
|
|
46
|
+
function fe() {
|
|
47
|
+
re.value.dataModelOptions = P2.pageContextVarOptions.dataOptions, Z.customOptions.data && (re.value.dataModelOptions = Z.customOptions.data), re.value.serviceVarOptions = P2.getServiceVarOptions();
|
|
48
|
+
const e2 = [{ value: "query", label: "query" }];
|
|
49
|
+
P2.pageContext && ye(P2.pageContext.variables, e2, ""), se.value = e2;
|
|
50
|
+
}
|
|
51
|
+
function ye(e2, l2, a2) {
|
|
52
|
+
if (e2)
|
|
53
|
+
for (let t2 of e2) {
|
|
54
|
+
if (!t2.name)
|
|
171
55
|
continue;
|
|
56
|
+
let e3 = a2;
|
|
57
|
+
if (!t2.isArrayElement) {
|
|
58
|
+
let u2 = t2.name;
|
|
59
|
+
a2 && (u2 = a2 + "." + u2);
|
|
60
|
+
const s2 = t2.alias ? u2 + "(" + t2.alias + ")" : u2;
|
|
61
|
+
l2.push({ value: u2, label: s2 }), e3 = u2;
|
|
172
62
|
}
|
|
173
|
-
|
|
174
|
-
if (!v.isArrayElement) {
|
|
175
|
-
let fieldName = v.name;
|
|
176
|
-
if (parentFieldName) {
|
|
177
|
-
fieldName = parentFieldName + "." + fieldName;
|
|
178
|
-
}
|
|
179
|
-
const label = v.alias ? fieldName + "(" + v.alias + ")" : fieldName;
|
|
180
|
-
tempParams.push({
|
|
181
|
-
value: fieldName,
|
|
182
|
-
label
|
|
183
|
-
});
|
|
184
|
-
tempParentName = fieldName;
|
|
185
|
-
}
|
|
186
|
-
if (v.items) {
|
|
187
|
-
convertVariablesToParams(v.items, tempParams, tempParentName);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
function formatter() {
|
|
192
|
-
if (props.modelValue) {
|
|
193
|
-
return getTypeLabel(paramType.value) + " : " + getValueLabel(paramType.value, paramValue.value);
|
|
194
|
-
}
|
|
195
|
-
return props.modelValue;
|
|
196
|
-
}
|
|
197
|
-
function paramTypeChange(paramType2) {
|
|
198
|
-
paramValue.value = "";
|
|
199
|
-
if (paramType2 === "file") {
|
|
200
|
-
showInputType.value = "file";
|
|
201
|
-
} else if (selectInputType.includes(paramType2)) {
|
|
202
|
-
showInputType.value = "select";
|
|
203
|
-
if (paramType2 === "system") {
|
|
204
|
-
querySystemParams();
|
|
205
|
-
} else {
|
|
206
|
-
setValueOptions(paramType2);
|
|
207
|
-
}
|
|
208
|
-
} else {
|
|
209
|
-
showInputType.value = "input";
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
if (!paramType.value && typeOptions.value.length > 0) {
|
|
213
|
-
paramType.value = typeOptions.value[0].value;
|
|
214
|
-
paramTypeChange(paramType.value);
|
|
215
|
-
console.log("paramType.value--", paramType.value);
|
|
216
|
-
}
|
|
217
|
-
function setValueOptions(value) {
|
|
218
|
-
if (value === "context") {
|
|
219
|
-
valueOptions.value = contextVarOptions;
|
|
220
|
-
} else if (value === "system") {
|
|
221
|
-
valueOptions.value = selectOptions.value.systemVarOptions || [];
|
|
222
|
-
} else if (value === "task") {
|
|
223
|
-
valueOptions.value = taskVarOptions;
|
|
224
|
-
} else if (value === "data") {
|
|
225
|
-
valueOptions.value = selectOptions.value.dataModelOptions || [];
|
|
226
|
-
} else if (value === "service") {
|
|
227
|
-
valueOptions.value = selectOptions.value.serviceVarOptions || [];
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function selectRow(row) {
|
|
231
|
-
console.log(row, "选择数据");
|
|
232
|
-
paramValue.value = row.value;
|
|
233
|
-
defalutValue.value = "${" + paramType.value + "." + row.value + "}";
|
|
234
|
-
emits("update:modelValue", defalutValue.value);
|
|
235
|
-
popoverRef.value.hide();
|
|
236
|
-
}
|
|
237
|
-
function addInputParams() {
|
|
238
|
-
if (!paramValue.value) {
|
|
239
|
-
ElMessage.warning("请输入参数名");
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
defalutValue.value = "${" + paramType.value + "." + paramValue.value + "}";
|
|
243
|
-
emits("update:modelValue", defalutValue.value);
|
|
244
|
-
popoverRef.value.hide();
|
|
245
|
-
}
|
|
246
|
-
function addRequestParam(addParam) {
|
|
247
|
-
paramValue.value = addParam;
|
|
248
|
-
addInputParams();
|
|
249
|
-
}
|
|
250
|
-
function addServiceParams() {
|
|
251
|
-
searchValue.value = searchValue.value.trim();
|
|
252
|
-
if (!searchValue.value) {
|
|
253
|
-
ElMessage.warning("请输入参数名");
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
const tempValues = selectOptions.value.serviceVarOptions || [];
|
|
257
|
-
for (let t of tempValues) {
|
|
258
|
-
if (t.value === searchValue.value) {
|
|
259
|
-
ElMessage.warning("该变量已存在!");
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
const variable = {
|
|
264
|
-
code: v4(),
|
|
265
|
-
level: 1,
|
|
266
|
-
name: searchValue.value,
|
|
267
|
-
alias: searchValue.value,
|
|
268
|
-
type: props.autoCreateFieldType ? props.autoCreateFieldType : "string",
|
|
269
|
-
defaultValue: "",
|
|
270
|
-
items: []
|
|
271
|
-
};
|
|
272
|
-
if (variable.type == "array") {
|
|
273
|
-
variable.items.push({
|
|
274
|
-
level: variable.level + 1,
|
|
275
|
-
code: v4(),
|
|
276
|
-
name: "items",
|
|
277
|
-
isArrayElement: true,
|
|
278
|
-
alias: "",
|
|
279
|
-
type: "object",
|
|
280
|
-
defaultValue: "",
|
|
281
|
-
items: []
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
if (!serviceFlowStoreUtil.currentService.variables) {
|
|
285
|
-
serviceFlowStoreUtil.currentService.variables = [];
|
|
286
|
-
}
|
|
287
|
-
serviceFlowStoreUtil.currentService.variables.push(variable);
|
|
288
|
-
selectOptions.value.serviceVarOptions = serviceFlowStoreUtil.getServiceVarOptions();
|
|
289
|
-
setValueOptions(paramType.value);
|
|
290
|
-
paramValue.value = searchValue.value;
|
|
291
|
-
defalutValue.value = "${" + paramType.value + "." + searchValue.value + "}";
|
|
292
|
-
emits("update:modelValue", defalutValue.value);
|
|
293
|
-
popoverRef.value.hide();
|
|
294
|
-
}
|
|
295
|
-
function getTypeLabel(valueType) {
|
|
296
|
-
var _a;
|
|
297
|
-
return (_a = typeOptions.value.find((item) => item.value === valueType)) == null ? void 0 : _a.label;
|
|
298
|
-
}
|
|
299
|
-
function getValueLabel(valueType, value) {
|
|
300
|
-
if (selectInputType.includes(valueType)) {
|
|
301
|
-
const option = valueOptions.value.find((item) => item.value === value);
|
|
302
|
-
if (option) {
|
|
303
|
-
return option.label;
|
|
304
|
-
}
|
|
305
|
-
} else if (valueType === "file") {
|
|
306
|
-
return value.split("|")[0];
|
|
307
|
-
}
|
|
308
|
-
return value;
|
|
309
|
-
}
|
|
310
|
-
const tableRef = ref();
|
|
311
|
-
function handSelectRow() {
|
|
312
|
-
if (!props.showLabel && showInputType.value === "select") {
|
|
313
|
-
const index = filterTableData.value.findIndex((item) => item.value === paramValue.value);
|
|
314
|
-
tableRef.value.setCurrentRow(filterTableData.value[index]);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
const showPopover = () => {
|
|
318
|
-
showFileUploadOption();
|
|
319
|
-
setSelectOptions();
|
|
320
|
-
if (paramType.value) {
|
|
321
|
-
setValueOptions(paramType.value);
|
|
63
|
+
t2.items && ye(t2.items, l2, e3);
|
|
322
64
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
65
|
+
}
|
|
66
|
+
function he() {
|
|
67
|
+
var _a;
|
|
68
|
+
return Z.modelValue ? (e2 = ne.value, ((_a = le.value.find((l2) => l2.value === e2)) == null ? void 0 : _a.label) + " : " + function(e3, l2) {
|
|
69
|
+
if (ce.includes(e3)) {
|
|
70
|
+
const e4 = ie.value.find((e5) => e5.value === l2);
|
|
71
|
+
if (e4)
|
|
72
|
+
return e4.label;
|
|
73
|
+
} else if ("file" === e3)
|
|
74
|
+
return l2.split("|")[0];
|
|
75
|
+
return l2;
|
|
76
|
+
}(ne.value, oe.value)) : Z.modelValue;
|
|
77
|
+
var e2;
|
|
78
|
+
}
|
|
79
|
+
function Ve(e2) {
|
|
80
|
+
oe.value = "", "file" === e2 ? ae.value = "file" : ce.includes(e2) ? (ae.value = "select", "system" === e2 ? Se() : ge(e2)) : ae.value = "input";
|
|
81
|
+
}
|
|
82
|
+
function ge(e2) {
|
|
83
|
+
"context" === e2 ? ie.value = $ : "system" === e2 ? ie.value = re.value.systemVarOptions || [] : "task" === e2 ? ie.value = E : "data" === e2 ? ie.value = re.value.dataModelOptions || [] : "service" === e2 && (ie.value = re.value.serviceVarOptions || []);
|
|
84
|
+
}
|
|
85
|
+
function we() {
|
|
86
|
+
oe.value ? (ee.value = "${" + ne.value + "." + oe.value + "}", Y2("update:modelValue", ee.value), ve.value.hide()) : K.warning("请输入参数名");
|
|
87
|
+
}
|
|
88
|
+
function xe() {
|
|
89
|
+
if (pe.value = pe.value.trim(), !pe.value)
|
|
90
|
+
return void K.warning("请输入参数名");
|
|
91
|
+
const e2 = re.value.serviceVarOptions || [];
|
|
92
|
+
for (let l3 of e2)
|
|
93
|
+
if (l3.value === pe.value)
|
|
94
|
+
return void K.warning("该变量已存在!");
|
|
95
|
+
const l2 = { code: A(), level: 1, name: pe.value, alias: pe.value, type: Z.autoCreateFieldType ? Z.autoCreateFieldType : "string", defaultValue: "", items: [] };
|
|
96
|
+
"array" == l2.type && l2.items.push({ level: l2.level + 1, code: A(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), P2.currentService.variables || (P2.currentService.variables = []), P2.currentService.variables.push(l2), re.value.serviceVarOptions = P2.getServiceVarOptions(), ge(ne.value), oe.value = pe.value, ee.value = "${" + ne.value + "." + pe.value + "}", Y2("update:modelValue", ee.value), ve.value.hide();
|
|
97
|
+
}
|
|
98
|
+
!ne.value && le.value.length > 0 && (ne.value = le.value[0].value, Ve(ne.value));
|
|
99
|
+
const be = v();
|
|
100
|
+
const ke = () => {
|
|
101
|
+
de(), fe(), ne.value && ge(ne.value), _(() => {
|
|
102
|
+
!function() {
|
|
103
|
+
if (!Z.showLabel && "select" === ae.value) {
|
|
104
|
+
const e2 = me.value.findIndex((e3) => e3.value === oe.value);
|
|
105
|
+
be.value.setCurrentRow(me.value[e2]);
|
|
359
106
|
}
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
107
|
+
}();
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
function ze() {
|
|
111
|
+
ee.value = null, ne.value = null, oe.value = null, Y2("update:modelValue", ee.value);
|
|
112
|
+
}
|
|
113
|
+
function Ce() {
|
|
114
|
+
ee.value = "${file." + te.value.name + "|" + te.value.fileUuid + "}", oe.value = te.value.name + "|" + te.value.fileUuid, Y2("update:modelValue", ee.value), ve.value.hide();
|
|
115
|
+
}
|
|
116
|
+
let Oe = null;
|
|
117
|
+
function Se() {
|
|
118
|
+
if (Oe && Oe == pe.value)
|
|
119
|
+
return;
|
|
120
|
+
const e2 = { query: pe.value };
|
|
121
|
+
Oe = pe.value, B.post("/component/system-params/query", e2).then((e3) => {
|
|
122
|
+
const l2 = [];
|
|
123
|
+
for (let a2 of e3)
|
|
124
|
+
l2.push({ value: a2.propKey, label: a2.propKey + " (" + a2.propValue + ")" });
|
|
125
|
+
re.value.systemVarOptions = l2, "system" == ne.value && ge(ne.value);
|
|
364
126
|
});
|
|
365
|
-
return (_ctx, _cache) => {
|
|
366
|
-
const _component_el_button = ElButton;
|
|
367
|
-
const _component_el_input = ElInput;
|
|
368
|
-
const _component_el_cascader_panel = ElCascaderPanel;
|
|
369
|
-
const _component_el_col = ElCol;
|
|
370
|
-
const _component_el_empty = ElEmpty;
|
|
371
|
-
const _component_el_icon = ElIcon;
|
|
372
|
-
const _component_el_table_column = ElTableColumn;
|
|
373
|
-
const _component_el_table = ElTable;
|
|
374
|
-
const _component_el_row = ElRow;
|
|
375
|
-
const _component_el_popover = ElPopover;
|
|
376
|
-
return __props.showLabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(labelValue.value), 1)) : (openBlock(), createBlock(_component_el_popover, {
|
|
377
|
-
key: 1,
|
|
378
|
-
ref_key: "popoverRef",
|
|
379
|
-
ref: popoverRef,
|
|
380
|
-
trigger: "click",
|
|
381
|
-
width: 450
|
|
382
|
-
}, {
|
|
383
|
-
reference: withCtx(() => [
|
|
384
|
-
createVNode(_component_el_input, {
|
|
385
|
-
style: normalizeStyle({ width: __props.width ? __props.width : "" }),
|
|
386
|
-
readonly: "",
|
|
387
|
-
size: __props.inputSize,
|
|
388
|
-
onClick: showPopover,
|
|
389
|
-
formatter,
|
|
390
|
-
class: "input-with-select",
|
|
391
|
-
"prefix-icon": unref(Search),
|
|
392
|
-
modelValue: defalutValue.value,
|
|
393
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => defalutValue.value = $event),
|
|
394
|
-
placeholder: __props.placeholder
|
|
395
|
-
}, {
|
|
396
|
-
append: withCtx(() => [
|
|
397
|
-
createVNode(_component_el_button, {
|
|
398
|
-
size: __props.inputSize,
|
|
399
|
-
icon: unref(Delete),
|
|
400
|
-
onClick: withModifiers(clearData, ["stop"])
|
|
401
|
-
}, null, 8, ["size", "icon"])
|
|
402
|
-
]),
|
|
403
|
-
_: 1
|
|
404
|
-
}, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])
|
|
405
|
-
]),
|
|
406
|
-
default: withCtx(() => [
|
|
407
|
-
createVNode(_component_el_row, null, {
|
|
408
|
-
default: withCtx(() => [
|
|
409
|
-
createVNode(_component_el_col, { span: 8 }, {
|
|
410
|
-
default: withCtx(() => [
|
|
411
|
-
createVNode(_component_el_cascader_panel, {
|
|
412
|
-
modelValue: paramType.value,
|
|
413
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => paramType.value = $event),
|
|
414
|
-
onChange: paramTypeChange,
|
|
415
|
-
props: { emitPath: false },
|
|
416
|
-
size: "small",
|
|
417
|
-
style: { "width": "fit-content", "height": "200px" },
|
|
418
|
-
options: typeOptions.value
|
|
419
|
-
}, null, 8, ["modelValue", "options"])
|
|
420
|
-
]),
|
|
421
|
-
_: 1
|
|
422
|
-
}),
|
|
423
|
-
!paramType.value ? (openBlock(), createBlock(_component_el_col, {
|
|
424
|
-
key: 0,
|
|
425
|
-
span: 16
|
|
426
|
-
}, {
|
|
427
|
-
default: withCtx(() => [
|
|
428
|
-
createVNode(_component_el_empty, {
|
|
429
|
-
description: "请选择类型",
|
|
430
|
-
"image-size": 40
|
|
431
|
-
})
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
})) : showInputType.value === "input" ? (openBlock(), createBlock(_component_el_col, {
|
|
435
|
-
key: 1,
|
|
436
|
-
span: 16
|
|
437
|
-
}, {
|
|
438
|
-
default: withCtx(() => [
|
|
439
|
-
createVNode(_component_el_input, {
|
|
440
|
-
style: { "width": "88%" },
|
|
441
|
-
size: "small",
|
|
442
|
-
modelValue: paramValue.value,
|
|
443
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => paramValue.value = $event),
|
|
444
|
-
placeholder: "请手动输入"
|
|
445
|
-
}, null, 8, ["modelValue"]),
|
|
446
|
-
createVNode(_component_el_button, {
|
|
447
|
-
style: { "float": "right" },
|
|
448
|
-
onClick: addInputParams,
|
|
449
|
-
size: "small",
|
|
450
|
-
type: "primary",
|
|
451
|
-
icon: unref(Plus),
|
|
452
|
-
circle: ""
|
|
453
|
-
}, null, 8, ["icon"]),
|
|
454
|
-
createElementVNode("div", _hoisted_2, [
|
|
455
|
-
createVNode(_component_el_icon, null, {
|
|
456
|
-
default: withCtx(() => [
|
|
457
|
-
createVNode(unref(InfoFilled))
|
|
458
|
-
]),
|
|
459
|
-
_: 1
|
|
460
|
-
}),
|
|
461
|
-
_hoisted_3
|
|
462
|
-
]),
|
|
463
|
-
withDirectives(createElementVNode("div", _hoisted_4, [
|
|
464
|
-
createTextVNode(" 可用参数: "),
|
|
465
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(requestParams.value, (o) => {
|
|
466
|
-
return openBlock(), createBlock(_component_el_button, {
|
|
467
|
-
type: "primary",
|
|
468
|
-
size: "small",
|
|
469
|
-
onClick: ($event) => addRequestParam(o.value)
|
|
470
|
-
}, {
|
|
471
|
-
default: withCtx(() => [
|
|
472
|
-
createTextVNode(toDisplayString(o.label), 1)
|
|
473
|
-
]),
|
|
474
|
-
_: 2
|
|
475
|
-
}, 1032, ["onClick"]);
|
|
476
|
-
}), 256))
|
|
477
|
-
], 512), [
|
|
478
|
-
[vShow, paramType.value == "request"]
|
|
479
|
-
])
|
|
480
|
-
]),
|
|
481
|
-
_: 1
|
|
482
|
-
})) : showInputType.value === "file" ? (openBlock(), createBlock(_component_el_col, {
|
|
483
|
-
key: 2,
|
|
484
|
-
span: 16
|
|
485
|
-
}, {
|
|
486
|
-
default: withCtx(() => [
|
|
487
|
-
createVNode(fileUpload, {
|
|
488
|
-
modelValue: fileObject.value,
|
|
489
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => fileObject.value = $event),
|
|
490
|
-
onOnSuccess: successUpload
|
|
491
|
-
}, null, 8, ["modelValue"])
|
|
492
|
-
]),
|
|
493
|
-
_: 1
|
|
494
|
-
})) : (openBlock(), createBlock(_component_el_col, {
|
|
495
|
-
key: 3,
|
|
496
|
-
span: 16
|
|
497
|
-
}, {
|
|
498
|
-
default: withCtx(() => [
|
|
499
|
-
createElementVNode("div", _hoisted_5, [
|
|
500
|
-
createVNode(_component_el_input, {
|
|
501
|
-
size: "small",
|
|
502
|
-
modelValue: searchValue.value,
|
|
503
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => searchValue.value = $event),
|
|
504
|
-
placeholder: "搜索",
|
|
505
|
-
"suffix-icon": unref(Search),
|
|
506
|
-
style: { "width": "88%" }
|
|
507
|
-
}, null, 8, ["modelValue", "suffix-icon"]),
|
|
508
|
-
withDirectives(createVNode(_component_el_button, {
|
|
509
|
-
style: { "float": "right" },
|
|
510
|
-
onClick: addServiceParams,
|
|
511
|
-
size: "small",
|
|
512
|
-
type: "primary",
|
|
513
|
-
icon: unref(Plus),
|
|
514
|
-
circle: ""
|
|
515
|
-
}, null, 8, ["icon"]), [
|
|
516
|
-
[vShow, paramType.value == "service"]
|
|
517
|
-
]),
|
|
518
|
-
withDirectives(createElementVNode("div", _hoisted_6, [
|
|
519
|
-
createVNode(_component_el_icon, null, {
|
|
520
|
-
default: withCtx(() => [
|
|
521
|
-
createVNode(unref(InfoFilled))
|
|
522
|
-
]),
|
|
523
|
-
_: 1
|
|
524
|
-
}),
|
|
525
|
-
_hoisted_7
|
|
526
|
-
], 512), [
|
|
527
|
-
[vShow, paramType.value == "service"]
|
|
528
|
-
])
|
|
529
|
-
]),
|
|
530
|
-
createVNode(_component_el_table, {
|
|
531
|
-
ref_key: "tableRef",
|
|
532
|
-
ref: tableRef,
|
|
533
|
-
height: "155",
|
|
534
|
-
"show-header": false,
|
|
535
|
-
size: "small",
|
|
536
|
-
"current-row-key": "code",
|
|
537
|
-
"row-key": "code",
|
|
538
|
-
"tree-props": { children: "items" },
|
|
539
|
-
"highlight-current-row": true,
|
|
540
|
-
data: filterTableData.value
|
|
541
|
-
}, {
|
|
542
|
-
default: withCtx(() => [
|
|
543
|
-
createVNode(_component_el_table_column, null, {
|
|
544
|
-
default: withCtx((scope) => [
|
|
545
|
-
createVNode(_component_el_button, {
|
|
546
|
-
size: "small",
|
|
547
|
-
onClick: ($event) => selectRow(scope.row)
|
|
548
|
-
}, {
|
|
549
|
-
default: withCtx(() => [
|
|
550
|
-
createTextVNode(" 选择 ")
|
|
551
|
-
]),
|
|
552
|
-
_: 2
|
|
553
|
-
}, 1032, ["onClick"])
|
|
554
|
-
]),
|
|
555
|
-
_: 1
|
|
556
|
-
}),
|
|
557
|
-
createVNode(_component_el_table_column, { prop: "label" })
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
}, 8, ["data"]),
|
|
561
|
-
createElementVNode("div", _hoisted_8, "总计:" + toDisplayString(filterTableData.value.length), 1)
|
|
562
|
-
]),
|
|
563
|
-
_: 1
|
|
564
|
-
}))
|
|
565
|
-
]),
|
|
566
|
-
_: 1
|
|
567
|
-
})
|
|
568
|
-
]),
|
|
569
|
-
_: 1
|
|
570
|
-
}, 512));
|
|
571
|
-
};
|
|
572
127
|
}
|
|
573
|
-
})
|
|
128
|
+
return U2({ setSelectOptions: fe }), (v2, c2) => {
|
|
129
|
+
const _2 = e, U3 = l, j3 = a, A2 = t, F2 = u, $2 = s, E2 = n, M2 = o, B2 = i, K2 = r;
|
|
130
|
+
return p2.showLabel ? (d(), m("span", D, f(ue.value), 1)) : (d(), y(K2, { key: 1, ref_key: "popoverRef", ref: ve, trigger: "click", width: 450 }, { reference: h(() => [V(U3, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: ke, formatter: he, class: "input-with-select", "prefix-icon": w(q), modelValue: ee.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => ee.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { size: p2.inputSize, icon: w(I), onClick: x(ze, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(B2, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(j3, { modelValue: ne.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => ne.value = e2), onChange: Ve, props: { emitPath: false }, size: "small", style: { width: "fit-content", height: "200px" }, options: le.value }, null, 8, ["modelValue", "options"])]), _: 1 }), ne.value ? "input" === ae.value ? (d(), y(A2, { key: 1, span: 16 }, { default: h(() => [V(U3, { style: { width: "88%" }, size: "small", modelValue: oe.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => oe.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: w(L), circle: "" }, null, 8, ["icon"]), b("div", G, [V($2, null, { default: h(() => [V(w(T))]), _: 1 }), H]), k(b("div", J, [z(" 可用参数: "), (d(true), m(C, null, O(se.value, (e2) => (d(), y(_2, { type: "primary", size: "small", onClick: (l2) => {
|
|
131
|
+
return a2 = e2.value, oe.value = a2, void we();
|
|
132
|
+
var a2;
|
|
133
|
+
} }, { default: h(() => [z(f(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 512), [[S, "request" == ne.value]])]), _: 1 })) : "file" === ae.value ? (d(), y(A2, { key: 2, span: 16 }, { default: h(() => [V(R, { modelValue: te.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => te.value = e2), onOnSuccess: Ce }, null, 8, ["modelValue"])]), _: 1 })) : (d(), y(A2, { key: 3, span: 16 }, { default: h(() => [b("div", N, [V(U3, { size: "small", modelValue: pe.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => pe.value = e2), placeholder: "搜索", "suffix-icon": w(q), style: { width: "88%" } }, null, 8, ["modelValue", "suffix-icon"]), k(V(_2, { style: { float: "right" }, onClick: xe, size: "small", type: "primary", icon: w(L), circle: "" }, null, 8, ["icon"]), [[S, "service" == ne.value]]), k(b("div", Q, [V($2, null, { default: h(() => [V(w(T))]), _: 1 }), W], 512), [[S, "service" == ne.value]])]), V(M2, { ref_key: "tableRef", ref: be, height: "155", "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: h(() => [V(E2, null, { default: h((e2) => [V(_2, { size: "small", onClick: (l2) => {
|
|
134
|
+
return a2 = e2.row, oe.value = a2.value, ee.value = "${" + ne.value + "." + a2.value + "}", Y2("update:modelValue", ee.value), void ve.value.hide();
|
|
135
|
+
var a2;
|
|
136
|
+
} }, { default: h(() => [z(" 选择 ")]), _: 2 }, 1032, ["onClick"])]), _: 1 }), V(E2, { prop: "label" })]), _: 1 }, 8, ["data"]), b("div", X, "总计:" + f(me.value.length), 1)]), _: 1 })) : (d(), y(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
137
|
+
};
|
|
138
|
+
} });
|
|
574
139
|
export {
|
|
575
|
-
|
|
140
|
+
Y as default
|
|
576
141
|
};
|