super-page-designer 2.0.89 → 2.0.93
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 +2494 -2033
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/utils/page-table-util.d.ts +2 -1
- package/dist/es/components/design/utils/page-table-util.js +18 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +5 -6
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +79 -0
- 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 → common-variable-bind.vue3.js} +26 -7
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +27 -19
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +30 -18
- 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 +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +81 -531
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +713 -0
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +44 -13
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +13 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +18 -0
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +24 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -34
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue.js +85 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue.js +30 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue.js +51 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue2.js +42 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +58 -0
- package/dist/es/components/design/views/design/page-design.vue.js +3 -2
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +8 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +55 -11
- package/dist/es/stores/page-store.js +2 -9
- package/dist/es/style.css +627 -8
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/form/common/{icon-set-dialog.vue3.js → icon-set-dialog.vue2.js} +0 -0
|
@@ -35,5 +35,6 @@ export declare function setTableRuntimesFromConfigure(tableConfigure: Component,
|
|
|
35
35
|
* @return {*}
|
|
36
36
|
*/
|
|
37
37
|
export declare function tableResetConfigIndo(configure: object, moduleValue: any): void;
|
|
38
|
-
export declare function changeFeieldToMap(modelFieldsMap: any, tableFields: any):
|
|
38
|
+
export declare function changeFeieldToMap(modelFieldsMap: any, tableFields: any): any;
|
|
39
39
|
export declare function getTableNameByTableUuid(pageDesign: any, tableUuid: any): any;
|
|
40
|
+
export declare function getModelOptionsByFields(dataFieldList: any): any;
|
|
@@ -489,20 +489,36 @@ function changeFeieldToMap(modelFieldsMap, tableFields) {
|
|
|
489
489
|
tableFields.forEach((attrbt) => {
|
|
490
490
|
modelFieldsMap[attrbt.dbColumnName] = attrbt;
|
|
491
491
|
});
|
|
492
|
+
return modelFieldsMap;
|
|
492
493
|
}
|
|
493
494
|
function getTableNameByTableUuid(pageDesign, tableUuid) {
|
|
494
495
|
let tableName = pageDesign.tableName;
|
|
495
|
-
if (
|
|
496
|
+
if (tableName) {
|
|
496
497
|
return tableName;
|
|
497
498
|
}
|
|
498
499
|
let tableConfigure;
|
|
499
|
-
if (pageDesign.tableRuntimes && tableUuid && pageDesign.tableRuntimes[tableUuid]) {
|
|
500
|
+
if (pageDesign.tableRuntimes && tableUuid && pageDesign.tableRuntimes[tableUuid] && pageDesign.pageType && pageDesign.pageType === "list") {
|
|
500
501
|
tableConfigure = JSON.parse(pageDesign.tableRuntimes[tableUuid].configure);
|
|
501
502
|
}
|
|
502
503
|
return tableConfigure && tableConfigure.props && tableConfigure.props.dataOrigin ? tableConfigure.props.dataOrigin.tableName : null;
|
|
503
504
|
}
|
|
505
|
+
function getModelOptionsByFields(dataFieldList) {
|
|
506
|
+
let dataModelOptions = [];
|
|
507
|
+
if (dataFieldList) {
|
|
508
|
+
dataFieldList.forEach((element) => {
|
|
509
|
+
dataModelOptions.push({
|
|
510
|
+
value: element.dbColumnName,
|
|
511
|
+
// element.name
|
|
512
|
+
label: element.alias,
|
|
513
|
+
alias: element.alias
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
return dataModelOptions;
|
|
518
|
+
}
|
|
504
519
|
export {
|
|
505
520
|
changeFeieldToMap,
|
|
521
|
+
getModelOptionsByFields,
|
|
506
522
|
getTableNameByTableUuid,
|
|
507
523
|
querySublist,
|
|
508
524
|
queryTableFields,
|
|
@@ -41,13 +41,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function queryTemplateList() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
};
|
|
44
|
+
var _a;
|
|
45
|
+
let data = {};
|
|
46
|
+
const systemVersion = (_a = props.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
49
47
|
http.post(
|
|
50
|
-
window["$vueApp"].config.globalProperties.baseAPI + `/dc/template-management/list/${props.pageDesign.systemCode}`,
|
|
48
|
+
window["$vueApp"].config.globalProperties.baseAPI + `/dc/template-management/list/${props.pageDesign.systemCode}?publishVersion=${systemVersion}`,
|
|
51
49
|
data
|
|
52
50
|
).then((res) => {
|
|
53
51
|
templateList.value = res.data;
|
|
@@ -621,6 +619,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
621
619
|
createVNode(_component_el_select, {
|
|
622
620
|
modelValue: templateFileUuids.value,
|
|
623
621
|
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => templateFileUuids.value = $event),
|
|
622
|
+
filterable: "",
|
|
624
623
|
multiple: "",
|
|
625
624
|
onChange: templateFilesChange
|
|
626
625
|
}, {
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js
CHANGED
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
props.configure.props.base.iconValue = iconValue;
|
|
37
37
|
}
|
|
38
38
|
function queryPdfTemplate() {
|
|
39
|
-
let data = {
|
|
39
|
+
let data = {};
|
|
40
40
|
http.post(
|
|
41
41
|
window["$vueApp"].config.globalProperties.baseAPI + `/dc/pdf-templates/list/${props.pageDesign.systemCode}`,
|
|
42
42
|
data
|
|
@@ -40,6 +40,44 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
40
40
|
type: BooleanConstructor;
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
|
+
dataModelOptions: {
|
|
44
|
+
type: {
|
|
45
|
+
(arrayLength: number): object[];
|
|
46
|
+
(...items: object[]): object[];
|
|
47
|
+
new (arrayLength: number): object[];
|
|
48
|
+
new (...items: object[]): object[];
|
|
49
|
+
isArray(arg: any): arg is any[];
|
|
50
|
+
readonly prototype: any[];
|
|
51
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
52
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
53
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
54
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
55
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
56
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
57
|
+
};
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
objModelOptions: {
|
|
61
|
+
type: {
|
|
62
|
+
(arrayLength: number): object[];
|
|
63
|
+
(...items: object[]): object[];
|
|
64
|
+
new (arrayLength: number): object[];
|
|
65
|
+
new (...items: object[]): object[];
|
|
66
|
+
isArray(arg: any): arg is any[];
|
|
67
|
+
readonly prototype: any[];
|
|
68
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
69
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
70
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
71
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
72
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
73
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
74
|
+
};
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
needData: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
43
81
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
82
|
"update:modelValue": (...args: any[]) => void;
|
|
45
83
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -84,6 +122,44 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
84
122
|
type: BooleanConstructor;
|
|
85
123
|
default: boolean;
|
|
86
124
|
};
|
|
125
|
+
dataModelOptions: {
|
|
126
|
+
type: {
|
|
127
|
+
(arrayLength: number): object[];
|
|
128
|
+
(...items: object[]): object[];
|
|
129
|
+
new (arrayLength: number): object[];
|
|
130
|
+
new (...items: object[]): object[];
|
|
131
|
+
isArray(arg: any): arg is any[];
|
|
132
|
+
readonly prototype: any[];
|
|
133
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
134
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
135
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
136
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
137
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
138
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
139
|
+
};
|
|
140
|
+
default: any;
|
|
141
|
+
};
|
|
142
|
+
objModelOptions: {
|
|
143
|
+
type: {
|
|
144
|
+
(arrayLength: number): object[];
|
|
145
|
+
(...items: object[]): object[];
|
|
146
|
+
new (arrayLength: number): object[];
|
|
147
|
+
new (...items: object[]): object[];
|
|
148
|
+
isArray(arg: any): arg is any[];
|
|
149
|
+
readonly prototype: any[];
|
|
150
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
151
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
152
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
153
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
154
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
155
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
156
|
+
};
|
|
157
|
+
default: any;
|
|
158
|
+
};
|
|
159
|
+
needData: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
87
163
|
}>> & {
|
|
88
164
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
89
165
|
}, {
|
|
@@ -94,5 +170,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
94
170
|
showLabel: boolean;
|
|
95
171
|
needParams: boolean;
|
|
96
172
|
isRange: boolean;
|
|
173
|
+
dataModelOptions: object[];
|
|
174
|
+
objModelOptions: object[];
|
|
175
|
+
needData: boolean;
|
|
97
176
|
}, {}>;
|
|
98
177
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7fcec2fa"]]);
|
|
5
5
|
export {
|
|
6
6
|
BindVariable as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import { deepCopy, getUuidv4 } from "../../../utils/common-util.js";
|
|
|
5
5
|
import { getTypeOptions, taskVarOptions, contextVarOptions } from "./common-variable-bind-option.js";
|
|
6
6
|
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
7
7
|
import { tableField } from "../../../../../stores/table-store.js";
|
|
8
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
8
|
+
const _withScopeId = (n) => (pushScopeId("data-v-7fcec2fa"), n = n(), popScopeId(), n);
|
|
9
9
|
const _hoisted_1 = { key: 0 };
|
|
10
10
|
const _hoisted_2 = { style: { "margin-top": "10px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
|
|
11
11
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
|
|
@@ -54,6 +54,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
isTable: {
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: false
|
|
57
|
+
},
|
|
58
|
+
dataModelOptions: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: null
|
|
61
|
+
},
|
|
62
|
+
objModelOptions: {
|
|
63
|
+
type: Array,
|
|
64
|
+
default: null
|
|
65
|
+
},
|
|
66
|
+
// 是否需要data
|
|
67
|
+
needData: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
57
70
|
}
|
|
58
71
|
},
|
|
59
72
|
emits: ["update:modelValue"],
|
|
@@ -80,9 +93,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
93
|
window.addEventListener("click", handleClickOutside);
|
|
81
94
|
const pageContext = pageContextUtil.pageContext;
|
|
82
95
|
let hasTask = false;
|
|
83
|
-
let hasData =
|
|
84
|
-
if (
|
|
85
|
-
|
|
96
|
+
let hasData = props.needData;
|
|
97
|
+
if (!hasData) {
|
|
98
|
+
if (props.isTable || pageContext && (!pageContext.pageType || pageContext.pageType == "form") && pageContext.tableName) {
|
|
99
|
+
hasData = true;
|
|
100
|
+
}
|
|
86
101
|
}
|
|
87
102
|
if (pageContext && pageContext.workflowCode && hasData) {
|
|
88
103
|
hasTask = true;
|
|
@@ -244,11 +259,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
244
259
|
return style;
|
|
245
260
|
});
|
|
246
261
|
function setSelectOptions() {
|
|
247
|
-
if (props.
|
|
262
|
+
if (props.dataModelOptions && props.dataModelOptions.length > 0) {
|
|
263
|
+
selectOptions.value.dataModelOptions = props.dataModelOptions;
|
|
264
|
+
} else if (props.isTable) {
|
|
248
265
|
selectOptions.value.dataModelOptions = tableFieldStore.fieldList;
|
|
249
266
|
} else {
|
|
250
267
|
selectOptions.value.dataModelOptions = pageContextUtil.pageContextVarOptions.dataOptions;
|
|
251
268
|
}
|
|
269
|
+
if (props.objModelOptions && props.objModelOptions.length > 0) {
|
|
270
|
+
selectOptions.value.objModelOptions = props.objModelOptions;
|
|
271
|
+
}
|
|
252
272
|
selectOptions.value.pageVarOptions = pageContextUtil.pageContextVarOptions.pageVarOptions;
|
|
253
273
|
}
|
|
254
274
|
function formatter() {
|
|
@@ -305,7 +325,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
305
325
|
} else if (value === "data") {
|
|
306
326
|
valueOptions.value = selectOptions.value.dataModelOptions || [];
|
|
307
327
|
} else if (value === "obj") {
|
|
308
|
-
valueOptions.value = selectOptions.value.dataModelOptions || [];
|
|
328
|
+
valueOptions.value = selectOptions.value.objModelOptions && selectOptions.value.objModelOptions.length > 0 ? selectOptions.value.objModelOptions : selectOptions.value.dataModelOptions || [];
|
|
309
329
|
console.log("%c描述-172007", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", valueOptions.value);
|
|
310
330
|
} else if (value === "params") {
|
|
311
331
|
valueOptions.value = selectOptions.value.paramsVarOptions || [];
|
|
@@ -319,7 +339,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
319
339
|
popoverRef.value.hide();
|
|
320
340
|
}
|
|
321
341
|
function selectRow(row) {
|
|
322
|
-
debugger;
|
|
323
342
|
if (row.type == "range") {
|
|
324
343
|
if (row.symbolNum === "") {
|
|
325
344
|
ElMessage.warning("周期不能为空!");
|
|
@@ -31,10 +31,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
formData.value.type = "";
|
|
32
32
|
}
|
|
33
33
|
if (!formData.value.valueSetOptions || formData.value.valueSetOptions.length == 0) {
|
|
34
|
-
formData.value.valueSetOptions = [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
formData.value.valueSetOptions = [
|
|
35
|
+
{
|
|
36
|
+
columnName: "",
|
|
37
|
+
valueColumn: ""
|
|
38
|
+
}
|
|
39
|
+
];
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
const valueSettingBeannameTableSelect = ref({});
|
|
@@ -51,22 +53,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
53
|
const queryOptionGroupLoading = ref(false);
|
|
52
54
|
const optionGroups = ref([]);
|
|
53
55
|
function queryOptionGroups(query) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/option-groups/query", param).then((result) => {
|
|
60
|
-
queryOptionGroupLoading.value = false;
|
|
61
|
-
optionGroups.value = result;
|
|
62
|
-
}).catch((error) => {
|
|
63
|
-
queryOptionGroupLoading.value = false;
|
|
64
|
-
console.log("查询选项组出错", error);
|
|
65
|
-
});
|
|
66
|
-
} else {
|
|
67
|
-
optionGroups.value = [];
|
|
56
|
+
queryOptionGroupLoading.value = true;
|
|
57
|
+
const param = {
|
|
58
|
+
query
|
|
59
|
+
};
|
|
60
|
+
http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/option-groups/query", param).then((result) => {
|
|
68
61
|
queryOptionGroupLoading.value = false;
|
|
69
|
-
|
|
62
|
+
optionGroups.value = result;
|
|
63
|
+
}).catch((error) => {
|
|
64
|
+
queryOptionGroupLoading.value = false;
|
|
65
|
+
console.log("查询选项组出错", error);
|
|
66
|
+
});
|
|
70
67
|
}
|
|
71
68
|
const queryDynamicSourceLoading = ref(false);
|
|
72
69
|
const dynamicSources = ref([]);
|
|
@@ -127,6 +124,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
124
|
function beforeClose() {
|
|
128
125
|
emit("close");
|
|
129
126
|
}
|
|
127
|
+
function dataTypeChange(value) {
|
|
128
|
+
if (value === "keyValuePair") ;
|
|
129
|
+
else if (value === "optionGroup") {
|
|
130
|
+
queryOptionGroups(true);
|
|
131
|
+
} else if (value === "enumname") ;
|
|
132
|
+
else if (value === "beanname") ;
|
|
133
|
+
else if (value === "dynamicDataSource") {
|
|
134
|
+
echoDataOrigin("");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
130
137
|
__expose({
|
|
131
138
|
echoDataOrigin
|
|
132
139
|
});
|
|
@@ -182,6 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
189
|
createVNode(_component_el_select, {
|
|
183
190
|
modelValue: formData.value.type,
|
|
184
191
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.type = $event),
|
|
192
|
+
onChange: dataTypeChange,
|
|
185
193
|
placeholder: "请选择"
|
|
186
194
|
}, {
|
|
187
195
|
default: withCtx(() => [
|
|
@@ -97,14 +97,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
} else {
|
|
98
98
|
props.configure.props.dynamicColumnData.columnModelTable[columnModelTableRowIndex.value].dynamicDataSourceData = configObj;
|
|
99
99
|
}
|
|
100
|
-
console.log(
|
|
100
|
+
console.log(
|
|
101
|
+
"%c描述-173933",
|
|
102
|
+
"color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",
|
|
103
|
+
props.configure.props.dynamicColumnData.columnModelTable
|
|
104
|
+
);
|
|
101
105
|
}
|
|
102
106
|
function configurationClose() {
|
|
103
107
|
configurationVisible.value = false;
|
|
104
108
|
}
|
|
105
109
|
function formattingAdd(formattingData2) {
|
|
106
110
|
props.configure.props.dynamicColumnData.columnModelTable[columnModelTableRowIndex.value].listColumnFormat = formattingData2;
|
|
107
|
-
console.log(
|
|
111
|
+
console.log(
|
|
112
|
+
"%c描述-195126",
|
|
113
|
+
"color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",
|
|
114
|
+
props.configure.props.dynamicColumnData.columnModelTable
|
|
115
|
+
);
|
|
108
116
|
}
|
|
109
117
|
function formattingClose() {
|
|
110
118
|
formattingVisible.value = false;
|
|
@@ -142,7 +150,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
150
|
]),
|
|
143
151
|
_: 1
|
|
144
152
|
}, 512), [
|
|
145
|
-
[
|
|
153
|
+
[
|
|
154
|
+
vShow,
|
|
155
|
+
__props.configure.props.dynamicColumnData.columnModelTable && __props.configure.props.dynamicColumnData.columnModelTable.length > 0
|
|
156
|
+
]
|
|
146
157
|
])
|
|
147
158
|
]),
|
|
148
159
|
createVNode(_component_el_dialog, {
|
package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js
CHANGED
|
@@ -221,12 +221,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
}, 8, ["modelValue"])) : __props.listColumns.props && __props.listColumns.props.base && __props.listColumns.props.base.prop === "$selection" ? (openBlock(), createBlock(_component_el_checkbox, { key: 1 })) : __props.listColumns.props && __props.listColumns.props.base && __props.listColumns.props.base.prop === "$index" ? (openBlock(), createElementBlock("span", _hoisted_2, "1")) : (openBlock(), createBlock(_sfc_main$1, {
|
|
222
222
|
key: 3,
|
|
223
223
|
configure: __props.listColumns,
|
|
224
|
+
pageDesign: __props.pageDesign,
|
|
224
225
|
errorBlank: true,
|
|
225
226
|
selectWidget: __props.selectWidget,
|
|
226
227
|
indexObj: __props.indexObj,
|
|
227
228
|
onOnSelectWidget: onSelectWidget,
|
|
228
229
|
showSelectedClass: false
|
|
229
|
-
}, null, 8, ["configure", "selectWidget", "indexObj"]))
|
|
230
|
+
}, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj"]))
|
|
230
231
|
]),
|
|
231
232
|
key: "1"
|
|
232
233
|
} : void 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref, createCommentVNode } from "vue";
|
|
2
2
|
import { Codemirror } from "vue-codemirror";
|
|
3
3
|
import { Plus, Remove, Delete } from "@element-plus/icons-vue";
|
|
4
4
|
import _sfc_main$1 from "../component/variate-select.vue.js";
|
|
@@ -57,6 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
const sublist = ref([]);
|
|
58
58
|
const selectTableDialog = ref(null);
|
|
59
59
|
const combinationVisible = ref(false);
|
|
60
|
+
const modelFields = ref([]);
|
|
61
|
+
const modelFieldsMap = ref({});
|
|
60
62
|
watch(() => openCollapseItems.value, (newVal, oldVal) => {
|
|
61
63
|
if (newVal.includes("deleteLogic") && !oldVal.includes("deleteLogic")) {
|
|
62
64
|
querySublist(props.configure["tableSysCode"], props.configure["tableSysVersion"], props.pageDesign["version"]).then((res) => {
|
|
@@ -64,6 +66,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
});
|
|
69
|
+
onMounted(() => {
|
|
70
|
+
const systemCode = props.configure.props.otherSettings.tableSysCode ? props.configure.props.otherSettings.tableSysCode : props.pageDesign.systemCode;
|
|
71
|
+
const systemVersion = props.configure.props.otherSettings.tableSysVersion ? props.configure.props.otherSettings.tableSysVersion : props.pageDesign.version;
|
|
72
|
+
const tableName = props.configure.props.otherSettings.sourceDataTable;
|
|
73
|
+
queryTableFieldsRequest(systemCode, systemVersion, tableName);
|
|
74
|
+
});
|
|
67
75
|
if (!props.configure.props.otherSettings.fillTableData) {
|
|
68
76
|
props.configure.props.otherSettings.fillTableData = [{}];
|
|
69
77
|
}
|
|
@@ -100,7 +108,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
108
|
function clearTable() {
|
|
101
109
|
props.configure.props.otherSettings.sourceDataTable = "";
|
|
102
110
|
props.configure.props.otherSettings.alias = "";
|
|
103
|
-
|
|
111
|
+
modelFields.value = [];
|
|
112
|
+
modelFieldsMap.value = {};
|
|
104
113
|
}
|
|
105
114
|
function onSelectTable(tableInfo) {
|
|
106
115
|
let hisKey = props.configure.tableSysCode ? props.configure.tableSysCode : "";
|
|
@@ -120,15 +129,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
129
|
props.configure.props.otherSettings.alias = tableInfo.alias;
|
|
121
130
|
const systemCode = tableInfo.systemCode ? tableInfo.systemCode : props.pageDesign.systemCode;
|
|
122
131
|
const systemVersion = tableInfo.systemVersion ? tableInfo.systemVersion : props.pageDesign.version;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (!props.configure.props["otherSettings"]["modelFieldsMap"]) {
|
|
126
|
-
props.configure.props["otherSettings"]["modelFieldsMap"] = {};
|
|
127
|
-
}
|
|
128
|
-
changeFeieldToMap(props.configure.props["otherSettings"]["modelFieldsMap"], tableFields);
|
|
129
|
-
});
|
|
132
|
+
const tableName = tableInfo.name;
|
|
133
|
+
queryTableFieldsRequest(systemCode, systemVersion, tableName);
|
|
130
134
|
}
|
|
131
135
|
}
|
|
136
|
+
function queryTableFieldsRequest(systemCode, systemVersion, tableName) {
|
|
137
|
+
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
138
|
+
modelFields.value = tableFields;
|
|
139
|
+
modelFieldsMap.value = changeFeieldToMap(modelFieldsMap.value, tableFields);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
132
142
|
function addCascadingDeletionTable() {
|
|
133
143
|
props.configure.props["deleteLogicSetting"].push({ secondTable: "" });
|
|
134
144
|
}
|
|
@@ -579,8 +589,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
579
589
|
}, {
|
|
580
590
|
default: withCtx(() => [
|
|
581
591
|
createVNode(_component_el_checkbox_group, {
|
|
582
|
-
modelValue: __props.configure.props.otherSettings.
|
|
583
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.otherSettings.
|
|
592
|
+
modelValue: __props.configure.props.otherSettings.timeToInitializeSubTable,
|
|
593
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.otherSettings.timeToInitializeSubTable = $event)
|
|
584
594
|
}, {
|
|
585
595
|
default: withCtx(() => [
|
|
586
596
|
createVNode(_component_el_checkbox, {
|
|
@@ -774,7 +784,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
774
784
|
}),
|
|
775
785
|
createVNode(_component_el_form_item, {
|
|
776
786
|
label: "排序",
|
|
777
|
-
title: "
|
|
787
|
+
title: "排序",
|
|
778
788
|
class: "amb-design-attr-item"
|
|
779
789
|
}, {
|
|
780
790
|
default: withCtx(() => [
|
|
@@ -786,7 +796,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
786
796
|
filterable: ""
|
|
787
797
|
}, {
|
|
788
798
|
default: withCtx(() => [
|
|
789
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
799
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(modelFields.value, (item) => {
|
|
790
800
|
return openBlock(), createBlock(_component_el_option, {
|
|
791
801
|
key: item,
|
|
792
802
|
label: item.alias,
|
|
@@ -913,7 +923,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
913
923
|
filterable: ""
|
|
914
924
|
}, {
|
|
915
925
|
default: withCtx(() => [
|
|
916
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
926
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(modelFields.value, (item) => {
|
|
917
927
|
return openBlock(), createBlock(_component_el_option, {
|
|
918
928
|
key: item,
|
|
919
929
|
label: item.alias,
|
|
@@ -1038,12 +1048,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1038
1048
|
}, null, 8, ["systemCode", "systemVersion"]),
|
|
1039
1049
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
1040
1050
|
key: 0,
|
|
1041
|
-
|
|
1042
|
-
fieldNameList:
|
|
1043
|
-
fieldMap:
|
|
1051
|
+
list: __props.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(__props.configure.props.otherSettings.sourceQueryTableData) : null,
|
|
1052
|
+
fieldNameList: modelFields.value,
|
|
1053
|
+
fieldMap: modelFieldsMap.value,
|
|
1054
|
+
dataFieldNameList: __props.pageDesign.modelFields,
|
|
1055
|
+
paramTypes: ["data", "page", "task", "context", "system", "request", "fixed"],
|
|
1044
1056
|
onSave: saveCondition,
|
|
1045
1057
|
onClose: closeCombination
|
|
1046
|
-
}, null, 8, ["
|
|
1058
|
+
}, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : createCommentVNode("", true)
|
|
1047
1059
|
]),
|
|
1048
1060
|
_: 1
|
|
1049
1061
|
}, 8, ["modelValue"]),
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./table-design.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
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-55bb4cd3"]]);
|
|
6
6
|
export {
|
|
7
7
|
tableDesign as default
|
|
8
8
|
};
|
|
@@ -143,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
143
143
|
const systemVersion = props.configure.tableSysVersion ? props.configure.tableSysVersion : props.pageDesign.version;
|
|
144
144
|
const tableName = props.configure.props.dataOrigin.tableName;
|
|
145
145
|
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
146
|
-
changeFeieldToMap(props.configure.modelFieldsMap, tableFields);
|
|
146
|
+
props.configure.modelFieldsMap = changeFeieldToMap(props.configure.modelFieldsMap, tableFields);
|
|
147
147
|
props.configure.modelFields = tableFields;
|
|
148
148
|
});
|
|
149
149
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./tablecolumn-attr-base.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const TablecolumnAttrBase = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const TablecolumnAttrBase = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c93dc980"]]);
|
|
5
5
|
export {
|
|
6
6
|
TablecolumnAttrBase as default
|
|
7
7
|
};
|