super-page-runtime 2.3.14-sit1 → 2.3.14-sit3
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/events/standard-event.js +34 -18
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +4 -1
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
|
@@ -8,8 +8,8 @@ import T from "../eventBus.js";
|
|
|
8
8
|
import w from "axios";
|
|
9
9
|
import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as N, caculateShowCondition as I, getVariableValue as v, setVariableValue as x } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
@@ -234,9 +234,24 @@ const D = { save: function(e2) {
|
|
|
234
234
|
}(e2);
|
|
235
235
|
}, extractWorkflow: function(e2) {
|
|
236
236
|
return function(e3) {
|
|
237
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl;
|
|
238
|
+
let a2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
239
|
+
const i2 = te(e3);
|
|
240
|
+
if (t2.completeTaskParam) {
|
|
241
|
+
const s3 = [];
|
|
242
|
+
e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3 };
|
|
243
|
+
}
|
|
244
|
+
return new Promise((t3, s3) => {
|
|
245
|
+
const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
|
|
246
|
+
if (a2 = o(a2, r2, p2, n2.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
247
|
+
const d2 = c.post(a2, i2);
|
|
248
|
+
d2 && d2.then((s4) => {
|
|
249
|
+
let o2 = true;
|
|
250
|
+
s4 && (o2 = se(s4, false, n2, e3, null)), true === o2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t3(true);
|
|
251
|
+
}).catch((e4) => {
|
|
252
|
+
s3(e4);
|
|
253
|
+
});
|
|
254
|
+
});
|
|
240
255
|
}(e2);
|
|
241
256
|
}, cancelExtractWorkflow: function(e2) {
|
|
242
257
|
return function(e3) {
|
|
@@ -320,7 +335,7 @@ function W(e2) {
|
|
|
320
335
|
let o2 = null;
|
|
321
336
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
322
337
|
const a2 = o2 ? o2.state : void 0;
|
|
323
|
-
o2 && (o2.state = "disabled"),
|
|
338
|
+
o2 && (o2.state = "disabled"), N(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
324
339
|
o2 && (o2.state = a2);
|
|
325
340
|
}).catch(() => {
|
|
326
341
|
o2 && (o2.state = a2);
|
|
@@ -478,7 +493,7 @@ function z(e2, t2, s2, n2, o2) {
|
|
|
478
493
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
479
494
|
const t4 = e4.source;
|
|
480
495
|
if (!t4) return;
|
|
481
|
-
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 =
|
|
496
|
+
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = M(null, i2);
|
|
482
497
|
x(s3.entity, r2, a3);
|
|
483
498
|
});
|
|
484
499
|
}
|
|
@@ -559,13 +574,13 @@ function Z(e2, s2) {
|
|
|
559
574
|
P2 && f2.append("functionCode", P2);
|
|
560
575
|
const R2 = re(a2);
|
|
561
576
|
f2.append("additionalParamMapStr", JSON.stringify(R2));
|
|
562
|
-
const
|
|
563
|
-
f2.append("isPermission",
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
let v2 = n(
|
|
568
|
-
v2 = o(v2,
|
|
577
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
578
|
+
f2.append("isPermission", M2 + "");
|
|
579
|
+
const N2 = a2.systemCode;
|
|
580
|
+
N2 && f2.append("systemCode", N2);
|
|
581
|
+
const I2 = a2.backendUrl;
|
|
582
|
+
let v2 = n(I2, a2.isTest) + "/dsc/commons/import-data";
|
|
583
|
+
v2 = o(v2, N2, I2, a2.isTest), c.post(v2, f2).then((e3) => {
|
|
569
584
|
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
570
585
|
else {
|
|
571
586
|
let t2 = false;
|
|
@@ -652,7 +667,7 @@ function oe(e2) {
|
|
|
652
667
|
let s3 = false;
|
|
653
668
|
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
|
|
654
669
|
const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
655
|
-
s3 =
|
|
670
|
+
s3 = I(t3, o2);
|
|
656
671
|
}
|
|
657
672
|
true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
|
|
658
673
|
t2(e3);
|
|
@@ -706,7 +721,7 @@ async function ue(e2, t2) {
|
|
|
706
721
|
if (void 0 === s4 || true === s4) {
|
|
707
722
|
s4 = true;
|
|
708
723
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
709
|
-
s4 =
|
|
724
|
+
s4 = I(t4, o2);
|
|
710
725
|
}
|
|
711
726
|
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
712
727
|
t3(e4);
|
|
@@ -840,10 +855,11 @@ function ge(e2, t2, s2, n2, o2) {
|
|
|
840
855
|
return false;
|
|
841
856
|
}(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
842
857
|
var _a;
|
|
843
|
-
const n3 = d()
|
|
858
|
+
const n3 = d();
|
|
859
|
+
const o3 = n3 ? n3.loginName : null;
|
|
844
860
|
if (e3 == null ? void 0 : e3.processState) {
|
|
845
861
|
if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
|
|
846
|
-
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
862
|
+
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
847
863
|
}
|
|
848
864
|
return false;
|
|
849
865
|
}(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./extract-workflow-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = t(r, [["__scopeId", "data-v-
|
|
4
|
+
const e = t(r, [["__scopeId", "data-v-51207a9f"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -18,7 +18,10 @@ const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" },
|
|
|
18
18
|
}
|
|
19
19
|
function B() {
|
|
20
20
|
U.value.validate((e3, l2) => {
|
|
21
|
-
e3
|
|
21
|
+
if (e3) {
|
|
22
|
+
const e4 = { loginName: R.value.loginName, opinion: R.value.opinion };
|
|
23
|
+
C(e4, V.pageContext, V.configure, "click");
|
|
24
|
+
}
|
|
22
25
|
});
|
|
23
26
|
}
|
|
24
27
|
return a(() => {
|
package/dist/es/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.14-
|
|
3
|
+
"version": "2.3.14-sit3",
|
|
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.1.54-
|
|
51
|
+
"agilebuilder-ui": "1.1.54-sit2",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|