ddy-process-pc-vue3 1.0.1-rc.3.109 → 1.0.1-rc.3.130

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-pc-vue3",
3
- "version": "1.0.1-rc.3.109",
3
+ "version": "1.0.1-rc.3.130",
4
4
  "description": "> pc端流程组件",
5
5
  "main": "./ddy-process-pc-vue3.umd.cjs",
6
6
  "style": "./style.css",
@@ -16,7 +16,7 @@ function oN(e, i) {
16
16
  }
17
17
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
18
18
  }
19
- const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.109", cN = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", uN = "./ddy-process-pc-vue3.umd.cjs", dN = "./style.css", fN = "module", pN = {
19
+ const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.130", cN = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", uN = "./ddy-process-pc-vue3.umd.cjs", dN = "./style.css", fN = "module", pN = {
20
20
  ".": {
21
21
  import: "./ddy-process-pc-vue3.js",
22
22
  require: "./ddy-process-pc-vue3.umd.cjs"
@@ -5854,7 +5854,28 @@ var uR = function() {
5854
5854
  var e = this, i = e.$createElement, n = e._self._c || i;
5855
5855
  return n("div", {
5856
5856
  staticClass: "user-task"
5857
- }, [e.processNodeObj.nodeType == "exclusiveGateway" && e.processNodeObj.branches && e.processNodeObj.branches.length >= 1 ? [e.processNodeObj.branches.length > 1 ? n("el-form-item", {
5857
+ }, [e.processNodeObj.type == "endEvent" ? [n("el-form-item", {
5858
+ staticStyle: {
5859
+ "margin-bottom": "10px"
5860
+ },
5861
+ attrs: {
5862
+ label: e.lv1label || "\u8282\u70B9\u540D\u79F0"
5863
+ },
5864
+ scopedSlots: e._u([{
5865
+ key: "label",
5866
+ fn: function(a) {
5867
+ return a.label, [n("div", {
5868
+ staticStyle: {
5869
+ "font-size": "16px"
5870
+ }
5871
+ }, [e._v(e._s(e.lv1label || "\u8282\u70B9\u540D\u79F0"))])];
5872
+ }
5873
+ }], null, !1, 51654731)
5874
+ }, [n("b", {
5875
+ staticStyle: {
5876
+ "font-size": "16px"
5877
+ }
5878
+ }, [e._v(e._s(e.processNodeObj.name))])])] : e.processNodeObj.nodeType == "exclusiveGateway" && e.processNodeObj.branches && e.processNodeObj.branches.length >= 1 ? [e.processNodeObj.branches.length > 1 ? n("el-form-item", {
5858
5879
  attrs: {
5859
5880
  label: e.processNodeObj.name || "\u4E0B\u4E00\u8282\u70B9"
5860
5881
  }
@@ -6128,7 +6149,7 @@ const fR = {
6128
6149
  watch: {
6129
6150
  processNode: {
6130
6151
  handler(e, i) {
6131
- e.nodeType == "userTask" && e.setPersonnel && e.assignees && e.assignees.length > 0 && (this.targetUserId = e.assignees.map((n) => n.id)), e.userList && e.userList.length == 1 && (this.targetUserId = e.userList[0].userId), this.processNodeObj = e || {};
6152
+ e.nodeType == "userTask" && e.setPersonnel && e.assignees && e.assignees.length > 0 && (this.targetUserId = e.assignees.map((n) => n.id)), e.userList && e.userList.length == 1 && (this.targetUserId = e.userList[0].userId), this.processNodeObj = e || {}, this.processNodeObj.type == "endEvent" && this.$emit("complete", this.processNodeObj);
6132
6153
  },
6133
6154
  deep: !0,
6134
6155
  immediate: !0
@@ -6558,6 +6579,9 @@ var xR = function() {
6558
6579
  required: !0,
6559
6580
  message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"
6560
6581
  }]
6582
+ },
6583
+ on: {
6584
+ complete: e.complete
6561
6585
  }
6562
6586
  })] : [n("el-form-item", {
6563
6587
  attrs: {
@@ -6579,6 +6603,9 @@ var xR = function() {
6579
6603
  pType: e.param.nextTaskNode.nodeType,
6580
6604
  REQUIRED: !(a.setPersonnel == !0 && a.assignees && a.assignees.length > 0)
6581
6605
  })
6606
+ },
6607
+ on: {
6608
+ complete: e.complete
6582
6609
  }
6583
6610
  });
6584
6611
  }) : e.param.outGatewayUserTaskModel && e.param.outGatewayUserTaskModel.length > 0 ? e._l(e.param.outGatewayUserTaskModel, function(a) {
@@ -6592,6 +6619,9 @@ var xR = function() {
6592
6619
  processNode: Object.assign({}, a, {
6593
6620
  REQUIRED: !(a.setPersonnel == !0 && a.assignees && a.assignees.length > 0)
6594
6621
  })
6622
+ },
6623
+ on: {
6624
+ complete: e.complete
6595
6625
  }
6596
6626
  });
6597
6627
  }) : e.param.nextTaskNode.nodeType == "exclusiveGateway" && e.param.nextTaskNode.branches && e.param.nextTaskNode.branches.length == 1 ? [e.param.nextTaskNode.nodeType != "endEvent" ? [e.param.nextTaskNode.branches[0].nodeInfoDTO && e.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent" ? n("userTask", {
@@ -6608,6 +6638,9 @@ var xR = function() {
6608
6638
  required: !0,
6609
6639
  message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"
6610
6640
  }]
6641
+ },
6642
+ on: {
6643
+ complete: e.complete
6611
6644
  }
6612
6645
  }) : !e.param.nextTaskNode.branches[0].nodeInfoDTO && e.param.nextTaskNode.branches[0].nodeType != "endEvent" ? n("userTask", {
6613
6646
  key: e.param.nextTaskNode.branches[0].id,
@@ -6623,6 +6656,9 @@ var xR = function() {
6623
6656
  required: !0,
6624
6657
  message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"
6625
6658
  }]
6659
+ },
6660
+ on: {
6661
+ complete: e.complete
6626
6662
  }
6627
6663
  }) : [n("el-form-item", {
6628
6664
  attrs: {
@@ -6654,6 +6690,9 @@ var xR = function() {
6654
6690
  required: !0,
6655
6691
  message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"
6656
6692
  }]
6693
+ },
6694
+ on: {
6695
+ complete: e.complete
6657
6696
  }
6658
6697
  })] : [n("el-form-item", {
6659
6698
  attrs: {
@@ -6679,6 +6718,9 @@ var xR = function() {
6679
6718
  required: !0,
6680
6719
  message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"
6681
6720
  }]
6721
+ },
6722
+ on: {
6723
+ complete: e.complete
6682
6724
  }
6683
6725
  });
6684
6726
  }) : e._e()], e._t("form"), n("el-dialog", {
@@ -6724,6 +6766,7 @@ const ER = {
6724
6766
  },
6725
6767
  data() {
6726
6768
  return {
6769
+ nextTaskObj: {},
6727
6770
  commentMsg: "",
6728
6771
  targetUser: [],
6729
6772
  userTaskListData: {},
@@ -6745,6 +6788,9 @@ const ER = {
6745
6788
  }
6746
6789
  },
6747
6790
  methods: {
6791
+ complete(e) {
6792
+ this.nextTaskObj = e;
6793
+ },
6748
6794
  setItemRef(e) {
6749
6795
  return this.userTaskListData[e] = "userTask" + e, this.userTaskListData[e];
6750
6796
  },
@@ -6794,7 +6840,7 @@ const ER = {
6794
6840
  let w = B.getValue();
6795
6841
  if (w && w.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((k) => {
6796
6842
  w.vars[k.itemName] || (w.vars[k.itemName] = "");
6797
- }), !w)
6843
+ }), !w && this.nextTaskObj.type != "endEvent")
6798
6844
  return !1;
6799
6845
  let T = [];
6800
6846
  const _ = this.param.nextTaskNode;
@@ -6813,13 +6859,13 @@ const ER = {
6813
6859
  ...a.multiNodeParticipant,
6814
6860
  [this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((g) => g.id)
6815
6861
  };
6816
- else if (!Object.keys(a.multiNodeParticipant).length)
6862
+ else if (!Object.keys(a.multiNodeParticipant).length && this.nextTaskObj.type != "endEvent")
6817
6863
  return Iu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
6818
6864
  }
6819
6865
  }
6820
6866
  if (a.pass = !0, Date.now() && this.param, this.param.getVars) {
6821
6867
  let s = this.param.getVars();
6822
- if (s === !1)
6868
+ if (s === !1 && this.nextTaskObj.type != "endEvent")
6823
6869
  return !1;
6824
6870
  a.vars = { ...a.vars, ...s };
6825
6871
  }
@@ -6859,7 +6905,7 @@ const ER = {
6859
6905
  let p = this.userTaskListData[c], m = this.$refs[p].$el ? this.$refs[p] : this.$refs[p][0];
6860
6906
  m.getValue;
6861
6907
  let g = m.getValue();
6862
- if (!g)
6908
+ if (!g && this.nextTaskObj.type != "endEvent")
6863
6909
  return !1;
6864
6910
  e.multiNodeParticipant = {
6865
6911
  ...e.multiNodeParticipant,
@@ -6873,12 +6919,12 @@ const ER = {
6873
6919
  ...e.multiNodeParticipant,
6874
6920
  [this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((c) => c.id)
6875
6921
  };
6876
- else if (!Object.keys(e.multiNodeParticipant).length)
6922
+ else if (!Object.keys(e.multiNodeParticipant).length && this.nextTaskObj.type != "endEvent")
6877
6923
  return Iu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
6878
6924
  }
6879
6925
  if (this.param.getVars) {
6880
6926
  let c = this.param.getVars();
6881
- if (c === !1)
6927
+ if (c === !1 && this.nextTaskObj.type != "endEvent")
6882
6928
  return !1;
6883
6929
  e.vars = { ...e.vars, ...c };
6884
6930
  }
@@ -6914,7 +6960,7 @@ var CR = /* @__PURE__ */ li(
6914
6960
  wR,
6915
6961
  !1,
6916
6962
  kR,
6917
- "0dd5ddd2",
6963
+ "7f9f1489",
6918
6964
  null,
6919
6965
  null
6920
6966
  );