super-page-designer 2.0.41 → 2.0.48
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 +203 -116
- package/dist/es/components/design/utils/chart-design-util.js +9 -9
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +13 -13
- package/dist/es/components/design/utils/page-table-util.js +7 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +32 -14
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +43 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr.vue2.js +7 -7
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +16 -11
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-advanced.vue.js +5 -1
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +20 -6
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue2.js +7 -7
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +36 -8
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +244 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +115 -30
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +2 -27
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset-columnline.vue.js +69 -3
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-base.vue.js +36 -8
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr.vue2.js +11 -5
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js +69 -4
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue.js +115 -34
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +35 -10
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic.vue.js +29 -3
- 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 +1 -692
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +692 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +371 -168
- 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 +18 -33
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +403 -0
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +60 -90
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +781 -0
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +534 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +26 -10
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +24 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -117
- 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 +77 -82
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +296 -73
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +7 -1
- 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 +95 -36
- 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/suffixmodule.vue.js +190 -61
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +55 -25
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +11 -2
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +6 -2
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +30 -14
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +6 -2
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +30 -14
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +6 -2
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +12 -8
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +19 -44
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +29 -14
- package/dist/es/components/design/views/assemblys/object-design.vue.js +8 -3
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +51 -33
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +6 -5
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +7 -2
- package/dist/es/style.css +81 -81
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/data/component/select-data-table.vue.js +0 -180
- package/dist/es/components/design/views/assemblys/data/component/select-data-table.vue2.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
2
|
+
import { getTableSelectionConf, getTableIndexConf, getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import DataOrigin from "../component/data-origin.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
|
|
6
6
|
import "@element-plus/icons-vue";
|
|
7
7
|
import "agilebuilder-ui/src/utils/request";
|
|
8
|
-
import
|
|
8
|
+
import "uuid";
|
|
9
9
|
import "../../../../../../stores/page-store.js";
|
|
10
|
-
import "../../common/common-variable-bind.
|
|
10
|
+
import "../../common/common-variable-bind.vue2.js";
|
|
11
11
|
import "../../../../utils/eventBus.js";
|
|
12
12
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
13
13
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -45,62 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
() => props.configure.props.base.selection,
|
|
46
46
|
(newVal) => {
|
|
47
47
|
if (newVal) {
|
|
48
|
-
let selectColumn =
|
|
49
|
-
uuid: getUuidv4(),
|
|
50
|
-
name: "",
|
|
51
|
-
props: {
|
|
52
|
-
base: {
|
|
53
|
-
name: "复选框组件",
|
|
54
|
-
prop: "$selection",
|
|
55
|
-
columnWidth: 100,
|
|
56
|
-
sortable: true,
|
|
57
|
-
visible: true,
|
|
58
|
-
displayOrder: 0,
|
|
59
|
-
alignTittle: "center",
|
|
60
|
-
alignContent: "center"
|
|
61
|
-
},
|
|
62
|
-
size: {},
|
|
63
|
-
editLine: {},
|
|
64
|
-
scan: {},
|
|
65
|
-
preSuffix: {},
|
|
66
|
-
verification: {},
|
|
67
|
-
dataOrigin: {
|
|
68
|
-
sortField: [{ name: "", type: "" }],
|
|
69
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
70
|
-
displayQuantity: 20
|
|
71
|
-
},
|
|
72
|
-
defaultValue: {},
|
|
73
|
-
inParameter: {},
|
|
74
|
-
title: {},
|
|
75
|
-
definition: {},
|
|
76
|
-
uploadConfig: {},
|
|
77
|
-
singleWidth: {},
|
|
78
|
-
suffixModule: {},
|
|
79
|
-
querySetting: {},
|
|
80
|
-
formatting: {
|
|
81
|
-
type: "",
|
|
82
|
-
suffixModule: {
|
|
83
|
-
jumpPageAdditional: [],
|
|
84
|
-
icon: ""
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
events: [
|
|
89
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
90
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
91
|
-
],
|
|
92
|
-
style: {
|
|
93
|
-
titleFont: {},
|
|
94
|
-
contentFont: {},
|
|
95
|
-
width: {},
|
|
96
|
-
background: {},
|
|
97
|
-
conentPadding: {},
|
|
98
|
-
tittlePadding: {},
|
|
99
|
-
border: {},
|
|
100
|
-
shadow: {},
|
|
101
|
-
tittleClass: ""
|
|
102
|
-
}
|
|
103
|
-
};
|
|
48
|
+
let selectColumn = getTableSelectionConf();
|
|
104
49
|
props.configure.items.splice(0, 0, selectColumn);
|
|
105
50
|
} else {
|
|
106
51
|
if (props.configure.items[0].props.base.prop === "$selection") {
|
|
@@ -113,63 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
58
|
() => props.configure.props.base.showIndex,
|
|
114
59
|
(newVal) => {
|
|
115
60
|
if (newVal) {
|
|
116
|
-
let indexColumn =
|
|
117
|
-
uuid: getUuidv4(),
|
|
118
|
-
name: "",
|
|
119
|
-
props: {
|
|
120
|
-
base: {
|
|
121
|
-
name: "序号",
|
|
122
|
-
prop: "$index",
|
|
123
|
-
columnWidth: 80,
|
|
124
|
-
sortable: true,
|
|
125
|
-
visible: true,
|
|
126
|
-
displayOrder: 1,
|
|
127
|
-
alignTittle: "center",
|
|
128
|
-
alignContent: "center"
|
|
129
|
-
},
|
|
130
|
-
size: {},
|
|
131
|
-
editLine: {},
|
|
132
|
-
scan: {},
|
|
133
|
-
preSuffix: {},
|
|
134
|
-
verification: {},
|
|
135
|
-
dataOrigin: {
|
|
136
|
-
sortField: [{ name: "", type: "" }],
|
|
137
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
138
|
-
displayQuantity: 20
|
|
139
|
-
},
|
|
140
|
-
defaultValue: {},
|
|
141
|
-
inParameter: {},
|
|
142
|
-
title: {},
|
|
143
|
-
definition: {},
|
|
144
|
-
uploadConfig: {},
|
|
145
|
-
singleWidth: {},
|
|
146
|
-
suffixModule: {},
|
|
147
|
-
querySetting: {},
|
|
148
|
-
formatting: {
|
|
149
|
-
type: "",
|
|
150
|
-
suffixModule: {
|
|
151
|
-
jumpPageAdditional: [],
|
|
152
|
-
icon: ""
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
events: [
|
|
157
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
158
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
159
|
-
],
|
|
160
|
-
style: {
|
|
161
|
-
titleFont: {},
|
|
162
|
-
contentFont: {},
|
|
163
|
-
width: {},
|
|
164
|
-
background: {},
|
|
165
|
-
tableCell: [{ type: "", model: "" }],
|
|
166
|
-
conentPadding: {},
|
|
167
|
-
tittlePadding: {},
|
|
168
|
-
border: {},
|
|
169
|
-
shadow: {},
|
|
170
|
-
tittleClass: ""
|
|
171
|
-
}
|
|
172
|
-
};
|
|
61
|
+
let indexColumn = getTableIndexConf();
|
|
173
62
|
if (props.configure.items[0].props.base.prop === "$selection") {
|
|
174
63
|
props.configure.items.splice(1, 0, indexColumn);
|
|
175
64
|
} else {
|
|
@@ -416,7 +305,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
305
|
_: 1
|
|
417
306
|
}),
|
|
418
307
|
createVNode(_component_el_form_item, {
|
|
419
|
-
label: "
|
|
308
|
+
label: "显示序号",
|
|
420
309
|
class: "amb-design-attr-item"
|
|
421
310
|
}, {
|
|
422
311
|
default: withCtx(() => [
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./table-design.vue2.js";
|
|
|
2
2
|
import "./table-design.vue3.js";
|
|
3
3
|
import "./table-design.vue4.js";
|
|
4
4
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const tableDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const tableDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-130db8b6"]]);
|
|
6
6
|
export {
|
|
7
7
|
tableDesign as default
|
|
8
8
|
};
|
|
@@ -2,15 +2,16 @@ import { defineComponent, ref, onMounted, watch, resolveComponent, openBlock, cr
|
|
|
2
2
|
import eventBus from "../../../../utils/eventBus.js";
|
|
3
3
|
import { useDraggable } from "vue-draggable-plus";
|
|
4
4
|
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
5
|
-
import "../../../../utils/assemblys-config.js";
|
|
5
|
+
import { getTableColumnConf } from "../../../../utils/assemblys-config.js";
|
|
6
6
|
import { Plus, Delete } from "@element-plus/icons-vue";
|
|
7
7
|
import { ElMessageBox } from "element-plus";
|
|
8
|
-
import { getColumnsWithGroupHeader, addColumnToGroupHeaders
|
|
9
|
-
import
|
|
8
|
+
import { getColumnsWithGroupHeader, addColumnToGroupHeaders } from "../../../../utils/data-table-util.js";
|
|
9
|
+
import "uuid";
|
|
10
10
|
import "@element-plus/icons";
|
|
11
11
|
import "super-page-runtime";
|
|
12
12
|
import "../../../../../../stores/page-store.js";
|
|
13
13
|
import _sfc_main$1 from "../component/table-children-column.vue.js";
|
|
14
|
+
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
14
15
|
const _hoisted_1 = {
|
|
15
16
|
id: "tableDesignMenu",
|
|
16
17
|
ref: "headerMenu",
|
|
@@ -32,9 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
setup(__props, { emit: __emit }) {
|
|
33
34
|
const props = __props;
|
|
34
35
|
const emit = __emit;
|
|
35
|
-
const tableData = ref([
|
|
36
|
-
{}
|
|
37
|
-
]);
|
|
36
|
+
const tableData = ref([{}]);
|
|
38
37
|
const currentPage = ref(1);
|
|
39
38
|
const pageSize = ref(1);
|
|
40
39
|
const designStyle = ref({});
|
|
@@ -44,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
43
|
const menuVisible = ref(false);
|
|
45
44
|
props.configure.props.groupHeaders;
|
|
46
45
|
const listColumns = ref([]);
|
|
47
|
-
const tableRef = ref(
|
|
46
|
+
const tableRef = ref();
|
|
48
47
|
const hiddenColumsName = ref([]);
|
|
49
48
|
function getRestsParameter() {
|
|
50
49
|
let defineProps = props.configure.props;
|
|
@@ -73,6 +72,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
}
|
|
75
|
+
if (props.configure) {
|
|
76
|
+
queryMyTableFields();
|
|
77
|
+
}
|
|
76
78
|
onMounted(() => {
|
|
77
79
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
78
80
|
});
|
|
@@ -83,37 +85,69 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
85
|
hiddenColumsName.value = hiddenColumsName.value.filter((item) => item != data.name);
|
|
84
86
|
}
|
|
85
87
|
});
|
|
86
|
-
watch(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
88
|
+
watch(
|
|
89
|
+
props.configure.style,
|
|
90
|
+
() => {
|
|
91
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
92
|
+
props.configure.runtime.style = designStyle.value;
|
|
93
|
+
props.configure.runtime.class = designClass.value;
|
|
94
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
95
|
+
},
|
|
96
|
+
{ immediate: true }
|
|
97
|
+
);
|
|
98
|
+
watch(
|
|
99
|
+
props.configure.props,
|
|
100
|
+
() => {
|
|
101
|
+
caculateComponentProps(props.configure, designProperty);
|
|
102
|
+
getRestsParameter();
|
|
103
|
+
props.configure.runtime.props = designProperty.value;
|
|
104
|
+
},
|
|
105
|
+
{ immediate: true }
|
|
106
|
+
);
|
|
107
|
+
watch(
|
|
108
|
+
() => props.configure.props.isChangeGroupHeader,
|
|
109
|
+
() => {
|
|
110
|
+
if (props.configure.props.isChangeGroupHeader) {
|
|
111
|
+
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
112
|
+
if (tableRef.value) {
|
|
113
|
+
tableRef.value.doLayout();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
101
116
|
}
|
|
102
|
-
|
|
103
|
-
eventBus.$on("reloadTable", () => {
|
|
117
|
+
);
|
|
118
|
+
eventBus.$on("reloadTable", (tableData2) => {
|
|
119
|
+
props.configure.items = JSON.parse(JSON.stringify(tableData2));
|
|
104
120
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
105
|
-
tableRef.value
|
|
121
|
+
if (tableRef.value) {
|
|
122
|
+
tableRef.value.doLayout();
|
|
123
|
+
}
|
|
106
124
|
});
|
|
107
|
-
watch(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
125
|
+
watch(
|
|
126
|
+
() => listColumns.value,
|
|
127
|
+
(newVal) => {
|
|
128
|
+
newVal.forEach((item) => {
|
|
129
|
+
if (item.props && item.props.base && !item.props.base.visible) {
|
|
130
|
+
hiddenColumsName.value.push(item.props.base.name);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
{ deep: true }
|
|
135
|
+
);
|
|
114
136
|
function onSelectWidget(selIndex, objConfigure) {
|
|
115
137
|
emit("onSelectWidget", selIndex, objConfigure);
|
|
116
138
|
}
|
|
139
|
+
function queryMyTableFields() {
|
|
140
|
+
const systemCode = props.configure.tableSysCode ? props.configure.tableSysCode : props.pageDesign.systemCode;
|
|
141
|
+
const systemVersion = props.configure.tableSysVersion ? props.configure.tableSysVersion : props.pageDesign.version;
|
|
142
|
+
const tableName = props.configure.props.dataOrigin.tableName;
|
|
143
|
+
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
144
|
+
props.configure.modelFieldsMap = {};
|
|
145
|
+
tableFields.forEach((attrbt) => {
|
|
146
|
+
props.configure.modelFieldsMap[attrbt.dbColumnName] = attrbt;
|
|
147
|
+
});
|
|
148
|
+
props.configure.modelFields = tableFields;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
117
151
|
const headerLabel = ref("");
|
|
118
152
|
function rowClick() {
|
|
119
153
|
headerLabel.value = "";
|
|
@@ -149,54 +183,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
183
|
function operationalMenuFun(type) {
|
|
150
184
|
closeMenuVisible();
|
|
151
185
|
if (type === "createCombinedHeader") {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
isTable: true,
|
|
155
|
-
// 是否是表格组件
|
|
156
|
-
name: "",
|
|
157
|
-
props: {
|
|
158
|
-
base: { name: "字段名称", tittleShow: false, sortable: true, visible: true },
|
|
159
|
-
size: {},
|
|
160
|
-
editLine: {
|
|
161
|
-
plugType: ""
|
|
162
|
-
},
|
|
163
|
-
scan: {},
|
|
164
|
-
preSuffix: {},
|
|
165
|
-
verification: {},
|
|
166
|
-
dataOrigin: {
|
|
167
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
168
|
-
displayQuantity: 20
|
|
169
|
-
},
|
|
170
|
-
defaultValue: {},
|
|
171
|
-
inParameter: {},
|
|
172
|
-
title: {},
|
|
173
|
-
definition: {},
|
|
174
|
-
uploadConfig: {},
|
|
175
|
-
singleWidth: {},
|
|
176
|
-
suffixModule: {},
|
|
177
|
-
tableCell: [{ value: "", label: "" }],
|
|
178
|
-
format: { icon: "" }
|
|
179
|
-
},
|
|
180
|
-
style: {
|
|
181
|
-
titleFont: {},
|
|
182
|
-
contentFont: {},
|
|
183
|
-
width: {},
|
|
184
|
-
background: {},
|
|
185
|
-
tableCell: [{ type: "", model: "" }],
|
|
186
|
-
conentPadding: {},
|
|
187
|
-
tittlePadding: {},
|
|
188
|
-
border: {},
|
|
189
|
-
shadow: {},
|
|
190
|
-
tittleClass: ""
|
|
191
|
-
},
|
|
192
|
-
events: [
|
|
193
|
-
{ name: "setValue", label: "弹框赋值回调", tip: "格式化配置超链接赋值回调" },
|
|
194
|
-
{ name: "closePopup", label: "关闭弹框回调", tip: "格式化配置超链接关闭弹框回调" }
|
|
195
|
-
]
|
|
196
|
-
};
|
|
186
|
+
const fieldInfo = { alias: "字段名称" };
|
|
187
|
+
let newObj = getTableColumnConf(fieldInfo);
|
|
197
188
|
props.configure.items.splice(columnDataIndex.value + 1, 0, newObj);
|
|
198
189
|
if (props.configure.props.base.isEnableGroupHeader) {
|
|
199
|
-
addColumnToGroupHeaders(
|
|
190
|
+
addColumnToGroupHeaders(
|
|
191
|
+
props.configure.items[columnDataIndex.value + 1],
|
|
192
|
+
null,
|
|
193
|
+
props.configure.props.groupHeaders
|
|
194
|
+
);
|
|
200
195
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
201
196
|
eventBus.$emit("synchroGroupHeadersData");
|
|
202
197
|
}
|
|
@@ -206,9 +201,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
201
|
cancelButtonText: "取消",
|
|
207
202
|
type: "warning"
|
|
208
203
|
}).then(() => {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
eventBus.$emit("synchroGroupHeadersData");
|
|
204
|
+
console.log("%c描述-173127", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.configure.props);
|
|
205
|
+
console.log("%c描述-173140", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", columnData.value);
|
|
212
206
|
}).catch(() => {
|
|
213
207
|
});
|
|
214
208
|
}
|
|
@@ -283,13 +277,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
277
|
listColumns: item,
|
|
284
278
|
designProperty: designProperty.value,
|
|
285
279
|
configure: _ctx.configure,
|
|
280
|
+
pageDesign: _ctx.pageDesign,
|
|
286
281
|
indexObj: _ctx.indexObj,
|
|
287
282
|
onSetHeaderLabel: setHeaderLabel,
|
|
288
283
|
onOnSelectWidget: onSelectWidget,
|
|
289
284
|
onSetColumnData: setColumnData,
|
|
290
285
|
onCloseMenuVisible: closeMenuVisible,
|
|
291
286
|
selectWidget: _ctx.selectWidget
|
|
292
|
-
}, null, 8, ["listColumns", "designProperty", "configure", "indexObj", "selectWidget"]);
|
|
287
|
+
}, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]);
|
|
293
288
|
}), 128))
|
|
294
289
|
]),
|
|
295
290
|
_: 1
|