super-page-designer 2.1.41 → 2.1.44
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/components/design/utils/assemblys-config.js +45 -13
- package/dist/es/components/design/utils/form-design-util.js +1 -0
- package/dist/es/components/design/utils/page-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-design-util.js +3 -2
- package/dist/es/components/design/utils/page-table-util.js +4 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -7
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +92 -77
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +13 -9
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +5 -6
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +10 -0
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +10 -0
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +7 -4
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +50 -35
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +4 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +8 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +8 -29
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue2.js +16 -7
- package/dist/es/components/design/views/assemblys/object-design.vue.js +15 -0
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.d.ts +6 -0
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +95 -0
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +61 -22
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
- package/dist/es/style.css +122 -122
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +0 -542
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue3.js +0 -1
|
@@ -1,542 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode, createElementBlock, Fragment, renderList, toDisplayString, normalizeClass, unref, withDirectives, vShow } from "vue";
|
|
2
|
-
import "@element-plus/icons";
|
|
3
|
-
import { queryTableFields } from "../../../../../utils/page-table-util.js";
|
|
4
|
-
import _sfc_main$2 from "../../../form/common/data-origin-service-in.vue.js";
|
|
5
|
-
import _sfc_main$1 from "../../../common/page-permission-select.vue.js";
|
|
6
|
-
import { queryServiceReturnFields } from "../../../../../utils/page-service-util.js";
|
|
7
|
-
import "uuid";
|
|
8
|
-
import { tableField } from "../../../../../../../stores/table-store.js";
|
|
9
|
-
import BindVariable from "../../../common/common-variable-bind.vue.js";
|
|
10
|
-
import { getCustomFuncs } from "../../../../../utils/page-event-util.js";
|
|
11
|
-
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
|
-
const _hoisted_2 = { style: { "float": "left" } };
|
|
13
|
-
const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
14
|
-
const _hoisted_4 = ["onClick"];
|
|
15
|
-
const _hoisted_5 = ["onClick"];
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "data-origin",
|
|
18
|
-
props: {
|
|
19
|
-
configure: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: () => {
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
// 是否模糊查询
|
|
25
|
-
remote: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: true
|
|
28
|
-
},
|
|
29
|
-
// 页面信息
|
|
30
|
-
pageDesign: {
|
|
31
|
-
type: Object,
|
|
32
|
-
default: () => {
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setup(__props) {
|
|
37
|
-
const props = __props;
|
|
38
|
-
const tableFieldStore = tableField();
|
|
39
|
-
const atPresentSortIndex = ref("");
|
|
40
|
-
const dataOriginInfo = props.configure.props.dataOrigin;
|
|
41
|
-
const serviceFields = ref([]);
|
|
42
|
-
const showFields = computed(() => {
|
|
43
|
-
return serviceFields.value.filter((item) => {
|
|
44
|
-
return item.type == "array" || item.type == "any" || !item.type;
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
if (!dataOriginInfo.service) {
|
|
48
|
-
dataOriginInfo.service = {};
|
|
49
|
-
}
|
|
50
|
-
function seleteSort(index) {
|
|
51
|
-
atPresentSortIndex.value = index;
|
|
52
|
-
}
|
|
53
|
-
let modelFields = ref([]);
|
|
54
|
-
ref(null);
|
|
55
|
-
initQueryField();
|
|
56
|
-
function initQueryField() {
|
|
57
|
-
const systemCode = props.pageDesign.systemCode;
|
|
58
|
-
const systemVersion = props.pageDesign.version;
|
|
59
|
-
const myTableInfo = {
|
|
60
|
-
name: props.configure.props.dataOrigin.tableName
|
|
61
|
-
};
|
|
62
|
-
queryTableFields(systemCode, systemVersion, myTableInfo.name).then((tableFields) => {
|
|
63
|
-
modelFields.value = tableFields;
|
|
64
|
-
tableFieldStore.addFieldList(tableFields);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function afterSelectService(type, code, name, serviceId) {
|
|
68
|
-
dataOriginInfo.service.id;
|
|
69
|
-
dataOriginInfo.service.simpleCode = code;
|
|
70
|
-
dataOriginInfo.service.id = serviceId;
|
|
71
|
-
dataOriginInfo.service.name = name;
|
|
72
|
-
getServiceReturnFields();
|
|
73
|
-
}
|
|
74
|
-
let hisQueryId = null;
|
|
75
|
-
function getServiceReturnFields() {
|
|
76
|
-
const serviceId = dataOriginInfo.service.id;
|
|
77
|
-
if (hisQueryId == serviceId) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
hisQueryId = serviceId;
|
|
81
|
-
if (!serviceId) {
|
|
82
|
-
props.configure.serviceFields = [];
|
|
83
|
-
serviceFields.value = [];
|
|
84
|
-
props.configure.serviceDataField = null;
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
queryServiceReturnFields(serviceId).then((fields) => {
|
|
88
|
-
console.log("%c描述-094126", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", fields);
|
|
89
|
-
props.configure.serviceFields = fields;
|
|
90
|
-
serviceFields.value = fields;
|
|
91
|
-
checkDataFieldExist();
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function checkDataFieldExist() {
|
|
95
|
-
if (!props.configure.serviceDataField) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
let isExist = false;
|
|
99
|
-
if (serviceFields.value) {
|
|
100
|
-
for (let o of serviceFields.value) {
|
|
101
|
-
if (o.value == props.configure.serviceDataField) {
|
|
102
|
-
isExist = true;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (!isExist) {
|
|
108
|
-
props.configure.serviceDataField = null;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function addSortField() {
|
|
112
|
-
props.configure.props.dataOrigin.sortField.push({ name: "", type: "" });
|
|
113
|
-
atPresentSortIndex.value = "";
|
|
114
|
-
}
|
|
115
|
-
function removeSortField() {
|
|
116
|
-
props.configure.props.dataOrigin.sortField.splice(atPresentSortIndex, 1);
|
|
117
|
-
}
|
|
118
|
-
function afterBindDefaultValue(modelValue) {
|
|
119
|
-
props.configure.props.dataOrigin.variable = modelValue;
|
|
120
|
-
}
|
|
121
|
-
function fieldsDefaultValue(modelValue) {
|
|
122
|
-
props.configure.props.dataOrigin.fields = modelValue;
|
|
123
|
-
}
|
|
124
|
-
return (_ctx, _cache) => {
|
|
125
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
126
|
-
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
127
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
128
|
-
const _component_el_option = resolveComponent("el-option");
|
|
129
|
-
const _component_el_select = resolveComponent("el-select");
|
|
130
|
-
const _component_el_button = resolveComponent("el-button");
|
|
131
|
-
const _component_el_input = resolveComponent("el-input");
|
|
132
|
-
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
133
|
-
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
134
|
-
title: "数据",
|
|
135
|
-
name: "dataOrigin",
|
|
136
|
-
class: "amb-design-attr-group-header"
|
|
137
|
-
}, {
|
|
138
|
-
default: withCtx(() => [
|
|
139
|
-
createElementVNode("div", _hoisted_1, [
|
|
140
|
-
createVNode(_component_el_form_item, {
|
|
141
|
-
label: "数据来源",
|
|
142
|
-
class: "amb-design-attr-item"
|
|
143
|
-
}, {
|
|
144
|
-
default: withCtx(() => [
|
|
145
|
-
createVNode(_component_el_radio_group, {
|
|
146
|
-
modelValue: __props.configure.props.dataOrigin.optionValueSetType,
|
|
147
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.dataOrigin.optionValueSetType = $event)
|
|
148
|
-
}, {
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
createVNode(_component_el_radio, { value: "variable" }, {
|
|
151
|
-
default: withCtx(() => [
|
|
152
|
-
createTextVNode("变量")
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}),
|
|
156
|
-
createVNode(_component_el_radio, { value: "service" }, {
|
|
157
|
-
default: withCtx(() => [
|
|
158
|
-
createTextVNode("服务")
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
})
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["modelValue"])
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}),
|
|
168
|
-
__props.configure.props.dataOrigin.optionValueSetType === "variable" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
169
|
-
key: 0,
|
|
170
|
-
label: "选择变量",
|
|
171
|
-
class: "amb-design-attr-item"
|
|
172
|
-
}, {
|
|
173
|
-
default: withCtx(() => [
|
|
174
|
-
(openBlock(), createBlock(BindVariable, {
|
|
175
|
-
key: __props.configure.uuid,
|
|
176
|
-
modelValue: __props.configure.props.dataOrigin.variable,
|
|
177
|
-
"onUpdate:modelValue": afterBindDefaultValue
|
|
178
|
-
}, null, 8, ["modelValue"]))
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
})) : createCommentVNode("", true),
|
|
182
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
183
|
-
key: 1,
|
|
184
|
-
label: "选择服务",
|
|
185
|
-
class: "amb-design-attr-item"
|
|
186
|
-
}, {
|
|
187
|
-
default: withCtx(() => [
|
|
188
|
-
createVNode(_sfc_main$1, {
|
|
189
|
-
pageDesign: __props.pageDesign,
|
|
190
|
-
rowObj: __props.configure.props.dataOrigin.service,
|
|
191
|
-
onlyService: "",
|
|
192
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = (type, code, name, serviceId) => afterSelectService(type, code, name, serviceId))
|
|
193
|
-
}, null, 8, ["pageDesign", "rowObj"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
})) : createCommentVNode("", true),
|
|
197
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
198
|
-
key: 2,
|
|
199
|
-
label: "数据集",
|
|
200
|
-
class: "amb-design-attr-item"
|
|
201
|
-
}, {
|
|
202
|
-
default: withCtx(() => [
|
|
203
|
-
createVNode(_component_el_select, {
|
|
204
|
-
modelValue: __props.configure.serviceDataField,
|
|
205
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.serviceDataField = $event),
|
|
206
|
-
placeholder: "请选择"
|
|
207
|
-
}, {
|
|
208
|
-
default: withCtx(() => [
|
|
209
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(showFields.value, (field, index) => {
|
|
210
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
211
|
-
key: index,
|
|
212
|
-
label: field.label,
|
|
213
|
-
value: field.value
|
|
214
|
-
}, {
|
|
215
|
-
default: withCtx(() => [
|
|
216
|
-
createElementVNode("span", _hoisted_2, toDisplayString(field.label), 1),
|
|
217
|
-
createElementVNode("span", _hoisted_3, toDisplayString(field.type), 1)
|
|
218
|
-
]),
|
|
219
|
-
_: 2
|
|
220
|
-
}, 1032, ["label", "value"]);
|
|
221
|
-
}), 128))
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["modelValue"])
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})) : createCommentVNode("", true),
|
|
228
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
229
|
-
key: 3,
|
|
230
|
-
label: "立即查询",
|
|
231
|
-
class: "amb-design-attr-item"
|
|
232
|
-
}, {
|
|
233
|
-
default: withCtx(() => [
|
|
234
|
-
createVNode(_component_el_radio_group, {
|
|
235
|
-
modelValue: __props.configure.props.dataOrigin.initializationQuery,
|
|
236
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.dataOrigin.initializationQuery = $event),
|
|
237
|
-
class: "ml-4"
|
|
238
|
-
}, {
|
|
239
|
-
default: withCtx(() => [
|
|
240
|
-
createVNode(_component_el_radio, { value: true }, {
|
|
241
|
-
default: withCtx(() => [
|
|
242
|
-
createTextVNode("是")
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
}),
|
|
246
|
-
createVNode(_component_el_radio, { value: false }, {
|
|
247
|
-
default: withCtx(() => [
|
|
248
|
-
createTextVNode("否")
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
})
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
}, 8, ["modelValue"])
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
})) : createCommentVNode("", true),
|
|
258
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
259
|
-
key: 4,
|
|
260
|
-
label: "行列转换",
|
|
261
|
-
class: "amb-design-attr-item"
|
|
262
|
-
}, {
|
|
263
|
-
default: withCtx(() => [
|
|
264
|
-
createVNode(_component_el_radio_group, {
|
|
265
|
-
modelValue: __props.configure.props.dataOrigin.transition,
|
|
266
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.dataOrigin.transition = $event),
|
|
267
|
-
class: "ml-4"
|
|
268
|
-
}, {
|
|
269
|
-
default: withCtx(() => [
|
|
270
|
-
createVNode(_component_el_radio, { value: false }, {
|
|
271
|
-
default: withCtx(() => [
|
|
272
|
-
createTextVNode("否")
|
|
273
|
-
]),
|
|
274
|
-
_: 1
|
|
275
|
-
}),
|
|
276
|
-
createVNode(_component_el_radio, { value: "lineRoll" }, {
|
|
277
|
-
default: withCtx(() => [
|
|
278
|
-
createTextVNode("行转列")
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}),
|
|
282
|
-
createVNode(_component_el_radio, { value: "rowSwitch" }, {
|
|
283
|
-
default: withCtx(() => [
|
|
284
|
-
createTextVNode("列转行")
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
})
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}, 8, ["modelValue"])
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
})) : createCommentVNode("", true),
|
|
294
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition ? (openBlock(), createBlock(_component_el_form_item, {
|
|
295
|
-
key: 5,
|
|
296
|
-
title: "统计分组字段",
|
|
297
|
-
label: "分组字段",
|
|
298
|
-
class: "amb-design-attr-item"
|
|
299
|
-
}, {
|
|
300
|
-
default: withCtx(() => [
|
|
301
|
-
createVNode(_component_el_select, {
|
|
302
|
-
modelValue: __props.configure.props.dataOrigin.groupingField,
|
|
303
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.dataOrigin.groupingField = $event),
|
|
304
|
-
placeholder: "请选择"
|
|
305
|
-
}, {
|
|
306
|
-
default: withCtx(() => [
|
|
307
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.items, (item, index) => {
|
|
308
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
309
|
-
key: item.uuid,
|
|
310
|
-
label: item.props.base.name,
|
|
311
|
-
value: item.props.base.prop
|
|
312
|
-
}, null, 8, ["label", "value"]);
|
|
313
|
-
}), 128))
|
|
314
|
-
]),
|
|
315
|
-
_: 1
|
|
316
|
-
}, 8, ["modelValue"])
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
})) : createCommentVNode("", true),
|
|
320
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "lineRoll" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
321
|
-
key: 6,
|
|
322
|
-
label: "列字段",
|
|
323
|
-
class: "amb-design-attr-item"
|
|
324
|
-
}, {
|
|
325
|
-
default: withCtx(() => [
|
|
326
|
-
createVNode(_component_el_button, {
|
|
327
|
-
type: "primary",
|
|
328
|
-
onClick: addSortField
|
|
329
|
-
}, {
|
|
330
|
-
default: withCtx(() => [
|
|
331
|
-
createTextVNode("添加")
|
|
332
|
-
]),
|
|
333
|
-
_: 1
|
|
334
|
-
}),
|
|
335
|
-
createVNode(_component_el_button, { onClick: removeSortField }, {
|
|
336
|
-
default: withCtx(() => [
|
|
337
|
-
createTextVNode("删除")
|
|
338
|
-
]),
|
|
339
|
-
_: 1
|
|
340
|
-
}),
|
|
341
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.props.dataOrigin.sortField, (item, index) => {
|
|
342
|
-
return openBlock(), createElementBlock("div", {
|
|
343
|
-
key: index,
|
|
344
|
-
onClick: ($event) => seleteSort(index),
|
|
345
|
-
style: { "margin-top": "10px" },
|
|
346
|
-
class: normalizeClass(
|
|
347
|
-
atPresentSortIndex.value === index ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline"
|
|
348
|
-
)
|
|
349
|
-
}, [
|
|
350
|
-
createVNode(_component_el_select, {
|
|
351
|
-
modelValue: item.name,
|
|
352
|
-
"onUpdate:modelValue": ($event) => item.name = $event,
|
|
353
|
-
placeholder: "请选择"
|
|
354
|
-
}, {
|
|
355
|
-
default: withCtx(() => [
|
|
356
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.modelFields, (Ttime, index2) => {
|
|
357
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
358
|
-
key: index2,
|
|
359
|
-
label: Ttime.alias,
|
|
360
|
-
value: Ttime.dbColumnName
|
|
361
|
-
}, null, 8, ["label", "value"]);
|
|
362
|
-
}), 128))
|
|
363
|
-
]),
|
|
364
|
-
_: 2
|
|
365
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
366
|
-
createVNode(_component_el_select, {
|
|
367
|
-
modelValue: item.type,
|
|
368
|
-
"onUpdate:modelValue": ($event) => item.type = $event,
|
|
369
|
-
style: { "margin-left": "10px" },
|
|
370
|
-
placeholder: "请选择"
|
|
371
|
-
}, {
|
|
372
|
-
default: withCtx(() => [
|
|
373
|
-
createVNode(_component_el_option, {
|
|
374
|
-
label: "升序",
|
|
375
|
-
value: "asc"
|
|
376
|
-
}),
|
|
377
|
-
createVNode(_component_el_option, {
|
|
378
|
-
label: "降序",
|
|
379
|
-
value: "des"
|
|
380
|
-
})
|
|
381
|
-
]),
|
|
382
|
-
_: 2
|
|
383
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
384
|
-
], 10, _hoisted_4);
|
|
385
|
-
}), 128))
|
|
386
|
-
]),
|
|
387
|
-
_: 1
|
|
388
|
-
})) : createCommentVNode("", true),
|
|
389
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "rowSwitch" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
390
|
-
key: 7,
|
|
391
|
-
label: "转换列字段",
|
|
392
|
-
class: "amb-design-attr-item"
|
|
393
|
-
}, {
|
|
394
|
-
default: withCtx(() => [
|
|
395
|
-
createVNode(_component_el_button, {
|
|
396
|
-
type: "primary",
|
|
397
|
-
onClick: addSortField
|
|
398
|
-
}, {
|
|
399
|
-
default: withCtx(() => [
|
|
400
|
-
createTextVNode("添加")
|
|
401
|
-
]),
|
|
402
|
-
_: 1
|
|
403
|
-
}),
|
|
404
|
-
createVNode(_component_el_button, { onClick: removeSortField }, {
|
|
405
|
-
default: withCtx(() => [
|
|
406
|
-
createTextVNode("删除")
|
|
407
|
-
]),
|
|
408
|
-
_: 1
|
|
409
|
-
}),
|
|
410
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.props.dataOrigin.sortField, (item, index) => {
|
|
411
|
-
return openBlock(), createElementBlock("div", {
|
|
412
|
-
key: index,
|
|
413
|
-
onClick: ($event) => seleteSort(index),
|
|
414
|
-
style: { "margin-top": "10px" },
|
|
415
|
-
class: normalizeClass(
|
|
416
|
-
atPresentSortIndex.value === index ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline"
|
|
417
|
-
)
|
|
418
|
-
}, [
|
|
419
|
-
createVNode(_component_el_select, {
|
|
420
|
-
modelValue: item.name,
|
|
421
|
-
"onUpdate:modelValue": ($event) => item.name = $event,
|
|
422
|
-
placeholder: "请选择"
|
|
423
|
-
}, {
|
|
424
|
-
default: withCtx(() => [
|
|
425
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.modelFields, (Ttime, index2) => {
|
|
426
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
427
|
-
key: index2,
|
|
428
|
-
label: Ttime.alias,
|
|
429
|
-
value: Ttime.dbColumnName
|
|
430
|
-
}, null, 8, ["label", "value"]);
|
|
431
|
-
}), 128))
|
|
432
|
-
]),
|
|
433
|
-
_: 2
|
|
434
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
435
|
-
createVNode(_component_el_select, {
|
|
436
|
-
modelValue: item.type,
|
|
437
|
-
"onUpdate:modelValue": ($event) => item.type = $event,
|
|
438
|
-
style: { "margin-left": "10px" },
|
|
439
|
-
placeholder: "请选择"
|
|
440
|
-
}, {
|
|
441
|
-
default: withCtx(() => [
|
|
442
|
-
createVNode(_component_el_option, {
|
|
443
|
-
label: "升序",
|
|
444
|
-
value: "asc"
|
|
445
|
-
}),
|
|
446
|
-
createVNode(_component_el_option, {
|
|
447
|
-
label: "降序",
|
|
448
|
-
value: "des"
|
|
449
|
-
})
|
|
450
|
-
]),
|
|
451
|
-
_: 2
|
|
452
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
453
|
-
], 10, _hoisted_5);
|
|
454
|
-
}), 128))
|
|
455
|
-
]),
|
|
456
|
-
_: 1
|
|
457
|
-
})) : createCommentVNode("", true),
|
|
458
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "rowSwitch" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
459
|
-
key: 8,
|
|
460
|
-
label: "名称字段名",
|
|
461
|
-
class: "amb-design-attr-item"
|
|
462
|
-
}, {
|
|
463
|
-
default: withCtx(() => [
|
|
464
|
-
createVNode(_component_el_input, {
|
|
465
|
-
modelValue: __props.configure.props.dataOrigin.fieldName,
|
|
466
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.dataOrigin.fieldName = $event),
|
|
467
|
-
style: { "width": "240px" },
|
|
468
|
-
placeholder: "Please input"
|
|
469
|
-
}, null, 8, ["modelValue"])
|
|
470
|
-
]),
|
|
471
|
-
_: 1
|
|
472
|
-
})) : createCommentVNode("", true),
|
|
473
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "rowSwitch" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
474
|
-
key: 9,
|
|
475
|
-
label: "数据字段名",
|
|
476
|
-
class: "amb-design-attr-item"
|
|
477
|
-
}, {
|
|
478
|
-
default: withCtx(() => [
|
|
479
|
-
createVNode(_component_el_input, {
|
|
480
|
-
modelValue: __props.configure.props.dataOrigin.fieldData,
|
|
481
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.dataOrigin.fieldData = $event),
|
|
482
|
-
style: { "width": "240px" },
|
|
483
|
-
placeholder: "Please input"
|
|
484
|
-
}, null, 8, ["modelValue"])
|
|
485
|
-
]),
|
|
486
|
-
_: 1
|
|
487
|
-
})) : createCommentVNode("", true),
|
|
488
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "rowSwitch" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
489
|
-
key: 10,
|
|
490
|
-
label: "数据格式化",
|
|
491
|
-
class: "amb-design-attr-item"
|
|
492
|
-
}, {
|
|
493
|
-
default: withCtx(() => [
|
|
494
|
-
createVNode(_component_el_select, {
|
|
495
|
-
modelValue: __props.configure.props.dataOrigin.dataFormatting,
|
|
496
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.dataOrigin.dataFormatting = $event),
|
|
497
|
-
placeholder: "请选择"
|
|
498
|
-
}, {
|
|
499
|
-
default: withCtx(() => [
|
|
500
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCustomFuncs)(), (item) => {
|
|
501
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
502
|
-
key: item.value,
|
|
503
|
-
label: item.label,
|
|
504
|
-
value: item.value
|
|
505
|
-
}, null, 8, ["label", "value"]);
|
|
506
|
-
}), 128))
|
|
507
|
-
]),
|
|
508
|
-
_: 1
|
|
509
|
-
}, 8, ["modelValue"])
|
|
510
|
-
]),
|
|
511
|
-
_: 1
|
|
512
|
-
})) : createCommentVNode("", true),
|
|
513
|
-
__props.configure.props.dataOrigin.optionValueSetType === "service" && __props.configure.props.dataOrigin.transition === "rowSwitch" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
514
|
-
key: 11,
|
|
515
|
-
label: "设置到变量",
|
|
516
|
-
class: "amb-design-attr-item"
|
|
517
|
-
}, {
|
|
518
|
-
default: withCtx(() => [
|
|
519
|
-
(openBlock(), createBlock(BindVariable, {
|
|
520
|
-
key: __props.configure.uuid,
|
|
521
|
-
modelValue: __props.configure.props.dataOrigin.fields,
|
|
522
|
-
"onUpdate:modelValue": fieldsDefaultValue
|
|
523
|
-
}, null, 8, ["modelValue"]))
|
|
524
|
-
]),
|
|
525
|
-
_: 1
|
|
526
|
-
})) : createCommentVNode("", true),
|
|
527
|
-
withDirectives(createVNode(_sfc_main$2, {
|
|
528
|
-
ref: "dataOriginServiceInRef",
|
|
529
|
-
dataOrigin: unref(dataOriginInfo)
|
|
530
|
-
}, null, 8, ["dataOrigin"]), [
|
|
531
|
-
[vShow, __props.configure.props.dataOrigin.optionValueSetType == "service"]
|
|
532
|
-
])
|
|
533
|
-
])
|
|
534
|
-
]),
|
|
535
|
-
_: 1
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
export {
|
|
541
|
-
_sfc_main as default
|
|
542
|
-
};
|