super-page-runtime 2.0.27 → 2.0.30
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/runtime/utils/api/api-util.js +8 -6
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +5 -1
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +83 -43
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +22 -17
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -5
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +42 -10
- package/dist/es/i18n/langs/cn.js +54 -0
- package/dist/es/i18n/langs/en.js +54 -0
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +4 -0
- package/package.json +2 -2
|
@@ -33,7 +33,7 @@ function getCommonFormData(pageContext) {
|
|
|
33
33
|
const pageCode = pageContext.code;
|
|
34
34
|
const pageVersion = pageContext.version;
|
|
35
35
|
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
36
|
-
const dataId = additionalParamMap ? additionalParamMap.id :
|
|
36
|
+
const dataId = additionalParamMap && additionalParamMap.id ? additionalParamMap.id : 1;
|
|
37
37
|
const ids = additionalParamMap ? additionalParamMap.ids : null;
|
|
38
38
|
const taskId = additionalParamMap ? additionalParamMap.taskId : null;
|
|
39
39
|
const permissionPrefix = pageCode;
|
|
@@ -67,7 +67,7 @@ function getCommonFormData(pageContext) {
|
|
|
67
67
|
param["taskId"] = taskId;
|
|
68
68
|
}
|
|
69
69
|
if (pageContext.tableUuids) {
|
|
70
|
-
|
|
70
|
+
const listCodes = [];
|
|
71
71
|
pageContext.tableUuids.forEach((tableUuid) => {
|
|
72
72
|
const listCode = getListCode(pageCode, pageVersion, tableUuid);
|
|
73
73
|
listCodes.push(listCode);
|
|
@@ -109,7 +109,7 @@ function getWorkflowFormData(pageContext) {
|
|
|
109
109
|
const pageCode = pageContext.code;
|
|
110
110
|
const pageVersion = pageContext.version;
|
|
111
111
|
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
112
|
-
const dataId = additionalParamMap ? additionalParamMap.id : null;
|
|
112
|
+
const dataId = additionalParamMap && additionalParamMap.id ? additionalParamMap.id : null;
|
|
113
113
|
const ids = additionalParamMap ? additionalParamMap.ids : null;
|
|
114
114
|
const taskId = additionalParamMap ? additionalParamMap.taskId : null;
|
|
115
115
|
const permissionPrefix = pageCode;
|
|
@@ -180,9 +180,8 @@ function changePermissionListToMap(pageContext) {
|
|
|
180
180
|
}
|
|
181
181
|
function changeFieldPermissionToMap(pageContext) {
|
|
182
182
|
let fieldPermissionMap = pageContext.fieldPermissionMap;
|
|
183
|
-
pageContext.actionPermissionMap;
|
|
184
183
|
const fieldPermissions = pageContext.fieldPermissions;
|
|
185
|
-
if (fieldPermissionMap === null) {
|
|
184
|
+
if (fieldPermissionMap === null || fieldPermissionMap === void 0) {
|
|
186
185
|
fieldPermissionMap = /* @__PURE__ */ new Map();
|
|
187
186
|
}
|
|
188
187
|
if (typeof fieldPermissions !== "undefined") {
|
|
@@ -241,8 +240,11 @@ function changeFieldPermissionToMap(pageContext) {
|
|
|
241
240
|
}
|
|
242
241
|
function changeActionPermissionToMap(pageContext) {
|
|
243
242
|
const fieldPermissionMap = pageContext.fieldPermissionMap;
|
|
244
|
-
|
|
243
|
+
let actionPermissionMap = pageContext.actionPermissionMap;
|
|
245
244
|
const actionPermissions = pageContext.actionPermissions;
|
|
245
|
+
if (actionPermissionMap === null || actionPermissionMap === void 0) {
|
|
246
|
+
actionPermissionMap = /* @__PURE__ */ new Map();
|
|
247
|
+
}
|
|
246
248
|
if (typeof actionPermissions !== "undefined" && actionPermissions !== null) {
|
|
247
249
|
const subModelNames = Object.keys(actionPermissions);
|
|
248
250
|
subModelNames.forEach((subModelName) => {
|
|
@@ -19,6 +19,7 @@ export declare function getCustomFunc(pageContext: PageContext, funcName: any):
|
|
|
19
19
|
export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
|
|
20
20
|
export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
21
21
|
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
22
|
+
export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
|
|
22
23
|
export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
|
|
23
24
|
export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
|
|
24
25
|
export declare function doAfterClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): void;
|
|
@@ -91,7 +91,7 @@ function handleEventUtil($event, pageContext, configure, eventType, isExecute, o
|
|
|
91
91
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
92
92
|
let eventFun;
|
|
93
93
|
if (eventType && eventType === "click") {
|
|
94
|
-
const tableUuid =
|
|
94
|
+
const tableUuid = getTableUuid(pageContext, configure);
|
|
95
95
|
if (tableUuid) {
|
|
96
96
|
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
97
97
|
const selections = gridRef.getSelections();
|
|
@@ -122,6 +122,9 @@ function handleEventUtil($event, pageContext, configure, eventType, isExecute, o
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
function getTableUuid(pageContext, configure) {
|
|
126
|
+
return configure.props.base.tableUuid ? configure.props.base.tableUuid : pageContext.tableUuids && pageContext.tableUuids.length > 0 ? pageContext.tableUuids[0] : null;
|
|
127
|
+
}
|
|
125
128
|
function packageEventParams(pageContext, configureObj, $event, otherParams) {
|
|
126
129
|
const params = {};
|
|
127
130
|
if (otherParams) {
|
|
@@ -603,6 +606,7 @@ export {
|
|
|
603
606
|
getEventFuncByType,
|
|
604
607
|
getEventNameByType,
|
|
605
608
|
getHandleEvent,
|
|
609
|
+
getTableUuid,
|
|
606
610
|
gridSelectAllRecords,
|
|
607
611
|
gridSelectRecord,
|
|
608
612
|
gridSelectionChange,
|
|
@@ -52,6 +52,7 @@ export declare function getSaveFormRequest(pageContext: any, configureObj: any,
|
|
|
52
52
|
*/
|
|
53
53
|
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
54
54
|
export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any): void;
|
|
55
|
+
export declare function refreshFormOrListPage(pageContext: any, configureObj: any): void;
|
|
55
56
|
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
56
57
|
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
57
58
|
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
@@ -2,17 +2,15 @@ import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, i
|
|
|
2
2
|
import http from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
-
import {
|
|
6
|
-
import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
|
|
5
|
+
import { getToken } from "agilebuilder-ui/src/utils/auth";
|
|
7
6
|
import { getComponentRef } from "../global-refs.js";
|
|
8
7
|
import eventBus from "../eventBus.js";
|
|
9
8
|
import axios from "axios";
|
|
10
|
-
import { doAfterClickEvent, handleEvent } from "./event-util.js";
|
|
9
|
+
import { getTableUuid, doAfterClickEvent, handleEvent } from "./event-util.js";
|
|
11
10
|
import { setStoreInfo } from "../store-util.js";
|
|
12
11
|
import { refreshPage } from "../api/api-util.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { updateChartDatasources } from "../page-helper-util.js";
|
|
12
|
+
import { getPermissionCodes, getModelFields } from "../page-init-util.js";
|
|
13
|
+
import { updateChartDatasources, getVariableValue, setVariableValue } from "../page-helper-util.js";
|
|
16
14
|
import printLabelUtil from "./print-label.js";
|
|
17
15
|
const standardEvents = {
|
|
18
16
|
// 表单标准事件保存save
|
|
@@ -485,15 +483,25 @@ function getSaveFormRequestByParam(systemCode, backendUrl, param, url, formData)
|
|
|
485
483
|
return request;
|
|
486
484
|
}
|
|
487
485
|
function dealAfterOperate(pageContext, configureObj, data, successTip, isListButton) {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
if (isListButton) {
|
|
486
|
+
const buttonForPageType = getPageType(pageContext, configureObj, isListButton);
|
|
487
|
+
if (buttonForPageType && buttonForPageType === "list") {
|
|
492
488
|
dealAfterWithList(pageContext, configureObj, data, successTip);
|
|
493
|
-
} else {
|
|
489
|
+
} else if (buttonForPageType && buttonForPageType === "form") {
|
|
494
490
|
dealAfterWithForm(pageContext, configureObj, data, successTip);
|
|
495
491
|
}
|
|
496
492
|
}
|
|
493
|
+
function getPageType(pageContext, configureObj, isListButton) {
|
|
494
|
+
let pageType;
|
|
495
|
+
if (isListButton === void 0) {
|
|
496
|
+
pageType = configureObj.props.base.tableUuid ? "list" : null;
|
|
497
|
+
} else if (isListButton === false) {
|
|
498
|
+
pageType = "form";
|
|
499
|
+
}
|
|
500
|
+
if (!pageType) {
|
|
501
|
+
pageType = pageContext.pageType;
|
|
502
|
+
}
|
|
503
|
+
return pageType;
|
|
504
|
+
}
|
|
497
505
|
function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
498
506
|
if (data) {
|
|
499
507
|
const commonEntity = data;
|
|
@@ -504,7 +512,9 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
|
504
512
|
if (commonEntity.formNo) {
|
|
505
513
|
pageContext.initFormNo = commonEntity.formNo;
|
|
506
514
|
}
|
|
507
|
-
|
|
515
|
+
debugger;
|
|
516
|
+
const totalModel = { ...dataModel, ...pageContext.entity.page };
|
|
517
|
+
afterSuccessOperateInForm(pageContext, configureObj, totalModel);
|
|
508
518
|
}
|
|
509
519
|
if (successTip) {
|
|
510
520
|
ElMessage({
|
|
@@ -526,11 +536,6 @@ function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
|
|
|
526
536
|
}
|
|
527
537
|
} else if (successOperation === "refresh") {
|
|
528
538
|
if (dataModel && (dataModel.id || dataModel.ID)) {
|
|
529
|
-
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
530
|
-
const route = useRoute();
|
|
531
|
-
if (route.query._t_) {
|
|
532
|
-
setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
533
|
-
}
|
|
534
539
|
refreshPage(pageContext);
|
|
535
540
|
}
|
|
536
541
|
} else if (successOperation === "closeWindow" || successOperation === "closeWindowAndRefresh") {
|
|
@@ -540,7 +545,13 @@ function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
|
|
|
540
545
|
}
|
|
541
546
|
function closeDialog(pageContext, dataModel, isNeedValueMapping) {
|
|
542
547
|
const jumpMode = pageContext.entity && pageContext.entity.request ? pageContext.entity.request.jumpMode : null;
|
|
543
|
-
if (jumpMode
|
|
548
|
+
if (jumpMode === "openWindow" || jumpMode === "newTab") {
|
|
549
|
+
if (window.parent) {
|
|
550
|
+
window.parent.close();
|
|
551
|
+
} else {
|
|
552
|
+
window.close();
|
|
553
|
+
}
|
|
554
|
+
} else {
|
|
544
555
|
const sourceTableName = pageContext.tableName;
|
|
545
556
|
const isNeedValueMappingFinal = isNeedValueMapping !== void 0 && isNeedValueMapping === true && dataModel && dataModel !== void 0;
|
|
546
557
|
const parentPageCode = pageContext.entity && pageContext.entity.request ? pageContext.entity.request.parentPageCode : null;
|
|
@@ -548,46 +559,51 @@ function closeDialog(pageContext, dataModel, isNeedValueMapping) {
|
|
|
548
559
|
eventBus.$emit(eventPageInfo + "close-dialog", {
|
|
549
560
|
isNeedValueMapping: isNeedValueMappingFinal,
|
|
550
561
|
dataModel,
|
|
551
|
-
sourceTableName
|
|
562
|
+
sourceTableName,
|
|
563
|
+
jumpMode
|
|
552
564
|
});
|
|
553
|
-
} else if (jumpMode === "openWindow" || jumpMode === "newTab") {
|
|
554
|
-
if (window.parent) {
|
|
555
|
-
window.parent.close();
|
|
556
|
-
} else {
|
|
557
|
-
window.close();
|
|
558
|
-
}
|
|
559
|
-
} else {
|
|
560
|
-
const router = useRouter();
|
|
561
|
-
router.go(-1);
|
|
562
565
|
}
|
|
563
566
|
}
|
|
564
567
|
function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sourceModel, sourceTableName) {
|
|
565
|
-
const
|
|
568
|
+
const valueMappings = parentConfigureObj.runtime && parentConfigureObj.runtime.linkPage && parentConfigureObj.runtime.linkPage.valueMappings ? parentConfigureObj.runtime.linkPage.valueMappings : null;
|
|
566
569
|
const targetTableName = parentPageContext.tableName;
|
|
567
570
|
console.log("update-value66-", sourceModel, sourceTableName);
|
|
568
|
-
updateWithPageValue(
|
|
569
|
-
|
|
570
|
-
sourceTableName,
|
|
571
|
-
jumpPageSetting,
|
|
572
|
-
parentPageContext.entity.data,
|
|
573
|
-
targetTableName
|
|
574
|
-
);
|
|
575
|
-
handleEvent(null, parentPageContext, parentConfigureObj, "setValueCallback", {
|
|
571
|
+
updateWithPageValue(sourceModel, valueMappings, parentPageContext);
|
|
572
|
+
handleEvent(null, parentPageContext, parentConfigureObj, "setValue", {
|
|
576
573
|
sourceModel,
|
|
577
574
|
sourceTableName,
|
|
578
|
-
jumpPageSetting,
|
|
579
575
|
entity: parentPageContext.entity.data,
|
|
580
576
|
targetTableName
|
|
581
577
|
});
|
|
582
578
|
}
|
|
579
|
+
function updateWithPageValue(sourceModel, valueMappings, parentPageContext) {
|
|
580
|
+
debugger;
|
|
581
|
+
const entity = parentPageContext.entity.data;
|
|
582
|
+
if (sourceModel && sourceModel !== null && entity && entity !== null && valueMappings) {
|
|
583
|
+
let sourceEntity = sourceModel;
|
|
584
|
+
if (Array.isArray(sourceModel) && sourceModel.length > 0) {
|
|
585
|
+
sourceEntity = sourceModel[0];
|
|
586
|
+
}
|
|
587
|
+
valueMappings.forEach((valueMapping) => {
|
|
588
|
+
const sourceField = valueMapping.source;
|
|
589
|
+
if (!sourceField) {
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
const sourceFields = sourceField.split(".");
|
|
593
|
+
const targetValue = getVariableValue(sourceEntity, sourceFields);
|
|
594
|
+
const targetField = valueMapping.target;
|
|
595
|
+
const targetFields = getModelFields(parentPageContext, null, targetField);
|
|
596
|
+
setVariableValue(parentPageContext.entity, targetFields, targetValue);
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
}
|
|
583
600
|
function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
584
601
|
let successOperation = configureObj.props.base.successOperation;
|
|
585
602
|
const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
|
|
586
|
-
const tableUuid = configureObj
|
|
603
|
+
const tableUuid = getTableUuid(pageContext, configureObj);
|
|
587
604
|
if (!successOperation) {
|
|
588
605
|
successOperation = "refresh";
|
|
589
606
|
}
|
|
590
|
-
console.log("dealAfterWithList--");
|
|
591
607
|
if (successOperation === "refresh") {
|
|
592
608
|
if (tableUuid) {
|
|
593
609
|
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
@@ -606,6 +622,26 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
|
606
622
|
});
|
|
607
623
|
}
|
|
608
624
|
}
|
|
625
|
+
function refreshFormOrListPage(pageContext, configureObj) {
|
|
626
|
+
let successOperation = configureObj.props.base.successOperation;
|
|
627
|
+
const buttonForPageType = getPageType(pageContext, configureObj, false);
|
|
628
|
+
if (buttonForPageType && buttonForPageType === "list" && !successOperation) {
|
|
629
|
+
successOperation = "refresh";
|
|
630
|
+
}
|
|
631
|
+
if (successOperation === "refresh") {
|
|
632
|
+
if (buttonForPageType && buttonForPageType === "list") {
|
|
633
|
+
const tableUuid = getTableUuid(pageContext, configureObj);
|
|
634
|
+
if (tableUuid) {
|
|
635
|
+
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
636
|
+
gridRef.refresh();
|
|
637
|
+
} else {
|
|
638
|
+
console.error("tableUuid is empty");
|
|
639
|
+
}
|
|
640
|
+
} else if (buttonForPageType && buttonForPageType === "form") {
|
|
641
|
+
refreshPage(pageContext);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
609
645
|
function submitForm(params, isListButton, eventName, url) {
|
|
610
646
|
return new Promise((resolve, reject) => {
|
|
611
647
|
const pageContext = params.pageContext;
|
|
@@ -670,7 +706,10 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
|
|
|
670
706
|
ids,
|
|
671
707
|
null
|
|
672
708
|
);
|
|
673
|
-
|
|
709
|
+
const baseUrl = getBaseUrl(backendUrl);
|
|
710
|
+
let path = baseUrl + url;
|
|
711
|
+
path = getRealRestApiPath(path, systemCode, backendUrl);
|
|
712
|
+
http.post(path, param).then((result) => {
|
|
674
713
|
resolve(result);
|
|
675
714
|
}).catch((error) => {
|
|
676
715
|
reject(error);
|
|
@@ -987,8 +1026,8 @@ function getWorkflowSaveParams(params) {
|
|
|
987
1026
|
functionCodes = permissionPrefix + ".xxx";
|
|
988
1027
|
}
|
|
989
1028
|
if (!dataModel.id && !dataModel.ID) {
|
|
990
|
-
dataModel["
|
|
991
|
-
dataModel["
|
|
1029
|
+
dataModel["page_code"] = pageContext.code;
|
|
1030
|
+
dataModel["page_version"] = pageContext.version;
|
|
992
1031
|
}
|
|
993
1032
|
const param = {
|
|
994
1033
|
entity: dataModel,
|
|
@@ -1762,6 +1801,7 @@ export {
|
|
|
1762
1801
|
getTaskInformitions,
|
|
1763
1802
|
isVisibleWorkflowButton,
|
|
1764
1803
|
judgeDataNumber,
|
|
1804
|
+
refreshFormOrListPage,
|
|
1765
1805
|
standardEvents,
|
|
1766
1806
|
updateValuesWhenCloseDialog
|
|
1767
1807
|
};
|
|
@@ -339,7 +339,6 @@ function setValueForVariableName(entity, variableName, newValue) {
|
|
|
339
339
|
setVariableValue(entity, fields, newValue);
|
|
340
340
|
}
|
|
341
341
|
function setVariableValue(entity, fields, newValue) {
|
|
342
|
-
debugger;
|
|
343
342
|
if (!entity || !fields || fields.length == 0) {
|
|
344
343
|
return;
|
|
345
344
|
}
|
|
@@ -17,12 +17,13 @@ export declare function queryPageDesignByCode(pageCode: string): Promise<any>;
|
|
|
17
17
|
* @param pageDesign 页面设计对象
|
|
18
18
|
*/
|
|
19
19
|
export declare function convertToPageContext(pageDesign: PageDesign, pageRequest: object): PageContext | null;
|
|
20
|
+
export declare function getModelFields(pageContext: PageContext, formItemConfigure: any, prop?: string): any;
|
|
20
21
|
/**
|
|
21
22
|
* 获取表单元素模型名称
|
|
22
23
|
* @param pageContext 页面对象
|
|
23
24
|
* @param formItemConfigure 表单元素配置参数
|
|
24
25
|
*/
|
|
25
|
-
export declare function getFormModelFields(pageContext: PageContext, formItemConfigure:
|
|
26
|
+
export declare function getFormModelFields(pageContext: PageContext, formItemConfigure: any, prop?: string): string[];
|
|
26
27
|
/**
|
|
27
28
|
* 获取组件的权限编码
|
|
28
29
|
* @param configure
|
|
@@ -39,6 +39,8 @@ function convertToPageContext(pageDesign, pageRequest) {
|
|
|
39
39
|
// 无ID或taskId时初始条件配置
|
|
40
40
|
subTablePageInfo: pageDesign.subTablePageInfo,
|
|
41
41
|
// 列表分页信息,格式是:{列表编码: 每页显示多少条记录},表单页面中校验有分页的子表时提示使用,提示信息格式:第 {pageNum} 页第 {row} 行记录
|
|
42
|
+
workflowCode: pageDesign.workflowCode,
|
|
43
|
+
workflowVersion: pageDesign.workflowVersion,
|
|
42
44
|
entity: {
|
|
43
45
|
data: {},
|
|
44
46
|
task: {},
|
|
@@ -49,11 +51,6 @@ function convertToPageContext(pageDesign, pageRequest) {
|
|
|
49
51
|
system: {}
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
|
-
if (pageDesign.props && pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "link") {
|
|
53
|
-
pageContext.workflowCode = pageDesign.props.linkWorkflowCode;
|
|
54
|
-
} else if (pageDesign.props && pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "create") {
|
|
55
|
-
pageContext.workflowCode = pageDesign.props.createWorkflowCode;
|
|
56
|
-
}
|
|
57
54
|
if (pageDesign.variables) {
|
|
58
55
|
const pageObj = pageContext.entity.page;
|
|
59
56
|
for (const variable of pageDesign.variables) {
|
|
@@ -111,28 +108,35 @@ function getRequestObject(pageRequest) {
|
|
|
111
108
|
;
|
|
112
109
|
return requestObj;
|
|
113
110
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
return ["temp"];
|
|
117
|
-
}
|
|
118
|
-
const entity = pageContext.entity;
|
|
111
|
+
function getModelFields(pageContext, formItemConfigure, prop) {
|
|
112
|
+
pageContext.entity;
|
|
119
113
|
let propsBase;
|
|
120
114
|
let propName = prop;
|
|
121
|
-
if (!prop) {
|
|
115
|
+
if (!prop && formItemConfigure) {
|
|
122
116
|
propsBase = formItemConfigure.props.base ? formItemConfigure.props.base : {};
|
|
123
117
|
propName = propsBase.prop;
|
|
124
118
|
}
|
|
125
119
|
let fields = null;
|
|
126
|
-
if (
|
|
127
|
-
fields = ["data", prop];
|
|
128
|
-
} else if (!propName || !propName.startsWith("${")) {
|
|
129
|
-
fields = ["page", formItemConfigure.uuid];
|
|
130
|
-
} else {
|
|
120
|
+
if (propName && propName.startsWith("${")) {
|
|
131
121
|
propName = propName.substring(2, propName.length - 1);
|
|
132
122
|
fields = propName.split(".");
|
|
133
|
-
if (fields.length < 2) {
|
|
123
|
+
if (formItemConfigure && fields.length < 2) {
|
|
134
124
|
fields = [formItemConfigure.uuid];
|
|
135
125
|
}
|
|
126
|
+
} else if (formItemConfigure) {
|
|
127
|
+
fields = ["page", formItemConfigure.uuid];
|
|
128
|
+
}
|
|
129
|
+
if (!fields && !formItemConfigure) {
|
|
130
|
+
return ["temp"];
|
|
131
|
+
}
|
|
132
|
+
return fields;
|
|
133
|
+
}
|
|
134
|
+
function getFormModelFields(pageContext, formItemConfigure, prop) {
|
|
135
|
+
let fields = getModelFields(pageContext, formItemConfigure, prop);
|
|
136
|
+
const entity = pageContext.entity;
|
|
137
|
+
let propsBase;
|
|
138
|
+
if (formItemConfigure) {
|
|
139
|
+
propsBase = formItemConfigure.props.base ? formItemConfigure.props.base : {};
|
|
136
140
|
}
|
|
137
141
|
if (entity.data.ID == void 0 && entity.data.ID == void 0) {
|
|
138
142
|
if (propsBase && propsBase.defaultValue) {
|
|
@@ -222,6 +226,7 @@ function packageFormRules(pageContext, configure) {
|
|
|
222
226
|
export {
|
|
223
227
|
convertToPageContext,
|
|
224
228
|
getFormModelFields,
|
|
229
|
+
getModelFields,
|
|
225
230
|
getPermissionCodes,
|
|
226
231
|
packageFormRules,
|
|
227
232
|
queryPageDesignByCode,
|
|
@@ -22,7 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
const runtimeClass = runtimeInfo.class;
|
|
23
23
|
const systemCode = pageContext.systemCode;
|
|
24
24
|
const backendUrl = pageContext.backendUrl;
|
|
25
|
-
debugger;
|
|
26
25
|
const tableName = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.tableName;
|
|
27
26
|
let baseURL = pageContext.backendUrl;
|
|
28
27
|
if (!baseURL) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createBlock, unref, createCommentVNode } from "vue";
|
|
2
2
|
import { setTableEvents, gridSelectRecord, gridSelectAllRecords, gridSelectionChange, cellClick, cellDblClick, rowClick, rowDblClick, headerClick } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getModelFields } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import eventBus from "../../../../utils/eventBus.js";
|
|
6
6
|
import { popupToPage } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode } from "../../../../utils/common-util.js";
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const runtimeStyle = runtimeInfo.style;
|
|
30
30
|
const runtimeClass = runtimeInfo.class;
|
|
31
31
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
32
|
-
let dynamicFields =
|
|
32
|
+
let dynamicFields = getModelFields(props.pageContext, props.configure, "${data." + prop + "}");
|
|
33
33
|
const listViewShowFlag = ref(false);
|
|
34
34
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
35
35
|
const listViewOptions = ref({
|
|
@@ -115,7 +115,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
return getVariableValue(entity, dynamicFields);
|
|
116
116
|
}
|
|
117
117
|
function changeInitializationSubTable(canRrefreshSubtableData) {
|
|
118
|
-
debugger;
|
|
119
118
|
currencyListViewSetting(canRrefreshSubtableData);
|
|
120
119
|
listViewOptions.value["isPageInfo"] = false;
|
|
121
120
|
listViewOptions.value["subTableData"] = getValue();
|
|
@@ -178,7 +177,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
177
|
pageContext.tableUuids.push(configure.uuid);
|
|
179
178
|
}
|
|
180
179
|
function getOperations() {
|
|
181
|
-
debugger;
|
|
182
180
|
let operations = [];
|
|
183
181
|
if (isShowAdd()) {
|
|
184
182
|
const addButton = {
|
|
@@ -286,7 +284,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286
284
|
gridRef.value.deleteRow(rowIndex, listCode, false);
|
|
287
285
|
}
|
|
288
286
|
function changeGridData(gridData) {
|
|
289
|
-
debugger;
|
|
290
287
|
setVariableValue(entity, dynamicFields, gridData);
|
|
291
288
|
}
|
|
292
289
|
function changeRowsPerpage(pageSize) {
|
|
@@ -20,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const superGridItems = props.pageContext.superGridItems;
|
|
21
21
|
const superGridSetting = superGridItems ? superGridItems[tableUuid] : null;
|
|
22
22
|
tableConfigure.value = superGridSetting ? superGridSetting.configure ? JSON.parse(superGridSetting.configure) : null : props.configure;
|
|
23
|
-
debugger;
|
|
24
23
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
24
|
runtimeInfo.style;
|
|
26
25
|
runtimeInfo.class;
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
if (pageParams["configureObj"]) {
|
|
37
37
|
delete pageParams["configureObj"];
|
|
38
38
|
}
|
|
39
|
-
Object.assign(pageRequest.value,
|
|
39
|
+
Object.assign(pageRequest.value, pageParams);
|
|
40
40
|
} catch (error) {
|
|
41
41
|
console.error(error);
|
|
42
42
|
}
|
|
@@ -9,14 +9,15 @@ import _sfc_main$3 from "./assemblys/common/task-informition-dialog.vue.js";
|
|
|
9
9
|
import _sfc_main$4 from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
10
|
import eventBus from "../utils/eventBus.js";
|
|
11
11
|
import { getFormData } from "../utils/api/api-util.js";
|
|
12
|
-
import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, getAdditionalParamMap, updateValuesWhenCloseDialog } from "../utils/events/standard-event.js";
|
|
12
|
+
import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, getAdditionalParamMap, updateValuesWhenCloseDialog, refreshFormOrListPage } from "../utils/events/standard-event.js";
|
|
13
13
|
import { ElMessage } from "element-plus";
|
|
14
14
|
import { useI18n } from "vue-i18n";
|
|
15
15
|
import { DepartmentUserTree } from "agilebuilder-ui";
|
|
16
16
|
import { i18nValidateRulesMessage } from "../utils/events/validator-util.js";
|
|
17
17
|
import _sfc_main$5 from "./super-page-dialog.vue.js";
|
|
18
|
-
import { useRouter } from "vue-router";
|
|
18
|
+
import { useRoute, useRouter } from "vue-router";
|
|
19
19
|
import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
|
+
import { setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
20
21
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
22
|
__name: "super-page",
|
|
22
23
|
props: {
|
|
@@ -96,6 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
97
|
let pageContext = ref(null);
|
|
97
98
|
const buttonConfigure = ref(null);
|
|
98
99
|
const buttonPageContext = ref(null);
|
|
100
|
+
const route = useRoute();
|
|
99
101
|
function initPageDesign(pageDesign) {
|
|
100
102
|
console.log("pageDesign==", pageDesign);
|
|
101
103
|
pageContext.value = convertToPageContext(pageDesign, props.pageRequest);
|
|
@@ -175,12 +177,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
177
|
parentEventParams.value = params.eventParams;
|
|
176
178
|
openDialog(parentConfigureObj.value, parentEventParams.value);
|
|
177
179
|
});
|
|
178
|
-
eventBus.$on(
|
|
179
|
-
eventPageInfo.value + "close-dialog",
|
|
180
|
-
({ isNeedValueMapping, dataModel, sourceTableName }) => {
|
|
181
|
-
closeDialog({ isNeedValueMapping, dataModel, sourceTableName });
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
180
|
watch(
|
|
185
181
|
() => pageContext.value.isRefresh,
|
|
186
182
|
(newValue) => {
|
|
@@ -245,6 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
245
241
|
} else {
|
|
246
242
|
isShowPage.value = true;
|
|
247
243
|
}
|
|
244
|
+
sessionCacheDataId();
|
|
248
245
|
});
|
|
249
246
|
}, 0);
|
|
250
247
|
} else if (props.pageCode) {
|
|
@@ -254,12 +251,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
251
|
const pageConf = JSON.parse(designJson);
|
|
255
252
|
pageDesignResult.value = pageConf;
|
|
256
253
|
initPageDesign(pageConf).then(() => {
|
|
254
|
+
sessionCacheDataId();
|
|
257
255
|
isShowPage.value = true;
|
|
258
256
|
});
|
|
259
257
|
}
|
|
260
258
|
});
|
|
261
259
|
}
|
|
262
260
|
}
|
|
261
|
+
function sessionCacheDataId() {
|
|
262
|
+
const dataModel = pageContext.value.entity.data;
|
|
263
|
+
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
264
|
+
if (route.query._t_) {
|
|
265
|
+
setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
263
268
|
onUpdated(() => {
|
|
264
269
|
nextTick(() => {
|
|
265
270
|
if (pageContext.value && thisRef.value) {
|
|
@@ -280,6 +285,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
285
|
eventBus.$off(eventPageInfo.value + "choose-return-node");
|
|
281
286
|
eventBus.$off(eventPageInfo.value + "remove-signer");
|
|
282
287
|
eventBus.$off(eventPageInfo.value + "prohibit-edit");
|
|
288
|
+
eventBus.$off(eventPageInfo.value + "open-dialog");
|
|
283
289
|
if (pageContext.value) {
|
|
284
290
|
handleEvent(null, pageContext.value, pageContext.value, "onUnmounted");
|
|
285
291
|
}
|
|
@@ -370,6 +376,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
370
376
|
popPageSetting.parentPageVersion = parentPageContext.value.version;
|
|
371
377
|
popPageSetting.isNewPage = true;
|
|
372
378
|
if (jumpMode === "popup") {
|
|
379
|
+
eventBus.$on(
|
|
380
|
+
eventPageInfo.value + "close-dialog",
|
|
381
|
+
(params) => {
|
|
382
|
+
closeFunc(params);
|
|
383
|
+
}
|
|
384
|
+
);
|
|
373
385
|
jumpPageSetting.value = popPageSetting;
|
|
374
386
|
isShowDialog.value = true;
|
|
375
387
|
} else if (jumpMode === "refresh") {
|
|
@@ -385,11 +397,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
385
397
|
console.error("页面配置信息不存在");
|
|
386
398
|
}
|
|
387
399
|
}
|
|
400
|
+
function closeFunc(params) {
|
|
401
|
+
const jumpMode = params.jumpMode;
|
|
402
|
+
if (jumpMode && jumpMode === "popup") {
|
|
403
|
+
closeDialog(params);
|
|
404
|
+
} else {
|
|
405
|
+
router.go(-1);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
388
408
|
function closeDialog(params) {
|
|
409
|
+
let dataModel;
|
|
410
|
+
let sourceTableName;
|
|
389
411
|
if (params) {
|
|
390
412
|
const isNeedValueMapping = params.isNeedValueMapping;
|
|
391
|
-
|
|
392
|
-
|
|
413
|
+
dataModel = params.dataModel;
|
|
414
|
+
sourceTableName = params.sourceTableName;
|
|
393
415
|
if (isNeedValueMapping) {
|
|
394
416
|
updateValuesWhenCloseDialog(
|
|
395
417
|
parentPageContext.value,
|
|
@@ -399,9 +421,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
399
421
|
);
|
|
400
422
|
}
|
|
401
423
|
}
|
|
424
|
+
const targetTableName = parentPageContext.value.tableName;
|
|
425
|
+
handleEvent(null, parentPageContext.value, parentConfigureObj.value, "closePopup", {
|
|
426
|
+
sourceModel: dataModel,
|
|
427
|
+
sourceTableName,
|
|
428
|
+
jumpPageSetting,
|
|
429
|
+
entity: parentPageContext.value.entity.data,
|
|
430
|
+
targetTableName
|
|
431
|
+
});
|
|
432
|
+
refreshFormOrListPage(parentPageContext.value, parentConfigureObj.value);
|
|
402
433
|
parentPageContext.value = null;
|
|
403
434
|
parentConfigureObj.value = null;
|
|
404
435
|
parentEventParams.value = null;
|
|
436
|
+
eventBus.$off(eventPageInfo.value + "close-dialog");
|
|
405
437
|
isShowDialog.value = false;
|
|
406
438
|
}
|
|
407
439
|
return (_ctx, _cache) => {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const cn = {
|
|
2
|
+
superPageRuntimeMessage: {
|
|
3
|
+
successfulSave: "保存成功",
|
|
4
|
+
recordLine: "第 {row} 行记录",
|
|
5
|
+
tableListSubTableDataVerificationFailed: "表单子表数据校验失败",
|
|
6
|
+
formDataVerificationFailed: "表单数据校验失败",
|
|
7
|
+
successfulOperation: "操作成功",
|
|
8
|
+
selectTemplate: "选择模板",
|
|
9
|
+
temlpate: "模板",
|
|
10
|
+
operating: "操作",
|
|
11
|
+
export: "导出",
|
|
12
|
+
tips: "提示",
|
|
13
|
+
sure: "确定",
|
|
14
|
+
cancel: "取消",
|
|
15
|
+
whetherToConfirmSubmit: "确定{name}吗?",
|
|
16
|
+
whetherToConfirmAgree: "确定{name}吗?",
|
|
17
|
+
whetherToConfirmDisagree: "确定{name}吗?",
|
|
18
|
+
pleaseSelectRecord: "请选择记录",
|
|
19
|
+
whetherToConfirmDeletion: "确定删除吗?",
|
|
20
|
+
successfulDelete: "删除成功",
|
|
21
|
+
noFileSelected: "请选择一个文件",
|
|
22
|
+
asyncImport: "正在异步导入,请等待消息通知!",
|
|
23
|
+
successfulImport: "导入成功",
|
|
24
|
+
thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]",
|
|
25
|
+
onlyOneRecordCanBeselected: "只能选择一条记录",
|
|
26
|
+
selectAtLeastOneRecord: "请至少选择一条记录",
|
|
27
|
+
requestPathEmpty: "后台请求路径为空",
|
|
28
|
+
successfulSubmit: "提交成功",
|
|
29
|
+
successfulCompleteTask: "任务办理成功",
|
|
30
|
+
successfulAssign: "指派任务成功",
|
|
31
|
+
successfulRetrieve: "取回任务成功",
|
|
32
|
+
successfulDrawTask: "领取任务成功",
|
|
33
|
+
successfulAbandonReceive: "放弃任务成功",
|
|
34
|
+
successfulReturnToPreviousTask: "退回上一环节成功",
|
|
35
|
+
successfulEndInstance: "强制结束流程成功",
|
|
36
|
+
selectNode: "选择环节",
|
|
37
|
+
nodeName: "环节名称",
|
|
38
|
+
nodeId: "环节编码",
|
|
39
|
+
pleaseSelectNode: "请选择环节",
|
|
40
|
+
successfulReturnTaskTo: "退回成功",
|
|
41
|
+
selectRemoveUsers: "选择减签任务",
|
|
42
|
+
transactorName: "办理人姓名",
|
|
43
|
+
transactor: "办理人登录名",
|
|
44
|
+
trustorName: "委托人姓名",
|
|
45
|
+
pleaseSelectRemoverUsers: "请选择减签用户",
|
|
46
|
+
required: "{label}必填",
|
|
47
|
+
formatMismatch: "{label}格式不匹配",
|
|
48
|
+
overMaxLength: "{label}最多只能输入{value}字符",
|
|
49
|
+
limitMinLength: "{label}至少输入{value}字符"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
cn as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const en = {
|
|
2
|
+
superPageRuntimeMessage: {
|
|
3
|
+
successfulSave: "Save succeeded",
|
|
4
|
+
recordLine: "Record line {row}",
|
|
5
|
+
tableListSubTableDataVerificationFailed: "Table List Sub Table Data Verification Failed",
|
|
6
|
+
formDataVerificationFailed: "Form Data Verification Failed",
|
|
7
|
+
successfulOperation: "Operation successful",
|
|
8
|
+
selectTemplate: "Select Template",
|
|
9
|
+
temlpate: "Template",
|
|
10
|
+
operating: "Operate",
|
|
11
|
+
export: "Export",
|
|
12
|
+
tips: "Tip",
|
|
13
|
+
sure: "Sure",
|
|
14
|
+
cancel: "Cancel",
|
|
15
|
+
whetherToConfirmSubmit: "Are you sure to {name}?",
|
|
16
|
+
whetherToConfirmAgree: "Are you sure to {name}?",
|
|
17
|
+
whetherToConfirmDisagree: "Are you sure to {name}?",
|
|
18
|
+
pleaseSelectRecord: "Please select the record",
|
|
19
|
+
whetherToConfirmDeletion: "Are you sure to delete?",
|
|
20
|
+
successfulDelete: "Delete succeeded",
|
|
21
|
+
noFileSelected: "Please select a file",
|
|
22
|
+
asyncImport: "Asynchronous import, please wait for message notification!",
|
|
23
|
+
successfulImport: "Import succeeded",
|
|
24
|
+
thePreconditionOfTheButtonTo: "The Precondition Of The Button To [{message}]",
|
|
25
|
+
onlyOneRecordCanBeselected: "Only One Record Can Be Selected",
|
|
26
|
+
selectAtLeastOneRecord: "Please Select At Least One Record",
|
|
27
|
+
requestPathEmpty: "Backend request path is empty",
|
|
28
|
+
successfulSubmit: "Submit succeeded",
|
|
29
|
+
successfulCompleteTask: "Task handled successfully",
|
|
30
|
+
successfulAssign: "Task assigned successfully",
|
|
31
|
+
successfulRetrieve: "Retrieve task succeeded",
|
|
32
|
+
successfulDrawTask: "Task received successfully",
|
|
33
|
+
successfulAbandonReceive: "The task was abandoned successfully",
|
|
34
|
+
successfulReturnToPreviousTask: "Successfully returned to the previous phase",
|
|
35
|
+
successfulEndInstance: "Forced to end the process successfully",
|
|
36
|
+
selectNode: "Select Node",
|
|
37
|
+
nodeName: "Node Name",
|
|
38
|
+
nodeId: "Node Code",
|
|
39
|
+
pleaseSelectNode: "Please Select Node",
|
|
40
|
+
successfulReturnTaskTo: "Returned successfully",
|
|
41
|
+
selectRemoveUsers: "Select Remove Task",
|
|
42
|
+
transactorName: "Transactor Name",
|
|
43
|
+
transactor: "Transactor Loginname",
|
|
44
|
+
trustorName: "Trustor Name",
|
|
45
|
+
pleaseSelectRemoverUsers: "Please select remove task",
|
|
46
|
+
required: "{label} is required",
|
|
47
|
+
formatMismatch: "{label} Format mismatch",
|
|
48
|
+
overMaxLength: "{label} can only input a maximum of {value} characters",
|
|
49
|
+
limitMinLength: "Enter at least {value} characters for {label}"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
en as default
|
|
54
|
+
};
|
package/dist/es/index.d.ts
CHANGED
|
@@ -2,7 +2,10 @@ import { SuperPageNew, SuperPageDialogNew } from './components/runtime';
|
|
|
2
2
|
import { getComponentOptionConfigs } from './components/runtime/utils/page-helper-util';
|
|
3
3
|
import { getStandPermissionInfo, getFunctionInfo, FuncType } from './components/runtime/utils/page-permission-util';
|
|
4
4
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './components/runtime/utils/charts/chart-util';
|
|
5
|
+
import { default as cn } from './i18n/langs/cn.js';
|
|
6
|
+
import { default as en } from './i18n/langs/en.js';
|
|
5
7
|
|
|
6
8
|
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs };
|
|
7
9
|
export { getStandPermissionInfo, getFunctionInfo, FuncType };
|
|
8
10
|
export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
|
|
11
|
+
export { cn, en };
|
package/dist/es/index.js
CHANGED
|
@@ -3,10 +3,14 @@ import { default as default3 } from "./components/runtime/views/super-page-dialo
|
|
|
3
3
|
import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
|
|
4
4
|
import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
|
|
5
5
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./components/runtime/utils/charts/chart-util.js";
|
|
6
|
+
import { default as default4 } from "./i18n/langs/cn.js";
|
|
7
|
+
import { default as default5 } from "./i18n/langs/en.js";
|
|
6
8
|
export {
|
|
7
9
|
FuncType,
|
|
8
10
|
default3 as SuperPageDialogNew,
|
|
9
11
|
default2 as SuperPageNew,
|
|
12
|
+
default4 as cn,
|
|
13
|
+
default5 as en,
|
|
10
14
|
getComponentOptionConfigs,
|
|
11
15
|
getCustomTheme,
|
|
12
16
|
getCustomThemeOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.0.
|
|
51
|
+
"agilebuilder-ui": "1.0.24",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|