ddy-process-h5 1.0.1-rc.2.45 → 1.0.1-rc.2.49

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddy-process-h5",
3
- "version": "1.0.1-rc.2.45",
3
+ "version": "1.0.1-rc.2.49",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ddy-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -19283,7 +19283,7 @@ const O0 = {
19283
19283
  };
19284
19284
  t.userTaskModelDTO.routeTxt.postList.map((n) => {
19285
19285
  s.postIds.push(n.postId);
19286
- }), console.error("1"), this.param.request.post("/auth/user/getTaskAuditor", {
19286
+ }), this.param.request.post("/auth/user/getTaskAuditor", {
19287
19287
  deptId: this.param.taskNode && this.param.taskNode[0].vars ? this.param.taskNode[0].vars._businessDeptId : "",
19288
19288
  taskPostIds: [s]
19289
19289
  }).then((n) => {
@@ -19350,12 +19350,12 @@ const O0 = {
19350
19350
  i && i.length && i.forEach((t, s) => {
19351
19351
  t.participantList && t.participantList.length ? t.participantList.forEach((n, r) => {
19352
19352
  this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.partNodeArr[t.id] || (this.partNodeArr[t.id] = []), this.multiNodeParticipant[t.id].includes(n.id) || this.multiNodeParticipant[t.id].push(n.id), this.partNode[t.id].includes(n.name) || this.partNode[t.id].push(n.name), this.partNodeArr[t.id].find((a) => a.name == n.name) || this.partNodeArr[t.id].push(n);
19353
- }) : t.id && t.humanPerformerName == "\u56FA\u5B9A\u4EBA\u5458" && (console.error("1"), this.param.request.post(
19353
+ }) : t.id && t.humanPerformerName == "\u56FA\u5B9A\u4EBA\u5458" && this.param.request.post(
19354
19354
  `/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
19355
19355
  { userTaskDefIds: [t.id] }
19356
19356
  ).then((n) => {
19357
19357
  n.code == 200 && (this.partNode[t.id] = {}, this.partNode[t.id] = n.data[t.id].split(";"));
19358
- })), this.nodeType == "outing" && (this.onVarsData && (this.gateVars = {
19358
+ }), this.nodeType == "outing" && (this.onVarsData && (this.gateVars = {
19359
19359
  ...this.gateVars,
19360
19360
  ...this.onVarsData
19361
19361
  }), this.$emit("onVars", this.gateVars));
@@ -19410,7 +19410,7 @@ const O0 = {
19410
19410
  id: s.id,
19411
19411
  subjectId: s.subjectId
19412
19412
  });
19413
- }), console.error(this.param.request, "param"), this.entity = {
19413
+ }), this.entity = {
19414
19414
  source: "1",
19415
19415
  type: this.param.isCheckType || "0",
19416
19416
  orgType: this.param.isOrgType || [0],
@@ -19480,7 +19480,7 @@ const O0 = {
19480
19480
  id: t.id,
19481
19481
  subjectId: t.subjectId
19482
19482
  });
19483
- }), console.error(this.param.request, "par"), this.entity = {
19483
+ }), this.entity = {
19484
19484
  source: "1",
19485
19485
  type: this.param.isCheckType || "0",
19486
19486
  orgType: this.param.isOrgType || [0],
@@ -19515,7 +19515,7 @@ var B0 = /* @__PURE__ */ ge(
19515
19515
  M0,
19516
19516
  !1,
19517
19517
  R0,
19518
- "41930bfa",
19518
+ "4064b34c",
19519
19519
  null,
19520
19520
  null
19521
19521
  );
@@ -19550,7 +19550,7 @@ var F0 = function() {
19550
19550
  })], 2) : s.nodeType == "exclusiveGateway" && s.branches.length == 1 ? t("div", {
19551
19551
  staticClass: "treeperson-firstnode"
19552
19552
  }, e._l(s.branches, function(r, a) {
19553
- return t("div", [t("span"), t("TreePerson", {
19553
+ return t("div", [t("span"), t("tree-person", {
19554
19554
  ref: "TreePersonRef",
19555
19555
  refInFor: !0,
19556
19556
  attrs: {
@@ -19589,7 +19589,7 @@ var F0 = function() {
19589
19589
  }
19590
19590
  }
19591
19591
  }, [t("span"), e._v(" " + e._s(r.nodeInfoDTO ? r.nodeInfoDTO.nodeName || r.nodeInfoDTO.name : r.nodeName || r.name) + " ")]);
19592
- })], 2), e.childrenItems && e.childrenItems.length > 0 && e.childrenItems[0].nodeInfoDTO && e.childrenItems[0].nodeInfoDTO.nodeType != "userTask" ? [t("TreePerson", {
19592
+ })], 2), e.childrenItems && e.childrenItems.length > 0 && e.childrenItems[0].nodeInfoDTO && e.childrenItems[0].nodeInfoDTO.nodeType != "userTask" ? [t("tree-person", {
19593
19593
  key: e.firstCheck,
19594
19594
  ref: "TreePersonRef",
19595
19595
  refInFor: !0,
@@ -19742,7 +19742,7 @@ var F0 = function() {
19742
19742
  }
19743
19743
  }
19744
19744
  }, [t("span"), e._v(" " + e._s(r.nodeName || r.name) + " ")]);
19745
- }), t("TreePerson", {
19745
+ }), t("tree-person", {
19746
19746
  key: e.firstCheck,
19747
19747
  ref: "TreePersonRef",
19748
19748
  refInFor: !0,
@@ -19923,7 +19923,7 @@ const j0 = {
19923
19923
  onMultiNode(e, i = "") {
19924
19924
  i && Object.prototype.toString.call(e) == "[object Object]" ? Object.prototype.toString.call(this.multiNode) == "[object Object]" ? Object.keys(e).forEach((t) => {
19925
19925
  e[t] || (e[t] = [""]), e[t] && e[t].length >= 1 ? this.multiNode[t] = e[t].filter((s) => s) : this.multiNode[t] = e[t];
19926
- }) : this.multiNode = e : this.multiNode = e, console.error(JSON.parse(JSON.stringify(e)), "onMultiNode \u8282\u70B9\u4FEE\u6539", JSON.parse(JSON.stringify(this.multiNode))), this.$emit("onMultiNode", this.multiNode);
19926
+ }) : this.multiNode = e : this.multiNode = e, this.$emit("onMultiNode", this.multiNode);
19927
19927
  },
19928
19928
  onMultiNodeObj(e) {
19929
19929
  this.partNodeArr = e, this.$emit("onMultiNodeObj", this.partNodeArr);
@@ -19941,14 +19941,14 @@ const j0 = {
19941
19941
  },
19942
19942
  handleMultiFirstNodeClick(e, i = []) {
19943
19943
  let t = e;
19944
- if (console.error(t, "\u70B9\u51FB\u8282\u70B9"), t && t.nodeInfoDTO && (t = t.nodeInfoDTO), this.firstMultiCheck.includes(t.id)) {
19944
+ if (t && t.nodeInfoDTO && (t = t.nodeInfoDTO), this.firstMultiCheck.includes(t.id)) {
19945
19945
  this.firstMultiCheck = this.firstMultiCheck.filter((s) => s != t.id), this.firstMultiCheckItem = this.firstMultiCheckItem.filter((s) => s.id != t.id), this.firstMultiType = this.firstMultiType.filter((s) => s != t.nodeType), delete this.param.selChildrenItems[t.id];
19946
19946
  return;
19947
19947
  }
19948
19948
  if (t) {
19949
19949
  this.firstMultiCheck.push(t.id), this.firstMultiCheckItem.push(t), this.firstMultiType.push(t.nodeType);
19950
19950
  let s = [t];
19951
- t.branches && t.branches.length ? (this.childrenItems = t.branches, this.childrenEndItems = !1) : (this.childrenItems = [t], this.childrenEndItems = !0), console.error("\u4FEE\u6539\u503C", this.param.selChildrenItems, i), i.forEach((n) => {
19951
+ t.branches && t.branches.length ? (this.childrenItems = t.branches, this.childrenEndItems = !1) : (this.childrenItems = [t], this.childrenEndItems = !0), i.forEach((n) => {
19952
19952
  delete this.param.selChildrenItems[n.id], this.param.selChildrenItems[t.id] = (this.childrenItems || []).map((r) => r.nodeInfoDTO || r);
19953
19953
  }), this.gateVars = {}, s.forEach((n) => {
19954
19954
  (!this.param || !this.param.vars) && (this.param.vars = {}), Array.isArray(n.incomingConditionItemList) && n.incomingConditionItemList.length > 0 && (this.param.vars[n.incomingConditionItemList[0].itemName] = n.incomingConditionItemList[0].compareValue, this.gateVars[n.incomingConditionItemList[0].itemName] = n.incomingConditionItemList[0].compareValue);
@@ -19957,7 +19957,7 @@ const j0 = {
19957
19957
  },
19958
19958
  handleMultiFirstNodeClickSub(e, i = []) {
19959
19959
  let t = e;
19960
- if (console.error(t, "\u70B9\u51FB\u8282\u70B9", i, this.childrenItemsSub), t && t.nodeInfoDTO && (t = t.nodeInfoDTO), this.firstMultiCheckSub.includes(t.id)) {
19960
+ if (t && t.nodeInfoDTO && (t = t.nodeInfoDTO), this.firstMultiCheckSub.includes(t.id)) {
19961
19961
  this.firstMultiCheckSub = this.firstMultiCheckSub.filter((s) => s != t.id), this.firstMultiCheckItemSub = this.firstMultiCheckItemSub.filter((s) => s.id != t.id), this.firstMultiTypeSub = this.firstMultiTypeSub.filter((s) => s != t.nodeType), this.childrenItemsSub = this.childrenItemsSub.filter((s) => s.id != t.id), i.forEach((s) => {
19962
19962
  delete this.param.selChildrenItems[s.nodeInfoDTO ? s.nodeInfoDTO.id : s.id];
19963
19963
  }), delete this.param.selChildrenItems[t.id];
@@ -19966,7 +19966,7 @@ const j0 = {
19966
19966
  if (t) {
19967
19967
  this.firstMultiCheckSub.push(t.id), this.firstMultiCheckItemSub.push(t), this.firstMultiTypeSub.push(t.nodeType);
19968
19968
  let s = [t];
19969
- t.branches && t.branches.length ? (this.childrenItemsSub.push(t.branches), this.childrenEndItemsSub = !1) : (this.childrenItemsSub.push(t), this.childrenEndItemsSub = !0), console.error("\u4FEE\u6539\u503C", this.param.selChildrenItems, i), i.forEach((n) => {
19969
+ t.branches && t.branches.length ? (this.childrenItemsSub.push(t.branches), this.childrenEndItemsSub = !1) : (this.childrenItemsSub.push(t), this.childrenEndItemsSub = !0), i.forEach((n) => {
19970
19970
  delete this.param.selChildrenItems[n.nodeInfoDTO ? n.nodeInfoDTO.id : n.id], this.param.selChildrenItems[t.id] = (this.childrenItemsSub || []).map((r) => r.nodeInfoDTO || r);
19971
19971
  }), this.gateVars = {}, s.forEach((n) => {
19972
19972
  (!this.param || !this.param.vars) && (this.param.vars = {}), Array.isArray(n.incomingConditionItemList) && n.incomingConditionItemList.length > 0 && (this.param.vars[n.incomingConditionItemList[0].itemName] = n.incomingConditionItemList[0].compareValue, this.gateVars[n.incomingConditionItemList[0].itemName] = n.incomingConditionItemList[0].compareValue);
@@ -19975,10 +19975,10 @@ const j0 = {
19975
19975
  },
19976
19976
  handleFirstNodeClick(e, i = []) {
19977
19977
  let t = e;
19978
- if (console.error(t, "\u70B9\u51FB\u8282\u70B9", i), t && t.nodeInfoDTO && (t = t.nodeInfoDTO), t) {
19978
+ if (t && t.nodeInfoDTO && (t = t.nodeInfoDTO), t) {
19979
19979
  this.firstCheck = t.id, this.firstCheckItem = t, this.firstType = t.nodeType;
19980
19980
  let s = [t];
19981
- t.branches && t.branches.length ? (this.childrenItems = t.branches, this.childrenEndItems = !1) : (this.childrenItems = [t], this.childrenEndItems = !0), console.error("\u4FEE\u6539\u503C2", this.param.selChildrenItems, i), i.forEach((n) => {
19981
+ t.branches && t.branches.length ? (this.childrenItems = t.branches, this.childrenEndItems = !1) : (this.childrenItems = [t], this.childrenEndItems = !0), i.forEach((n) => {
19982
19982
  const r = this.param.selChildrenItems[n.nodeInfoDTO ? n.nodeInfoDTO.id : n.id];
19983
19983
  Array.isArray(r) && r.forEach((a) => {
19984
19984
  delete this.param.selChildrenItems[a.id];
@@ -19996,7 +19996,7 @@ var Q0 = /* @__PURE__ */ ge(
19996
19996
  V0,
19997
19997
  !1,
19998
19998
  U0,
19999
- "6f3df13a",
19999
+ "139c9c86",
20000
20000
  null,
20001
20001
  null
20002
20002
  );
@@ -20717,9 +20717,7 @@ const sC = {
20717
20717
  },
20718
20718
  isSelectPerson() {
20719
20719
  if (this.pureTip = !1, this.nextNodeData, this.taskNode, this.multiNodeParticipant, this.$refs.TreePersonRef, this.param, Array.isArray(this.nextNodeData) && this.nextNodeData[0].nodeType != "endEvent") {
20720
- let e = this.param.selChildrenItems || {};
20721
- console.error(e, "selChildrenItemsObj");
20722
- let i = [];
20720
+ let e = this.param.selChildrenItems || {}, i = [];
20723
20721
  if (Object.keys(e).filter((s) => s.startsWith("Activity")).forEach((s) => {
20724
20722
  i = i.concat(e[s]);
20725
20723
  }), i.length == 0 && Object.values(e).forEach((s) => {
@@ -20757,9 +20755,7 @@ const sC = {
20757
20755
  } else
20758
20756
  return !1;
20759
20757
  if (this.nextNodeData.nodeType != "endEvent") {
20760
- let e = this.param.selChildrenItems || {};
20761
- console.error(e, "selChildrenItemsObj");
20762
- let i = [];
20758
+ let e = this.param.selChildrenItems || {}, i = [];
20763
20759
  if (Object.keys(e).filter((s) => s.startsWith("Activity")).forEach((s) => {
20764
20760
  i = i.concat(e[s]);
20765
20761
  }), i.length == 0 && Object.values(e).forEach((s) => {
@@ -20801,7 +20797,7 @@ const sC = {
20801
20797
  if (e != "\u56FA\u5B9A\u8D26\u6237" && e != "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173" && JSON.stringify(this.multiNodeParticipant) == "{}")
20802
20798
  return this.nextNodeData[0].userTaskModelDTO.name;
20803
20799
  }
20804
- return console.error("\u8FD4\u56DEtrue"), this.pureTip = !0, "\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9";
20800
+ return this.pureTip = !0, "\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9";
20805
20801
  },
20806
20802
  signRequired() {
20807
20803
  return !!this.param.extendedProperties.find((i) => i.name == "signature");
@@ -21107,7 +21103,7 @@ const sC = {
21107
21103
  }
21108
21104
  }
21109
21105
  } else {
21110
- if (console.error(this.multiNodeParticipant, "\u6D4B\u8BD5 multiNodeParticipant \u7A7A\u503C\u60C5\u51B5"), this.multiNodeParticipant[this.partObjId] && !this.multiNodeParticipant[this.partObjId].length) {
21106
+ if (this.multiNodeParticipant[this.partObjId] && !this.multiNodeParticipant[this.partObjId].length) {
21111
21107
  this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!", !1, "success");
21112
21108
  return;
21113
21109
  }
@@ -21308,7 +21304,7 @@ var nC = /* @__PURE__ */ ge(
21308
21304
  iC,
21309
21305
  !1,
21310
21306
  rC,
21311
- "d95fd998",
21307
+ "1aa8cf78",
21312
21308
  null,
21313
21309
  null
21314
21310
  );
@@ -22671,7 +22667,7 @@ const _C = /* @__PURE__ */ function() {
22671
22667
  this.handleWithdrawTask("\u64A4\u9500"), this.handleActionClose();
22672
22668
  }, e.push(s);
22673
22669
  }
22674
- return console.error(e, "btnList"), e;
22670
+ return e;
22675
22671
  },
22676
22672
  processCardHeight() {
22677
22673
  let e = this.topNum + this.bottomNum - 10;
@@ -22904,7 +22900,7 @@ const _C = /* @__PURE__ */ function() {
22904
22900
  if (t.data && t.data.length) {
22905
22901
  for (let s = 0; s < t.data.length; s++) {
22906
22902
  let n = t.data[s];
22907
- n.incomingConditionItemList && n.incomingConditionItemList.length !== 0 && (n.nodeInfoDTO.incomingConditionItemList = n.incomingConditionItemList, console.error(n.incomingConditionItemList, "o.incomingConditionItemList"), this.incomingConditionItemList.push(...n.incomingConditionItemList)), n.nodeInfoDTO.nodeType != "userTask" && (n.nodeInfoDTO.branches = await this.getOutgoingProcessNode(e, n.nodeInfoDTO.id));
22903
+ n.incomingConditionItemList && n.incomingConditionItemList.length !== 0 && (n.nodeInfoDTO.incomingConditionItemList = n.incomingConditionItemList, this.incomingConditionItemList.push(...n.incomingConditionItemList)), n.nodeInfoDTO.nodeType != "userTask" && (n.nodeInfoDTO.branches = await this.getOutgoingProcessNode(e, n.nodeInfoDTO.id));
22908
22904
  }
22909
22905
  return this.handleTips("", !1, "success"), t.data;
22910
22906
  }
@@ -22945,7 +22941,7 @@ const _C = /* @__PURE__ */ function() {
22945
22941
  }) : this.$refs.topTips.handleClose();
22946
22942
  },
22947
22943
  async showOperation(e, i, t, s, n) {
22948
- switch (this.beforeFunction && (this.operationParam.beforeFunction = this.beforeFunction), console.error(this.request, "requ"), this.operationParam.request = this.request, this.annexlabel = s || "fasdfsafdsa", this.titleText = i, this.operationCom = e, this.operationComKey = Date.now(), this.operationParam.selChildrenItems = {}, this.operationParam.annex = s || "fasdfsafdsa", this.operationParam.subjectId = this.formData.subjectId, this.operationParam.processInstId = this.processIntId, this.operationParam.taskInstId = (this.ProcessInsObj.process || {}).taskId || "", this.operationParam.variables = (this.ProcessInsObj.process || {}).variables || {}, this.operationParam.extendedProperties = (this.ProcessInsObj.form || {}).extendedProperties || [], this.operationParam.actionName = i, this.operationParam.formData = this.formData, this.operationParam.ProcessInsObj = this.ProcessInsObj, this.operationParam.userInfo = this.user, this.nextTaskNode, this.operationParam.nextNodeData = (this.nextTaskNode || {}).id ? [this.nextTaskNode] : [], this.operationParam.incomingConditionItemList = this.incomingConditionItemList, this.operationParam.outGatewayUserTaskModel = this.outGatewayUserTaskModel, this.operationParam.taskNode = this.taskNode, this.operationParam.appId = this.processStatus.appId, this.operationParam.endFunction = this.endFunction, this.operationParam.isDocument = this.isDocument, this.operationParam.isQuickReply = this.isQuickReply, this.operationParam.isMsg = this.isMsg, this.operationParam.isRequire = this.isRequire, this.operationParam.canCheck = this.canCheck, this.operationParam.isCheckType = this.isCheckType, this.operationParam.isOrgType = this.isOrgType, this.operationParam.isCodeType = this.isCodeType, n) {
22944
+ switch (this.beforeFunction && (this.operationParam.beforeFunction = this.beforeFunction), this.operationParam.request = this.request, this.annexlabel = s || "fasdfsafdsa", this.titleText = i, this.operationCom = e, this.operationComKey = Date.now(), this.operationParam.selChildrenItems = {}, this.operationParam.annex = s || "fasdfsafdsa", this.operationParam.subjectId = this.formData.subjectId, this.operationParam.processInstId = this.processIntId, this.operationParam.taskInstId = (this.ProcessInsObj.process || {}).taskId || "", this.operationParam.variables = (this.ProcessInsObj.process || {}).variables || {}, this.operationParam.extendedProperties = (this.ProcessInsObj.form || {}).extendedProperties || [], this.operationParam.actionName = i, this.operationParam.formData = this.formData, this.operationParam.ProcessInsObj = this.ProcessInsObj, this.operationParam.userInfo = this.user, this.nextTaskNode, this.operationParam.nextNodeData = (this.nextTaskNode || {}).id ? [this.nextTaskNode] : [], this.operationParam.incomingConditionItemList = this.incomingConditionItemList, this.operationParam.outGatewayUserTaskModel = this.outGatewayUserTaskModel, this.operationParam.taskNode = this.taskNode, this.operationParam.appId = this.processStatus.appId, this.operationParam.endFunction = this.endFunction, this.operationParam.isDocument = this.isDocument, this.operationParam.isQuickReply = this.isQuickReply, this.operationParam.isMsg = this.isMsg, this.operationParam.isRequire = this.isRequire, this.operationParam.canCheck = this.canCheck, this.operationParam.isCheckType = this.isCheckType, this.operationParam.isOrgType = this.isOrgType, this.operationParam.isCodeType = this.isCodeType, n) {
22949
22945
  case "\u6284\u9001":
22950
22946
  this.operationParam.visible = !0, this.cctaskTopPopup = !0;
22951
22947
  break;
@@ -23323,7 +23319,7 @@ function OC(e) {
23323
23319
  }
23324
23320
  const zC = /* @__PURE__ */ function() {
23325
23321
  return MC.exports;
23326
- }(), BC = "ddy-process-h5", RC = "1.0.1-rc.2.45", LC = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", FC = "./ddy-process-h5.umd.cjs", VC = "./style.css", jC = "module", QC = {
23322
+ }(), BC = "ddy-process-h5", RC = "1.0.1-rc.2.49", LC = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", FC = "./ddy-process-h5.umd.cjs", VC = "./style.css", jC = "module", QC = {
23327
23323
  ".": {
23328
23324
  import: "./ddy-process-h5.js",
23329
23325
  require: "./ddy-process-h5.umd.cjs"
@@ -23357,8 +23353,8 @@ const zC = /* @__PURE__ */ function() {
23357
23353
  };
23358
23354
  console.info(
23359
23355
  "%c\u26A1" + kl.name + "%c v" + kl.version,
23360
- "background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 12px 4px 12px 4px; border-radius: 3px 0 0 3px;font-size: 24px;",
23361
- "background: #5100ffff; color: white; padding: 12px 6px 12px 4px; border-radius: 0px 3px 3px 0px;font-size: 24px;"
23356
+ "background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;",
23357
+ "background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"
23362
23358
  );
23363
23359
  export {
23364
23360
  zC as TopProcess,