super-page-designer 2.1.73 → 2.1.76
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 +2 -0
- package/dist/es/components/design/utils/form-design-util.js +2 -0
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-table-util.js +18 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +41 -31
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +33 -7
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +17 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +33 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
- 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 -738
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +63 -5
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +54 -25
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -0
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +17 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +9 -7
- package/dist/es/components/design/views/design/page-event/config.vue.js +7 -1
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -7
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +2 -1
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/style.css +177 -177
- package/package.json +3 -3
|
@@ -557,6 +557,7 @@ const assemblyGroups = [
|
|
|
557
557
|
},
|
|
558
558
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
559
559
|
events: [
|
|
560
|
+
{ name: "afterInit", label: "初始化后", tip: "初始化后" },
|
|
560
561
|
{ name: "change", label: "更改", tip: "更改" },
|
|
561
562
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
562
563
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -598,6 +599,7 @@ const assemblyGroups = [
|
|
|
598
599
|
},
|
|
599
600
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
600
601
|
events: [
|
|
602
|
+
{ name: "afterInit", label: "初始化后", tip: "初始化后" },
|
|
601
603
|
{ name: "change", label: "更改", tip: "更改" },
|
|
602
604
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
603
605
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -38,3 +38,4 @@ export declare function tableResetConfigIndo(configure: object, moduleValue: any
|
|
|
38
38
|
export declare function changeFeieldToMap(modelFieldsMap: any, tableFields: any): any;
|
|
39
39
|
export declare function getTableNameByTableUuid(pageDesign: any, tableUuid: any): any;
|
|
40
40
|
export declare function getModelOptionsByFields(dataFieldList: any): any;
|
|
41
|
+
export declare function getTableConfigByTableUuid(pageDesign: any, configure: any): any;
|
|
@@ -2,6 +2,7 @@ import http from "agilebuilder-ui/src/utils/request";
|
|
|
2
2
|
import { getFormPropName } from "./page-helper-util.js";
|
|
3
3
|
import { getDesignEvents } from "./assemblys-config.js";
|
|
4
4
|
import { addI18nKey } from "./page-i18n-util.js";
|
|
5
|
+
import { findDesignItemByUuid } from "./common-util.js";
|
|
5
6
|
function queryTableFields(systemCode, systemVersion, tableName) {
|
|
6
7
|
let url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
7
8
|
url += "?systemCode=" + (systemCode ? systemCode : "");
|
|
@@ -572,9 +573,26 @@ function getModelOptionsByFields(dataFieldList) {
|
|
|
572
573
|
}
|
|
573
574
|
return dataModelOptions;
|
|
574
575
|
}
|
|
576
|
+
function getTableConfigByTableUuid(pageDesign, configure) {
|
|
577
|
+
var _a;
|
|
578
|
+
const pageType = pageDesign ? pageDesign.pageType : null;
|
|
579
|
+
let tableConfig;
|
|
580
|
+
let tableUuid;
|
|
581
|
+
if (configure == null ? void 0 : configure.props.base.tableUuid) {
|
|
582
|
+
tableUuid = configure.props.base.tableUuid;
|
|
583
|
+
tableConfig = findDesignItemByUuid(pageDesign, tableUuid);
|
|
584
|
+
} else if (pageType && pageType === "list" && ((_a = pageDesign == null ? void 0 : pageDesign.tableUuids) == null ? void 0 : _a.length) > 0) {
|
|
585
|
+
tableUuid = pageDesign == null ? void 0 : pageDesign.tableUuids[0];
|
|
586
|
+
tableConfig = findDesignItemByUuid(pageDesign, tableUuid);
|
|
587
|
+
} else if (pageDesign == null ? void 0 : pageDesign.currentTableConfig) {
|
|
588
|
+
tableConfig = pageDesign.currentTableConfig;
|
|
589
|
+
}
|
|
590
|
+
return tableConfig;
|
|
591
|
+
}
|
|
575
592
|
export {
|
|
576
593
|
changeFeieldToMap,
|
|
577
594
|
getModelOptionsByFields,
|
|
595
|
+
getTableConfigByTableUuid,
|
|
578
596
|
getTableNameByTableUuid,
|
|
579
597
|
querySublist,
|
|
580
598
|
queryTableFields,
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow } from "vue";
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "../../../../../../stores/page-store.js";
|
|
4
4
|
import "../../form/common/dimension-input.vue.js";
|
|
5
5
|
import _sfc_main$3 from "../../common/common-icon-bind.vue.js";
|
|
6
6
|
import http from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import "@element-plus/icons";
|
|
9
|
+
import "@element-plus/icons-vue";
|
|
10
|
+
import "uuid";
|
|
11
|
+
import "../../../../../../stores/table-store.js";
|
|
12
|
+
import "../../../../../../stores/statistics-table-store.js";
|
|
13
|
+
import "../../common/common-variable-bind.vue3.js";
|
|
14
|
+
import { getTableConfigByTableUuid } from "../../../../utils/page-table-util.js";
|
|
9
15
|
import _sfc_main$2 from "../../common/common-i18n-key-input.vue.js";
|
|
10
|
-
import
|
|
16
|
+
import _sfc_main$4 from "../../chart/statistical-table/component/link-table.vue.js";
|
|
11
17
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
18
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
13
19
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -29,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
35
|
const openCollapseItems = ref(["base", "appearance", "otherSettings", "linkPage"]);
|
|
30
36
|
const templateList = ref({});
|
|
31
37
|
const templateFileUuids = ref([]);
|
|
32
|
-
const
|
|
38
|
+
const myTableConfigure = ref(getMyTableConfigByTableUuid());
|
|
39
|
+
const isShowLink = ref(false);
|
|
33
40
|
if (props.configure.props.base.templateFiles) {
|
|
34
41
|
props.configure.props.base.templateFiles.forEach((templateFile) => {
|
|
35
42
|
templateFileUuids.value.push(templateFile.templateUuid);
|
|
@@ -38,6 +45,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
45
|
if (props.configure.props.base.isEnableRequired === void 0) {
|
|
39
46
|
props.configure.props.base.isEnableRequired = true;
|
|
40
47
|
}
|
|
48
|
+
if (props.configure.props.linkPage && !(props.configure.props.linkPage instanceof Array)) {
|
|
49
|
+
props.configure.props.linkPage = [{ linkPage: props.configure.props.linkPage }];
|
|
50
|
+
isShowLink.value = true;
|
|
51
|
+
} else {
|
|
52
|
+
isShowLink.value = true;
|
|
53
|
+
}
|
|
41
54
|
const tableList = ref([]);
|
|
42
55
|
function getTableList() {
|
|
43
56
|
if (props.pageDesign.items && props.pageDesign.items.length > 0) {
|
|
@@ -81,21 +94,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
94
|
props.configure.props.base.templateFiles = [];
|
|
82
95
|
}
|
|
83
96
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
let tableUuid;
|
|
87
|
-
if (props.configure.props.base.tableUuid) {
|
|
88
|
-
tableUuid = props.configure.props.base.tableUuid;
|
|
89
|
-
} else if (((_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.length) > 0) {
|
|
90
|
-
tableUuid = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids[0];
|
|
91
|
-
}
|
|
92
|
-
if (tableUuid) {
|
|
93
|
-
return findDesignItemByUuid(props.pageDesign, tableUuid);
|
|
94
|
-
}
|
|
97
|
+
function getMyTableConfigByTableUuid() {
|
|
98
|
+
return getTableConfigByTableUuid(props.pageDesign, props.configure);
|
|
95
99
|
}
|
|
96
100
|
function changeTableConfig(tableUuid) {
|
|
97
|
-
const tableConfig =
|
|
98
|
-
|
|
101
|
+
const tableConfig = getMyTableConfigByTableUuid();
|
|
102
|
+
myTableConfigure.value = tableConfig;
|
|
103
|
+
}
|
|
104
|
+
function linkChange(data) {
|
|
105
|
+
props.configure.props.linkPage = data;
|
|
99
106
|
}
|
|
100
107
|
return (_ctx, _cache) => {
|
|
101
108
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -116,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
123
|
default: withCtx(() => [
|
|
117
124
|
createVNode(_component_el_collapse, {
|
|
118
125
|
modelValue: openCollapseItems.value,
|
|
119
|
-
"onUpdate:modelValue": _cache[
|
|
126
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => openCollapseItems.value = $event),
|
|
120
127
|
style: { "margin-top": "6px" }
|
|
121
128
|
}, {
|
|
122
129
|
default: withCtx(() => [
|
|
@@ -551,12 +558,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
551
558
|
}, {
|
|
552
559
|
default: withCtx(() => [
|
|
553
560
|
createElementVNode("div", _hoisted_3, [
|
|
554
|
-
(openBlock(), createBlock(_sfc_main$4, {
|
|
555
|
-
key:
|
|
556
|
-
configure: __props.configure,
|
|
561
|
+
isShowLink.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
562
|
+
key: 0,
|
|
557
563
|
pageDesign: __props.pageDesign,
|
|
558
|
-
|
|
559
|
-
|
|
564
|
+
paramTypes: ["data", "task", "page", "request", "row"],
|
|
565
|
+
data: __props.configure.props.linkPage,
|
|
566
|
+
configure: __props.configure,
|
|
567
|
+
tableConfigure: myTableConfigure.value,
|
|
568
|
+
onDataChange: _cache[15] || (_cache[15] = (data) => linkChange(data))
|
|
569
|
+
}, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : createCommentVNode("", true)
|
|
560
570
|
])
|
|
561
571
|
]),
|
|
562
572
|
_: 1
|
|
@@ -575,7 +585,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
575
585
|
default: withCtx(() => [
|
|
576
586
|
createVNode(_component_el_switch, {
|
|
577
587
|
modelValue: __props.configure.props.base.isNeedValueMapping,
|
|
578
|
-
"onUpdate:modelValue": _cache[
|
|
588
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.base.isNeedValueMapping = $event),
|
|
579
589
|
size: "default"
|
|
580
590
|
}, null, 8, ["modelValue"])
|
|
581
591
|
]),
|
|
@@ -588,7 +598,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
588
598
|
default: withCtx(() => [
|
|
589
599
|
createVNode(_component_el_switch, {
|
|
590
600
|
modelValue: __props.configure.props.base.isPermission,
|
|
591
|
-
"onUpdate:modelValue": _cache[
|
|
601
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.base.isPermission = $event),
|
|
592
602
|
size: "default"
|
|
593
603
|
}, null, 8, ["modelValue"])
|
|
594
604
|
]),
|
|
@@ -601,7 +611,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
601
611
|
default: withCtx(() => [
|
|
602
612
|
createVNode(_component_el_switch, {
|
|
603
613
|
modelValue: __props.configure.props.base.isAsync,
|
|
604
|
-
"onUpdate:modelValue": _cache[
|
|
614
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.base.isAsync = $event),
|
|
605
615
|
size: "default"
|
|
606
616
|
}, null, 8, ["modelValue"])
|
|
607
617
|
]),
|
|
@@ -614,7 +624,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
614
624
|
default: withCtx(() => [
|
|
615
625
|
createVNode(_component_el_switch, {
|
|
616
626
|
modelValue: __props.configure.props.base.isEnableRequired,
|
|
617
|
-
"onUpdate:modelValue": _cache[
|
|
627
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.base.isEnableRequired = $event),
|
|
618
628
|
size: "default"
|
|
619
629
|
}, null, 8, ["modelValue"])
|
|
620
630
|
]),
|
|
@@ -627,7 +637,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
627
637
|
default: withCtx(() => [
|
|
628
638
|
createVNode(_component_el_switch, {
|
|
629
639
|
modelValue: __props.configure.props.base.isSafeDelete,
|
|
630
|
-
"onUpdate:modelValue": _cache[
|
|
640
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => __props.configure.props.base.isSafeDelete = $event),
|
|
631
641
|
size: "default"
|
|
632
642
|
}, null, 8, ["modelValue"])
|
|
633
643
|
]),
|
|
@@ -640,7 +650,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
640
650
|
default: withCtx(() => [
|
|
641
651
|
createVNode(_component_el_select, {
|
|
642
652
|
modelValue: templateFileUuids.value,
|
|
643
|
-
"onUpdate:modelValue": _cache[
|
|
653
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => templateFileUuids.value = $event),
|
|
644
654
|
filterable: "",
|
|
645
655
|
multiple: "",
|
|
646
656
|
onChange: templateFilesChange
|
|
@@ -666,7 +676,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
666
676
|
default: withCtx(() => [
|
|
667
677
|
createVNode(_component_el_select, {
|
|
668
678
|
modelValue: __props.configure.props.base.conditionsForExecution,
|
|
669
|
-
"onUpdate:modelValue": _cache[
|
|
679
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => __props.configure.props.base.conditionsForExecution = $event)
|
|
670
680
|
}, {
|
|
671
681
|
default: withCtx(() => [
|
|
672
682
|
createVNode(_component_el_option, {
|
|
@@ -694,7 +704,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
694
704
|
default: withCtx(() => [
|
|
695
705
|
createVNode(_component_el_select, {
|
|
696
706
|
modelValue: __props.configure.props.base.tableUuid,
|
|
697
|
-
"onUpdate:modelValue": _cache[
|
|
707
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => __props.configure.props.base.tableUuid = $event),
|
|
698
708
|
clearable: "",
|
|
699
709
|
filterable: "",
|
|
700
710
|
onChange: changeTableConfig
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "./table-showcondition.vue.js";
|
|
3
3
|
import _sfc_main$2 from "../../../form/common/suffixmodule.vue.js";
|
|
4
4
|
import { getCustomFuncs } from "../../../../../utils/page-event-util.js";
|
|
5
|
+
import "uuid";
|
|
6
|
+
import { getTableConfigByTableUuid } from "../../../../../utils/page-table-util.js";
|
|
5
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
8
|
__name: "link-table",
|
|
7
9
|
props: {
|
|
@@ -19,6 +21,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
21
|
paramTypes: {
|
|
20
22
|
type: Array,
|
|
21
23
|
default: () => ["data", "task", "page", "request"]
|
|
24
|
+
},
|
|
25
|
+
// 比如按钮的配置
|
|
26
|
+
configure: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
// 表格的配置
|
|
33
|
+
tableConfigure: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
22
38
|
}
|
|
23
39
|
},
|
|
24
40
|
emits: ["dataChange"],
|
|
@@ -30,6 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
46
|
tableData.value = props.data;
|
|
31
47
|
}
|
|
32
48
|
const dialogTableVisible = ref(false);
|
|
49
|
+
const myTableConfigure = ref(props.tableConfigure);
|
|
33
50
|
if (!tableData.value || tableData.value.length == 0) {
|
|
34
51
|
tableData.value.push({
|
|
35
52
|
showCondition: [],
|
|
@@ -42,7 +59,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
59
|
tableData.value.splice(index + 1, 0, {
|
|
43
60
|
showCondition: [],
|
|
44
61
|
eventCallBack: "",
|
|
45
|
-
style: {}
|
|
62
|
+
style: {},
|
|
63
|
+
linkPage: {}
|
|
46
64
|
});
|
|
47
65
|
}
|
|
48
66
|
function deleteData(rowItem, index) {
|
|
@@ -55,7 +73,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
73
|
}
|
|
56
74
|
const linkData = ref({});
|
|
57
75
|
const linkIndex = ref(0);
|
|
76
|
+
function getMyTableConfigByTableUuid() {
|
|
77
|
+
return getTableConfigByTableUuid(props.pageDesign, props.configure);
|
|
78
|
+
}
|
|
58
79
|
function linkConfig(data, index) {
|
|
80
|
+
myTableConfigure.value = getMyTableConfigByTableUuid();
|
|
59
81
|
linkData.value = data;
|
|
60
82
|
dialogTableVisible.value = true;
|
|
61
83
|
linkIndex.value = index;
|
|
@@ -105,8 +127,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
127
|
data: scope.row.showCondition,
|
|
106
128
|
pageDesign: __props.pageDesign,
|
|
107
129
|
row: scope.row,
|
|
130
|
+
tableConfigure: myTableConfigure.value,
|
|
131
|
+
configure: __props.configure,
|
|
108
132
|
"onUpdate:data": updateTableShowCondition
|
|
109
|
-
}, null, 8, ["paramTypes", "data", "pageDesign", "row"])
|
|
133
|
+
}, null, 8, ["paramTypes", "data", "pageDesign", "row", "tableConfigure", "configure"])
|
|
110
134
|
]),
|
|
111
135
|
_: 1
|
|
112
136
|
}),
|
|
@@ -187,7 +211,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
211
|
]),
|
|
188
212
|
_: 1
|
|
189
213
|
}, 8, ["data"]),
|
|
190
|
-
|
|
214
|
+
dialogTableVisible.value ? (openBlock(), createBlock(_component_el_dialog, {
|
|
215
|
+
key: 0,
|
|
191
216
|
modelValue: dialogTableVisible.value,
|
|
192
217
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogTableVisible.value = $event),
|
|
193
218
|
title: "超链接设置",
|
|
@@ -199,11 +224,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
199
224
|
createVNode(_sfc_main$2, {
|
|
200
225
|
isDialog: true,
|
|
201
226
|
configure: linkData.value,
|
|
202
|
-
pageDesign: __props.pageDesign
|
|
203
|
-
|
|
227
|
+
pageDesign: __props.pageDesign,
|
|
228
|
+
tableConfigure: myTableConfigure.value
|
|
229
|
+
}, null, 8, ["configure", "pageDesign", "tableConfigure"])
|
|
204
230
|
]),
|
|
205
231
|
_: 1
|
|
206
|
-
}, 8, ["modelValue"])
|
|
232
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
207
233
|
], 64);
|
|
208
234
|
};
|
|
209
235
|
}
|
|
@@ -104,9 +104,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
row: scope.row,
|
|
105
105
|
data: scope.row.matchingCondition,
|
|
106
106
|
pageDesign: __props.pageDesign,
|
|
107
|
-
|
|
107
|
+
tableConfigure: __props.configure,
|
|
108
108
|
"onUpdate:data": updateTableShowCondition
|
|
109
|
-
}, null, 8, ["paramTypes", "row", "data", "pageDesign", "
|
|
109
|
+
}, null, 8, ["paramTypes", "row", "data", "pageDesign", "tableConfigure"])
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
})) : createCommentVNode("", true),
|
|
@@ -4,7 +4,7 @@ import BindVariable from "../../../common/common-variable-bind.vue.js";
|
|
|
4
4
|
import { getUuidv4 } from "../../../../../utils/common-util.js";
|
|
5
5
|
import { usePageContextStore } from "../../../../../../../stores/page-store.js";
|
|
6
6
|
import { statisticsTable } from "../../../../../../../stores/statistics-table-store.js";
|
|
7
|
-
import { getModelOptionsByFields } from "../../../../../utils/page-table-util.js";
|
|
7
|
+
import { getModelOptionsByFields, getTableConfigByTableUuid } from "../../../../../utils/page-table-util.js";
|
|
8
8
|
const _hoisted_1 = { style: { "text-align": "center", "margin": "0px -8px", "padding-top": "4px", "padding-left": "2px" } };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "table-showcondition",
|
|
@@ -22,11 +22,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
type: Array,
|
|
23
23
|
default: () => ["data", "task", "page", "request", "row"]
|
|
24
24
|
},
|
|
25
|
+
// 当前选择的组件配置,例如按钮的配置
|
|
25
26
|
configure: {
|
|
26
27
|
type: Object,
|
|
27
28
|
default: () => {
|
|
28
29
|
}
|
|
29
30
|
},
|
|
31
|
+
// 表格配置
|
|
32
|
+
tableConfigure: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {
|
|
35
|
+
}
|
|
36
|
+
},
|
|
30
37
|
// 页面信息
|
|
31
38
|
pageDesign: {
|
|
32
39
|
type: Object,
|
|
@@ -62,10 +69,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
69
|
dataModelOptions.value = getModelOptionsByFields(dataFieldNameList);
|
|
63
70
|
}
|
|
64
71
|
const rowModelOptions = ref(null);
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
updateRowModelOptions(props.tableConfigure);
|
|
73
|
+
function getMyTableConfigByTableUuid() {
|
|
74
|
+
return getTableConfigByTableUuid(props.pageDesign, props.configure);
|
|
75
|
+
}
|
|
76
|
+
function updateRowModelOptions(tableConfigure) {
|
|
77
|
+
if (tableConfigure) {
|
|
78
|
+
rowModelOptions.value = getModelOptionsByFields(tableConfigure.modelFields);
|
|
79
|
+
}
|
|
67
80
|
}
|
|
68
81
|
function openDialog() {
|
|
82
|
+
updateRowModelOptions(getMyTableConfigByTableUuid());
|
|
69
83
|
let tempHeight = window.innerHeight - 140 - 176;
|
|
70
84
|
if (tempHeight > 500) {
|
|
71
85
|
tempHeight = 500;
|
|
@@ -1,20 +1,21 @@
|
|
|
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$
|
|
5
|
-
import _sfc_main$
|
|
6
|
-
import _sfc_main$
|
|
7
|
-
import _sfc_main$
|
|
4
|
+
import _sfc_main$5 from "./component/style-table.vue.js";
|
|
5
|
+
import _sfc_main$6 from "./component/link-table.vue.js";
|
|
6
|
+
import _sfc_main$7 from "./component/table-pageination.vue.js";
|
|
7
|
+
import _sfc_main$8 from "../../common/common-attr-size.vue.js";
|
|
8
8
|
import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
|
|
9
9
|
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
10
10
|
import { addColumnToGroupHeaders, getColumnsWithGroupHeader } from "../../../../utils/data-table-util.js";
|
|
11
11
|
import "agilebuilder-ui/src/utils/request";
|
|
12
12
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
13
|
-
import _sfc_main$
|
|
13
|
+
import _sfc_main$4 from "../../data/component/formatting-icon-label.vue.js";
|
|
14
14
|
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
15
15
|
import eventBus from "../../../../utils/eventBus.js";
|
|
16
16
|
import { InfoFilled } from "@element-plus/icons-vue";
|
|
17
17
|
import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
|
|
18
|
+
import _sfc_main$3 from "./component/table-showcondition.vue.js";
|
|
18
19
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
19
20
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
20
21
|
const _hoisted_3 = { style: { "float": "left" } };
|
|
@@ -202,6 +203,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
205
|
}
|
|
206
|
+
function updateTableShowCondition(params) {
|
|
207
|
+
debugger;
|
|
208
|
+
if (params.row) {
|
|
209
|
+
params.row.showCondition = params.data;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
205
212
|
return (_ctx, _cache) => {
|
|
206
213
|
const _component_el_option = resolveComponent("el-option");
|
|
207
214
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -384,6 +391,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
384
391
|
width: "35"
|
|
385
392
|
}, {
|
|
386
393
|
default: withCtx((props2) => [
|
|
394
|
+
createVNode(_component_el_form_item, { class: "amb-design-attr-item" }, {
|
|
395
|
+
label: withCtx(() => [
|
|
396
|
+
createTextVNode(" 显示条件 ")
|
|
397
|
+
]),
|
|
398
|
+
default: withCtx(() => [
|
|
399
|
+
createVNode(_sfc_main$3, {
|
|
400
|
+
paramTypes: ["data", "task", "page", "request"],
|
|
401
|
+
data: props2.row.showCondition,
|
|
402
|
+
pageDesign: __props.pageDesign,
|
|
403
|
+
configure: __props.configure,
|
|
404
|
+
row: props2.row,
|
|
405
|
+
"onUpdate:data": updateTableShowCondition
|
|
406
|
+
}, null, 8, ["data", "pageDesign", "configure", "row"])
|
|
407
|
+
]),
|
|
408
|
+
_: 2
|
|
409
|
+
}, 1024),
|
|
387
410
|
createVNode(_component_el_form_item, {
|
|
388
411
|
class: "amb-design-attr-item",
|
|
389
412
|
"label-position": "top"
|
|
@@ -557,7 +580,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
557
580
|
]),
|
|
558
581
|
_: 2
|
|
559
582
|
}, 1024)) : createCommentVNode("", true),
|
|
560
|
-
props2.row.props.format && props2.row.props.format.type === "icon" ? (openBlock(), createBlock(_sfc_main$
|
|
583
|
+
props2.row.props.format && props2.row.props.format.type === "icon" ? (openBlock(), createBlock(_sfc_main$4, {
|
|
561
584
|
key: 7,
|
|
562
585
|
setting: props2.row.props.format,
|
|
563
586
|
"show-event": false
|
|
@@ -1102,7 +1125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1102
1125
|
]),
|
|
1103
1126
|
_: 1
|
|
1104
1127
|
}),
|
|
1105
|
-
createVNode(_sfc_main$
|
|
1128
|
+
createVNode(_sfc_main$5, {
|
|
1106
1129
|
configure: __props.configure,
|
|
1107
1130
|
showCondition: true,
|
|
1108
1131
|
paramTypes: ["data", "task", "page", "request", "row"],
|
|
@@ -1115,7 +1138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1115
1138
|
]),
|
|
1116
1139
|
_: 1
|
|
1117
1140
|
}),
|
|
1118
|
-
createVNode(_sfc_main$
|
|
1141
|
+
createVNode(_sfc_main$6, {
|
|
1119
1142
|
pageDesign: __props.pageDesign,
|
|
1120
1143
|
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1121
1144
|
data: props2.row.linkPage,
|
|
@@ -1243,7 +1266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1243
1266
|
]),
|
|
1244
1267
|
_: 1
|
|
1245
1268
|
}),
|
|
1246
|
-
createVNode(_sfc_main$
|
|
1269
|
+
createVNode(_sfc_main$7, {
|
|
1247
1270
|
configure: __props.configure,
|
|
1248
1271
|
pageDesign: __props.pageDesign,
|
|
1249
1272
|
serviceFields: selectedServiceResultFields.value
|
|
@@ -1346,7 +1369,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1346
1369
|
]),
|
|
1347
1370
|
_: 1
|
|
1348
1371
|
}),
|
|
1349
|
-
createVNode(_sfc_main$
|
|
1372
|
+
createVNode(_sfc_main$8, {
|
|
1350
1373
|
size: __props.configure.props.size,
|
|
1351
1374
|
showMaxHeight: true,
|
|
1352
1375
|
showCalcHeight: true
|
|
@@ -11,6 +11,7 @@ import "@element-plus/icons";
|
|
|
11
11
|
import "agilebuilder-ui/src/utils/auth";
|
|
12
12
|
import "super-page-runtime";
|
|
13
13
|
import "../../../../../../stores/page-store.js";
|
|
14
|
+
import "@vueuse/core";
|
|
14
15
|
import _sfc_main$1 from "../../data/component/table-children-column.vue.js";
|
|
15
16
|
import { queryTableFields, changeFeieldToMap } from "../../../../utils/page-table-util.js";
|
|
16
17
|
import { removComponentDataConfig, initComponentDataConfig } from "../../../../utils/chart-design-util.js";
|
package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js
CHANGED
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
setup(__props) {
|
|
25
|
-
const
|
|
25
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
26
26
|
const props = __props;
|
|
27
27
|
if (!props.configure.props) {
|
|
28
28
|
props.configure.props = { base: {} };
|
|
@@ -114,7 +114,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
114
|
;
|
|
115
115
|
else if (propName.startsWith("data.")) {
|
|
116
116
|
propName = propName.substring(5);
|
|
117
|
-
|
|
117
|
+
const column = pageDesignContextUtil.getModelField(propName);
|
|
118
|
+
dataType = column ? column.dataType : null;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
rowObj.dataType = dataType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
2
|
-
import "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue2.js";
|
|
2
|
+
import "./common-variable-bind.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3528c938"]]);
|
|
5
5
|
export {
|