super-page-runtime 2.2.26 → 2.2.29-tmp2
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/_virtual/_plugin-vue_export-helper.js +7 -5
- package/dist/es/assets/chart-themes/theme1.js +6 -2
- package/dist/es/assets/chart-themes/theme2.js +6 -2
- package/dist/es/assets/chart-themes/theme3.js +6 -2
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
- package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
- package/dist/es/components/runtime/utils/barcode-util.js +33 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -68
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -36
- package/dist/es/components/runtime/utils/charts/chart-util.js +522 -224
- package/dist/es/components/runtime/utils/common-util.js +156 -76
- package/dist/es/components/runtime/utils/eventBus.js +8 -3
- package/dist/es/components/runtime/utils/events/event-util.js +775 -362
- package/dist/es/components/runtime/utils/events/print-label.js +140 -72
- package/dist/es/components/runtime/utils/events/standard-event.js +2320 -808
- package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
- package/dist/es/components/runtime/utils/form/scan-util.js +162 -61
- package/dist/es/components/runtime/utils/global-refs.js +84 -53
- package/dist/es/components/runtime/utils/i18n-util.js +20 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +660 -279
- package/dist/es/components/runtime/utils/page-init-util.js +406 -141
- package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
- package/dist/es/components/runtime/utils/page-store.js +68 -23
- package/dist/es/components/runtime/utils/store-util.js +13 -9
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +81 -40
- package/dist/es/components/runtime/utils/tree-utils.js +37 -17
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -50
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -52
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -32
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -43
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -32
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -32
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +597 -246
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -212
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -29
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -61
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -302
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -262
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -42
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -68
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +245 -57
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -32
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -28
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -64
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -88
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
- package/dist/es/components/runtime/views/home-chart.vue.js +160 -40
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -20
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +754 -226
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +55 -2
- package/dist/es/i18n/langs/en.js +55 -2
- package/package.json +2 -2
|
@@ -1,51 +1,92 @@
|
|
|
1
1
|
import "agilebuilder-ui/src/utils/common-util";
|
|
2
2
|
import "agilebuilder-ui/src/utils/util";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
|
-
import
|
|
5
|
-
import { getPermissionCodes
|
|
6
|
-
import { getCustomFunc
|
|
7
|
-
import { $t
|
|
8
|
-
import { ExpressionEvaluator
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
4
|
+
import bus from "./eventBus.js";
|
|
5
|
+
import { getPermissionCodes } from "./page-init-util.js";
|
|
6
|
+
import { getCustomFunc } from "./events/event-util.js";
|
|
7
|
+
import { $t } from "./i18n-util.js";
|
|
8
|
+
import { ExpressionEvaluator } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
+
function popupToPage(params) {
|
|
10
|
+
const pageCode = params.pageContext && params.pageContext.code;
|
|
11
|
+
console.log("弹框显示页面--popupToPage====params=", params);
|
|
12
|
+
bus.$emit(pageCode + "_open-dialog", params);
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
function getTableNameByTableUuid(pageContext, tableUuid) {
|
|
15
|
+
const tableName = pageContext.tableName;
|
|
16
|
+
if (!tableUuid && tableName) {
|
|
17
|
+
return tableName;
|
|
18
|
+
}
|
|
19
|
+
let tableConfigure;
|
|
20
|
+
if (pageContext.tableRuntimes && tableUuid && pageContext.tableRuntimes[tableUuid]) {
|
|
21
|
+
tableConfigure = JSON.parse(pageContext.tableRuntimes[tableUuid].configure);
|
|
22
|
+
}
|
|
23
|
+
return tableConfigure && tableConfigure.props && tableConfigure.props.dataOrigin ? tableConfigure.props.dataOrigin.tableName : null;
|
|
18
24
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
function getOperationButtons(pageContext, configure, operations, clickEventFunc) {
|
|
26
|
+
const showOperation = configure.props && configure.props.base ? configure.props.base.showOperation : false;
|
|
27
|
+
const operationButtonSettings = configure.btnList;
|
|
28
|
+
console.log("configure.btnList===", configure.btnList, "configure====", configure);
|
|
29
|
+
if (showOperation && operationButtonSettings) {
|
|
30
|
+
operationButtonSettings.forEach((buttonConfigure) => {
|
|
31
|
+
const myButtonSet = {};
|
|
32
|
+
const myButtonProps = Object.assign({}, buttonConfigure.props.base);
|
|
33
|
+
if (buttonConfigure.name === "custom") {
|
|
34
|
+
myButtonProps.customControl = myButtonProps.name;
|
|
35
|
+
} else {
|
|
36
|
+
myButtonProps.elementType = "el-button";
|
|
37
|
+
}
|
|
38
|
+
if (buttonConfigure.isPermission === void 0 || buttonConfigure.isPermission + "" === "true") {
|
|
39
|
+
const functionCodes = getPermissionCodes(buttonConfigure, pageContext);
|
|
40
|
+
if (functionCodes) {
|
|
41
|
+
myButtonProps.permission = functionCodes;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
myButtonProps.label = $t(myButtonProps.title);
|
|
45
|
+
myButtonProps.sourceButton = { uuid: buttonConfigure.uuid };
|
|
46
|
+
myButtonSet["props"] = myButtonProps;
|
|
47
|
+
if (clickEventFunc !== void 0) {
|
|
48
|
+
myButtonSet["onClick"] = clickEventFunc(buttonConfigure);
|
|
49
|
+
}
|
|
50
|
+
operations.push(myButtonSet);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
29
53
|
}
|
|
30
|
-
function
|
|
31
|
-
let
|
|
32
|
-
const
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
|
|
54
|
+
function expressJump(pageContext, configure, linkPage, row) {
|
|
55
|
+
let toPage;
|
|
56
|
+
const show = linkPage == null ? void 0 : linkPage.some((item) => {
|
|
57
|
+
let canShow = false;
|
|
58
|
+
if (item.scopeFunc) {
|
|
59
|
+
const func = getCustomFunc(pageContext, item.scopeFunc);
|
|
60
|
+
if (func) {
|
|
61
|
+
const result = func.apply(func, [
|
|
62
|
+
{
|
|
63
|
+
pageContext,
|
|
64
|
+
configureObj: configure,
|
|
65
|
+
row
|
|
66
|
+
}
|
|
67
|
+
]);
|
|
68
|
+
if (result) {
|
|
69
|
+
canShow = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
} else if (item.showCondition && item.showCondition.length > 0) {
|
|
73
|
+
const result = ExpressionEvaluator.evaluate(pageContext, item.showCondition, row);
|
|
74
|
+
if (result) {
|
|
75
|
+
canShow = true;
|
|
38
76
|
}
|
|
39
|
-
} else
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
if (
|
|
77
|
+
} else {
|
|
78
|
+
canShow = true;
|
|
79
|
+
}
|
|
80
|
+
if (canShow) {
|
|
81
|
+
toPage = item;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
43
84
|
});
|
|
44
|
-
return { show
|
|
85
|
+
return { show, toPage };
|
|
45
86
|
}
|
|
46
87
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
88
|
+
expressJump,
|
|
89
|
+
getOperationButtons,
|
|
90
|
+
getTableNameByTableUuid,
|
|
91
|
+
popupToPage
|
|
51
92
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getBaseUrl
|
|
2
|
-
import
|
|
1
|
+
import { getBaseUrl, getRealRestApiPath } from "./common-util.js";
|
|
2
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import "./eventBus.js";
|
|
4
|
-
import { getPermissionCodes
|
|
4
|
+
import { getPermissionCodes } from "./page-init-util.js";
|
|
5
5
|
import "agilebuilder-ui/src/utils/common-util";
|
|
6
6
|
import "agilebuilder-ui/src/utils/util";
|
|
7
7
|
import "element-plus";
|
|
@@ -16,24 +16,44 @@ import "./page-store.js";
|
|
|
16
16
|
import "agilebuilder-ui/src/utils/i18n-util";
|
|
17
17
|
import "vue-i18n";
|
|
18
18
|
import "async-validator";
|
|
19
|
-
function
|
|
20
|
-
return new Promise((
|
|
19
|
+
function getMenuTreeData(pageContext, configure, parentNodeId, node, loadParams) {
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
if (configure && ((_a = configure.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
23
|
+
if (((_b = configure.props.dataOrigin) == null ? void 0 : _b.optionValueSetType) === "beanName") {
|
|
24
|
+
const backendUrl = pageContext.backendUrl;
|
|
25
|
+
const systemCode = pageContext.systemCode;
|
|
26
|
+
const functionCodes = getPermissionCodes(configure, pageContext);
|
|
27
|
+
let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/commons/load-tree-node";
|
|
28
|
+
path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
|
|
29
|
+
const param = {
|
|
30
|
+
pageCode: pageContext.code,
|
|
31
|
+
pageVersion: pageContext.version,
|
|
32
|
+
tableName: pageContext.tableName,
|
|
33
|
+
systemCode,
|
|
34
|
+
functionCode: functionCodes,
|
|
35
|
+
beanName: pageContext.beanName
|
|
36
|
+
};
|
|
37
|
+
if (loadParams) {
|
|
38
|
+
Object.assign(param, loadParams);
|
|
39
|
+
}
|
|
40
|
+
http.post(path, param).then((data) => {
|
|
41
|
+
resolve(data);
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
const runtimeInfo = configure.runtime ? configure.runtime : {};
|
|
45
|
+
const designProperty = runtimeInfo.props;
|
|
46
|
+
if (designProperty && designProperty.staticData) {
|
|
47
|
+
resolve(designProperty.staticData);
|
|
48
|
+
} else {
|
|
49
|
+
resolve([]);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
30
52
|
} else {
|
|
31
|
-
|
|
32
|
-
i2 && i2.staticData ? a2(i2.staticData) : a2([]);
|
|
53
|
+
resolve([]);
|
|
33
54
|
}
|
|
34
|
-
else a2([]);
|
|
35
55
|
});
|
|
36
56
|
}
|
|
37
57
|
export {
|
|
38
|
-
|
|
58
|
+
getMenuTreeData
|
|
39
59
|
};
|
|
@@ -1,24 +1,86 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { SuperIcon
|
|
3
|
-
import { handleAfterInitEvent
|
|
4
|
-
import { $t
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createElementBlock, openBlock, createVNode, unref, normalizeStyle, normalizeClass, withCtx, createCommentVNode, createBlock, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
+
import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
|
+
const _hoisted_1 = { class: "page-runtime-header-btn" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "button-runtime",
|
|
8
|
+
props: {
|
|
9
|
+
pageContext: {},
|
|
10
|
+
configure: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
16
|
+
const runtimeStyle = runtimeInfo.style;
|
|
17
|
+
const runtimeClass = runtimeInfo.class;
|
|
18
|
+
function isDisable() {
|
|
19
|
+
return designProperty.value.state === "disabled" || isButtongLoading();
|
|
20
|
+
}
|
|
21
|
+
function isButtongLoading() {
|
|
22
|
+
return props.pageContext.canClick !== void 0 && props.pageContext.clickUuid !== void 0 ? !props.pageContext.canClick && props.pageContext.clickUuid === props.configure.uuid : false;
|
|
23
|
+
}
|
|
24
|
+
const componentRef = ref(null);
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
nextTick(() => {
|
|
27
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
28
|
+
componentRef: componentRef.value,
|
|
29
|
+
entity: props.pageContext.entity.data,
|
|
30
|
+
pageData: props.pageContext.entity.page
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
function triggerButtonClick() {
|
|
35
|
+
if (componentRef.value) {
|
|
36
|
+
componentRef.value.$el.click();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
__expose({
|
|
40
|
+
click: triggerButtonClick
|
|
14
41
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
const _component_el_button = resolveComponent("el-button");
|
|
44
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
45
|
+
createVNode(_component_el_button, {
|
|
46
|
+
ref_key: "componentRef",
|
|
47
|
+
ref: componentRef,
|
|
48
|
+
disabled: isDisable(),
|
|
49
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
50
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
51
|
+
type: designProperty.value.type,
|
|
52
|
+
size: designProperty.value.size,
|
|
53
|
+
text: designProperty.value.text,
|
|
54
|
+
round: designProperty.value.round,
|
|
55
|
+
plain: designProperty.value.plain,
|
|
56
|
+
loading: isButtongLoading(),
|
|
57
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
61
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
62
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
63
|
+
createTextVNode(" ")
|
|
64
|
+
], 64)) : createCommentVNode("", true)
|
|
65
|
+
], 64)) : createCommentVNode("", true),
|
|
66
|
+
designProperty.value.iconType && designProperty.value.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
iconType: designProperty.value.iconType,
|
|
69
|
+
iconValue: designProperty.value.iconValue
|
|
70
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
71
|
+
designProperty.value.title && designProperty.value.iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
72
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
73
|
+
createTextVNode(" ")
|
|
74
|
+
], 64)) : createCommentVNode("", true),
|
|
75
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
76
|
+
], 64)) : createCommentVNode("", true)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
22
84
|
export {
|
|
23
|
-
|
|
85
|
+
_sfc_main as default
|
|
24
86
|
};
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -1,17 +1,49 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import { handleAfterInitEvent
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "buttongroup-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
+
const runtimeStyle = runtimeInfo.style;
|
|
14
|
+
const runtimeClass = runtimeInfo.class;
|
|
15
|
+
const componentRef = ref(null);
|
|
16
|
+
onMounted(() => {
|
|
17
|
+
nextTick(() => {
|
|
18
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
19
|
+
componentRef: componentRef.value,
|
|
20
|
+
entity: props.pageContext.entity.data,
|
|
21
|
+
pageData: props.pageContext.entity.page
|
|
22
|
+
});
|
|
23
|
+
});
|
|
9
24
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
27
|
+
return openBlock(), createBlock(_component_el_button_group, {
|
|
28
|
+
ref_key: "componentRef",
|
|
29
|
+
ref: componentRef,
|
|
30
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
31
|
+
style: normalizeStyle(unref(runtimeStyle))
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
35
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
36
|
+
key: element.uuid,
|
|
37
|
+
pageContext: _ctx.pageContext,
|
|
38
|
+
configure: element
|
|
39
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
40
|
+
}), 128))
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["class", "style"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
15
47
|
export {
|
|
16
|
-
|
|
48
|
+
_sfc_main as default
|
|
17
49
|
};
|
|
@@ -1,41 +1,137 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { ArrowDown
|
|
3
|
-
import { formatVariableValue
|
|
4
|
-
import { handleAfterInitEvent
|
|
5
|
-
import { $t
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, renderList } from "vue";
|
|
2
|
+
import { ArrowDown } from "@element-plus/icons-vue";
|
|
3
|
+
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent, handleEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const _hoisted_1 = { key: 1 };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dropdown-runtime",
|
|
9
|
+
props: {
|
|
10
|
+
pageContext: {},
|
|
11
|
+
configure: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
16
|
+
const runtimeStyle = runtimeInfo.style;
|
|
17
|
+
const runtimeClass = runtimeInfo.class;
|
|
18
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
19
|
+
let listOptions = null;
|
|
20
|
+
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
21
|
+
const valueType = dataOrigin.optionValueSetType;
|
|
22
|
+
if (valueType == "variable") {
|
|
23
|
+
listOptions = computed(() => {
|
|
24
|
+
let options;
|
|
25
|
+
const menuValues = formatVariableValue(props.pageContext, designProperty.value.menuField);
|
|
26
|
+
if (menuValues && Array.isArray(menuValues)) {
|
|
27
|
+
options = menuValues;
|
|
28
|
+
for (let i = 0; i < options.length; i++) {
|
|
29
|
+
const option = options[i];
|
|
30
|
+
if (!option.label) {
|
|
31
|
+
option.label = i + 1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
const strs = (menuValues ? menuValues + "" : "").trim().split(",");
|
|
36
|
+
options = [];
|
|
37
|
+
for (let str of strs) {
|
|
38
|
+
options.push({
|
|
39
|
+
value: str,
|
|
40
|
+
label: str
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return options;
|
|
45
|
+
});
|
|
22
46
|
} else {
|
|
23
|
-
|
|
24
|
-
e3 = [];
|
|
25
|
-
for (let t3 of l2) e3.push({ value: t3, label: t3 });
|
|
47
|
+
listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
26
48
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
49
|
+
function visibleChange(isVisible) {
|
|
50
|
+
if (isVisible) {
|
|
51
|
+
handleFormEvent(isVisible, props.pageContext, props.configure, "menuShow");
|
|
52
|
+
} else {
|
|
53
|
+
handleFormEvent(isVisible, props.pageContext, props.configure, "menuHidden");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const componentRef = ref(null);
|
|
57
|
+
onMounted(() => {
|
|
58
|
+
nextTick(() => {
|
|
59
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
60
|
+
componentRef: componentRef.value,
|
|
61
|
+
entity: props.pageContext.entity.data,
|
|
62
|
+
pageData: props.pageContext.entity.page
|
|
63
|
+
});
|
|
64
|
+
});
|
|
33
65
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
const _component_el_button = resolveComponent("el-button");
|
|
68
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
69
|
+
const _component_el_text = resolveComponent("el-text");
|
|
70
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
71
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
72
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
73
|
+
return openBlock(), createBlock(_component_el_dropdown, {
|
|
74
|
+
ref_key: "componentRef",
|
|
75
|
+
ref: componentRef,
|
|
76
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
77
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
78
|
+
placement: designProperty.value.placement,
|
|
79
|
+
"split-button": designProperty.value.splitButton,
|
|
80
|
+
disabled: designProperty.value.state === "disabled",
|
|
81
|
+
type: designProperty.value.buttonType,
|
|
82
|
+
size: designProperty.value.size,
|
|
83
|
+
trigger: designProperty.value.trigger,
|
|
84
|
+
onVisibleChange: visibleChange
|
|
85
|
+
}, {
|
|
86
|
+
dropdown: withCtx(() => [
|
|
87
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(listOptions), (item, index) => {
|
|
90
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
91
|
+
key: item,
|
|
92
|
+
onClick: ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick", { menuItem: item })
|
|
93
|
+
}, {
|
|
94
|
+
default: withCtx(() => [
|
|
95
|
+
createTextVNode(toDisplayString(unref($t)(item.label)), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 2
|
|
98
|
+
}, 1032, ["onClick"]);
|
|
99
|
+
}), 128))
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
designProperty.value.triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
106
|
+
!designProperty.value.splitButton ? (openBlock(), createBlock(_component_el_button, {
|
|
107
|
+
key: 0,
|
|
108
|
+
size: designProperty.value.size,
|
|
109
|
+
type: designProperty.value.buttonType,
|
|
110
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
111
|
+
}, {
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
|
|
117
|
+
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
120
|
+
createVNode(_component_el_icon, null, {
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
createVNode(unref(ArrowDown))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}))
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
39
135
|
export {
|
|
40
|
-
|
|
136
|
+
_sfc_main as default
|
|
41
137
|
};
|
package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, createBlock, openBlock } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../button/button-runtime.vue2.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "exportpdf-runtime",
|
|
5
|
+
props: {
|
|
6
|
+
pageContext: {},
|
|
7
|
+
configure: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
12
|
+
configure: _ctx.configure,
|
|
13
|
+
pageContext: _ctx.pageContext
|
|
14
|
+
}, null, 8, ["configure", "pageContext"]);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
_sfc_main as default
|
|
6
20
|
};
|