super-page-designer 2.0.26 → 2.0.34
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/assets/images/data/barcode.png.js +4 -0
- package/dist/es/assets/images/workflow/workflow-history-img.png.js +4 -0
- package/dist/es/components/design/utils/assemblys-config.js +132 -19
- package/dist/es/components/design/utils/data-table-util.js +14 -5
- package/dist/es/components/design/utils/form-design-util.js +3 -2
- package/dist/es/components/design/utils/page-design-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-design-util.js +6 -13
- package/dist/es/components/design/utils/page-event-util.js +21 -0
- package/dist/es/components/design/utils/page-explore-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-explore-util.js +5 -17
- package/dist/es/components/design/utils/page-table-util.js +61 -32
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +19 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +11 -4
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +52 -66
- package/dist/es/components/design/views/assemblys/button/print-label/print-template-select.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/button/print-label/print-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +228 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +706 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.d.ts +16 -9
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +7 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -487
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +686 -1
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +19 -92
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +8 -22
- 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 +4 -3
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +449 -146
- 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 +34 -27
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +260 -225
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.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 +13 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +10 -3
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +557 -132
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-event.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +45 -58
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue2.js +12 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +17 -18
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +12 -7
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue2.js +5 -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.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +132 -56
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +28 -113
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +20 -14
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +57 -46
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +47 -9
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +44 -23
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +21 -13
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +18 -23
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +8 -3
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +25 -15
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +6 -2
- 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 +7 -5
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +5 -3
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +0 -9
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +2 -10
- package/dist/es/components/design/views/design/page-design.vue.js +35 -47
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +1 -8
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +3 -2
- package/dist/es/components/design/views/design/view/attr-container.vue.js +23 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.d.ts +2 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +4 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +101 -98
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -2
- package/dist/es/stores/page-store.js +2 -1
- package/dist/es/style.css +984 -202
- package/package.json +5 -5
- package/dist/es/assets/images/workflow/workflow-history.png.js +0 -4
- package/dist/es/components/design/utils/system.d.ts +0 -6
- package/dist/es/components/design/utils/system.js +0 -26
- package/dist/es/components/design/views/assemblys/data/component/in-parameter.vue.js +0 -121
- package/dist/es/components/design/views/assemblys/data/component/in-parameter.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +0 -75
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +0 -5
- package/dist/es/components/design/views/assemblys/form/common/linkage.vue.js +0 -54
- package/dist/es/components/design/views/assemblys/form/common/linkage.vue2.js +0 -4
|
@@ -13,7 +13,10 @@ function queryTableFieldsOrMap(systemCode, systemVersion, tableName) {
|
|
|
13
13
|
publishVersion: systemVersion,
|
|
14
14
|
tableName
|
|
15
15
|
};
|
|
16
|
-
return http.get(
|
|
16
|
+
return http.get(
|
|
17
|
+
window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns/findAttributeMap",
|
|
18
|
+
param
|
|
19
|
+
);
|
|
17
20
|
}
|
|
18
21
|
function querySublist(systemCode, systemVersion, publishVersion) {
|
|
19
22
|
const param = {
|
|
@@ -38,7 +41,7 @@ function setTableRuntimesFromConfigure(tableConfigure, pageDesign) {
|
|
|
38
41
|
delete tableConfigure.runtime;
|
|
39
42
|
}
|
|
40
43
|
function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
41
|
-
const listCode = pageDesign.
|
|
44
|
+
const listCode = "V" + pageDesign.version + "__" + pageDesign.code + "__" + configureCopy.uuid;
|
|
42
45
|
const listView = {
|
|
43
46
|
configure: tableConfigureStr,
|
|
44
47
|
// uuid
|
|
@@ -46,21 +49,21 @@ function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
|
46
49
|
// 名称
|
|
47
50
|
name: configureCopy.label,
|
|
48
51
|
// 合计方式,不合计(no),当前页(current),所有页(all),使用radio选择
|
|
49
|
-
totalType: configureCopy.props.base.totalType,
|
|
52
|
+
totalType: configureCopy.props.base ? configureCopy.props.base.totalType : null,
|
|
50
53
|
// 备注
|
|
51
|
-
remark: configureCopy.props.base.remark,
|
|
54
|
+
remark: configureCopy.props.base ? configureCopy.props.base.remark : null,
|
|
52
55
|
// 是否分页
|
|
53
|
-
pagination: configureCopy.props.base.
|
|
56
|
+
pagination: configureCopy.props.base ? configureCopy.props.base.subPaging : null,
|
|
54
57
|
// 默认行数
|
|
55
|
-
rowNum: configureCopy.props.base.pageSize,
|
|
58
|
+
rowNum: configureCopy.props.base ? configureCopy.props.base.pageSize : null,
|
|
56
59
|
// 可选行数
|
|
57
|
-
optionalRows: configureCopy.props.base.pageSizes,
|
|
60
|
+
optionalRows: configureCopy.props.base ? configureCopy.props.base.pageSizes : null,
|
|
58
61
|
// 布局
|
|
59
|
-
layout: JSON.stringify(configureCopy.props.base.layout),
|
|
62
|
+
layout: configureCopy.props.base ? JSON.stringify(configureCopy.props.base.layout) : null,
|
|
60
63
|
// 查询方式,不查询(no),内置查询(buildin),自定义查询(custom)
|
|
61
|
-
startQuery: configureCopy.props.base.startQuery,
|
|
64
|
+
startQuery: configureCopy.props.base ? configureCopy.props.base.startQuery : null,
|
|
62
65
|
// 是否是弹出式查询(true为弹出,false为嵌入)
|
|
63
|
-
popUp: configureCopy.props.base.popUp,
|
|
66
|
+
popUp: configureCopy.props.base ? configureCopy.props.base.popUp : null,
|
|
64
67
|
// 是否高级查询 isAdvancedQuery: boolean
|
|
65
68
|
// 是否启用模糊查询-暂不使用 isSearchFaint: boolean
|
|
66
69
|
// 是否初始化查询
|
|
@@ -68,20 +71,20 @@ function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
|
68
71
|
// 默认查询条件
|
|
69
72
|
defaultQueryCriteria: configureCopy.props.dataOrigin.defaultQueryCriteria,
|
|
70
73
|
// 查询表单label位置
|
|
71
|
-
queryLabelPosition: configureCopy.props.base.queryLabelPosition,
|
|
74
|
+
queryLabelPosition: configureCopy.props.base ? configureCopy.props.base.queryLabelPosition : null,
|
|
72
75
|
// 是否需要操作:增改
|
|
73
|
-
editable: configureCopy.props.base.editable,
|
|
76
|
+
editable: configureCopy.props.base ? configureCopy.props.base.editable : null,
|
|
74
77
|
// 操作列宽设置 columnWidth: number
|
|
75
78
|
// 行顺序字段名称 fieldForOrder: string
|
|
76
79
|
// 保存行顺序的url urlToSaveOrder: string
|
|
77
80
|
// 保存行信息的url urlToSaveRow: string
|
|
78
81
|
// 删除行信息的url urlToDeleteRow: string
|
|
79
82
|
// 显示列表内容的url,如果列表组件没有传url属性,则该url为准。
|
|
80
|
-
urlToListData: configureCopy.props.base.urlToListData,
|
|
83
|
+
urlToListData: configureCopy.props.base ? configureCopy.props.base.urlToListData : null,
|
|
81
84
|
// 是否是sql查询列表内容。影响到列表内容显示。
|
|
82
85
|
isSql: true,
|
|
83
86
|
// 列表组件中是否显示“字段配置”按钮
|
|
84
|
-
customConfig: configureCopy.props.base.customConfig,
|
|
87
|
+
customConfig: configureCopy.props.base ? configureCopy.props.base.customConfig : null,
|
|
85
88
|
// 数据表
|
|
86
89
|
tableName: configureCopy.props.dataOrigin.tableName,
|
|
87
90
|
// 系统编码 systemCode: string
|
|
@@ -91,17 +94,17 @@ function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
|
91
94
|
// 默认排序字段
|
|
92
95
|
defaultSortField: JSON.stringify(configureCopy.props.dataOrigin.sortField),
|
|
93
96
|
// 标题显示位置
|
|
94
|
-
titleAlign: configureCopy.props.base.alignTittle,
|
|
97
|
+
titleAlign: configureCopy.props.base ? configureCopy.props.base.alignTittle : null,
|
|
95
98
|
// 内容显示位置
|
|
96
|
-
contAlign: configureCopy.props.base.alignContent,
|
|
99
|
+
contAlign: configureCopy.props.base ? configureCopy.props.base.alignContent : null,
|
|
97
100
|
// 显示效果
|
|
98
|
-
displayEffect: configureCopy.props.base.displayEffect,
|
|
101
|
+
displayEffect: configureCopy.props.base ? configureCopy.props.base.displayEffect : null,
|
|
99
102
|
// 封面图片附件的名称 imageName: string
|
|
100
103
|
// 封面图片附件的uuid imageUuid: string
|
|
101
104
|
// 是否支持拖拽列自定义列顺序
|
|
102
|
-
isDragColumn: configureCopy.props.base.isDragColumn,
|
|
105
|
+
isDragColumn: configureCopy.props.base ? configureCopy.props.base.isDragColumn : null,
|
|
103
106
|
// 是否显示边框
|
|
104
|
-
border: configureCopy.props.base.border
|
|
107
|
+
border: configureCopy.props.base ? configureCopy.props.base.border : null
|
|
105
108
|
// 国际化key i18nKey: string
|
|
106
109
|
// 列设置 items: any
|
|
107
110
|
// groupHeader groupHeaders: any
|
|
@@ -114,7 +117,7 @@ function getListColumns(configure, pageDesign) {
|
|
|
114
117
|
var _a;
|
|
115
118
|
const listColumns = [];
|
|
116
119
|
(_a = configure.items) == null ? void 0 : _a.forEach((item) => {
|
|
117
|
-
const listColumn = { controlName: getControlName(item
|
|
120
|
+
const listColumn = { controlName: getControlName(item) };
|
|
118
121
|
const temp = {
|
|
119
122
|
// 列头名
|
|
120
123
|
headerName: item.props.base.name,
|
|
@@ -135,7 +138,7 @@ function getListColumns(configure, pageDesign) {
|
|
|
135
138
|
//冻结列 left right false
|
|
136
139
|
listColumnFixed: item.props.base.listColumnFixed,
|
|
137
140
|
// 格式设置
|
|
138
|
-
format: item
|
|
141
|
+
format: getPropsFormat(item),
|
|
139
142
|
//值设置,以逗号隔开:数据库值:显示的值,数据库值:显示的值...
|
|
140
143
|
valueSet: getListColumnValueSet(item),
|
|
141
144
|
// 查询设置 no 不查询 normal 普通查询 advanced 高级查询
|
|
@@ -174,7 +177,7 @@ function getListColumns(configure, pageDesign) {
|
|
|
174
177
|
// 校验的类型
|
|
175
178
|
checkType: configure.props.verification.type,
|
|
176
179
|
// 内容显示位置
|
|
177
|
-
contAlign: configure.props.base.alignContent
|
|
180
|
+
contAlign: configure.props.base ? configure.props.base.alignContent : null
|
|
178
181
|
// 国际化key,如果配置了该列则使用该列的key去查询国际化配置,如果没用配置就以“headerName”字段的值为准
|
|
179
182
|
// i18nKey: string
|
|
180
183
|
/**
|
|
@@ -192,23 +195,33 @@ function getGroupHeaders(configure) {
|
|
|
192
195
|
const result = [];
|
|
193
196
|
if (configure.props.groupHeaders) {
|
|
194
197
|
configure.props.groupHeaders.forEach((item) => {
|
|
195
|
-
|
|
198
|
+
const header = {
|
|
196
199
|
titleText: item.titleText,
|
|
197
|
-
prop: item.props.base.prop,
|
|
198
200
|
parentCode: item.parentUuid,
|
|
199
201
|
displayOrder: item.displayOrder,
|
|
200
202
|
uuid: item.uuid
|
|
201
|
-
}
|
|
203
|
+
};
|
|
204
|
+
if (item.props.base && item.props.base.prop) {
|
|
205
|
+
header.prop = getNameFromProp(item.props.base.prop);
|
|
206
|
+
}
|
|
207
|
+
result.push(header);
|
|
202
208
|
});
|
|
203
209
|
}
|
|
204
210
|
return result;
|
|
205
211
|
}
|
|
206
212
|
function getListColumnValueSet(item, listColumn) {
|
|
207
213
|
const configureProps = item.props;
|
|
214
|
+
if (item.name === "inputNumber") {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
208
217
|
if (configureProps.dataOrigin && configureProps.dataOrigin.optionValueSetType) {
|
|
209
218
|
const optionType = configureProps.dataOrigin.optionValueSetType;
|
|
210
219
|
if (optionType === "static") {
|
|
211
|
-
|
|
220
|
+
const valueSets = [];
|
|
221
|
+
configureProps.dataOrigin.staticStates.forEach((element) => {
|
|
222
|
+
valueSets.push(element.value + ":" + element.label);
|
|
223
|
+
});
|
|
224
|
+
return valueSets.join(",");
|
|
212
225
|
} else if (optionType === "optionGroup") {
|
|
213
226
|
return optionType + ":" + configureProps.dataOrigin.optionGroup;
|
|
214
227
|
} else if (optionType === "dynamicData") {
|
|
@@ -234,7 +247,7 @@ function getValueSetOptions(item) {
|
|
|
234
247
|
configureProps.dataOrigin.autoSets.forEach((element) => {
|
|
235
248
|
const target = getNameFromProp(element.target);
|
|
236
249
|
valueSetOptions.push({
|
|
237
|
-
columnName: element.source,
|
|
250
|
+
columnName: getNameFromProp(element.source),
|
|
238
251
|
valueField: target,
|
|
239
252
|
valueColumn: { name: target, dbColumnName: target.toUpperCase() }
|
|
240
253
|
});
|
|
@@ -263,10 +276,16 @@ function getControlName(item) {
|
|
|
263
276
|
return "switch";
|
|
264
277
|
case "select":
|
|
265
278
|
return getSelectControlName(item);
|
|
279
|
+
case "radio":
|
|
280
|
+
return "select";
|
|
281
|
+
case "checkbox":
|
|
282
|
+
return "multiselect";
|
|
266
283
|
case "datePicker":
|
|
267
284
|
return getDatePickerControlName(item);
|
|
268
285
|
case "dept-tree":
|
|
269
286
|
return getOrgTreeControlName(item);
|
|
287
|
+
case "inputNumber":
|
|
288
|
+
return "inputNumber";
|
|
270
289
|
default:
|
|
271
290
|
return "input";
|
|
272
291
|
}
|
|
@@ -278,7 +297,7 @@ function getSelectControlName(item) {
|
|
|
278
297
|
return "select";
|
|
279
298
|
}
|
|
280
299
|
function getDatePickerControlName(item) {
|
|
281
|
-
switch (item.props.base.
|
|
300
|
+
switch (item.props.base.type) {
|
|
282
301
|
case "date":
|
|
283
302
|
return "date";
|
|
284
303
|
case "time":
|
|
@@ -323,7 +342,7 @@ function getOrgTreeSet(item) {
|
|
|
323
342
|
const orgTreeSetArr = [];
|
|
324
343
|
if (item.props.base.otherFieldSets && item.props.base.otherFieldSets.length > 0) {
|
|
325
344
|
item.props.base.otherFieldSets.forEach((filedSet) => {
|
|
326
|
-
orgTreeSetArr.push({ type: filedSet.source, model: filedSet.target });
|
|
345
|
+
orgTreeSetArr.push({ type: filedSet.source, model: getNameFromProp(filedSet.target) });
|
|
327
346
|
});
|
|
328
347
|
}
|
|
329
348
|
return JSON.stringify({ orgTreeSetArr });
|
|
@@ -360,10 +379,20 @@ function getControlConfig(item) {
|
|
|
360
379
|
}
|
|
361
380
|
return null;
|
|
362
381
|
}
|
|
382
|
+
function getPropsFormat(item) {
|
|
383
|
+
if (item.props.format && item.props.format.type === "hyperlinks") {
|
|
384
|
+
const format = JSON.parse(JSON.stringify(item.props.format));
|
|
385
|
+
Object.assign(format, item.props.linkPage);
|
|
386
|
+
return JSON.stringify(format);
|
|
387
|
+
}
|
|
388
|
+
return JSON.stringify(item.props.format);
|
|
389
|
+
}
|
|
363
390
|
function getNameFromProp(prop) {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
391
|
+
if (prop) {
|
|
392
|
+
const match = prop.match(/\${(.*?)\.(.*?)}/);
|
|
393
|
+
if (match) {
|
|
394
|
+
return match[2];
|
|
395
|
+
}
|
|
367
396
|
}
|
|
368
397
|
return prop;
|
|
369
398
|
}
|
|
@@ -7,8 +7,16 @@ const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "button-attr-advanced",
|
|
9
9
|
props: {
|
|
10
|
-
configure:
|
|
11
|
-
|
|
10
|
+
configure: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
pageDesign: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
12
20
|
},
|
|
13
21
|
setup(__props) {
|
|
14
22
|
const props = __props;
|
|
@@ -69,6 +77,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
77
|
function closeSetDialog() {
|
|
70
78
|
setVisible.value = false;
|
|
71
79
|
}
|
|
80
|
+
function saveSetting(setData) {
|
|
81
|
+
props.configure.props.setValueList = setData;
|
|
82
|
+
console.log("%c描述-153236", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.configure.props.setValueList);
|
|
83
|
+
}
|
|
72
84
|
const combinationVisible = ref(false);
|
|
73
85
|
function closeCombinationDialog() {
|
|
74
86
|
combinationVisible.value = false;
|
|
@@ -235,14 +247,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
235
247
|
}),
|
|
236
248
|
conditionVisible.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
237
249
|
key: 0,
|
|
250
|
+
pageDesign: __props.pageDesign,
|
|
238
251
|
configure: __props.configure,
|
|
239
252
|
onClose: closeConditionDialog
|
|
240
|
-
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
253
|
+
}, null, 8, ["pageDesign", "configure"])) : createCommentVNode("", true),
|
|
241
254
|
setVisible.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
242
255
|
key: 1,
|
|
256
|
+
pageDesign: __props.pageDesign,
|
|
243
257
|
configure: __props.configure,
|
|
258
|
+
onSave: saveSetting,
|
|
244
259
|
onClose: closeSetDialog
|
|
245
|
-
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
260
|
+
}, null, 8, ["pageDesign", "configure"])) : createCommentVNode("", true),
|
|
246
261
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
247
262
|
key: 2,
|
|
248
263
|
conditionList: __props.configure.props.base.showCondition,
|
|
@@ -634,7 +634,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
634
634
|
default: withCtx(() => [
|
|
635
635
|
createVNode(_component_el_select, {
|
|
636
636
|
modelValue: __props.configure.props.base.tableUuid,
|
|
637
|
-
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => __props.configure.props.base.tableUuid = $event)
|
|
637
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => __props.configure.props.base.tableUuid = $event),
|
|
638
|
+
clearable: "",
|
|
639
|
+
filterable: ""
|
|
638
640
|
}, {
|
|
639
641
|
default: withCtx(() => [
|
|
640
642
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tableList.value, (item) => {
|
|
@@ -61,7 +61,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
}, null, 8, ["configure", "pageDesign"]), [
|
|
62
62
|
[vShow, unref(currentConfigType) === "base"]
|
|
63
63
|
]),
|
|
64
|
-
withDirectives(createVNode(_sfc_main$2, {
|
|
64
|
+
withDirectives(createVNode(_sfc_main$2, {
|
|
65
|
+
configure: __props.configure,
|
|
66
|
+
pageDesign: __props.pageDesign
|
|
67
|
+
}, null, 8, ["configure", "pageDesign"]), [
|
|
65
68
|
[vShow, unref(currentConfigType) === "advanced"]
|
|
66
69
|
]),
|
|
67
70
|
withDirectives(createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -11,6 +11,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
type: String,
|
|
12
12
|
default: "[]"
|
|
13
13
|
},
|
|
14
|
+
list: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
14
18
|
// 字段名列表
|
|
15
19
|
fieldNameList: {
|
|
16
20
|
type: Array,
|
|
@@ -35,6 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
39
|
if (props.conditionList) {
|
|
36
40
|
tableData.value = JSON.parse(props.conditionList);
|
|
37
41
|
}
|
|
42
|
+
if (props.list) {
|
|
43
|
+
tableData.value = props.list;
|
|
44
|
+
}
|
|
38
45
|
});
|
|
39
46
|
function remove() {
|
|
40
47
|
tableData.value = tableData.value.filter((item) => item != currentRow.value);
|
|
@@ -180,11 +187,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
187
|
onChange: ($event) => changeFieldName(scope.$index, scope.row.propName)
|
|
181
188
|
}, {
|
|
182
189
|
default: withCtx(() => [
|
|
183
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fieldNameList, (
|
|
190
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fieldNameList, (item) => {
|
|
184
191
|
return openBlock(), createBlock(_component_el_option, {
|
|
185
|
-
key:
|
|
186
|
-
label:
|
|
187
|
-
value:
|
|
192
|
+
key: item.id,
|
|
193
|
+
label: item.alias,
|
|
194
|
+
value: item.dbColumnName
|
|
188
195
|
}, null, 8, ["label", "value"]);
|
|
189
196
|
}), 128))
|
|
190
197
|
]),
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
const currentRow = ref({});
|
|
20
20
|
const combinationVisible = ref(false);
|
|
21
21
|
const tableSelectIndex = ref("");
|
|
22
|
-
|
|
22
|
+
ref([
|
|
23
23
|
{
|
|
24
24
|
dbColumnName: "FIRST_TASK_ID",
|
|
25
25
|
label: "该流程的第一个任务的id",
|
|
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
value: "AUDIT_REPORT_NO"
|
|
40
40
|
}
|
|
41
41
|
]);
|
|
42
|
-
|
|
42
|
+
ref({
|
|
43
43
|
"FIRST_TASK_ID": {
|
|
44
44
|
dbColumnName: "FIRST_TASK_ID",
|
|
45
45
|
label: "该流程的第一个任务的id",
|
|
@@ -158,8 +158,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
createVNode(_component_el_input, {
|
|
159
159
|
"model-value": unref(formatConditionList)(
|
|
160
160
|
scope.row.sqlFilterCondition,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
_ctx.pageDesign.modelFields,
|
|
162
|
+
_ctx.pageDesign.modelFieldsMap
|
|
163
163
|
),
|
|
164
164
|
size: "default",
|
|
165
165
|
onClick: ($event) => opencombinationDialog(scope.row, scope.$index)
|
|
@@ -201,8 +201,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
201
201
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
202
202
|
key: 0,
|
|
203
203
|
conditionList: conditionList.value,
|
|
204
|
-
fieldNameList:
|
|
205
|
-
fieldMap:
|
|
204
|
+
fieldNameList: _ctx.pageDesign.modelFields,
|
|
205
|
+
fieldMap: _ctx.pageDesign.modelFieldsMap,
|
|
206
206
|
onSave: saveCondition,
|
|
207
207
|
onClose: closeCombination
|
|
208
208
|
}, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : createCommentVNode("", true)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createElementBlock, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
2
|
import { formatConditionList } from "../../../../utils/data-table-util.js";
|
|
3
3
|
import { CirclePlus, Delete } from "@element-plus/icons-vue";
|
|
4
4
|
import _sfc_main$1 from "./combination.vue.js";
|
|
@@ -11,9 +11,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
type: Object,
|
|
12
12
|
default: () => {
|
|
13
13
|
}
|
|
14
|
+
},
|
|
15
|
+
pageDesign: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => {
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
|
-
emits: ["close"],
|
|
21
|
+
emits: ["close", "save"],
|
|
17
22
|
setup(__props, { emit: __emit }) {
|
|
18
23
|
const props = __props;
|
|
19
24
|
const $emit = __emit;
|
|
@@ -21,68 +26,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
26
|
const combinationVisible = ref(false);
|
|
22
27
|
const tableSelectIndex = ref("");
|
|
23
28
|
const conditionList = ref(null);
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
value: "FIRST_TASK_ID"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
dbColumnName: "ID",
|
|
33
|
-
label: "id",
|
|
34
|
-
type: "LONG",
|
|
35
|
-
value: "ID"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
dbColumnName: "AUDIT_REPORT_NO",
|
|
39
|
-
label: "审核报告编号",
|
|
40
|
-
type: "TEXT",
|
|
41
|
-
value: "AUDIT_REPORT_NO"
|
|
42
|
-
}
|
|
43
|
-
]);
|
|
44
|
-
const fieldMap = ref({
|
|
45
|
-
"FIRST_TASK_ID": {
|
|
46
|
-
dbColumnName: "FIRST_TASK_ID",
|
|
47
|
-
label: "该流程的第一个任务的id",
|
|
48
|
-
type: "TEXT",
|
|
49
|
-
value: "FIRST_TASK_ID"
|
|
50
|
-
},
|
|
51
|
-
"ID": {
|
|
52
|
-
dbColumnName: "ID",
|
|
53
|
-
label: "id",
|
|
54
|
-
type: "LONG",
|
|
55
|
-
value: "ID"
|
|
56
|
-
},
|
|
57
|
-
"AUDIT_REPORT_NO": {
|
|
58
|
-
dbColumnName: "AUDIT_REPORT_NO",
|
|
59
|
-
label: "审核报告编号",
|
|
60
|
-
type: "TEXT",
|
|
61
|
-
value: "AUDIT_REPORT_NO"
|
|
62
|
-
}
|
|
63
|
-
});
|
|
29
|
+
const tableRef = ref(null);
|
|
30
|
+
const tableData = ref([]);
|
|
31
|
+
if (props.configure.props.setValueList) {
|
|
32
|
+
tableData.value = props.configure.props.setValueList;
|
|
33
|
+
}
|
|
64
34
|
function closeCombination() {
|
|
65
35
|
combinationVisible.value = false;
|
|
66
36
|
}
|
|
67
37
|
function saveCondition(table) {
|
|
68
|
-
|
|
38
|
+
tableData.value[tableSelectIndex.value]["conditionList"] = table;
|
|
39
|
+
}
|
|
40
|
+
function saveData() {
|
|
41
|
+
$emit("save", tableData.value);
|
|
42
|
+
$emit("close");
|
|
69
43
|
}
|
|
70
44
|
function opencombinationDialog(row, index) {
|
|
71
|
-
conditionList.value = row.
|
|
45
|
+
conditionList.value = row.conditionList;
|
|
72
46
|
tableSelectIndex.value = index;
|
|
73
47
|
combinationVisible.value = true;
|
|
74
48
|
}
|
|
75
49
|
function afterBindDefaultValue(modelValue, row) {
|
|
76
50
|
row.defaultValue = modelValue;
|
|
77
51
|
}
|
|
52
|
+
function selectRow(row) {
|
|
53
|
+
tableRef.value.setCurrentRow(row);
|
|
54
|
+
}
|
|
78
55
|
function remove() {
|
|
79
|
-
|
|
56
|
+
tableData.value = tableData.value.filter((item) => item !== currentRow.value);
|
|
80
57
|
}
|
|
81
58
|
function handleCurrentChange(val) {
|
|
82
59
|
currentRow.value = val;
|
|
83
60
|
}
|
|
84
61
|
function add() {
|
|
85
|
-
|
|
62
|
+
tableData.value.push({});
|
|
86
63
|
}
|
|
87
64
|
return (_ctx, _cache) => {
|
|
88
65
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -97,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
74
|
"model-value": "",
|
|
98
75
|
title: "自动设值",
|
|
99
76
|
"append-to-body": "",
|
|
100
|
-
onClose: _cache[
|
|
77
|
+
onClose: _cache[1] || (_cache[1] = ($event) => $emit("close"))
|
|
101
78
|
}, {
|
|
102
79
|
footer: withCtx(() => [
|
|
103
80
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -111,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
88
|
}),
|
|
112
89
|
createVNode(_component_el_button, {
|
|
113
90
|
type: "primary",
|
|
114
|
-
onClick:
|
|
91
|
+
onClick: saveData
|
|
115
92
|
}, {
|
|
116
93
|
default: withCtx(() => [
|
|
117
94
|
createTextVNode(" 确定 ")
|
|
@@ -149,10 +126,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
126
|
_: 1
|
|
150
127
|
}),
|
|
151
128
|
createVNode(_component_el_table, {
|
|
129
|
+
ref_key: "tableRef",
|
|
130
|
+
ref: tableRef,
|
|
152
131
|
"highlight-current-row": "",
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
132
|
+
data: tableData.value,
|
|
133
|
+
style: { "width": "100%" },
|
|
134
|
+
onCurrentChange: handleCurrentChange
|
|
156
135
|
}, {
|
|
157
136
|
default: withCtx(() => [
|
|
158
137
|
createVNode(_component_el_table_column, {
|
|
@@ -165,7 +144,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
144
|
modelValue: scope.row.fillType,
|
|
166
145
|
"onUpdate:modelValue": ($event) => scope.row.fillType = $event,
|
|
167
146
|
clearable: "",
|
|
168
|
-
size: "default"
|
|
147
|
+
size: "default",
|
|
148
|
+
onFocus: ($event) => selectRow(scope.row)
|
|
169
149
|
}, {
|
|
170
150
|
default: withCtx(() => [
|
|
171
151
|
createVNode(_component_el_option, {
|
|
@@ -182,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
162
|
})
|
|
183
163
|
]),
|
|
184
164
|
_: 2
|
|
185
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
165
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])
|
|
186
166
|
]),
|
|
187
167
|
_: 1
|
|
188
168
|
}),
|
|
@@ -194,13 +174,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
174
|
default: withCtx((scope) => [
|
|
195
175
|
createVNode(_component_el_input, {
|
|
196
176
|
"model-value": unref(formatConditionList)(
|
|
197
|
-
scope.row.
|
|
198
|
-
|
|
199
|
-
|
|
177
|
+
scope.row.conditionList,
|
|
178
|
+
__props.pageDesign.modelFields,
|
|
179
|
+
__props.pageDesign.modelFieldsMap
|
|
200
180
|
),
|
|
201
181
|
size: "default",
|
|
182
|
+
onFocus: ($event) => selectRow(scope.row),
|
|
202
183
|
onClick: ($event) => opencombinationDialog(scope.row, scope.$index)
|
|
203
|
-
}, null, 8, ["model-value", "onClick"])
|
|
184
|
+
}, null, 8, ["model-value", "onFocus", "onClick"])
|
|
204
185
|
]),
|
|
205
186
|
_: 1
|
|
206
187
|
}),
|
|
@@ -219,16 +200,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
200
|
modelValue: scope.row.field,
|
|
220
201
|
"onUpdate:modelValue": ($event) => scope.row.field = $event,
|
|
221
202
|
clearable: "",
|
|
222
|
-
size: "default"
|
|
203
|
+
size: "default",
|
|
204
|
+
onFocus: ($event) => selectRow(scope.row)
|
|
223
205
|
}, {
|
|
224
206
|
default: withCtx(() => [
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
207
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.pageDesign.modelFields, (item) => {
|
|
208
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
209
|
+
key: item.id,
|
|
210
|
+
label: item.alias,
|
|
211
|
+
value: item.dbColumnName
|
|
212
|
+
}, null, 8, ["label", "value"]);
|
|
213
|
+
}), 128))
|
|
229
214
|
]),
|
|
230
215
|
_: 2
|
|
231
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
216
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])
|
|
232
217
|
]),
|
|
233
218
|
_: 1
|
|
234
219
|
}),
|
|
@@ -239,9 +224,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
224
|
}, {
|
|
240
225
|
default: withCtx((scope) => [
|
|
241
226
|
createVNode(BindVariable, {
|
|
227
|
+
onFocus: ($event) => selectRow(scope.row),
|
|
242
228
|
modelValue: scope.row.defaultValue,
|
|
243
229
|
"onUpdate:modelValue": (data) => afterBindDefaultValue(data, scope.row)
|
|
244
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
230
|
+
}, null, 8, ["onFocus", "modelValue", "onUpdate:modelValue"])
|
|
245
231
|
]),
|
|
246
232
|
_: 1
|
|
247
233
|
})
|
|
@@ -254,8 +240,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
240
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
255
241
|
key: 0,
|
|
256
242
|
conditionList: conditionList.value,
|
|
257
|
-
fieldNameList:
|
|
258
|
-
fieldMap:
|
|
243
|
+
fieldNameList: __props.pageDesign.modelFields,
|
|
244
|
+
fieldMap: __props.pageDesign.modelFieldsMap,
|
|
259
245
|
onSave: saveCondition,
|
|
260
246
|
onClose: closeCombination
|
|
261
247
|
}, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : createCommentVNode("", true)
|