super-page-designer 2.1.34 → 2.1.41
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 +72 -2
- package/dist/es/components/design/utils/container-design-util.js +4 -0
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/form-design-util.js +10 -1
- package/dist/es/components/design/utils/page-event-util.js +10 -6
- package/dist/es/components/design/utils/page-table-util.js +26 -4
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +542 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +230 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +205 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +198 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +507 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +285 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1177 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +97 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue2.js +62 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +8 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +358 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue4.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-function-code.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +8 -18
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +1 -2
- 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 +738 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -733
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- 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 +12 -10
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- 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 -0
- 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 +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +6 -5
- 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 +4 -4
- 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/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +11 -8
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +5 -1
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +32 -0
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +54 -16
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +46 -8
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +15 -2
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +48 -10
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +46 -8
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +71 -3
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +8 -2
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +48 -10
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +49 -11
- package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/tag/tag-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +52 -14
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +21 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +14 -7
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -3
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +2 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +10 -0
- package/dist/es/stores/page-store.d.ts +1 -1
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/stores/statistics-table-store.d.ts +10 -0
- package/dist/es/stores/statistics-table-store.js +20 -0
- package/dist/es/style.css +791 -118
- package/package.json +6 -5
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const designClass = ref("");
|
|
18
18
|
const designHeaderStyle = ref({});
|
|
19
19
|
const designProperty = ref({});
|
|
20
|
+
const titleExceedStyle = ref({});
|
|
20
21
|
function getRestsParameter() {
|
|
21
22
|
let defineProps = props.configure.props ? props.configure.props : {};
|
|
22
23
|
const propsBase = defineProps.base ? defineProps.base : {};
|
|
@@ -46,9 +47,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
47
|
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
47
48
|
}, { immediate: true });
|
|
48
49
|
watch(props.configure.props, () => {
|
|
49
|
-
caculateComponentProps(props.configure, designProperty);
|
|
50
|
+
caculateComponentProps(props.configure, designProperty, titleExceedStyle);
|
|
50
51
|
getRestsParameter();
|
|
51
52
|
props.configure.runtime.props = designProperty.value;
|
|
53
|
+
props.configure.runtime.titleExceedStyle = titleExceedStyle.value;
|
|
52
54
|
}, { immediate: true });
|
|
53
55
|
return (_ctx, _cache) => {
|
|
54
56
|
const _component_el_tag = resolveComponent("el-tag");
|
|
@@ -62,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
64
|
label: withCtx(() => [
|
|
63
65
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
64
66
|
key: 0,
|
|
65
|
-
style: normalizeStyle({ ...designHeaderStyle.value, "padding-right": "12px" })
|
|
67
|
+
style: normalizeStyle({ ...designHeaderStyle.value, ...titleExceedStyle.value, "padding-right": "12px" })
|
|
66
68
|
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
67
69
|
]),
|
|
68
70
|
default: withCtx(() => [
|
|
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
default: withCtx(() => [
|
|
67
67
|
createVNode(_component_el_collapse, {
|
|
68
68
|
modelValue: openCollapseItems.value,
|
|
69
|
-
"onUpdate:modelValue": _cache[
|
|
69
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => openCollapseItems.value = $event),
|
|
70
70
|
style: { "margin-top": "6px" }
|
|
71
71
|
}, {
|
|
72
72
|
default: withCtx(() => [
|
|
@@ -220,6 +220,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
}, 512), [
|
|
221
221
|
[vShow, __props.configure.props.base.tittleShow]
|
|
222
222
|
]),
|
|
223
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
224
|
+
label: "标题超宽",
|
|
225
|
+
title: "标题超宽显示",
|
|
226
|
+
class: "amb-design-attr-item"
|
|
227
|
+
}, {
|
|
228
|
+
default: withCtx(() => [
|
|
229
|
+
createVNode(_component_el_radio_group, {
|
|
230
|
+
modelValue: __props.configure.props.base.titleShowWay,
|
|
231
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.titleShowWay = $event),
|
|
232
|
+
class: "ml-4"
|
|
233
|
+
}, {
|
|
234
|
+
default: withCtx(() => [
|
|
235
|
+
createVNode(_component_el_radio, { value: "block" }, {
|
|
236
|
+
default: withCtx(() => [
|
|
237
|
+
createTextVNode("换行")
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}),
|
|
241
|
+
createVNode(_component_el_radio, { value: "inline" }, {
|
|
242
|
+
default: withCtx(() => [
|
|
243
|
+
createTextVNode("不换行")
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}),
|
|
247
|
+
createVNode(_component_el_radio, { value: "omit" }, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createTextVNode("省略号")
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["modelValue"])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 512), [
|
|
259
|
+
[vShow, __props.configure.props.base.tittleShow && __props.configure.props.base.titleWidth > 0]
|
|
260
|
+
]),
|
|
223
261
|
createVNode(_component_el_form_item, {
|
|
224
262
|
label: "输入提示",
|
|
225
263
|
class: "amb-design-attr-item"
|
|
@@ -227,7 +265,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
265
|
default: withCtx(() => [
|
|
228
266
|
createVNode(_sfc_main$2, {
|
|
229
267
|
modelValue: __props.configure.props.base.placeholder,
|
|
230
|
-
"onUpdate:modelValue": _cache[
|
|
268
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.placeholder = $event)
|
|
231
269
|
}, null, 8, ["modelValue"])
|
|
232
270
|
]),
|
|
233
271
|
_: 1
|
|
@@ -239,7 +277,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
277
|
default: withCtx(() => [
|
|
240
278
|
createVNode(_component_el_input_number, {
|
|
241
279
|
modelValue: __props.configure.props.base.rows,
|
|
242
|
-
"onUpdate:modelValue": _cache[
|
|
280
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.rows = $event),
|
|
243
281
|
min: 1
|
|
244
282
|
}, null, 8, ["modelValue"])
|
|
245
283
|
]),
|
|
@@ -252,7 +290,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
252
290
|
default: withCtx(() => [
|
|
253
291
|
createVNode(_component_el_switch, {
|
|
254
292
|
modelValue: __props.configure.props.base.showInputNum,
|
|
255
|
-
"onUpdate:modelValue": _cache[
|
|
293
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.base.showInputNum = $event)
|
|
256
294
|
}, null, 8, ["modelValue"])
|
|
257
295
|
]),
|
|
258
296
|
_: 1
|
|
@@ -264,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
264
302
|
default: withCtx(() => [
|
|
265
303
|
createVNode(_component_el_switch, {
|
|
266
304
|
modelValue: __props.configure.props.base.isOpinion,
|
|
267
|
-
"onUpdate:modelValue": _cache[
|
|
305
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.isOpinion = $event)
|
|
268
306
|
}, null, 8, ["modelValue"])
|
|
269
307
|
]),
|
|
270
308
|
_: 1
|
|
@@ -276,7 +314,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
276
314
|
default: withCtx(() => [
|
|
277
315
|
createVNode(_component_el_radio_group, {
|
|
278
316
|
modelValue: __props.configure.props.base.size,
|
|
279
|
-
"onUpdate:modelValue": _cache[
|
|
317
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.size = $event),
|
|
280
318
|
class: "ml-4"
|
|
281
319
|
}, {
|
|
282
320
|
default: withCtx(() => [
|
|
@@ -311,7 +349,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
349
|
default: withCtx(() => [
|
|
312
350
|
createVNode(_component_el_radio_group, {
|
|
313
351
|
modelValue: __props.configure.props.base.state,
|
|
314
|
-
"onUpdate:modelValue": _cache[
|
|
352
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.base.state = $event),
|
|
315
353
|
class: "ml-4"
|
|
316
354
|
}, {
|
|
317
355
|
default: withCtx(() => [
|
|
@@ -361,7 +399,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
361
399
|
default: withCtx(() => [
|
|
362
400
|
createVNode(_component_el_checkbox, {
|
|
363
401
|
modelValue: __props.configure.props.verification.required,
|
|
364
|
-
"onUpdate:modelValue": _cache[
|
|
402
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.verification.required = $event),
|
|
365
403
|
label: "必填"
|
|
366
404
|
}, null, 8, ["modelValue"])
|
|
367
405
|
]),
|
|
@@ -376,7 +414,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
376
414
|
default: withCtx(() => [
|
|
377
415
|
createVNode(_component_el_checkbox, {
|
|
378
416
|
modelValue: __props.configure.props.verification.verifyMinLength,
|
|
379
|
-
"onUpdate:modelValue": _cache[
|
|
417
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.verification.verifyMinLength = $event),
|
|
380
418
|
label: "最小长度",
|
|
381
419
|
value: "min"
|
|
382
420
|
}, null, 8, ["modelValue"])
|
|
@@ -387,7 +425,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
387
425
|
default: withCtx(() => [
|
|
388
426
|
createVNode(_component_el_input_number, {
|
|
389
427
|
modelValue: __props.configure.props.verification.minLength,
|
|
390
|
-
"onUpdate:modelValue": _cache[
|
|
428
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.verification.minLength = $event),
|
|
391
429
|
class: "mx-4",
|
|
392
430
|
min: 0,
|
|
393
431
|
"controls-position": "right",
|
|
@@ -408,7 +446,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
408
446
|
default: withCtx(() => [
|
|
409
447
|
createVNode(_component_el_checkbox, {
|
|
410
448
|
modelValue: __props.configure.props.verification.verifyMaxLength,
|
|
411
|
-
"onUpdate:modelValue": _cache[
|
|
449
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.verification.verifyMaxLength = $event),
|
|
412
450
|
label: "最大长度",
|
|
413
451
|
value: "max"
|
|
414
452
|
}, null, 8, ["modelValue"])
|
|
@@ -419,7 +457,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
419
457
|
default: withCtx(() => [
|
|
420
458
|
createVNode(_component_el_input_number, {
|
|
421
459
|
modelValue: __props.configure.props.verification.maxLength,
|
|
422
|
-
"onUpdate:modelValue": _cache[
|
|
460
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.verification.maxLength = $event),
|
|
423
461
|
class: "mx-4",
|
|
424
462
|
min: 0,
|
|
425
463
|
"controls-position": "right",
|
|
@@ -440,7 +478,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
440
478
|
default: withCtx(() => [
|
|
441
479
|
createVNode(_component_el_checkbox, {
|
|
442
480
|
modelValue: __props.configure.props.verification.verifyRegex,
|
|
443
|
-
"onUpdate:modelValue": _cache[
|
|
481
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.verification.verifyRegex = $event),
|
|
444
482
|
label: "正则",
|
|
445
483
|
value: "regex"
|
|
446
484
|
}, null, 8, ["modelValue"])
|
|
@@ -451,7 +489,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
451
489
|
default: withCtx(() => [
|
|
452
490
|
createVNode(_component_el_input, {
|
|
453
491
|
modelValue: __props.configure.props.verification.regex,
|
|
454
|
-
"onUpdate:modelValue": _cache[
|
|
492
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.verification.regex = $event),
|
|
455
493
|
class: "mx-4",
|
|
456
494
|
"controls-position": "right",
|
|
457
495
|
placeholder: "请输入"
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
const designClass = ref("");
|
|
19
19
|
const designHeaderStyle = ref({});
|
|
20
20
|
const designProperty = ref({});
|
|
21
|
+
const titleExceedStyle = ref({});
|
|
21
22
|
watch(
|
|
22
23
|
props.configure.style,
|
|
23
24
|
() => {
|
|
@@ -31,8 +32,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
watch(
|
|
32
33
|
props.configure.props,
|
|
33
34
|
() => {
|
|
34
|
-
caculateComponentProps(props.configure, designProperty);
|
|
35
|
+
caculateComponentProps(props.configure, designProperty, titleExceedStyle);
|
|
35
36
|
props.configure.runtime.props = designProperty.value;
|
|
37
|
+
props.configure.runtime.titleExceedStyle = titleExceedStyle.value;
|
|
36
38
|
},
|
|
37
39
|
{ immediate: true }
|
|
38
40
|
);
|
|
@@ -49,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
51
|
label: withCtx(() => [
|
|
50
52
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
51
53
|
key: 0,
|
|
52
|
-
style: normalizeStyle({ ...designHeaderStyle.value, "padding-right": "12px" })
|
|
54
|
+
style: normalizeStyle({ ...designHeaderStyle.value, ...titleExceedStyle.value, "padding-right": "12px" })
|
|
53
55
|
}, [
|
|
54
56
|
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
55
57
|
key: 0,
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"],
|
|
23
23
|
setup(__props, { emit: __emit }) {
|
|
24
|
-
const
|
|
24
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
25
25
|
const props = __props;
|
|
26
26
|
if (props.configure.name === "table") {
|
|
27
27
|
if (props.pageDesign.tableRuntimes && props.pageDesign.tableRuntimes[props.configure.uuid]) {
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
if (props.configure.style == void 0) {
|
|
41
41
|
props.configure.style = {};
|
|
42
42
|
}
|
|
43
|
-
const fieldInfo =
|
|
43
|
+
const fieldInfo = pageDesignContextUtil.getModelField();
|
|
44
44
|
if (props.pageDesign && props.configure && props.configure.name == "table") {
|
|
45
45
|
if (props.configure.uuid) {
|
|
46
46
|
if (!props.pageDesign.tableUuids) {
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["save"],
|
|
29
29
|
setup(__props, { emit: __emit }) {
|
|
30
|
-
const
|
|
30
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
33
33
|
const currentRow = ref({});
|
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
const systemVersion = props.systemVersion;
|
|
74
74
|
queryTableFields(systemCode, systemVersion, tableInfo.name).then((tableFields) => {
|
|
75
75
|
props.configure.modelFields = tableFields;
|
|
76
|
-
|
|
76
|
+
pageDesignContextUtil.setPageContext(props.configure);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -7,6 +7,8 @@ import _sfc_main$4 from "../workflow/component/combination.vue.js";
|
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
9
|
const _hoisted_2 = { class: "amb-design-attr-item-inline" };
|
|
10
|
+
const _hoisted_3 = { style: { "padding": "0 10px" } };
|
|
11
|
+
const _hoisted_4 = { style: { "padding": "0 10px" } };
|
|
10
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
13
|
__name: "page-attr-advanced",
|
|
12
14
|
props: {
|
|
@@ -121,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
121
123
|
const _component_el_button = resolveComponent("el-button");
|
|
122
124
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
123
125
|
const _component_el_input = resolveComponent("el-input");
|
|
126
|
+
const _component_el_text = resolveComponent("el-text");
|
|
124
127
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
125
128
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
126
129
|
const _component_el_form = resolveComponent("el-form");
|
|
@@ -183,7 +186,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
186
|
modelValue: _ctx.configure.props.beanName,
|
|
184
187
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.configure.props.beanName = $event),
|
|
185
188
|
onBlur: trimString
|
|
186
|
-
}, null, 8, ["modelValue"])
|
|
189
|
+
}, null, 8, ["modelValue"]),
|
|
190
|
+
createElementVNode("div", _hoisted_3, [
|
|
191
|
+
createVNode(_component_el_text, { type: "primary" }, {
|
|
192
|
+
default: withCtx(() => [
|
|
193
|
+
createTextVNode("继承CommonBaseServiceImpl基类")
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
])
|
|
187
198
|
]),
|
|
188
199
|
_: 1
|
|
189
200
|
}),
|
|
@@ -197,7 +208,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
197
208
|
modelValue: _ctx.configure.props.importBeanName,
|
|
198
209
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.configure.props.importBeanName = $event),
|
|
199
210
|
onBlur: trimString
|
|
200
|
-
}, null, 8, ["modelValue"])
|
|
211
|
+
}, null, 8, ["modelValue"]),
|
|
212
|
+
createElementVNode("div", _hoisted_4, [
|
|
213
|
+
createVNode(_component_el_text, { type: "primary" }, {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
createTextVNode("继承ImportDefinitionServiceImpl基类")
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
])
|
|
201
220
|
]),
|
|
202
221
|
_: 1
|
|
203
222
|
}),
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
configure: {}
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
|
-
const
|
|
19
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
20
20
|
const props = __props;
|
|
21
21
|
const variableDefaultProps = {
|
|
22
22
|
children: "children",
|
|
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
queryTableFields(systemCode, systemVersion, tableInfo.name).then((tableFields) => {
|
|
73
73
|
props.configure.modelFields = tableFields;
|
|
74
74
|
props.configure.modelFieldsMap = changeFeieldToMap(props.configure.modelFieldsMap, tableFields);
|
|
75
|
-
|
|
75
|
+
pageDesignContextUtil.setPageContext(props.configure);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
}
|
|
82
82
|
function onCloseVariableDialog() {
|
|
83
83
|
variableTreeDatas.value = getVariablesTreeData(props.configure.variables);
|
|
84
|
-
|
|
84
|
+
pageDesignContextUtil.setPageContext(props.configure);
|
|
85
85
|
}
|
|
86
86
|
function getVariablesTreeData(variables) {
|
|
87
87
|
const treeDatas = convertVariablesToTree(variables);
|
|
@@ -115,13 +115,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
function queryWorkflows() {
|
|
118
|
-
queryWorkflowsRequest(props.configure.tableName, props.configure.systemCode, props.configure.systemVersion).then(
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
queryWorkflowsRequest(props.configure.tableName, props.configure.systemCode, props.configure.systemVersion).then(
|
|
119
|
+
(data) => {
|
|
120
|
+
workflows.value = data;
|
|
121
|
+
}
|
|
122
|
+
);
|
|
121
123
|
}
|
|
122
124
|
changeWorkflowSource(props.configure.props ? props.configure.props.workflowSource : null);
|
|
123
125
|
function createWorkflow() {
|
|
124
|
-
createWorkflowRequest(
|
|
126
|
+
createWorkflowRequest(
|
|
127
|
+
props.configure.tableName,
|
|
128
|
+
props.configure.label,
|
|
129
|
+
props.configure.systemCode,
|
|
130
|
+
props.configure.systemVersion
|
|
131
|
+
).then((definition) => {
|
|
125
132
|
if (definition) {
|
|
126
133
|
props.configure.props.createWorkflowCode = definition.code;
|
|
127
134
|
props.configure.props.createWorkflowName = definition.name;
|
|
@@ -52,13 +52,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
tableData.value = props.list;
|
|
53
53
|
if (tableData.value.length > 0) {
|
|
54
54
|
tableData.value.forEach((item, index) => {
|
|
55
|
-
console.log("%c描述-112048", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", item);
|
|
56
55
|
if (item.type === "date") {
|
|
57
56
|
tableData.value[index].isDate = true;
|
|
58
57
|
} else {
|
|
59
58
|
tableData.value[index].isDate = false;
|
|
60
59
|
}
|
|
61
|
-
let fieldItem = props.fieldMap[item.
|
|
60
|
+
let fieldItem = props.fieldMap[item.propDbName];
|
|
62
61
|
operationArr.value[index] = getOperators(fieldItem);
|
|
63
62
|
});
|
|
64
63
|
}
|
|
@@ -87,7 +86,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
86
|
row.propValue = modelValue;
|
|
88
87
|
}
|
|
89
88
|
function changeFieldName(index, row, propDbName) {
|
|
90
|
-
console.log("%c描述-164035", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.fieldMap);
|
|
91
89
|
const item = props.fieldMap[propDbName];
|
|
92
90
|
if (item.type === "date") {
|
|
93
91
|
tableData.value[index].isDate = true;
|
|
@@ -114,6 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
114
|
function clearTable() {
|
|
115
115
|
model.tableAlias = "";
|
|
116
116
|
model.tableName = "";
|
|
117
|
+
model.fieldInfos = [];
|
|
117
118
|
model.modelFields = [];
|
|
118
119
|
}
|
|
119
120
|
function onSelectTable(tableInfo) {
|
|
@@ -135,6 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
136
|
const systemCode = tableInfo.systemCode ? tableInfo.systemCode : pageDesign.systemCode;
|
|
136
137
|
const systemVersion = tableInfo.systemVersion ? tableInfo.systemVersion : pageDesign.systemVersion;
|
|
137
138
|
queryTableFields(systemCode, systemVersion, tableInfo.name).then((tableFields) => {
|
|
139
|
+
model.fieldInfos = [];
|
|
138
140
|
model.modelFields = tableFields;
|
|
139
141
|
tableFieldStore.addFieldList(tableFields);
|
|
140
142
|
if (addFieldsRef.value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./page-switch.vue2.js";
|
|
2
2
|
import "./page-switch.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const PageSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const PageSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-511b453b"]]);
|
|
5
5
|
export {
|
|
6
6
|
PageSwitch as default
|
|
7
7
|
};
|
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock,
|
|
|
2
2
|
import { Operation, ArrowUp, ArrowDown, Menu, Tickets, Folder } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox } from "element-plus";
|
|
4
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import i18nUtil from "agilebuilder-ui/src/utils/i18n-util";
|
|
5
6
|
const _hoisted_1 = { style: { "display": "flex", "width": "60px", "height": "60px", "margin-left": "60px", "justify-content": "center", "align-items": "center", "cursor": "pointer", "margin-right": "60px" } };
|
|
6
7
|
const _hoisted_2 = { style: { "overflow-y": "auto" } };
|
|
7
8
|
const _hoisted_3 = { style: { "vertical-align": "middle" } };
|
|
@@ -58,7 +59,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
59
|
await http.get(window["$vueApp"].config.globalProperties.baseAPI + "/mms/systems/getByCode/" + props.pageDesign.systemCode).then((res) => {
|
|
59
60
|
if (res) {
|
|
60
61
|
emits("init-loaded", { system: res });
|
|
62
|
+
i18nUtil.setEnableI18nState(res.code, res.enableI18n);
|
|
61
63
|
systemId.value = res.id;
|
|
64
|
+
const systemCode = res.code;
|
|
65
|
+
const params = { systemCode };
|
|
66
|
+
http.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", params).then((langInfo) => {
|
|
67
|
+
const url2 = langInfo.i18nFileUrls[langInfo.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
68
|
+
i18nUtil.loadLangFile(systemCode, url2, "zh_CN").catch(() => {
|
|
69
|
+
console.error("加载国际化文件失败");
|
|
70
|
+
});
|
|
71
|
+
});
|
|
62
72
|
}
|
|
63
73
|
});
|
|
64
74
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface PageContextVarOptions {
|
|
2
2
|
[otherProp: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export declare const usePageContextStore: import('pinia').StoreDefinition<"
|
|
4
|
+
export declare const usePageContextStore: import('pinia').StoreDefinition<"pageDesignContextUtil", import('pinia')._UnwrapAll<Pick<{
|
|
5
5
|
pageContext: any;
|
|
6
6
|
pageContextVarOptions: import('vue').Ref<PageContextVarOptions>;
|
|
7
7
|
enabledI18n: import('vue').Ref<boolean>;
|
|
@@ -2,7 +2,7 @@ import { ref } from "vue";
|
|
|
2
2
|
import { defineStore } from "pinia";
|
|
3
3
|
import { FuncType } from "super-page-runtime";
|
|
4
4
|
import { getModelOptionsByFields } from "../components/design/utils/page-table-util.js";
|
|
5
|
-
const usePageContextStore = defineStore("
|
|
5
|
+
const usePageContextStore = defineStore("pageDesignContextUtil", () => {
|
|
6
6
|
const pageContext = ref({ systemCode: "", systemVersion: -1 });
|
|
7
7
|
const enabledI18n = ref(false);
|
|
8
8
|
ref([]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const statisticsTable: import('pinia').StoreDefinition<"statisticsTable", import('pinia')._UnwrapAll<Pick<{
|
|
2
|
+
columnList: import('vue').Ref<any[]>;
|
|
3
|
+
addFieldList: (tableFields: any) => void;
|
|
4
|
+
}, "columnList">>, Pick<{
|
|
5
|
+
columnList: import('vue').Ref<any[]>;
|
|
6
|
+
addFieldList: (tableFields: any) => void;
|
|
7
|
+
}, never>, Pick<{
|
|
8
|
+
columnList: import('vue').Ref<any[]>;
|
|
9
|
+
addFieldList: (tableFields: any) => void;
|
|
10
|
+
}, "addFieldList">>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { defineStore } from "pinia";
|
|
3
|
+
const statisticsTable = defineStore("statisticsTable", () => {
|
|
4
|
+
const columnList = ref([]);
|
|
5
|
+
function addFieldList(tableFields) {
|
|
6
|
+
let arr = [];
|
|
7
|
+
tableFields.forEach((item) => {
|
|
8
|
+
arr.push({
|
|
9
|
+
value: item.props.base.prop,
|
|
10
|
+
label: item.props.base.name,
|
|
11
|
+
alias: item.props.base.name
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
columnList.value = arr;
|
|
15
|
+
}
|
|
16
|
+
return { columnList, addFieldList };
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
statisticsTable
|
|
20
|
+
};
|