ddy-process-h5 1.0.1-rc.2.33 → 1.0.1-rc.2.37
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/package.json +1 -1
- package/v2/ddy-process-h5.js +263 -261
- package/v2/ddy-process-h5.umd.cjs +9 -9
- package/v2.7/ddy-process-h5.js +17 -15
- package/v2.7/ddy-process-h5.umd.cjs +1 -1
- package/v3/ddy-process-h5.js +17 -15
- package/v3/ddy-process-h5.umd.cjs +1 -1
package/v2.7/ddy-process-h5.js
CHANGED
|
@@ -17028,13 +17028,13 @@ const ku = /* @__PURE__ */ function() {
|
|
|
17028
17028
|
multiNodeParticipant: this.multiNodeParticipant,
|
|
17029
17029
|
firstNodeId: this.firstPerson && this.firstPerson.length > 0 ? this.firstPerson[0].id : "",
|
|
17030
17030
|
vars: {
|
|
17031
|
-
processBusinessKey: this.extraParams.businessKey,
|
|
17031
|
+
processBusinessKey: this.id || this.extraParams.businessKey,
|
|
17032
17032
|
showType: "all",
|
|
17033
17033
|
subjectId: this.businessSubjectId,
|
|
17034
17034
|
deptId: this.businessDeptIdData,
|
|
17035
17035
|
businessType: this.businessType,
|
|
17036
17036
|
name: this.extraParams.name,
|
|
17037
|
-
title: this.extraParams.title,
|
|
17037
|
+
title: this.title || this.extraParams.title,
|
|
17038
17038
|
applyUserId: this.extraParams.applyUserId
|
|
17039
17039
|
}
|
|
17040
17040
|
};
|
|
@@ -21941,7 +21941,7 @@ const k0 = /* @__PURE__ */ function() {
|
|
|
21941
21941
|
const n = ((this.ProcessInsObj.process || {}).variables || {}).deptId;
|
|
21942
21942
|
this.deptId = n;
|
|
21943
21943
|
const r = (this.ProcessInsObj.process || {}).taskId;
|
|
21944
|
-
this.absoluteTaskId = r, this.approvalData = (t.data || {}).flow || [], this.processXml = ((t.data || {}).process || {}).xml || "";
|
|
21944
|
+
this.absoluteTaskId = r, this.approvalData = (t.data || {}).flow || [], this.processXml = ((t.data || {}).process || {}).xml || "", this.handleGetProcessStatus();
|
|
21945
21945
|
}
|
|
21946
21946
|
}), this.getCurrentProcess(), this.getUserInfo());
|
|
21947
21947
|
},
|
|
@@ -22081,10 +22081,10 @@ const k0 = /* @__PURE__ */ function() {
|
|
|
22081
22081
|
if (console.log(e, "res"), e.code == 200) {
|
|
22082
22082
|
const i = {};
|
|
22083
22083
|
if (i.currentProcessOriginData = e.data || [], i.currentProcessOriginData.length > 0) {
|
|
22084
|
-
let t = i.currentProcessOriginData[0], s = (t.currentName || "").split(",");
|
|
22085
|
-
s = s.map((
|
|
22086
|
-
realName:
|
|
22087
|
-
avatar: "",
|
|
22084
|
+
let t = i.currentProcessOriginData[0], s = (t.currentName || "").split(","), n = (t.avatar || "").split(",");
|
|
22085
|
+
s = s.map((r, a) => ({
|
|
22086
|
+
realName: r,
|
|
22087
|
+
avatar: n[a] || "",
|
|
22088
22088
|
phone: "",
|
|
22089
22089
|
ancestorNames: []
|
|
22090
22090
|
})), i.currentMan = s, i.currentFirstNode = t, this.currentProcess = i;
|
|
@@ -22312,19 +22312,21 @@ const k0 = /* @__PURE__ */ function() {
|
|
|
22312
22312
|
this.taskNode = [].concat(e), this.taskNodeShow = !1, this.actionShow = !1, this.handleGetProcessStatus(), this.handleGetUserTaskModel();
|
|
22313
22313
|
},
|
|
22314
22314
|
handleGetProcessStatus() {
|
|
22315
|
-
this.handleTips("", !0, "loading"), this.request.get("/
|
|
22315
|
+
this.handleTips("", !0, "loading"), this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId", {
|
|
22316
22316
|
params: {
|
|
22317
|
-
|
|
22318
|
-
taskId: this.taskNode.length ? this.taskNode[0].taskId : ""
|
|
22317
|
+
taskId: this.absoluteTaskId || ""
|
|
22319
22318
|
}
|
|
22320
22319
|
}).then((e) => {
|
|
22321
|
-
e.code == 200 && (this.processStatus =
|
|
22322
|
-
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22320
|
+
e.code == 200 && (this.processStatus = {
|
|
22321
|
+
...e.data || {},
|
|
22322
|
+
...e.data.vars ? e.data.vars : {},
|
|
22323
|
+
bizStatusName: e.data.taskState,
|
|
22324
|
+
currUserName: e.data.currentName,
|
|
22325
|
+
allUserNames: e.data.currentName
|
|
22326
|
+
}), this.handleGetHeight(), this.handleTips("", !1, "success");
|
|
22326
22327
|
}).catch((e) => {
|
|
22327
22328
|
this.handleGetHeight();
|
|
22329
|
+
}).finally(() => {
|
|
22328
22330
|
});
|
|
22329
22331
|
},
|
|
22330
22332
|
handleGetUserTaskModel() {
|