super-page-designer 2.1.52 → 2.1.58
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 +13 -22
- package/dist/es/components/design/utils/chart-design-util.js +17 -1
- package/dist/es/components/design/utils/data-table-util.js +11 -9
- package/dist/es/components/design/utils/form-design-util.js +5 -0
- package/dist/es/components/design/utils/page-explore-util.js +0 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +60 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue.js +22 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +89 -23
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +13 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +347 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +77 -50
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -734
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +9 -2
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -11
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +31 -5
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +5 -37
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +45 -15
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +3 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +5 -3
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +11 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.js +14 -13
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +45 -1
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +30 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +3 -3
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -14
- package/dist/es/style.css +82 -82
- package/package.json +6 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +0 -205
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +0 -4
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createElementBlock, Fragment, createTextVNode, renderList, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import BindVariable from "../../../common/common-variable-bind.vue.js";
|
|
3
|
+
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
4
|
+
const _hoisted_2 = { style: { "float": "left" } };
|
|
5
|
+
const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "table-pageination",
|
|
8
|
+
props: {
|
|
9
|
+
pageDesign: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => ({ props: {} })
|
|
12
|
+
},
|
|
13
|
+
configure: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({ props: {} })
|
|
16
|
+
},
|
|
17
|
+
serviceFields: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
if (!props.configure.pageination) {
|
|
25
|
+
props.configure.pageination = {
|
|
26
|
+
enable: false,
|
|
27
|
+
type: "frontend",
|
|
28
|
+
pageSize: 10,
|
|
29
|
+
pageSizes: "20,30,50,100",
|
|
30
|
+
total: true,
|
|
31
|
+
prev: true,
|
|
32
|
+
next: true,
|
|
33
|
+
pager: true,
|
|
34
|
+
jumper: true
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
39
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
40
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
41
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
42
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
43
|
+
const _component_el_input = resolveComponent("el-input");
|
|
44
|
+
const _component_el_option = resolveComponent("el-option");
|
|
45
|
+
const _component_el_select = resolveComponent("el-select");
|
|
46
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
47
|
+
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
48
|
+
title: "分页设置",
|
|
49
|
+
name: "pageination",
|
|
50
|
+
class: "amb-design-attr-group-header"
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createElementVNode("div", _hoisted_1, [
|
|
54
|
+
createVNode(_component_el_form_item, {
|
|
55
|
+
label: "启用分页",
|
|
56
|
+
class: "amb-design-attr-item"
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createVNode(_component_el_switch, {
|
|
60
|
+
modelValue: __props.configure.pageination.enable,
|
|
61
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.pageination.enable = $event),
|
|
62
|
+
"inline-prompt": "",
|
|
63
|
+
"active-text": "是",
|
|
64
|
+
"inactive-text": "否"
|
|
65
|
+
}, null, 8, ["modelValue"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
__props.configure.pageination.enable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
70
|
+
createVNode(_component_el_form_item, {
|
|
71
|
+
label: "分页方式",
|
|
72
|
+
class: "amb-design-attr-item"
|
|
73
|
+
}, {
|
|
74
|
+
default: withCtx(() => [
|
|
75
|
+
createVNode(_component_el_radio_group, {
|
|
76
|
+
modelValue: __props.configure.pageination.type,
|
|
77
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.pageination.type = $event),
|
|
78
|
+
class: "ml-4"
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createVNode(_component_el_radio, { value: "frontend" }, {
|
|
82
|
+
default: withCtx(() => [
|
|
83
|
+
createTextVNode("前端分页")
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
createVNode(_component_el_radio, { value: "backend" }, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
createTextVNode("后端分页")
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["modelValue"])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
createVNode(_component_el_form_item, {
|
|
100
|
+
label: "默认行数",
|
|
101
|
+
class: "amb-design-attr-item"
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [
|
|
104
|
+
createVNode(_component_el_input_number, {
|
|
105
|
+
modelValue: __props.configure.pageination.pageSize,
|
|
106
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.pageination.pageSize = $event),
|
|
107
|
+
min: 1,
|
|
108
|
+
"controls-position": "right"
|
|
109
|
+
}, null, 8, ["modelValue"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
createVNode(_component_el_form_item, {
|
|
114
|
+
label: "可选行数",
|
|
115
|
+
class: "amb-design-attr-item"
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
createVNode(_component_el_input, {
|
|
119
|
+
modelValue: __props.configure.pageination.pageSizes,
|
|
120
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.pageination.pageSizes = $event)
|
|
121
|
+
}, null, 8, ["modelValue"])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}),
|
|
125
|
+
createVNode(_component_el_form_item, {
|
|
126
|
+
label: "总条目数",
|
|
127
|
+
class: "amb-design-attr-item"
|
|
128
|
+
}, {
|
|
129
|
+
default: withCtx(() => [
|
|
130
|
+
createVNode(_component_el_radio_group, {
|
|
131
|
+
modelValue: __props.configure.pageination.total,
|
|
132
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.pageination.total = $event),
|
|
133
|
+
class: "ml-4"
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => [
|
|
136
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
createTextVNode("显示")
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}),
|
|
142
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createTextVNode("隐藏")
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["modelValue"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}),
|
|
154
|
+
__props.configure.pageination.type === "backend" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
155
|
+
createVNode(_component_el_form_item, {
|
|
156
|
+
label: "当前页",
|
|
157
|
+
class: "amb-design-attr-item"
|
|
158
|
+
}, {
|
|
159
|
+
default: withCtx(() => [
|
|
160
|
+
createVNode(BindVariable, {
|
|
161
|
+
modelValue: __props.configure.pageination.currentPageSet,
|
|
162
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.pageination.currentPageSet = $event),
|
|
163
|
+
placeholder: "设置到变量"
|
|
164
|
+
}, null, 8, ["modelValue"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
createVNode(_component_el_form_item, {
|
|
169
|
+
label: "分页大小",
|
|
170
|
+
class: "amb-design-attr-item"
|
|
171
|
+
}, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createVNode(BindVariable, {
|
|
174
|
+
modelValue: __props.configure.pageination.pageSizeSet,
|
|
175
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.pageination.pageSizeSet = $event),
|
|
176
|
+
placeholder: "设置到变量"
|
|
177
|
+
}, null, 8, ["modelValue"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}),
|
|
181
|
+
__props.configure.pageination.total ? (openBlock(), createBlock(_component_el_form_item, {
|
|
182
|
+
key: 0,
|
|
183
|
+
label: "总条数",
|
|
184
|
+
class: "amb-design-attr-item"
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [
|
|
187
|
+
__props.configure.props.dataOrigin.dataSource === "variable" ? (openBlock(), createBlock(BindVariable, {
|
|
188
|
+
key: 0,
|
|
189
|
+
modelValue: __props.configure.pageination.totalFrom,
|
|
190
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.pageination.totalFrom = $event),
|
|
191
|
+
placeholder: "总条数从变量中获取"
|
|
192
|
+
}, null, 8, ["modelValue"])) : (openBlock(), createBlock(_component_el_select, {
|
|
193
|
+
key: 1,
|
|
194
|
+
modelValue: __props.configure.pageination.totalFrom,
|
|
195
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.pageination.totalFrom = $event),
|
|
196
|
+
placeholder: "变量从返回值中获取",
|
|
197
|
+
"allow-create": "",
|
|
198
|
+
filterable: ""
|
|
199
|
+
}, {
|
|
200
|
+
default: withCtx(() => [
|
|
201
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.serviceFields, (item) => {
|
|
202
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
203
|
+
key: item.value,
|
|
204
|
+
label: item.label,
|
|
205
|
+
value: item.value
|
|
206
|
+
}, {
|
|
207
|
+
default: withCtx(() => [
|
|
208
|
+
createElementVNode("span", _hoisted_2, toDisplayString(item.label), 1),
|
|
209
|
+
createElementVNode("span", _hoisted_3, toDisplayString(item.type), 1)
|
|
210
|
+
]),
|
|
211
|
+
_: 2
|
|
212
|
+
}, 1032, ["label", "value"]);
|
|
213
|
+
}), 128))
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["modelValue"]))
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
})) : createCommentVNode("", true)
|
|
220
|
+
], 64)) : createCommentVNode("", true),
|
|
221
|
+
createVNode(_component_el_form_item, {
|
|
222
|
+
label: "上一页",
|
|
223
|
+
class: "amb-design-attr-item"
|
|
224
|
+
}, {
|
|
225
|
+
default: withCtx(() => [
|
|
226
|
+
createVNode(_component_el_radio_group, {
|
|
227
|
+
modelValue: __props.configure.pageination.prev,
|
|
228
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.pageination.prev = $event),
|
|
229
|
+
class: "ml-4"
|
|
230
|
+
}, {
|
|
231
|
+
default: withCtx(() => [
|
|
232
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
233
|
+
default: withCtx(() => [
|
|
234
|
+
createTextVNode("显示")
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
239
|
+
default: withCtx(() => [
|
|
240
|
+
createTextVNode("隐藏")
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["modelValue"])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
createVNode(_component_el_form_item, {
|
|
251
|
+
label: "下一页",
|
|
252
|
+
class: "amb-design-attr-item"
|
|
253
|
+
}, {
|
|
254
|
+
default: withCtx(() => [
|
|
255
|
+
createVNode(_component_el_radio_group, {
|
|
256
|
+
modelValue: __props.configure.pageination.next,
|
|
257
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.pageination.next = $event),
|
|
258
|
+
class: "ml-4"
|
|
259
|
+
}, {
|
|
260
|
+
default: withCtx(() => [
|
|
261
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
262
|
+
default: withCtx(() => [
|
|
263
|
+
createTextVNode("显示")
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}),
|
|
267
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
createTextVNode("隐藏")
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
})
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["modelValue"])
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}),
|
|
279
|
+
createVNode(_component_el_form_item, {
|
|
280
|
+
label: "跳转页码",
|
|
281
|
+
class: "amb-design-attr-item"
|
|
282
|
+
}, {
|
|
283
|
+
default: withCtx(() => [
|
|
284
|
+
createVNode(_component_el_radio_group, {
|
|
285
|
+
modelValue: __props.configure.pageination.pager,
|
|
286
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.pageination.pager = $event),
|
|
287
|
+
class: "ml-4"
|
|
288
|
+
}, {
|
|
289
|
+
default: withCtx(() => [
|
|
290
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
291
|
+
default: withCtx(() => [
|
|
292
|
+
createTextVNode("显示")
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}),
|
|
296
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
297
|
+
default: withCtx(() => [
|
|
298
|
+
createTextVNode("隐藏")
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
})
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["modelValue"])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}),
|
|
308
|
+
createVNode(_component_el_form_item, {
|
|
309
|
+
label: "跳转到指定页",
|
|
310
|
+
class: "amb-design-attr-item"
|
|
311
|
+
}, {
|
|
312
|
+
default: withCtx(() => [
|
|
313
|
+
createVNode(_component_el_radio_group, {
|
|
314
|
+
modelValue: __props.configure.pageination.jumper,
|
|
315
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.pageination.jumper = $event),
|
|
316
|
+
class: "ml-4"
|
|
317
|
+
}, {
|
|
318
|
+
default: withCtx(() => [
|
|
319
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
320
|
+
default: withCtx(() => [
|
|
321
|
+
createTextVNode("显示")
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}),
|
|
325
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
326
|
+
default: withCtx(() => [
|
|
327
|
+
createTextVNode("隐藏")
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
})
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["modelValue"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
})
|
|
337
|
+
], 64)) : createCommentVNode("", true)
|
|
338
|
+
])
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
});
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
export {
|
|
346
|
+
_sfc_main as default
|
|
347
|
+
};
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
const dialogTableVisible = ref(false);
|
|
47
47
|
let dataFieldNameList;
|
|
48
48
|
const pageType = props.pageDesign ? props.pageDesign.pageType : null;
|
|
49
|
-
if (pageType && pageType === "form") {
|
|
49
|
+
if (pageType && (pageType === "form" || pageType === "list")) {
|
|
50
50
|
dataFieldNameList = props.pageDesign.modelFields;
|
|
51
51
|
}
|
|
52
52
|
const dataModelOptions = ref(null);
|
|
@@ -110,10 +110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
110
|
}, {
|
|
111
111
|
default: withCtx(() => [
|
|
112
112
|
createElementVNode("div", _hoisted_2, [
|
|
113
|
-
createVNode(CompositeHeader, {
|
|
114
|
-
isStatistical: true,
|
|
115
|
-
configure: __props.configure
|
|
116
|
-
}, null, 8, ["configure"])
|
|
113
|
+
createVNode(CompositeHeader, { configure: __props.configure }, null, 8, ["configure"])
|
|
117
114
|
])
|
|
118
115
|
]),
|
|
119
116
|
_: 1
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import { getFormComponentOptions, getStatisticsTableColumn } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import DataOrigin from "./component/data-origin.vue.js";
|
|
4
|
+
import _sfc_main$4 from "./component/style-table.vue.js";
|
|
5
|
+
import "@element-plus/icons";
|
|
6
|
+
import { InfoFilled } from "@element-plus/icons-vue";
|
|
7
|
+
import "agilebuilder-ui/src/utils/request";
|
|
8
|
+
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
9
|
+
import "../../../../../../stores/page-store.js";
|
|
10
|
+
import "../../../../../../stores/table-store.js";
|
|
11
|
+
import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
|
|
12
|
+
import "../../common/common-variable-bind.vue2.js";
|
|
13
|
+
import "@vueuse/core";
|
|
14
|
+
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
15
|
+
import _sfc_main$5 from "./component/table-pageination.vue.js";
|
|
4
16
|
import _sfc_main$6 from "../../common/common-attr-size.vue.js";
|
|
5
17
|
import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
|
|
6
|
-
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
7
18
|
import { addColumnToGroupHeaders, getColumnsWithGroupHeader } from "../../../../utils/data-table-util.js";
|
|
8
|
-
import "agilebuilder-ui/src/utils/request";
|
|
9
19
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
10
20
|
import _sfc_main$3 from "../../data/component/formatting-icon-label.vue.js";
|
|
11
|
-
import _sfc_main$4 from "./component/style-table.vue.js";
|
|
12
|
-
import _sfc_main$5 from "./component/link-table.vue.js";
|
|
13
|
-
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
14
21
|
import eventBus from "../../../../utils/eventBus.js";
|
|
15
|
-
import { InfoFilled } from "@element-plus/icons-vue";
|
|
16
|
-
import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
|
|
17
22
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
18
23
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
19
24
|
const _hoisted_3 = { style: { "float": "left" } };
|
|
@@ -33,8 +38,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
38
|
},
|
|
34
39
|
setup(__props) {
|
|
35
40
|
const props = __props;
|
|
36
|
-
const openCollapseItems = ref([
|
|
41
|
+
const openCollapseItems = ref([
|
|
42
|
+
"base",
|
|
43
|
+
"appearance",
|
|
44
|
+
"dataOrigin",
|
|
45
|
+
"linkage",
|
|
46
|
+
"attrSize",
|
|
47
|
+
"columnModel",
|
|
48
|
+
"dataSet",
|
|
49
|
+
"pageination"
|
|
50
|
+
]);
|
|
37
51
|
const statisticsTableStore = statisticsTable();
|
|
52
|
+
const selectedServiceResultFields = ref([]);
|
|
53
|
+
const sourceFields = ref([]);
|
|
38
54
|
if (!props.configure.items) {
|
|
39
55
|
props.configure.items = [
|
|
40
56
|
{
|
|
@@ -50,11 +66,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
66
|
function columnStyleChange(data, index) {
|
|
51
67
|
props.configure.items[index].style = data;
|
|
52
68
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
function addRow() {
|
|
70
|
+
const fieldInfo = {
|
|
71
|
+
alias: "",
|
|
72
|
+
displayOrder: props.configure.items.length + 1
|
|
73
|
+
};
|
|
74
|
+
props.configure.items.push(getStatisticsTableColumn(fieldInfo));
|
|
58
75
|
}
|
|
59
76
|
function addData(rowItem, index) {
|
|
60
77
|
const fieldInfo = {
|
|
@@ -70,10 +87,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
87
|
}
|
|
71
88
|
}
|
|
72
89
|
function deleteData(rowItem, index) {
|
|
73
|
-
if (props.configure.items.length == 1) {
|
|
74
|
-
rowItem.format = {};
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
90
|
props.configure.items.splice(index, 1);
|
|
78
91
|
}
|
|
79
92
|
const expandedRowKeys = ref([]);
|
|
@@ -85,9 +98,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
98
|
expandedRowKeys.value.push(row.uuid);
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
|
-
|
|
101
|
+
function updateBindVariableFields(variableField) {
|
|
102
|
+
if (!variableField) {
|
|
103
|
+
sourceFields.value = [];
|
|
104
|
+
}
|
|
105
|
+
if (variableField.startsWith("${page.")) {
|
|
106
|
+
const varName = variableField.substring(7, variableField.length - 1);
|
|
107
|
+
const pageField = props.pageDesign.variables.find((item) => item.name === varName);
|
|
108
|
+
if (pageField && pageField.type === "array" && pageField.items && pageField.items.length > 0) {
|
|
109
|
+
const copyItems = JSON.parse(JSON.stringify(pageField.items[0].items));
|
|
110
|
+
sourceFields.value = copyItems.map((item) => {
|
|
111
|
+
return {
|
|
112
|
+
label: item.alias,
|
|
113
|
+
value: item.name,
|
|
114
|
+
type: item.type
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
89
120
|
function updateBindFields(serviceFields) {
|
|
90
121
|
const newFields = [];
|
|
122
|
+
selectedServiceResultFields.value = serviceFields;
|
|
91
123
|
if (serviceFields) {
|
|
92
124
|
const serviceDataCollection = props.configure.props.dataOrigin.service.serviceDataField;
|
|
93
125
|
const prevField = serviceDataCollection ? serviceDataCollection : "";
|
|
@@ -200,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
200
232
|
default: withCtx(() => [
|
|
201
233
|
createVNode(_component_el_collapse, {
|
|
202
234
|
modelValue: openCollapseItems.value,
|
|
203
|
-
"onUpdate:modelValue": _cache[
|
|
235
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => openCollapseItems.value = $event),
|
|
204
236
|
style: { "margin-top": "6px" }
|
|
205
237
|
}, {
|
|
206
238
|
default: withCtx(() => [
|
|
@@ -327,6 +359,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
327
359
|
sourceFields: sourceFields.value,
|
|
328
360
|
configure: __props.configure,
|
|
329
361
|
remote: false,
|
|
362
|
+
onBindVariableChange: updateBindVariableFields,
|
|
330
363
|
onServiceFieldChange: updateBindFields
|
|
331
364
|
}, null, 8, ["pageDesign", "sourceFields", "configure"]),
|
|
332
365
|
createVNode(_sfc_main$2, {
|
|
@@ -353,10 +386,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
353
386
|
}, {
|
|
354
387
|
default: withCtx((props2) => [
|
|
355
388
|
createVNode(_component_el_form_item, {
|
|
356
|
-
label: "数据公式",
|
|
357
389
|
class: "amb-design-attr-item",
|
|
358
390
|
"label-position": "top"
|
|
359
391
|
}, {
|
|
392
|
+
label: withCtx(() => [
|
|
393
|
+
createTextVNode(" 数据公式 ")
|
|
394
|
+
]),
|
|
360
395
|
default: withCtx(() => [
|
|
361
396
|
createVNode(_component_el_input, {
|
|
362
397
|
modelValue: props2.row.formula,
|
|
@@ -1074,32 +1109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1074
1109
|
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1075
1110
|
data: props2.row.style,
|
|
1076
1111
|
onDataChange: (data) => columnStyleChange(data, props2.$index)
|
|
1077
|
-
}, null, 8, ["configure", "data", "onDataChange"])
|
|
1078
|
-
createVNode(_component_el_divider, null, {
|
|
1079
|
-
default: withCtx(() => [
|
|
1080
|
-
createTextVNode("标题样式")
|
|
1081
|
-
]),
|
|
1082
|
-
_: 1
|
|
1083
|
-
}),
|
|
1084
|
-
createVNode(_sfc_main$4, {
|
|
1085
|
-
configure: __props.configure,
|
|
1086
|
-
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1087
|
-
showField: false,
|
|
1088
|
-
data: props2.row.titleStyle,
|
|
1089
|
-
onDataChange: (data) => columnTitleStyleChange(data, props2.$index)
|
|
1090
|
-
}, null, 8, ["configure", "data", "onDataChange"]),
|
|
1091
|
-
createVNode(_component_el_divider, null, {
|
|
1092
|
-
default: withCtx(() => [
|
|
1093
|
-
createTextVNode("链接设置")
|
|
1094
|
-
]),
|
|
1095
|
-
_: 1
|
|
1096
|
-
}),
|
|
1097
|
-
createVNode(_sfc_main$5, {
|
|
1098
|
-
pageDesign: __props.pageDesign,
|
|
1099
|
-
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1100
|
-
data: props2.row.linkPage,
|
|
1101
|
-
onDataChange: (data) => linkChange(data, props2.$index)
|
|
1102
|
-
}, null, 8, ["pageDesign", "data", "onDataChange"])
|
|
1112
|
+
}, null, 8, ["configure", "data", "onDataChange"])
|
|
1103
1113
|
]),
|
|
1104
1114
|
_: 1
|
|
1105
1115
|
}),
|
|
@@ -1155,6 +1165,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1155
1165
|
label: "操作",
|
|
1156
1166
|
align: "center"
|
|
1157
1167
|
}, {
|
|
1168
|
+
header: withCtx(() => [
|
|
1169
|
+
createVNode(_component_el_icon, {
|
|
1170
|
+
size: "14",
|
|
1171
|
+
style: { "color": "#5893ef", "cursor": "pointer", "font-weight": "bold", "margin-right": "8px" },
|
|
1172
|
+
onClick: _cache[5] || (_cache[5] = ($event) => addRow())
|
|
1173
|
+
}, {
|
|
1174
|
+
default: withCtx(() => [
|
|
1175
|
+
createVNode(_component_Plus)
|
|
1176
|
+
]),
|
|
1177
|
+
_: 1
|
|
1178
|
+
})
|
|
1179
|
+
]),
|
|
1158
1180
|
default: withCtx((scope) => [
|
|
1159
1181
|
createVNode(_component_el_icon, {
|
|
1160
1182
|
size: "14",
|
|
@@ -1189,7 +1211,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1189
1211
|
default: withCtx(() => [
|
|
1190
1212
|
createVNode(_component_el_select, {
|
|
1191
1213
|
modelValue: __props.configure.props.modelCustom,
|
|
1192
|
-
"onUpdate:modelValue": _cache[
|
|
1214
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.modelCustom = $event),
|
|
1193
1215
|
clearable: ""
|
|
1194
1216
|
}, {
|
|
1195
1217
|
default: withCtx(() => [
|
|
@@ -1210,6 +1232,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1210
1232
|
]),
|
|
1211
1233
|
_: 1
|
|
1212
1234
|
}),
|
|
1235
|
+
createVNode(_sfc_main$5, {
|
|
1236
|
+
configure: __props.configure,
|
|
1237
|
+
pageDesign: __props.pageDesign,
|
|
1238
|
+
serviceFields: selectedServiceResultFields.value
|
|
1239
|
+
}, null, 8, ["configure", "pageDesign", "serviceFields"]),
|
|
1213
1240
|
createVNode(_component_el_collapse_item, {
|
|
1214
1241
|
title: "外观",
|
|
1215
1242
|
name: "appearance",
|
|
@@ -1224,7 +1251,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1224
1251
|
default: withCtx(() => [
|
|
1225
1252
|
createVNode(_component_el_radio_group, {
|
|
1226
1253
|
modelValue: __props.configure.props.base.showIndex,
|
|
1227
|
-
"onUpdate:modelValue": _cache[
|
|
1254
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.showIndex = $event),
|
|
1228
1255
|
class: "ml-4"
|
|
1229
1256
|
}, {
|
|
1230
1257
|
default: withCtx(() => [
|
|
@@ -1253,7 +1280,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1253
1280
|
default: withCtx(() => [
|
|
1254
1281
|
createVNode(_component_el_radio_group, {
|
|
1255
1282
|
modelValue: __props.configure.props.base.stripe,
|
|
1256
|
-
"onUpdate:modelValue": _cache[
|
|
1283
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.base.stripe = $event),
|
|
1257
1284
|
class: "ml-4"
|
|
1258
1285
|
}, {
|
|
1259
1286
|
default: withCtx(() => [
|
|
@@ -1282,7 +1309,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1282
1309
|
default: withCtx(() => [
|
|
1283
1310
|
createVNode(_component_el_radio_group, {
|
|
1284
1311
|
modelValue: __props.configure.props.base.showSummary,
|
|
1285
|
-
"onUpdate:modelValue": _cache[
|
|
1312
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.showSummary = $event),
|
|
1286
1313
|
class: "ml-4"
|
|
1287
1314
|
}, {
|
|
1288
1315
|
default: withCtx(() => [
|
|
@@ -78,6 +78,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
78
78
|
type: BooleanConstructor;
|
|
79
79
|
default: boolean;
|
|
80
80
|
};
|
|
81
|
+
placeholder: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
81
85
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
86
|
"update:modelValue": (...args: any[]) => void;
|
|
83
87
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -160,11 +164,16 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
160
164
|
type: BooleanConstructor;
|
|
161
165
|
default: boolean;
|
|
162
166
|
};
|
|
167
|
+
placeholder: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
163
171
|
}>> & {
|
|
164
172
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
165
173
|
}, {
|
|
166
174
|
size: string;
|
|
167
175
|
modelValue: string;
|
|
176
|
+
placeholder: string;
|
|
168
177
|
isTable: boolean;
|
|
169
178
|
paramTypes: string[];
|
|
170
179
|
showLabel: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
2
|
-
import "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue3.js";
|
|
2
|
+
import "./common-variable-bind.vue2.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3528c938"]]);
|
|
5
5
|
export {
|
|
6
6
|
BindVariable as default
|
|
7
7
|
};
|