super-page-runtime 3.0.5 → 3.0.7
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/index.d.ts +1 -2
- package/dist/es/components/runtime/index.js +4 -0
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/common-util.js +2 -2
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +6 -7
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- package/dist/es/components/runtime/utils/global-refs.js +1 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -3
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -22
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -16
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -18
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +7 -8
- package/dist/es/components/super-page-dialog/index.d.ts +3 -0
- package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +2 -2
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +4 -0
- package/dist/es/components/wf-editor/index.d.ts +3 -0
- package/dist/es/components/wf-editor/index.js +4 -0
- package/dist/es/components/wf-editor/wf-editor.css +4 -0
- package/dist/es/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/es/components/wf-editor/wf-editor.vue.js +16 -0
- package/dist/es/index.d.ts +4 -2
- package/dist/es/index.js +4 -2
- package/dist/favicon.ico +0 -0
- package/dist/lib/components/runtime/index.d.ts +1 -2
- package/dist/lib/components/runtime/index.js +3 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +12 -12
- package/dist/lib/components/runtime/utils/assemblys-config.js +35 -35
- package/dist/lib/components/runtime/utils/common-util.js +4 -4
- package/dist/lib/components/runtime/utils/eventBus.js +1 -1
- package/dist/lib/components/runtime/utils/events/event-util.js +8 -8
- package/dist/lib/components/runtime/utils/events/standard-event.js +105 -106
- package/dist/lib/components/runtime/utils/events/validator-util.js +15 -15
- package/dist/lib/components/runtime/utils/global-refs.js +1 -1
- package/dist/lib/components/runtime/utils/page-helper-util.js +8 -8
- package/dist/lib/components/runtime/utils/page-init-util.js +5 -5
- package/dist/lib/components/runtime/utils/table-utils.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +31 -31
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -30
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +21 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +22 -26
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +22 -26
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +23 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +30 -30
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +27 -27
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +20 -20
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +13 -13
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +6 -6
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +15 -15
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +11 -12
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -39
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +27 -28
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -58
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +42 -42
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +8 -8
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -39
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +18 -18
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/super-page.vue.js +61 -62
- package/dist/lib/components/super-page-dialog/index.d.ts +3 -0
- package/dist/lib/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +14 -14
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/wf-editor/index.d.ts +3 -0
- package/dist/lib/components/wf-editor/index.js +3 -0
- package/dist/lib/components/wf-editor/wf-editor.css +4 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.js +15 -0
- package/dist/lib/index.d.ts +4 -2
- package/dist/lib/index.js +3 -1
- package/dist/super-page-runtime.umd.js +213932 -0
- package/package.json +3 -4
- package/dist/es/_virtual/AttributeMap.js +0 -4
- package/dist/es/_virtual/Delta.js +0 -4
- package/dist/es/_virtual/Op.js +0 -4
- package/dist/es/_virtual/OpIterator.js +0 -4
- package/dist/es/_virtual/__vite-browser-external.js +0 -4
- package/dist/es/_virtual/_commonjsHelpers.js +0 -8
- package/dist/es/_virtual/dayjs.min.js +0 -4
- package/dist/es/_virtual/index.js +0 -4
- package/dist/es/_virtual/index2.js +0 -4
- package/dist/es/_virtual/index3.js +0 -4
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- /package/dist/es/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
- /package/dist/lib/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/lib/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const commonUtil = require("../common-util.js");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const http = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
5
|
+
const util_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js");
|
|
6
|
+
const index_mjs = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs");
|
|
7
|
+
const vueRouter_mjs = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.mjs");
|
|
8
|
+
const auth_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js");
|
|
8
9
|
const globalRefs = require("../global-refs.js");
|
|
9
10
|
const eventBus = require("../eventBus.js");
|
|
10
|
-
const axios = require("
|
|
11
|
+
const axios = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/index.js");
|
|
11
12
|
const eventUtil = require("./event-util.js");
|
|
12
13
|
const storeUtil = require("../store-util.js");
|
|
13
|
-
const index = require("../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js");
|
|
14
|
-
const index$1 = require("../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message-box/index.js");
|
|
15
14
|
const standardEvents = {
|
|
16
15
|
// 表单标准事件保存save
|
|
17
16
|
save: function(params) {
|
|
@@ -253,14 +252,14 @@ function exportFormReportSuccess(fileName, system, param) {
|
|
|
253
252
|
return new Promise((resolve, reject) => {
|
|
254
253
|
const baseUrl = commonUtil.getBaseUrl(system);
|
|
255
254
|
const path = baseUrl + "/dsc/commons/export-reports";
|
|
256
|
-
axios.defaults.headers.common.Authorization =
|
|
257
|
-
const
|
|
255
|
+
axios.defaults.headers.common.Authorization = auth_js.getToken();
|
|
256
|
+
const request = axios.post(path, param, {
|
|
258
257
|
headers: {
|
|
259
258
|
"content-type": "application/x-www-form-urlencoded"
|
|
260
259
|
},
|
|
261
260
|
responseType: "blob"
|
|
262
261
|
});
|
|
263
|
-
|
|
262
|
+
request.then((response) => {
|
|
264
263
|
const blob = new Blob([response.data]);
|
|
265
264
|
let fileNameTwo = "报告.xlsx";
|
|
266
265
|
if (fileName) {
|
|
@@ -285,14 +284,14 @@ function exportFormPdf(fileName, system, param) {
|
|
|
285
284
|
return new Promise((resolve, reject) => {
|
|
286
285
|
const baseUrl = commonUtil.getBaseUrl(system);
|
|
287
286
|
const path = baseUrl + "/dsc/commons/export-pdf";
|
|
288
|
-
axios.defaults.headers.common.Authorization =
|
|
289
|
-
const
|
|
287
|
+
axios.defaults.headers.common.Authorization = auth_js.getToken();
|
|
288
|
+
const request = axios.post(path, param, {
|
|
290
289
|
headers: {
|
|
291
290
|
"content-type": "application/x-www-form-urlencoded"
|
|
292
291
|
},
|
|
293
292
|
responseType: "blob"
|
|
294
293
|
});
|
|
295
|
-
|
|
294
|
+
request.then((response) => {
|
|
296
295
|
const blob = new Blob([response.data]);
|
|
297
296
|
const elink = document.createElement("a");
|
|
298
297
|
elink.download = fileName.substring(0, fileName.lastIndexOf(".")) + ".pdf";
|
|
@@ -320,7 +319,7 @@ function saveFunc(params, isListButton) {
|
|
|
320
319
|
if (successOperation && successOperation === "noOperation") {
|
|
321
320
|
isUnControlVersion = true;
|
|
322
321
|
}
|
|
323
|
-
const
|
|
322
|
+
const request = getSaveFormRequest(
|
|
324
323
|
pageContext,
|
|
325
324
|
configureObj,
|
|
326
325
|
"/dsc/commons",
|
|
@@ -328,8 +327,8 @@ function saveFunc(params, isListButton) {
|
|
|
328
327
|
mainDefaultValueColumns,
|
|
329
328
|
dynamicColumnInfo
|
|
330
329
|
);
|
|
331
|
-
if (
|
|
332
|
-
|
|
330
|
+
if (request) {
|
|
331
|
+
request.then((data) => {
|
|
333
332
|
dealAfterOperate(
|
|
334
333
|
pageContext,
|
|
335
334
|
configureObj,
|
|
@@ -428,13 +427,13 @@ function getSaveFormRequestByParam(system, param, url, formData) {
|
|
|
428
427
|
const baseUrl = commonUtil.getBaseUrl(system);
|
|
429
428
|
let path = baseUrl + url;
|
|
430
429
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
431
|
-
let request
|
|
430
|
+
let request;
|
|
432
431
|
if (formData && (formData.id || formData.ID)) {
|
|
433
|
-
request
|
|
432
|
+
request = http.put(path, param);
|
|
434
433
|
} else {
|
|
435
|
-
request
|
|
434
|
+
request = http.post(path, param);
|
|
436
435
|
}
|
|
437
|
-
return request
|
|
436
|
+
return request;
|
|
438
437
|
}
|
|
439
438
|
function dealAfterOperate(pageContext, configureObj, data, successTip, isListButton) {
|
|
440
439
|
if (isListButton === void 0) {
|
|
@@ -459,8 +458,8 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
|
459
458
|
afterSuccessOperateInForm(pageContext, configureObj, dataModel);
|
|
460
459
|
}
|
|
461
460
|
if (successTip) {
|
|
462
|
-
|
|
463
|
-
message:
|
|
461
|
+
index_mjs.ElMessage({
|
|
462
|
+
message: util_js.getI18n().t(successTip),
|
|
464
463
|
type: "success",
|
|
465
464
|
showClose: true
|
|
466
465
|
});
|
|
@@ -486,9 +485,9 @@ function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
|
|
|
486
485
|
} else if (successOperation === "refresh") {
|
|
487
486
|
if (dataModel && (dataModel.id || dataModel.ID)) {
|
|
488
487
|
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
489
|
-
const route =
|
|
488
|
+
const route = vueRouter_mjs.useRoute();
|
|
490
489
|
if (route.query._t_) {
|
|
491
|
-
|
|
490
|
+
auth_js.setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
492
491
|
}
|
|
493
492
|
}
|
|
494
493
|
} else if (successOperation === "closeWindow" || successOperation === "closeWindowAndRefresh") {
|
|
@@ -512,8 +511,8 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
|
512
511
|
}
|
|
513
512
|
}
|
|
514
513
|
if (successTip) {
|
|
515
|
-
|
|
516
|
-
message:
|
|
514
|
+
index_mjs.ElMessage({
|
|
515
|
+
message: util_js.getI18n().t(successTip),
|
|
517
516
|
type: "success",
|
|
518
517
|
showClose: true
|
|
519
518
|
});
|
|
@@ -531,7 +530,7 @@ function submitForm(params, isListButton, eventName, url) {
|
|
|
531
530
|
if (successOperation && successOperation === "noOperation") {
|
|
532
531
|
isUnControlVersion = true;
|
|
533
532
|
}
|
|
534
|
-
const
|
|
533
|
+
const request = getSubmitFormRequest(
|
|
535
534
|
pageContext,
|
|
536
535
|
configureObj,
|
|
537
536
|
url,
|
|
@@ -541,8 +540,8 @@ function submitForm(params, isListButton, eventName, url) {
|
|
|
541
540
|
eventName,
|
|
542
541
|
ids
|
|
543
542
|
);
|
|
544
|
-
if (
|
|
545
|
-
|
|
543
|
+
if (request) {
|
|
544
|
+
request.then((data) => {
|
|
546
545
|
dealAfterOperate(
|
|
547
546
|
pageContext,
|
|
548
547
|
configureObj,
|
|
@@ -563,12 +562,12 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
|
|
|
563
562
|
return new Promise((resolve, reject) => {
|
|
564
563
|
const buttonName = configureObj.props.base.title;
|
|
565
564
|
const operationI18nTip = "superPageRuntimeMessage.whetherToConfirm" + commonUtil.upperFirstCase(eventName);
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
565
|
+
index_mjs.ElMessageBox.confirm(
|
|
566
|
+
util_js.getI18n().t(operationI18nTip, { name: buttonName }),
|
|
567
|
+
util_js.getI18n().t("superPageRuntimeMessage.tips"),
|
|
569
568
|
{
|
|
570
|
-
confirmButtonText:
|
|
571
|
-
cancelButtonText:
|
|
569
|
+
confirmButtonText: util_js.getI18n().t("superPageRuntimeMessage.sure"),
|
|
570
|
+
cancelButtonText: util_js.getI18n().t("superPageRuntimeMessage.cancel"),
|
|
572
571
|
type: "warning"
|
|
573
572
|
}
|
|
574
573
|
).then(() => {
|
|
@@ -595,19 +594,19 @@ function deleteFunc(params) {
|
|
|
595
594
|
return new Promise((resolve, reject) => {
|
|
596
595
|
const ids = params.ids;
|
|
597
596
|
if (!ids || ids.length === 0) {
|
|
598
|
-
|
|
597
|
+
index_mjs.ElMessage({
|
|
599
598
|
showClose: true,
|
|
600
599
|
type: "warning",
|
|
601
|
-
message:
|
|
600
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")
|
|
602
601
|
});
|
|
603
602
|
return;
|
|
604
603
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
604
|
+
index_mjs.ElMessageBox.confirm(
|
|
605
|
+
util_js.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),
|
|
606
|
+
util_js.getI18n().t("superPageRuntimeMessage.tips"),
|
|
608
607
|
{
|
|
609
|
-
confirmButtonText:
|
|
610
|
-
cancelButtonText:
|
|
608
|
+
confirmButtonText: util_js.getI18n().t("superPageRuntimeMessage.sure"),
|
|
609
|
+
cancelButtonText: util_js.getI18n().t("superPageRuntimeMessage.cancel"),
|
|
611
610
|
type: "warning"
|
|
612
611
|
}
|
|
613
612
|
).then(() => {
|
|
@@ -648,7 +647,7 @@ function deleteFunc(params) {
|
|
|
648
647
|
if (isSafeDelete) {
|
|
649
648
|
param["isSafeDelete"] = isSafeDelete;
|
|
650
649
|
}
|
|
651
|
-
|
|
650
|
+
http.delete(path, {
|
|
652
651
|
data: param
|
|
653
652
|
}).then((data) => {
|
|
654
653
|
const gridRef = globalRefs.getComponentRef(pageContext, params.tableUuid);
|
|
@@ -776,28 +775,28 @@ function doImportFinally(params, fileObj) {
|
|
|
776
775
|
const baseUrl = commonUtil.getBaseUrl(system);
|
|
777
776
|
let path = baseUrl + "/dsc/commons/import-data";
|
|
778
777
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
779
|
-
|
|
778
|
+
http.post(path, param).then((data) => {
|
|
780
779
|
if (isAsync) {
|
|
781
|
-
|
|
780
|
+
index_mjs.ElMessage({
|
|
782
781
|
showClose: true,
|
|
783
782
|
type: "success",
|
|
784
|
-
message:
|
|
783
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.asyncImport")
|
|
785
784
|
});
|
|
786
785
|
} else {
|
|
787
786
|
let isSuccess = false;
|
|
788
787
|
if (data) {
|
|
789
788
|
isSuccess = false;
|
|
790
|
-
|
|
789
|
+
index_mjs.ElMessage({
|
|
791
790
|
dangerouslyUseHTMLString: true,
|
|
792
791
|
showClose: true,
|
|
793
792
|
type: "warning",
|
|
794
793
|
message: data
|
|
795
794
|
});
|
|
796
795
|
} else {
|
|
797
|
-
|
|
796
|
+
index_mjs.ElMessage({
|
|
798
797
|
showClose: true,
|
|
799
798
|
type: "success",
|
|
800
|
-
message:
|
|
799
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulImport")
|
|
801
800
|
});
|
|
802
801
|
isSuccess = true;
|
|
803
802
|
}
|
|
@@ -814,22 +813,22 @@ function judgeDataNumber(buttonConfigureObj, ids) {
|
|
|
814
813
|
if (buttonConfigureBase.conditionsForExecution && buttonConfigureBase.conditionsForExecution !== "") {
|
|
815
814
|
if (buttonConfigureBase.conditionsForExecution === "one") {
|
|
816
815
|
if (!ids || ids.length !== 1) {
|
|
817
|
-
|
|
816
|
+
index_mjs.ElMessage({
|
|
818
817
|
showClose: true,
|
|
819
818
|
type: "warning",
|
|
820
|
-
message:
|
|
821
|
-
message:
|
|
819
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
820
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")
|
|
822
821
|
})
|
|
823
822
|
});
|
|
824
823
|
return false;
|
|
825
824
|
}
|
|
826
825
|
} else if (buttonConfigureBase.conditionsForExecution === "more") {
|
|
827
826
|
if (!ids || ids.length <= 0) {
|
|
828
|
-
|
|
827
|
+
index_mjs.ElMessage({
|
|
829
828
|
showClose: true,
|
|
830
829
|
type: "warning",
|
|
831
|
-
message:
|
|
832
|
-
message:
|
|
830
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
831
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")
|
|
833
832
|
})
|
|
834
833
|
});
|
|
835
834
|
return false;
|
|
@@ -959,30 +958,30 @@ function workflowSaveFunc(params) {
|
|
|
959
958
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons";
|
|
960
959
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
961
960
|
if (!path) {
|
|
962
|
-
|
|
961
|
+
index_mjs.ElMessage({
|
|
963
962
|
showClose: true,
|
|
964
963
|
type: "warning",
|
|
965
|
-
message:
|
|
964
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
966
965
|
});
|
|
967
966
|
return;
|
|
968
967
|
}
|
|
969
968
|
const param = getWorkflowSaveParams(params);
|
|
970
|
-
let request
|
|
969
|
+
let request;
|
|
971
970
|
if (dataModel.id || dataModel.ID) {
|
|
972
|
-
request
|
|
971
|
+
request = http.put(path, param);
|
|
973
972
|
} else {
|
|
974
|
-
request
|
|
973
|
+
request = http.post(path, param);
|
|
975
974
|
}
|
|
976
|
-
request
|
|
975
|
+
request.then((commonEntity) => {
|
|
977
976
|
let result = true;
|
|
978
977
|
if (commonEntity) {
|
|
979
978
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
980
979
|
}
|
|
981
980
|
if (result === true) {
|
|
982
|
-
|
|
981
|
+
index_mjs.ElMessage({
|
|
983
982
|
showClose: true,
|
|
984
983
|
type: "success",
|
|
985
|
-
message:
|
|
984
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulSave")
|
|
986
985
|
});
|
|
987
986
|
}
|
|
988
987
|
resolve(true);
|
|
@@ -1007,7 +1006,7 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
|
|
|
1007
1006
|
const completeTaskTipType = completeTaskResult.completeTaskTipType;
|
|
1008
1007
|
if (completeTaskTipType && completeTaskTipType === "MESSAGE") {
|
|
1009
1008
|
const message = completeTaskResult.content;
|
|
1010
|
-
|
|
1009
|
+
index_mjs.ElMessage({
|
|
1011
1010
|
showClose: true,
|
|
1012
1011
|
type: "warning",
|
|
1013
1012
|
message
|
|
@@ -1044,26 +1043,26 @@ function submitProcessFunc(params) {
|
|
|
1044
1043
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons/submit";
|
|
1045
1044
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1046
1045
|
if (!path) {
|
|
1047
|
-
|
|
1046
|
+
index_mjs.ElMessage({
|
|
1048
1047
|
showClose: true,
|
|
1049
1048
|
type: "warning",
|
|
1050
|
-
message:
|
|
1049
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1051
1050
|
});
|
|
1052
1051
|
return;
|
|
1053
1052
|
}
|
|
1054
1053
|
const param = getWorkflowSaveParams(params);
|
|
1055
|
-
const request
|
|
1056
|
-
if (request
|
|
1057
|
-
request
|
|
1054
|
+
const request = http.post(path, param);
|
|
1055
|
+
if (request) {
|
|
1056
|
+
request.then((commonEntity) => {
|
|
1058
1057
|
let result = true;
|
|
1059
1058
|
if (commonEntity) {
|
|
1060
1059
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1061
1060
|
}
|
|
1062
1061
|
if (result === true) {
|
|
1063
|
-
|
|
1062
|
+
index_mjs.ElMessage({
|
|
1064
1063
|
showClose: true,
|
|
1065
1064
|
type: "success",
|
|
1066
|
-
message:
|
|
1065
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulSubmit")
|
|
1067
1066
|
});
|
|
1068
1067
|
}
|
|
1069
1068
|
resolve(true);
|
|
@@ -1080,10 +1079,10 @@ function completeTaskFunc(params, operationResult) {
|
|
|
1080
1079
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons/complete-tasks";
|
|
1081
1080
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1082
1081
|
if (!path) {
|
|
1083
|
-
|
|
1082
|
+
index_mjs.ElMessage({
|
|
1084
1083
|
showClose: true,
|
|
1085
1084
|
type: "warning",
|
|
1086
|
-
message:
|
|
1085
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1087
1086
|
});
|
|
1088
1087
|
return;
|
|
1089
1088
|
}
|
|
@@ -1093,17 +1092,17 @@ function completeTaskFunc(params, operationResult) {
|
|
|
1093
1092
|
taskId: pageContext.completeTaskParam ? pageContext.completeTaskParam.taskId : null,
|
|
1094
1093
|
opinion: pageContext.completeTaskParam ? pageContext.completeTaskParam.opinion : null
|
|
1095
1094
|
};
|
|
1096
|
-
const request
|
|
1097
|
-
request
|
|
1095
|
+
const request = http.post(path, param);
|
|
1096
|
+
request.then((commonEntity) => {
|
|
1098
1097
|
let result = true;
|
|
1099
1098
|
if (commonEntity) {
|
|
1100
1099
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, operationResult);
|
|
1101
1100
|
}
|
|
1102
1101
|
if (result === true) {
|
|
1103
|
-
|
|
1102
|
+
index_mjs.ElMessage({
|
|
1104
1103
|
showClose: true,
|
|
1105
1104
|
type: "success",
|
|
1106
|
-
message:
|
|
1105
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")
|
|
1107
1106
|
});
|
|
1108
1107
|
}
|
|
1109
1108
|
resolve(true);
|
|
@@ -1172,22 +1171,22 @@ function doAddSigner(params, selectNodeInfo) {
|
|
|
1172
1171
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1173
1172
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1174
1173
|
if (!path) {
|
|
1175
|
-
|
|
1174
|
+
index_mjs.ElMessage({
|
|
1176
1175
|
showClose: true,
|
|
1177
1176
|
type: "warning",
|
|
1178
|
-
message:
|
|
1177
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1179
1178
|
});
|
|
1180
1179
|
return;
|
|
1181
1180
|
}
|
|
1182
1181
|
const requestParams = getTransactTaskParam(params);
|
|
1183
1182
|
requestParams["completeTaskParam"].transactors = selectNodeInfo.loginNames.join(",").split(",");
|
|
1184
|
-
const request
|
|
1185
|
-
if (request
|
|
1186
|
-
request
|
|
1187
|
-
|
|
1183
|
+
const request = http.post(path, requestParams);
|
|
1184
|
+
if (request) {
|
|
1185
|
+
request.then((commonEntity) => {
|
|
1186
|
+
index_mjs.ElMessage({
|
|
1188
1187
|
showClose: true,
|
|
1189
1188
|
type: "success",
|
|
1190
|
-
message:
|
|
1189
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1191
1190
|
});
|
|
1192
1191
|
if (commonEntity.entity) {
|
|
1193
1192
|
dealAfterOperate(pageContext, buttonConfigureObj, commonEntity, null, false);
|
|
@@ -1211,22 +1210,22 @@ function doCreateCopyTask(params, selectNodeInfo) {
|
|
|
1211
1210
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1212
1211
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1213
1212
|
if (!path) {
|
|
1214
|
-
|
|
1213
|
+
index_mjs.ElMessage({
|
|
1215
1214
|
showClose: true,
|
|
1216
1215
|
type: "warning",
|
|
1217
|
-
message:
|
|
1216
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1218
1217
|
});
|
|
1219
1218
|
return;
|
|
1220
1219
|
}
|
|
1221
1220
|
const requestParams = getTransactTaskParam(params);
|
|
1222
1221
|
requestParams["completeTaskParam"].transactors = selectNodeInfo.userIds.join(",").split(",");
|
|
1223
|
-
const request
|
|
1224
|
-
if (request
|
|
1225
|
-
request
|
|
1226
|
-
|
|
1222
|
+
const request = http.post(path, requestParams);
|
|
1223
|
+
if (request) {
|
|
1224
|
+
request.then((commonEntity) => {
|
|
1225
|
+
index_mjs.ElMessage({
|
|
1227
1226
|
showClose: true,
|
|
1228
1227
|
type: "success",
|
|
1229
|
-
message:
|
|
1228
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1230
1229
|
});
|
|
1231
1230
|
eventUtil.doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
1232
1231
|
});
|
|
@@ -1239,25 +1238,25 @@ function transactTask(params, requestParam, path, successMessageTip) {
|
|
|
1239
1238
|
const system = pageContext.entity.system;
|
|
1240
1239
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1241
1240
|
if (!path) {
|
|
1242
|
-
|
|
1241
|
+
index_mjs.ElMessage({
|
|
1243
1242
|
showClose: true,
|
|
1244
1243
|
type: "warning",
|
|
1245
|
-
message:
|
|
1244
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1246
1245
|
});
|
|
1247
1246
|
return;
|
|
1248
1247
|
}
|
|
1249
|
-
const request
|
|
1250
|
-
if (request
|
|
1251
|
-
request
|
|
1248
|
+
const request = http.post(path, requestParam);
|
|
1249
|
+
if (request) {
|
|
1250
|
+
request.then((commonEntity) => {
|
|
1252
1251
|
let result = true;
|
|
1253
1252
|
if (commonEntity) {
|
|
1254
1253
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1255
1254
|
}
|
|
1256
1255
|
if (result === true) {
|
|
1257
|
-
|
|
1256
|
+
index_mjs.ElMessage({
|
|
1258
1257
|
showClose: true,
|
|
1259
1258
|
type: "success",
|
|
1260
|
-
message:
|
|
1259
|
+
message: util_js.getI18n().t(successMessageTip)
|
|
1261
1260
|
});
|
|
1262
1261
|
}
|
|
1263
1262
|
resolve(true);
|
|
@@ -1318,10 +1317,10 @@ function getTaskInformitions(params) {
|
|
|
1318
1317
|
let path = commonUtil.getBaseUrl(system) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
|
|
1319
1318
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1320
1319
|
if (!path) {
|
|
1321
|
-
|
|
1320
|
+
index_mjs.ElMessage({
|
|
1322
1321
|
showClose: true,
|
|
1323
1322
|
type: "warning",
|
|
1324
|
-
message:
|
|
1323
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1325
1324
|
});
|
|
1326
1325
|
return;
|
|
1327
1326
|
}
|
|
@@ -1333,7 +1332,7 @@ function getTaskInformitions(params) {
|
|
|
1333
1332
|
tableName: pageContext.tableName,
|
|
1334
1333
|
functionCode: permissionPrefix + ".xxx"
|
|
1335
1334
|
};
|
|
1336
|
-
return
|
|
1335
|
+
return http.post(path, requestParams);
|
|
1337
1336
|
}
|
|
1338
1337
|
function doReturnTaskTo(params, selectTaskNode) {
|
|
1339
1338
|
const pageContext = params.pageContext;
|
|
@@ -1366,14 +1365,14 @@ function getRemoveSigner(params) {
|
|
|
1366
1365
|
const requestParam = getWorkflowSaveParams(params);
|
|
1367
1366
|
path = commonUtil.getRealRestApiPath(path, system);
|
|
1368
1367
|
if (!path) {
|
|
1369
|
-
|
|
1368
|
+
index_mjs.ElMessage({
|
|
1370
1369
|
showClose: true,
|
|
1371
1370
|
type: "warning",
|
|
1372
|
-
message:
|
|
1371
|
+
message: util_js.getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1373
1372
|
});
|
|
1374
1373
|
return;
|
|
1375
1374
|
}
|
|
1376
|
-
return
|
|
1375
|
+
return http.post(path, requestParam);
|
|
1377
1376
|
}
|
|
1378
1377
|
function doRemoveSigners(params, selectRemoveTasks) {
|
|
1379
1378
|
if (selectRemoveTasks) {
|
|
@@ -1393,9 +1392,9 @@ function doRemoveSigners(params, selectRemoveTasks) {
|
|
|
1393
1392
|
const taskIds = selectRemoveTasks.map((task) => task.id ? task.id : task.ID ? task.ID : null);
|
|
1394
1393
|
const requestParam = getWorkflowSaveParams(params);
|
|
1395
1394
|
requestParam["ids"] = taskIds;
|
|
1396
|
-
const request
|
|
1397
|
-
if (request
|
|
1398
|
-
request
|
|
1395
|
+
const request = http.post(path, requestParam);
|
|
1396
|
+
if (request) {
|
|
1397
|
+
request.then((commonEntity) => {
|
|
1399
1398
|
dealAfterOperate(
|
|
1400
1399
|
pageContext,
|
|
1401
1400
|
configureObj,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const Validator = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js");
|
|
4
|
+
const index_mjs = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs");
|
|
4
5
|
const globalRefs = require("../global-refs.js");
|
|
5
|
-
const
|
|
6
|
-
const index = require("../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js");
|
|
6
|
+
const util_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js");
|
|
7
7
|
function setObjectPropRule(prop, rules, leafRule) {
|
|
8
8
|
const rule = {};
|
|
9
9
|
if (!rules) {
|
|
@@ -126,7 +126,7 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
126
126
|
return true;
|
|
127
127
|
}
|
|
128
128
|
let result;
|
|
129
|
-
const validator2 = new
|
|
129
|
+
const validator2 = new Validator(validateRules);
|
|
130
130
|
validator2.validate(
|
|
131
131
|
entity,
|
|
132
132
|
{
|
|
@@ -138,11 +138,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
138
138
|
result = errors[0].message;
|
|
139
139
|
fieldName = errors[0]["field"];
|
|
140
140
|
if (typeof rowIndex !== "undefined" && rowIndex !== null) {
|
|
141
|
-
result =
|
|
141
|
+
result = util_js.getI18n().t("superPageRuntimeMessage.recordLine", {
|
|
142
142
|
row: rowIndex + 1
|
|
143
143
|
}) + "," + result;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
index_mjs.ElMessage({
|
|
146
146
|
message: result,
|
|
147
147
|
showClose: true,
|
|
148
148
|
type: "warning",
|
|
@@ -224,7 +224,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext, customRules) {
|
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
226
|
if (result !== true) {
|
|
227
|
-
|
|
227
|
+
index_mjs.ElMessage({
|
|
228
228
|
showClose: true,
|
|
229
229
|
message: result + "",
|
|
230
230
|
type: "warning"
|
|
@@ -279,12 +279,12 @@ function validateCommonFormDataModel(dataModel, pageContext, rules, customRules)
|
|
|
279
279
|
} else {
|
|
280
280
|
reject(
|
|
281
281
|
new Error(
|
|
282
|
-
|
|
282
|
+
util_js.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")
|
|
283
283
|
).message
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
} else {
|
|
287
|
-
reject(new Error(
|
|
287
|
+
reject(new Error(util_js.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
});
|
|
@@ -346,28 +346,28 @@ function i18nValidateRulesMessage(rules) {
|
|
|
346
346
|
const propRules = rules[propName];
|
|
347
347
|
propRules.forEach((rule) => {
|
|
348
348
|
const label = rule["label"];
|
|
349
|
-
const i18nLabel =
|
|
349
|
+
const i18nLabel = util_js.getI18n().t(label);
|
|
350
350
|
if (rule["required"]) {
|
|
351
|
-
rule["message"] =
|
|
351
|
+
rule["message"] = util_js.getI18n().t("superPageRuntimeMessage.required", { label: i18nLabel });
|
|
352
352
|
}
|
|
353
353
|
if (rule["myType"]) {
|
|
354
|
-
rule["message"] =
|
|
354
|
+
rule["message"] = util_js.getI18n().t("superPageRuntimeMessage.formatMismatch", {
|
|
355
355
|
label: i18nLabel
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
if (rule["patternType"]) {
|
|
359
|
-
rule["message"] =
|
|
359
|
+
rule["message"] = util_js.getI18n().t("superPageRuntimeMessage.formatMismatch", {
|
|
360
360
|
label: i18nLabel
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
if (rule["max"] !== void 0 && rule["max"] !== null) {
|
|
364
|
-
rule["message"] =
|
|
364
|
+
rule["message"] = util_js.getI18n().t("superPageRuntimeMessage.overMaxLength", {
|
|
365
365
|
label: i18nLabel,
|
|
366
366
|
value: rule["max"]
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
if (rule["min"] !== void 0 && rule["min"] !== null) {
|
|
370
|
-
rule["message"] =
|
|
370
|
+
rule["message"] = util_js.getI18n().t("superPageRuntimeMessage.limitMinLength", {
|
|
371
371
|
label: i18nLabel,
|
|
372
372
|
value: rule["min"]
|
|
373
373
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("vue");
|
|
3
|
+
require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
4
4
|
if (!window["globalRefs"]) {
|
|
5
5
|
window["globalRefs"] = {};
|
|
6
6
|
}
|