super-page-designer 2.0.41 → 2.0.45
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 +59 -89
- 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 +1 -1
- 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/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 +93 -93
- 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
|
@@ -55,8 +55,66 @@ const tableOperateColumnConf = {
|
|
|
55
55
|
prop: "operation",
|
|
56
56
|
columnWidth: 150,
|
|
57
57
|
sortable: true,
|
|
58
|
+
displayOrder: 3,
|
|
58
59
|
visible: true,
|
|
59
60
|
alignTittle: "center",
|
|
61
|
+
alignContent: "center",
|
|
62
|
+
listColumnFixed: "right"
|
|
63
|
+
},
|
|
64
|
+
size: {},
|
|
65
|
+
editLine: {},
|
|
66
|
+
scan: {},
|
|
67
|
+
preSuffix: {},
|
|
68
|
+
verification: {},
|
|
69
|
+
dataOrigin: {
|
|
70
|
+
sortField: [{ name: "", type: "" }],
|
|
71
|
+
staticState: [{ label: "选项1", vaule: 1 }],
|
|
72
|
+
displayQuantity: 20
|
|
73
|
+
},
|
|
74
|
+
defaultValue: {},
|
|
75
|
+
inParameter: {},
|
|
76
|
+
title: {},
|
|
77
|
+
definition: {},
|
|
78
|
+
uploadConfig: {},
|
|
79
|
+
singleWidth: {},
|
|
80
|
+
suffixModule: {},
|
|
81
|
+
querySetting: {},
|
|
82
|
+
formatting: {
|
|
83
|
+
type: "",
|
|
84
|
+
suffixModule: {
|
|
85
|
+
jumpPageAdditional: [],
|
|
86
|
+
icon: ""
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
events: [
|
|
91
|
+
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
92
|
+
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
93
|
+
],
|
|
94
|
+
style: {
|
|
95
|
+
titleFont: {},
|
|
96
|
+
contentFont: {},
|
|
97
|
+
width: {},
|
|
98
|
+
background: {},
|
|
99
|
+
conentPadding: {},
|
|
100
|
+
tittlePadding: {},
|
|
101
|
+
border: {},
|
|
102
|
+
shadow: {},
|
|
103
|
+
tittleClass: ""
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const tableIndexColumnConf = {
|
|
107
|
+
uuid: getUuidv4(),
|
|
108
|
+
name: "",
|
|
109
|
+
props: {
|
|
110
|
+
base: {
|
|
111
|
+
name: "序号",
|
|
112
|
+
prop: "$index",
|
|
113
|
+
columnWidth: 80,
|
|
114
|
+
sortable: true,
|
|
115
|
+
visible: true,
|
|
116
|
+
displayOrder: 1,
|
|
117
|
+
alignTittle: "center",
|
|
60
118
|
alignContent: "center"
|
|
61
119
|
},
|
|
62
120
|
size: {},
|
|
@@ -94,6 +152,7 @@ const tableOperateColumnConf = {
|
|
|
94
152
|
contentFont: {},
|
|
95
153
|
width: {},
|
|
96
154
|
background: {},
|
|
155
|
+
tableCell: [{ type: "", model: "" }],
|
|
97
156
|
conentPadding: {},
|
|
98
157
|
tittlePadding: {},
|
|
99
158
|
border: {},
|
|
@@ -101,6 +160,120 @@ const tableOperateColumnConf = {
|
|
|
101
160
|
tittleClass: ""
|
|
102
161
|
}
|
|
103
162
|
};
|
|
163
|
+
const tableSelectionColumnConf = {
|
|
164
|
+
uuid: getUuidv4(),
|
|
165
|
+
name: "",
|
|
166
|
+
props: {
|
|
167
|
+
base: {
|
|
168
|
+
name: "复选框组件",
|
|
169
|
+
prop: "$selection",
|
|
170
|
+
columnWidth: 100,
|
|
171
|
+
sortable: true,
|
|
172
|
+
visible: true,
|
|
173
|
+
displayOrder: 0,
|
|
174
|
+
alignTittle: "center",
|
|
175
|
+
alignContent: "center"
|
|
176
|
+
},
|
|
177
|
+
size: {},
|
|
178
|
+
editLine: {},
|
|
179
|
+
scan: {},
|
|
180
|
+
preSuffix: {},
|
|
181
|
+
verification: {},
|
|
182
|
+
dataOrigin: {
|
|
183
|
+
sortField: [{ name: "", type: "" }],
|
|
184
|
+
staticState: [{ label: "选项1", vaule: 1 }],
|
|
185
|
+
displayQuantity: 20
|
|
186
|
+
},
|
|
187
|
+
defaultValue: {},
|
|
188
|
+
inParameter: {},
|
|
189
|
+
title: {},
|
|
190
|
+
definition: {},
|
|
191
|
+
uploadConfig: {},
|
|
192
|
+
singleWidth: {},
|
|
193
|
+
suffixModule: {},
|
|
194
|
+
querySetting: {},
|
|
195
|
+
formatting: {
|
|
196
|
+
type: "",
|
|
197
|
+
suffixModule: {
|
|
198
|
+
jumpPageAdditional: [],
|
|
199
|
+
icon: ""
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
events: [
|
|
204
|
+
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
205
|
+
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
206
|
+
],
|
|
207
|
+
style: {
|
|
208
|
+
titleFont: {},
|
|
209
|
+
contentFont: {},
|
|
210
|
+
width: {},
|
|
211
|
+
background: {},
|
|
212
|
+
conentPadding: {},
|
|
213
|
+
tittlePadding: {},
|
|
214
|
+
border: {},
|
|
215
|
+
shadow: {},
|
|
216
|
+
tittleClass: ""
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
function getTableColumnConf(fieldInfo) {
|
|
220
|
+
return {
|
|
221
|
+
uuid: getUuidv4(),
|
|
222
|
+
isTable: true,
|
|
223
|
+
// 是否是表格组件
|
|
224
|
+
name: "",
|
|
225
|
+
edit: fieldInfo ? fieldInfo.edit : false,
|
|
226
|
+
dataType: fieldInfo ? fieldInfo.dataType : "",
|
|
227
|
+
props: {
|
|
228
|
+
base: {
|
|
229
|
+
prop: fieldInfo ? fieldInfo.dbColumnName : "",
|
|
230
|
+
name: fieldInfo ? fieldInfo.alias : "",
|
|
231
|
+
tittleShow: false,
|
|
232
|
+
visible: true,
|
|
233
|
+
displayOrder: fieldInfo ? fieldInfo.displayOrder : 1,
|
|
234
|
+
sortable: true,
|
|
235
|
+
alignTittle: "center",
|
|
236
|
+
alignContent: "center"
|
|
237
|
+
},
|
|
238
|
+
size: {},
|
|
239
|
+
editLine: { plugType: "" },
|
|
240
|
+
scan: {},
|
|
241
|
+
preSuffix: {},
|
|
242
|
+
verification: {},
|
|
243
|
+
dataOrigin: {
|
|
244
|
+
sortField: [{ name: "", type: "" }],
|
|
245
|
+
staticState: [{ label: "选项1", vaule: 1 }],
|
|
246
|
+
displayQuantity: 20
|
|
247
|
+
},
|
|
248
|
+
defaultValue: {},
|
|
249
|
+
inParameter: {},
|
|
250
|
+
title: {},
|
|
251
|
+
definition: {},
|
|
252
|
+
uploadConfig: {},
|
|
253
|
+
singleWidth: {},
|
|
254
|
+
suffixModule: {},
|
|
255
|
+
querySetting: {},
|
|
256
|
+
orgFields: [{ type: "", model: "" }],
|
|
257
|
+
format: { type: "", icon: "", suffixModule: { staticStates: [] }, jumpPageAdditional: { staticStates: [] } }
|
|
258
|
+
},
|
|
259
|
+
events: [
|
|
260
|
+
{ name: "setValue", label: "弹框赋值回调", tip: "格式化配置超链接赋值回调" },
|
|
261
|
+
{ name: "closePopup", label: "关闭弹框回调", tip: "格式化配置超链接关闭弹框回调" }
|
|
262
|
+
],
|
|
263
|
+
style: {
|
|
264
|
+
titleFont: {},
|
|
265
|
+
contentFont: {},
|
|
266
|
+
width: {},
|
|
267
|
+
background: {},
|
|
268
|
+
tableCell: [{ value: "", label: "" }],
|
|
269
|
+
conentPadding: {},
|
|
270
|
+
tittlePadding: {},
|
|
271
|
+
border: {},
|
|
272
|
+
shadow: {},
|
|
273
|
+
tittleClass: ""
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
104
277
|
const assemblyGroups = [{
|
|
105
278
|
name: "container",
|
|
106
279
|
label: "容器",
|
|
@@ -477,7 +650,7 @@ const assemblyGroups = [{
|
|
|
477
650
|
{ name: "change", label: "确定更改日期", tip: "用户确认选定的值时触发" },
|
|
478
651
|
{ name: "blur", label: "获取焦点", tip: "获取焦点" },
|
|
479
652
|
{ name: "focus", label: "失去焦点", tip: "失去焦点" },
|
|
480
|
-
{
|
|
653
|
+
// {name:'calendar-change',label: '日历更改所选日期事件', tip:'在日历所选日期更改时触发' },
|
|
481
654
|
{ name: "panel-change", label: "日期面板改变事件", tip: "当日期面板改变时触发" },
|
|
482
655
|
{ name: "visible-change", label: "下拉列表出现/消失事件", tip: "当picker的下拉列表出现/消失时触发" },
|
|
483
656
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
@@ -1062,121 +1235,8 @@ const assemblyGroups = [{
|
|
|
1062
1235
|
}
|
|
1063
1236
|
],
|
|
1064
1237
|
items: [
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
name: "",
|
|
1068
|
-
props: {
|
|
1069
|
-
base: {
|
|
1070
|
-
name: "复选框组件",
|
|
1071
|
-
prop: "$selection",
|
|
1072
|
-
tittleShow: true,
|
|
1073
|
-
columnWidth: 100,
|
|
1074
|
-
visible: true,
|
|
1075
|
-
sortable: true,
|
|
1076
|
-
displayOrder: 0,
|
|
1077
|
-
alignTittle: "center",
|
|
1078
|
-
alignContent: "center"
|
|
1079
|
-
},
|
|
1080
|
-
size: {},
|
|
1081
|
-
editLine: {},
|
|
1082
|
-
scan: {},
|
|
1083
|
-
preSuffix: {},
|
|
1084
|
-
verification: {},
|
|
1085
|
-
dataOrigin: {
|
|
1086
|
-
sortField: [{ name: "", type: "" }],
|
|
1087
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
1088
|
-
displayQuantity: 20
|
|
1089
|
-
},
|
|
1090
|
-
defaultValue: {},
|
|
1091
|
-
inParameter: {},
|
|
1092
|
-
title: {},
|
|
1093
|
-
definition: {},
|
|
1094
|
-
uploadConfig: {},
|
|
1095
|
-
singleWidth: {},
|
|
1096
|
-
suffixModule: {},
|
|
1097
|
-
querySetting: {},
|
|
1098
|
-
formatting: {
|
|
1099
|
-
type: "",
|
|
1100
|
-
suffixModule: {
|
|
1101
|
-
jumpPageAdditional: [],
|
|
1102
|
-
icon: ""
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
events: [
|
|
1107
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
1108
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
1109
|
-
],
|
|
1110
|
-
style: {
|
|
1111
|
-
titleFont: {},
|
|
1112
|
-
contentFont: {},
|
|
1113
|
-
width: {},
|
|
1114
|
-
background: {},
|
|
1115
|
-
conentPadding: {},
|
|
1116
|
-
tittlePadding: {},
|
|
1117
|
-
border: {},
|
|
1118
|
-
shadow: {},
|
|
1119
|
-
tittleClass: ""
|
|
1120
|
-
}
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
uuid: getUuidv4(),
|
|
1124
|
-
name: "",
|
|
1125
|
-
props: {
|
|
1126
|
-
base: {
|
|
1127
|
-
name: "序号",
|
|
1128
|
-
prop: "$index",
|
|
1129
|
-
tittleShow: true,
|
|
1130
|
-
columnWidth: 80,
|
|
1131
|
-
visible: true,
|
|
1132
|
-
sortable: true,
|
|
1133
|
-
displayOrder: 1,
|
|
1134
|
-
alignTittle: "center",
|
|
1135
|
-
alignContent: "center"
|
|
1136
|
-
},
|
|
1137
|
-
size: {},
|
|
1138
|
-
editLine: {},
|
|
1139
|
-
scan: {},
|
|
1140
|
-
preSuffix: {},
|
|
1141
|
-
verification: {},
|
|
1142
|
-
dataOrigin: {
|
|
1143
|
-
sortField: [{ name: "", type: "" }],
|
|
1144
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
1145
|
-
displayQuantity: 20
|
|
1146
|
-
},
|
|
1147
|
-
defaultValue: {},
|
|
1148
|
-
inParameter: {},
|
|
1149
|
-
title: {},
|
|
1150
|
-
definition: {},
|
|
1151
|
-
uploadConfig: {},
|
|
1152
|
-
singleWidth: {},
|
|
1153
|
-
suffixModule: {},
|
|
1154
|
-
querySetting: {},
|
|
1155
|
-
formatting: {
|
|
1156
|
-
type: "",
|
|
1157
|
-
suffixModule: {
|
|
1158
|
-
jumpPageAdditional: [],
|
|
1159
|
-
icon: ""
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
},
|
|
1163
|
-
events: [
|
|
1164
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
1165
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
1166
|
-
],
|
|
1167
|
-
style: {
|
|
1168
|
-
titleFont: {},
|
|
1169
|
-
contentFont: {},
|
|
1170
|
-
width: {},
|
|
1171
|
-
background: {},
|
|
1172
|
-
tableCell: [{ type: "", model: "" }],
|
|
1173
|
-
conentPadding: {},
|
|
1174
|
-
tittlePadding: {},
|
|
1175
|
-
border: {},
|
|
1176
|
-
shadow: {},
|
|
1177
|
-
tittleClass: ""
|
|
1178
|
-
}
|
|
1179
|
-
},
|
|
1238
|
+
tableSelectionColumnConf,
|
|
1239
|
+
tableIndexColumnConf,
|
|
1180
1240
|
tableOperateColumnConf
|
|
1181
1241
|
],
|
|
1182
1242
|
modelFields: [],
|
|
@@ -2377,6 +2437,16 @@ function getTableOperateConf() {
|
|
|
2377
2437
|
conf.uuid = getUuidv4();
|
|
2378
2438
|
return conf;
|
|
2379
2439
|
}
|
|
2440
|
+
function getTableIndexConf() {
|
|
2441
|
+
const conf = deepCopy(tableIndexColumnConf);
|
|
2442
|
+
conf.uuid = getUuidv4();
|
|
2443
|
+
return conf;
|
|
2444
|
+
}
|
|
2445
|
+
function getTableSelectionConf() {
|
|
2446
|
+
const conf = deepCopy(tableSelectionColumnConf);
|
|
2447
|
+
conf.uuid = getUuidv4();
|
|
2448
|
+
return conf;
|
|
2449
|
+
}
|
|
2380
2450
|
const standardButtonOperations = [
|
|
2381
2451
|
{
|
|
2382
2452
|
label: "表单标准功能",
|
|
@@ -2542,6 +2612,19 @@ function getDesignComponentByName(name) {
|
|
|
2542
2612
|
}
|
|
2543
2613
|
return null;
|
|
2544
2614
|
}
|
|
2615
|
+
function getDesignEvents(name) {
|
|
2616
|
+
if (!name)
|
|
2617
|
+
return [];
|
|
2618
|
+
for (let i = 0; i < assemblyGroups.length; i++) {
|
|
2619
|
+
let items = assemblyGroups[i].items;
|
|
2620
|
+
for (let j = 0; j < items.length; j++) {
|
|
2621
|
+
let item = items[j];
|
|
2622
|
+
if (item.name == name) {
|
|
2623
|
+
return item.events;
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2545
2628
|
function getDesignConfByName(name) {
|
|
2546
2629
|
if (!name) {
|
|
2547
2630
|
return null;
|
|
@@ -2607,8 +2690,12 @@ export {
|
|
|
2607
2690
|
getComponentEventOptions,
|
|
2608
2691
|
getDesignComponentByName,
|
|
2609
2692
|
getDesignConfByName,
|
|
2693
|
+
getDesignEvents,
|
|
2610
2694
|
getFormComponentOptions,
|
|
2611
2695
|
getPageConf,
|
|
2696
|
+
getTableColumnConf,
|
|
2697
|
+
getTableIndexConf,
|
|
2612
2698
|
getTableOperateConf,
|
|
2699
|
+
getTableSelectionConf,
|
|
2613
2700
|
standardButtonOperations
|
|
2614
2701
|
};
|
|
@@ -490,16 +490,16 @@ function generateSeriesJson(serieConfigure) {
|
|
|
490
490
|
label: {},
|
|
491
491
|
itemStyle: {},
|
|
492
492
|
lineStyle: {},
|
|
493
|
-
emphasis: {
|
|
494
|
-
disabled: true,
|
|
495
|
-
itemStyle: {
|
|
496
|
-
color: "#E3E8C0",
|
|
497
|
-
borderWidth: 1,
|
|
498
|
-
borderType: "dashed",
|
|
499
|
-
borderColor: "#878773"
|
|
500
|
-
}
|
|
501
|
-
}
|
|
493
|
+
emphasis: {}
|
|
502
494
|
};
|
|
495
|
+
if (serieConfigure.type === "bar") {
|
|
496
|
+
tempSerie.emphasis.itemStyle = {
|
|
497
|
+
color: "#E3E8C0",
|
|
498
|
+
borderWidth: 1,
|
|
499
|
+
borderType: "dashed",
|
|
500
|
+
borderColor: "#878773"
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
503
|
if (itemStyle.enableLabel != void 0) {
|
|
504
504
|
tempSerie.label.show = itemStyle.enableLabel;
|
|
505
505
|
if (itemStyle.labelPosition) {
|
|
@@ -25,7 +25,7 @@ export declare function removComponentOptionConfigs(configure: Component): void;
|
|
|
25
25
|
* @param {*}
|
|
26
26
|
* @return {*}
|
|
27
27
|
*/
|
|
28
|
-
export declare function columnTittleStyle(configure: any):
|
|
28
|
+
export declare function columnTittleStyle(configure: any): any;
|
|
29
29
|
export declare function columnCustomTittleClass(configure: any): void;
|
|
30
30
|
export declare function columnContentStyle(configure: any): void;
|
|
31
31
|
export declare function columnContentClass(configure: any): void;
|
|
@@ -232,33 +232,33 @@ export interface ListColumn {
|
|
|
232
232
|
total: boolean;
|
|
233
233
|
listColumnFixed: string;
|
|
234
234
|
format: string;
|
|
235
|
-
valueSet: string;
|
|
236
|
-
querySettingName: string;
|
|
237
|
-
queryMatching: string;
|
|
238
|
-
querySetting: string;
|
|
235
|
+
valueSet: string | null | undefined;
|
|
236
|
+
querySettingName: string | null | undefined;
|
|
237
|
+
queryMatching: string | null | undefined;
|
|
238
|
+
querySetting: string | null | undefined;
|
|
239
239
|
editable: boolean;
|
|
240
240
|
defaultValue: string;
|
|
241
|
-
controlName: string;
|
|
242
|
-
controlConfig: string;
|
|
243
|
-
eventType
|
|
241
|
+
controlName: string | null | undefined;
|
|
242
|
+
controlConfig: string | null | undefined;
|
|
243
|
+
eventType?: string;
|
|
244
244
|
/**
|
|
245
245
|
* 显示顺序,多层级关系,可能值有重复
|
|
246
246
|
* 如有第一层级的顺序1,有第二层级的顺序1
|
|
247
247
|
*/
|
|
248
248
|
displayOrder: number;
|
|
249
|
-
fileSet: string;
|
|
250
|
-
orgTreeSet: string;
|
|
251
|
-
dynamicColumnJson
|
|
252
|
-
valueSetOptions: string;
|
|
249
|
+
fileSet: string | null | undefined;
|
|
250
|
+
orgTreeSet: string | null | undefined;
|
|
251
|
+
dynamicColumnJson?: string;
|
|
252
|
+
valueSetOptions: string | null | undefined;
|
|
253
253
|
required: boolean;
|
|
254
254
|
pattern: string;
|
|
255
255
|
checkType: string;
|
|
256
256
|
contAlign: string;
|
|
257
|
-
i18nKey
|
|
257
|
+
i18nKey?: string;
|
|
258
258
|
/**
|
|
259
259
|
* 字段类型为文本,行编辑控件类型为多选下拉框multiselect时,数据库是否存储多个值,用于控制台账查询功能
|
|
260
260
|
* 如果是false表示数据库存储的不是多个值,只是查询时需要多个值使用“等号符号”进行or查询,
|
|
261
261
|
* 如果是true表示数据库存储了多个值(一般是以逗号隔开),则查询时需要多个值使用“包含符号”进行or查询。
|
|
262
262
|
*/
|
|
263
|
-
ifMultiData
|
|
263
|
+
ifMultiData?: boolean;
|
|
264
264
|
}
|
|
@@ -118,7 +118,7 @@ function getListColumns(configure, pageDesign) {
|
|
|
118
118
|
const listColumns = [];
|
|
119
119
|
(_a = configure.items) == null ? void 0 : _a.forEach((item) => {
|
|
120
120
|
const listColumn = { controlName: getControlName(item) };
|
|
121
|
-
|
|
121
|
+
let temp = {
|
|
122
122
|
// 列头名
|
|
123
123
|
headerName: item.props.base.name,
|
|
124
124
|
//对应数据表字段名字。(listColumn的tableColumn)占位符列和$selection、$index两列时为固定值(listColumn的prop)
|
|
@@ -187,6 +187,9 @@ function getListColumns(configure, pageDesign) {
|
|
|
187
187
|
*/
|
|
188
188
|
// ifMultiData: boolean
|
|
189
189
|
};
|
|
190
|
+
if (item.props.base.prop && item.props.base.prop === "dynamicColumnSelect") {
|
|
191
|
+
formatDynamicColumnData(item, temp);
|
|
192
|
+
}
|
|
190
193
|
listColumns.push(temp);
|
|
191
194
|
});
|
|
192
195
|
return listColumns;
|
|
@@ -381,7 +384,6 @@ function getControlConfig(item) {
|
|
|
381
384
|
}
|
|
382
385
|
function getPropsFormat(item) {
|
|
383
386
|
if (item.props.format && item.props.format.type === "hyperlinks") {
|
|
384
|
-
debugger;
|
|
385
387
|
const format = {};
|
|
386
388
|
format.type = item.props.format.type;
|
|
387
389
|
format.jumpPageJson = JSON.stringify(item.props.linkPage);
|
|
@@ -398,6 +400,9 @@ function getNameFromProp(prop) {
|
|
|
398
400
|
}
|
|
399
401
|
return prop;
|
|
400
402
|
}
|
|
403
|
+
function formatDynamicColumnData(item, temp) {
|
|
404
|
+
temp.dynamicColumnJson = JSON.stringify(item.props.dataOrigin.dynamicColumnJson);
|
|
405
|
+
}
|
|
401
406
|
export {
|
|
402
407
|
querySublist,
|
|
403
408
|
queryTableFields,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
import _sfc_main$
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import _sfc_main$
|
|
2
|
+
import _sfc_main$2 from "../component/condition-dialog.vue.js";
|
|
3
|
+
import _sfc_main$3 from "../component/set-dialog.vue.js";
|
|
4
|
+
import _sfc_main$4 from "../component/combination.vue.js";
|
|
5
5
|
import JournalSetDialog from "../component/journal-set-dialog.vue.js";
|
|
6
|
+
import _sfc_main$1 from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
6
7
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "button-attr-advanced",
|
|
@@ -21,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
22
|
setup(__props) {
|
|
22
23
|
const props = __props;
|
|
23
24
|
const openCollapseItems = ref(["base"]);
|
|
24
|
-
|
|
25
|
+
ref([
|
|
25
26
|
{
|
|
26
27
|
dbColumnName: "FIRST_TASK_ID",
|
|
27
28
|
label: "该流程的第一个任务的id",
|
|
@@ -41,20 +42,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
42
|
value: "AUDIT_REPORT_NO"
|
|
42
43
|
}
|
|
43
44
|
]);
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
ref({
|
|
46
|
+
FIRST_TASK_ID: {
|
|
46
47
|
dbColumnName: "FIRST_TASK_ID",
|
|
47
48
|
label: "该流程的第一个任务的id",
|
|
48
49
|
type: "TEXT",
|
|
49
50
|
value: "FIRST_TASK_ID"
|
|
50
51
|
},
|
|
51
|
-
|
|
52
|
+
ID: {
|
|
52
53
|
dbColumnName: "ID",
|
|
53
54
|
label: "id",
|
|
54
55
|
type: "LONG",
|
|
55
56
|
value: "ID"
|
|
56
57
|
},
|
|
57
|
-
|
|
58
|
+
AUDIT_REPORT_NO: {
|
|
58
59
|
dbColumnName: "AUDIT_REPORT_NO",
|
|
59
60
|
label: "审核报告编号",
|
|
60
61
|
type: "TEXT",
|
|
@@ -79,7 +80,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
}
|
|
80
81
|
function saveSetting(setData) {
|
|
81
82
|
props.configure.props.setValueList = setData;
|
|
82
|
-
console.log(
|
|
83
|
+
console.log(
|
|
84
|
+
"%c描述-153236",
|
|
85
|
+
"color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",
|
|
86
|
+
props.configure.props.setValueList
|
|
87
|
+
);
|
|
83
88
|
}
|
|
84
89
|
const combinationVisible = ref(false);
|
|
85
90
|
function closeCombinationDialog() {
|
|
@@ -190,6 +195,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
190
195
|
]),
|
|
191
196
|
_: 1
|
|
192
197
|
}),
|
|
198
|
+
createVNode(_component_el_form_item, {
|
|
199
|
+
label: "启用条件",
|
|
200
|
+
class: "amb-design-attr-item"
|
|
201
|
+
}, {
|
|
202
|
+
default: withCtx(() => [
|
|
203
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
204
|
+
key: __props.configure.uuid + "_edit",
|
|
205
|
+
configure: __props.configure,
|
|
206
|
+
type: "editConditions"
|
|
207
|
+
}, null, 8, ["configure"]))
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
193
211
|
createVNode(_component_el_form_item, {
|
|
194
212
|
label: "自动设值",
|
|
195
213
|
class: "amb-design-attr-item"
|
|
@@ -245,24 +263,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
245
263
|
]),
|
|
246
264
|
_: 1
|
|
247
265
|
}),
|
|
248
|
-
conditionVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
266
|
+
conditionVisible.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
249
267
|
key: 0,
|
|
250
268
|
pageDesign: __props.pageDesign,
|
|
251
269
|
configure: __props.configure,
|
|
252
270
|
onClose: closeConditionDialog
|
|
253
271
|
}, null, 8, ["pageDesign", "configure"])) : createCommentVNode("", true),
|
|
254
|
-
setVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
272
|
+
setVisible.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
255
273
|
key: 1,
|
|
256
274
|
pageDesign: __props.pageDesign,
|
|
257
275
|
configure: __props.configure,
|
|
258
276
|
onSave: saveSetting,
|
|
259
277
|
onClose: closeSetDialog
|
|
260
278
|
}, null, 8, ["pageDesign", "configure"])) : createCommentVNode("", true),
|
|
261
|
-
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
279
|
+
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
262
280
|
key: 2,
|
|
263
281
|
conditionList: __props.configure.props.base.showCondition,
|
|
264
|
-
fieldNameList:
|
|
265
|
-
fieldMap:
|
|
282
|
+
fieldNameList: __props.pageDesign.modelFields,
|
|
283
|
+
fieldMap: __props.pageDesign.modelFieldsMap,
|
|
266
284
|
onSave: saveCondition,
|
|
267
285
|
onClose: closeCombinationDialog
|
|
268
286
|
}, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : createCommentVNode("", true),
|