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
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue2.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, isRef, createElementVNode, withDirectives, vShow } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./workflownode-attr-base.vue.js";
|
|
3
|
+
import _sfc_main$2 from "./workflownode-attr-style.vue.js";
|
|
4
|
+
import AttrHeader from "../../form/common/attr-header.vue.js";
|
|
5
|
+
import _sfc_main$3 from "./workflownode-attr-event.vue.js";
|
|
6
|
+
const _hoisted_1 = { class: "amb-design-attr-content" };
|
|
7
|
+
const _hoisted_2 = { class: "amb-design-attr-list" };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "workflownode-attr",
|
|
10
|
+
props: {
|
|
11
|
+
configure: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
14
|
+
// 设置默认值
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
let currentConfigType = ref("base");
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21
|
+
createVNode(AttrHeader, {
|
|
22
|
+
modelValue: unref(currentConfigType),
|
|
23
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
24
|
+
}, null, 8, ["modelValue"]),
|
|
25
|
+
createElementVNode("div", _hoisted_2, [
|
|
26
|
+
withDirectives(createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
27
|
+
[vShow, unref(currentConfigType) === "base"]
|
|
28
|
+
]),
|
|
29
|
+
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
30
|
+
[vShow, unref(currentConfigType) === "style"]
|
|
31
|
+
]),
|
|
32
|
+
withDirectives(createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
33
|
+
[vShow, unref(currentConfigType) === "event"]
|
|
34
|
+
])
|
|
35
|
+
])
|
|
36
|
+
]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_sfc_main as default
|
|
42
|
+
};
|
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
3
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "xxxxxx", -1);
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "workflownode-design",
|
|
6
|
+
props: {
|
|
7
|
+
configure: Object
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const designStyle = ref({});
|
|
12
|
+
const designClass = ref("");
|
|
13
|
+
const designHeaderStyle = ref({});
|
|
14
|
+
const designProperty = ref({});
|
|
15
|
+
function getRestsParameter() {
|
|
16
|
+
let defineProps = props.configure.props ? props.configure.props : {};
|
|
17
|
+
const propsBase = defineProps.base ? defineProps.base : {};
|
|
18
|
+
propsBase.title ? propsBase.title : "";
|
|
19
|
+
Object.assign(designProperty.value, propsBase);
|
|
20
|
+
}
|
|
21
|
+
watch(
|
|
22
|
+
props.configure.style,
|
|
23
|
+
() => {
|
|
24
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
25
|
+
props.configure.runtime.style = designStyle.value;
|
|
26
|
+
props.configure.runtime.class = designClass.value;
|
|
27
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
28
|
+
},
|
|
29
|
+
{ immediate: true }
|
|
30
|
+
);
|
|
31
|
+
watch(
|
|
32
|
+
props.configure.props,
|
|
33
|
+
() => {
|
|
34
|
+
caculateComponentProps(props.configure, designProperty);
|
|
35
|
+
console.log("designProperty", designProperty.value);
|
|
36
|
+
getRestsParameter();
|
|
37
|
+
props.configure.runtime.props = designProperty.value;
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(designClass.value),
|
|
44
|
+
style: normalizeStyle(designStyle.value)
|
|
45
|
+
}, [
|
|
46
|
+
createElementVNode("div", {
|
|
47
|
+
style: normalizeStyle(designHeaderStyle.value)
|
|
48
|
+
}, [
|
|
49
|
+
createElementVNode("span", null, toDisplayString(designProperty.value.title), 1),
|
|
50
|
+
_hoisted_1
|
|
51
|
+
], 4)
|
|
52
|
+
], 6);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
_sfc_main as default
|
|
58
|
+
};
|
|
@@ -94,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
const systemVersion = pageDesign2.tableSysVersion ? pageDesign2.tableSysVersion : pageDesign2.systemVersion;
|
|
95
95
|
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
96
96
|
pageDesign2.modelFields = tableFields;
|
|
97
|
-
changeFeieldToMap(pageDesign2.modelFieldsMap, tableFields);
|
|
97
|
+
pageDesign2.modelFieldsMap = changeFeieldToMap(pageDesign2.modelFieldsMap, tableFields);
|
|
98
98
|
pageDesignUtil.setPageContext(pageDesign2);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
@@ -332,9 +332,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
332
332
|
version: pageDesign.value.workflowVersion,
|
|
333
333
|
"system-code": pageDesign.value.systemCode,
|
|
334
334
|
"system-publish-version": pageDesign.value.systemVersion,
|
|
335
|
+
"page-code": pageDesign.value.code,
|
|
335
336
|
onBack: _ctx.goBack,
|
|
336
337
|
onChangeDefVersion: workflowDefVersionChange
|
|
337
|
-
}, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "onBack"])), [
|
|
338
|
+
}, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [
|
|
338
339
|
[vShow, clickType.value === "workflow"]
|
|
339
340
|
]) : createCommentVNode("", true),
|
|
340
341
|
clickType.value === "service" ? (openBlock(), createBlock(unref(ServiceFlowDesginer), {
|
|
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
o.name = "button-detail";
|
|
55
55
|
if (option.value === "lineEditCreate") {
|
|
56
56
|
options.splice(0, 0, o);
|
|
57
|
-
} else {
|
|
57
|
+
} else if (option.value != "search") {
|
|
58
58
|
options.push(o);
|
|
59
59
|
}
|
|
60
60
|
o.index = btnIndex++;
|
|
@@ -266,6 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
266
266
|
if (!tableItem.items) {
|
|
267
267
|
tableItem.items = [];
|
|
268
268
|
}
|
|
269
|
+
let displayOrderStart = 2;
|
|
269
270
|
if (model.fieldInfos) {
|
|
270
271
|
const templateItem = tableItem.items[tableItem.items.length - 1];
|
|
271
272
|
for (let f of model.fieldInfos) {
|
|
@@ -275,7 +276,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
276
|
const newColumn = deepCopy(templateItem);
|
|
276
277
|
newColumn.uuid = getUuidv4();
|
|
277
278
|
newColumn.name = f.componentName ? f.componentName : "";
|
|
279
|
+
newColumn.title = f.title;
|
|
280
|
+
newColumn.props.base.displayOrder = displayOrderStart++;
|
|
278
281
|
newColumn.props.base.name = f.title;
|
|
282
|
+
newColumn.props.base.listColumnFixed = "false";
|
|
283
|
+
newColumn.dataType = f.dataType;
|
|
284
|
+
newColumn.props.base.querySettingName = f.querySettingName;
|
|
279
285
|
if (f.align) {
|
|
280
286
|
newColumn.props.base.alignTittle = f.align;
|
|
281
287
|
}
|
|
@@ -306,6 +312,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
306
312
|
}
|
|
307
313
|
}
|
|
308
314
|
generateListOperateColumn(tableItem);
|
|
315
|
+
console.log("addList--------tableItem=", tableItem);
|
|
309
316
|
if (!tableItem.props.dataOrigin) {
|
|
310
317
|
tableItem.props.dataOrigin = {};
|
|
311
318
|
}
|
|
@@ -7,12 +7,13 @@ import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
|
7
7
|
import { useDraggable } from "vue-draggable-plus";
|
|
8
8
|
const _hoisted_1 = { key: 0 };
|
|
9
9
|
const _hoisted_2 = { key: 0 };
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
const _hoisted_4 = {
|
|
10
|
+
const _hoisted_3 = { key: 0 };
|
|
11
|
+
const _hoisted_4 = { style: { "display": "flex" } };
|
|
12
12
|
const _hoisted_5 = { key: 0 };
|
|
13
|
-
const _hoisted_6 =
|
|
14
|
-
const _hoisted_7 =
|
|
13
|
+
const _hoisted_6 = { key: 0 };
|
|
14
|
+
const _hoisted_7 = ["title"];
|
|
15
15
|
const _hoisted_8 = { key: 0 };
|
|
16
|
+
const _hoisted_9 = { key: 0 };
|
|
16
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
18
|
__name: "quick-add-fields",
|
|
18
19
|
props: {
|
|
@@ -115,6 +116,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
116
|
label: "网址"
|
|
116
117
|
}
|
|
117
118
|
];
|
|
119
|
+
const querySettingOptions = [
|
|
120
|
+
{
|
|
121
|
+
value: "no",
|
|
122
|
+
label: "不查询"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: "normal",
|
|
126
|
+
label: "普通查询"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: "advanced",
|
|
130
|
+
label: "高级查询"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
118
133
|
const formComponents = getFormComponentOptions();
|
|
119
134
|
const selRowUuid = ref(null);
|
|
120
135
|
function onMouseEnter(obj) {
|
|
@@ -258,7 +273,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
258
273
|
uuid: getUuidv4(),
|
|
259
274
|
fieldName: f.dbColumnName,
|
|
260
275
|
title: f.alias,
|
|
261
|
-
width: 8
|
|
276
|
+
width: 8,
|
|
277
|
+
dataType: f.dataType
|
|
262
278
|
};
|
|
263
279
|
if (props.model.pageType == "form") {
|
|
264
280
|
if (f.type == "DATE" || f.type == "TIME") {
|
|
@@ -419,12 +435,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
419
435
|
]),
|
|
420
436
|
_: 1
|
|
421
437
|
}),
|
|
438
|
+
createVNode(_component_el_table_column, {
|
|
439
|
+
prop: "querySettingName",
|
|
440
|
+
label: "查询",
|
|
441
|
+
width: "140"
|
|
442
|
+
}, {
|
|
443
|
+
default: withCtx((scope) => [
|
|
444
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_3, toDisplayString(scope.row.querySettingName), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
445
|
+
key: 1,
|
|
446
|
+
size: "small",
|
|
447
|
+
modelValue: scope.row.querySettingName,
|
|
448
|
+
"onUpdate:modelValue": ($event) => scope.row.querySettingName = $event,
|
|
449
|
+
clearable: "",
|
|
450
|
+
filterable: "",
|
|
451
|
+
placeholder: "请选择"
|
|
452
|
+
}, {
|
|
453
|
+
default: withCtx(() => [
|
|
454
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(querySettingOptions, (o) => {
|
|
455
|
+
return createVNode(_component_el_option, {
|
|
456
|
+
label: o.label,
|
|
457
|
+
value: o.value
|
|
458
|
+
}, null, 8, ["label", "value"]);
|
|
459
|
+
}), 64))
|
|
460
|
+
]),
|
|
461
|
+
_: 2
|
|
462
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]))
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
}),
|
|
422
466
|
createVNode(_component_el_table_column, {
|
|
423
467
|
prop: "componentName",
|
|
424
468
|
width: "120"
|
|
425
469
|
}, {
|
|
426
470
|
header: withCtx(() => [
|
|
427
|
-
createElementVNode("div",
|
|
471
|
+
createElementVNode("div", _hoisted_4, [
|
|
428
472
|
createTextVNode(" 组件 "),
|
|
429
473
|
withDirectives(createVNode(_component_el_checkbox, {
|
|
430
474
|
modelValue: allEditState.value,
|
|
@@ -440,7 +484,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
440
484
|
])
|
|
441
485
|
]),
|
|
442
486
|
default: withCtx((scope) => [
|
|
443
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
487
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_5, toDisplayString(scope.row.componentName), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
444
488
|
key: 1,
|
|
445
489
|
size: "small",
|
|
446
490
|
modelValue: scope.row.componentName,
|
|
@@ -468,7 +512,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
468
512
|
width: "70"
|
|
469
513
|
}, {
|
|
470
514
|
default: withCtx((scope) => [
|
|
471
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
515
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_6, toDisplayString(scope.row.state), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
472
516
|
key: 1,
|
|
473
517
|
size: "small",
|
|
474
518
|
disabled: !scope.row.componentName,
|
|
@@ -500,7 +544,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
500
544
|
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", {
|
|
501
545
|
key: 0,
|
|
502
546
|
title: scope.row.valid
|
|
503
|
-
}, toDisplayString(scope.row.valid), 9,
|
|
547
|
+
}, toDisplayString(scope.row.valid), 9, _hoisted_7)) : (openBlock(), createBlock(_component_el_select, {
|
|
504
548
|
key: 1,
|
|
505
549
|
disabled: !scope.row.componentName,
|
|
506
550
|
size: "small",
|
|
@@ -532,7 +576,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
532
576
|
width: "75"
|
|
533
577
|
}, {
|
|
534
578
|
default: withCtx((scope) => [
|
|
535
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
579
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_8, toDisplayString(scope.row.width), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
536
580
|
key: 1,
|
|
537
581
|
size: "small",
|
|
538
582
|
modelValue: scope.row.width,
|
|
@@ -560,7 +604,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
560
604
|
width: "70"
|
|
561
605
|
}, {
|
|
562
606
|
default: withCtx((scope) => [
|
|
563
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
607
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_9, toDisplayString(scope.row.align), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
564
608
|
key: 1,
|
|
565
609
|
size: "small",
|
|
566
610
|
modelValue: scope.row.align,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
2
|
import { defineStore } from "pinia";
|
|
3
3
|
import { FuncType } from "super-page-runtime";
|
|
4
|
+
import { getModelOptionsByFields } from "../components/design/utils/page-table-util.js";
|
|
4
5
|
const usePageContextStore = defineStore("pageContextUtil", () => {
|
|
5
6
|
const pageContext = ref({ systemCode: "", systemVersion: -1 });
|
|
6
7
|
ref([]);
|
|
@@ -15,15 +16,7 @@ const usePageContextStore = defineStore("pageContextUtil", () => {
|
|
|
15
16
|
}
|
|
16
17
|
function setPageContextVarOptions(pageObject) {
|
|
17
18
|
if (pageObject && pageObject.modelFields) {
|
|
18
|
-
pageContextVarOptions.value.dataOptions =
|
|
19
|
-
pageObject.modelFields.forEach((element) => {
|
|
20
|
-
pageContextVarOptions.value.dataOptions.push({
|
|
21
|
-
value: element.dbColumnName,
|
|
22
|
-
// element.name
|
|
23
|
-
label: element.alias,
|
|
24
|
-
alias: element.alias
|
|
25
|
-
});
|
|
26
|
-
});
|
|
19
|
+
pageContextVarOptions.value.dataOptions = getModelOptionsByFields(pageObject.modelFields);
|
|
27
20
|
pageContextVarOptions.value.pageVarOptions = setVarOptions(pageObject.variables);
|
|
28
21
|
}
|
|
29
22
|
}
|