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,101 +1,181 @@
|
|
|
1
|
-
import { getSystemBackendUrl
|
|
2
|
-
import { getLanguageWithLocale
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
+
import { getLanguageWithLocale } from "agilebuilder-ui/src/utils/util";
|
|
3
|
+
function isArrayFn(value) {
|
|
4
|
+
if (typeof Array.isArray === "function") {
|
|
5
|
+
return Array.isArray(value);
|
|
6
|
+
} else {
|
|
7
|
+
return Object.prototype.toString.call(value) === "[object Array]";
|
|
8
|
+
}
|
|
5
9
|
}
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
function getBaseUrl(backendUrl, isTest) {
|
|
11
|
+
if (isTest) {
|
|
12
|
+
return backendUrl;
|
|
13
|
+
} else {
|
|
14
|
+
const { baseURL, projectModel } = window["$vueApp"].config.globalProperties;
|
|
15
|
+
let baseUrl = baseURL;
|
|
16
|
+
if (projectModel === "developing.model") {
|
|
17
|
+
return baseUrl;
|
|
18
|
+
}
|
|
19
|
+
if (backendUrl) {
|
|
20
|
+
baseUrl = getSystemBackendUrl(backendUrl);
|
|
21
|
+
}
|
|
22
|
+
return baseUrl;
|
|
12
23
|
}
|
|
13
24
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
function getRealRestApiPath(orgRestApiPath, systemCode, backendUrl, isTest) {
|
|
26
|
+
let path = orgRestApiPath;
|
|
27
|
+
if (orgRestApiPath) {
|
|
28
|
+
if (backendUrl && !isFullPath(orgRestApiPath)) {
|
|
29
|
+
const baseUrl = getBaseUrl(backendUrl, isTest);
|
|
30
|
+
path = baseUrl + "/" + systemCode + orgRestApiPath;
|
|
31
|
+
}
|
|
20
32
|
}
|
|
21
|
-
return
|
|
33
|
+
return path;
|
|
34
|
+
}
|
|
35
|
+
function isFullPath(path) {
|
|
36
|
+
return path.indexOf("http:") === 0 || path.indexOf("https:") === 0;
|
|
22
37
|
}
|
|
23
|
-
function
|
|
24
|
-
if (!
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
function packageTemplateFiles(templateFiles) {
|
|
39
|
+
if (!templateFiles) {
|
|
40
|
+
return templateFiles;
|
|
41
|
+
}
|
|
42
|
+
const currentLocale = getLanguageWithLocale();
|
|
43
|
+
if (Array.isArray(templateFiles)) {
|
|
44
|
+
const templateFilesResult = [];
|
|
45
|
+
const fileCodes = [];
|
|
46
|
+
const fileSeperate = "~-~-";
|
|
47
|
+
templateFiles.forEach((template) => {
|
|
48
|
+
const showName = template.templateName;
|
|
49
|
+
if (showName.indexOf(fileSeperate) > 0) {
|
|
50
|
+
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
51
|
+
const fileLanguage = showName.substring(
|
|
52
|
+
showName.indexOf(fileSeperate) + fileSeperate.length,
|
|
53
|
+
showName.lastIndexOf(fileSeperate)
|
|
54
|
+
);
|
|
55
|
+
const fileName = showName.substring(
|
|
56
|
+
showName.lastIndexOf(fileSeperate) + fileSeperate.length
|
|
57
|
+
);
|
|
58
|
+
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
59
|
+
templateFilesResult.push({
|
|
60
|
+
templateUuid: template.templateUuid,
|
|
61
|
+
templateName: fileName
|
|
62
|
+
});
|
|
63
|
+
fileCodes.push(fileCode);
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
templateFilesResult.push(template);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return templateFilesResult;
|
|
35
70
|
}
|
|
36
71
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
72
|
+
function upperFirstCase(str) {
|
|
73
|
+
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase());
|
|
39
74
|
}
|
|
40
|
-
function
|
|
41
|
-
return "V" +
|
|
75
|
+
function getListCode(pageCode, pageVersion, tableUuid) {
|
|
76
|
+
return "V" + pageVersion + "__" + pageCode + "__" + tableUuid;
|
|
42
77
|
}
|
|
43
|
-
function
|
|
44
|
-
if ("object"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
78
|
+
function deepCopy(srcObj) {
|
|
79
|
+
if (typeof srcObj !== "object" || srcObj === null || srcObj === void 0) {
|
|
80
|
+
return srcObj;
|
|
81
|
+
}
|
|
82
|
+
const copyObj = Array.isArray(srcObj) ? [] : {};
|
|
83
|
+
for (const key in srcObj) {
|
|
84
|
+
if (srcObj.hasOwnProperty(key)) {
|
|
85
|
+
copyObj[key] = deepCopy(srcObj[key]);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return copyObj;
|
|
48
89
|
}
|
|
49
|
-
function
|
|
50
|
-
let
|
|
51
|
-
|
|
90
|
+
function getWorkflowId(pageContext) {
|
|
91
|
+
let workflowId;
|
|
92
|
+
if (pageContext.entity && pageContext.entity.data) {
|
|
93
|
+
workflowId = pageContext.entity.data["WORKFLOW_ID"];
|
|
94
|
+
if (!workflowId) {
|
|
95
|
+
workflowId = pageContext.entity.data["workflow_id"];
|
|
96
|
+
}
|
|
97
|
+
if (!workflowId) {
|
|
98
|
+
workflowId = pageContext.entity.data["workflowId"];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return workflowId;
|
|
52
102
|
}
|
|
53
|
-
function
|
|
103
|
+
function getPropClassName(configure) {
|
|
54
104
|
var _a, _b, _c, _d;
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
105
|
+
let propClassName;
|
|
106
|
+
if (configure && ((_b = (_a = configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
|
|
107
|
+
let prop = (_d = (_c = configure.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
|
|
108
|
+
if (prop.indexOf("${") >= 0) {
|
|
109
|
+
prop = prop.substring(2, prop.lastIndexOf("}"));
|
|
110
|
+
}
|
|
111
|
+
const props = prop.split(".");
|
|
112
|
+
if (props.length === 2) {
|
|
113
|
+
propClassName = props[1];
|
|
114
|
+
} else if (props.length === 3) {
|
|
115
|
+
propClassName = props[1] + "__" + props[2];
|
|
116
|
+
}
|
|
117
|
+
} else if (configure.code) {
|
|
118
|
+
propClassName = configure.code;
|
|
119
|
+
}
|
|
120
|
+
return propClassName;
|
|
63
121
|
}
|
|
64
|
-
function
|
|
122
|
+
function isNumber(numStr) {
|
|
65
123
|
try {
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
if (Number.isInteger(
|
|
124
|
+
if (numStr !== void 0 && numStr !== null) {
|
|
125
|
+
const num = parseInt(numStr + "");
|
|
126
|
+
if (Number.isInteger(num)) {
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
69
129
|
}
|
|
70
130
|
return false;
|
|
71
|
-
} catch (
|
|
131
|
+
} catch (error) {
|
|
72
132
|
return false;
|
|
73
133
|
}
|
|
74
134
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
135
|
+
function isWorkflowPage(pageContext) {
|
|
136
|
+
const isWorkflow = pageContext.isWorkflowEntity ? true : pageContext.workflowCode ? true : false;
|
|
137
|
+
return isWorkflow;
|
|
77
138
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
let
|
|
81
|
-
|
|
139
|
+
function refreshMobileDialogType(jumpPageSetting, isMobile) {
|
|
140
|
+
if (jumpPageSetting && isMobile) {
|
|
141
|
+
let openMode = jumpPageSetting.jumpPageMobileOpenMode;
|
|
142
|
+
if (!openMode) {
|
|
143
|
+
if (jumpPageSetting.jumpPageOpenMode) {
|
|
144
|
+
openMode = jumpPageSetting.jumpPageOpenMode;
|
|
145
|
+
if (openMode === "newTab") {
|
|
146
|
+
openMode = "refresh";
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
openMode = "refresh";
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (openMode === "refresh") {
|
|
153
|
+
jumpPageSetting.dialogType = "drawer";
|
|
154
|
+
jumpPageSetting.jumpPageWidth = "100%";
|
|
155
|
+
jumpPageSetting.isRefreshWhenClosePopup = true;
|
|
156
|
+
}
|
|
157
|
+
jumpPageSetting.jumpMode = openMode;
|
|
158
|
+
jumpPageSetting.jumpPageMobileOpenMode = openMode;
|
|
159
|
+
if (!jumpPageSetting.jumpPageTitle) {
|
|
160
|
+
jumpPageSetting.jumpPageTitle = "QMS质量管理系统";
|
|
161
|
+
}
|
|
82
162
|
}
|
|
83
163
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
164
|
+
function isVariableInvalidValue(values, variable) {
|
|
165
|
+
return values[variable] === null || values[variable] === void 0 || values[variable] === "";
|
|
86
166
|
}
|
|
87
167
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
168
|
+
deepCopy,
|
|
169
|
+
getBaseUrl,
|
|
170
|
+
getListCode,
|
|
171
|
+
getPropClassName,
|
|
172
|
+
getRealRestApiPath,
|
|
173
|
+
getWorkflowId,
|
|
174
|
+
isArrayFn,
|
|
175
|
+
isNumber,
|
|
176
|
+
isVariableInvalidValue,
|
|
177
|
+
isWorkflowPage,
|
|
178
|
+
packageTemplateFiles,
|
|
179
|
+
refreshMobileDialogType,
|
|
180
|
+
upperFirstCase
|
|
101
181
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import mitt from "mitt";
|
|
2
|
+
const emitter = mitt();
|
|
3
|
+
const bus = {
|
|
4
|
+
$on: emitter.on,
|
|
5
|
+
$emit: emitter.emit,
|
|
6
|
+
$off: emitter.off
|
|
7
|
+
};
|
|
3
8
|
export {
|
|
4
|
-
|
|
9
|
+
bus as default
|
|
5
10
|
};
|