ddy-process-h5 1.0.1-rc.3.97 → 1.0.1-rc.3.99

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.3.97",
3
+ "version": "1.0.1-rc.3.99",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ddy-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -17672,9 +17672,13 @@ var ox = function() {
17672
17672
  timestamp: s.endTime || s.createTime,
17673
17673
  placement: "top"
17674
17674
  }
17675
- }, [i("p", [i("span", {
17675
+ }, [s.historyActivityType == "endEvent" ? i("p", [i("b", [e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]) : s.historyActivityType == "startEvent" ? i("p", [i("span", {
17676
17676
  staticClass: "flow-name"
17677
- }, [e._v(e._s(s.assigneeName || (s.comments && s.comments.length > 0 ? s.comments[s.comments.length - 1].userId : "")))]), e._v(" \u5728 "), i("span", {
17677
+ }, [e._v(e._s(s.assigneeName || (s.comments && s.comments.length > 0 ? e.my(s) : "")))]), e._v(" \u5728 "), i("span", {
17678
+ staticClass: "flow-time"
17679
+ }, [e._v(e._s(s.createTime))]), e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]) : i("p", [i("span", {
17680
+ staticClass: "flow-name"
17681
+ }, [e._v(e._s(s.assigneeName || (s.comments && s.comments.length > 0 ? e.my(s) : "")))]), e._v(" \u5728 "), i("span", {
17678
17682
  staticClass: "flow-time"
17679
17683
  }, [e._v(e._s(s.createTime))]), e._v(" \u5F00\u59CB\u5904\u7406 "), i("span", {
17680
17684
  staticClass: "flow-node"
@@ -17714,7 +17718,7 @@ var ox = function() {
17714
17718
  "font-size": "12px"
17715
17719
  }
17716
17720
  }, [e._v(e._s(r.time))]) : e._e()] : e._e()];
17717
- })] : e._e(), s.endTime ? i("p", {
17721
+ })] : e._e(), s.endTime && s.historyActivityType != "startEvent" ? i("p", {
17718
17722
  staticClass: "flow-time"
17719
17723
  }, [e._v("\u7ED3\u675F\u65F6\u95F4: " + e._s(s.endTime))]) : e._e(), i("div", {
17720
17724
  staticClass: "p-file"
@@ -17775,6 +17779,15 @@ const cx = {
17775
17779
  };
17776
17780
  },
17777
17781
  methods: {
17782
+ my(e) {
17783
+ let t = "->", i = "\u2192", s = e.comments[0].fullMessage;
17784
+ if (s.includes(t))
17785
+ return s.split(t)[1];
17786
+ if (s.includes(i)) {
17787
+ let n = s.split(i)[1];
17788
+ return n = n.split("\uFF1A")[0], n;
17789
+ }
17790
+ },
17778
17791
  handleClick() {
17779
17792
  this.isFlag = !this.isFlag, this.toggleText = this.isFlag ? "\u6536\u8D77" : "\u5C55\u5F00";
17780
17793
  }
@@ -17786,7 +17799,7 @@ var ux = /* @__PURE__ */ ve(
17786
17799
  lx,
17787
17800
  !1,
17788
17801
  px,
17789
- "35b01ec6",
17802
+ "75a69229",
17790
17803
  null,
17791
17804
  null
17792
17805
  );
@@ -24444,7 +24457,8 @@ const uT = /* @__PURE__ */ function() {
24444
24457
  userIdData: "",
24445
24458
  TopPopup1: !1,
24446
24459
  cctaskTopPopup: !1,
24447
- cctaskTopPopupTitle: "\u6284\u9001"
24460
+ cctaskTopPopupTitle: "\u6284\u9001",
24461
+ user: ""
24448
24462
  };
24449
24463
  },
24450
24464
  watch: {
@@ -24459,11 +24473,17 @@ const uT = /* @__PURE__ */ function() {
24459
24473
  this.ProcessInsObj = {
24460
24474
  ...this.ProcessInsObj,
24461
24475
  ...i.data
24462
- }, this.taskObj.buttons = this.ProcessInsObj.button || [], this.trackList = (((s = i.data) == null ? void 0 : s.flow) || []).filter((a) => ["userTask", "candidate"].includes(a.historyActivityType));
24463
- const n = ((this.ProcessInsObj.process || {}).variables || {}).deptId;
24464
- this.deptId = n;
24465
- const r = (this.ProcessInsObj.process || {}).taskId;
24466
- this.absoluteTaskId = r, this.approvalData = (i.data || {}).flow || [], this.processXml = ((i.data || {}).process || {}).xml || "", this.handleGetProcessStatus(), this.$emit("get-process-data", this.ProcessInsObj);
24476
+ };
24477
+ let n = (this.ProcessInsObj.flow || []).filter((l) => ["userTask"].includes(l.historyActivityType) && l.createTime), r = n[n.length - 1].assigneeName;
24478
+ if (!r) {
24479
+ let l = n[n.length - 1], p = "->", h = "\u2192", d = l.comments[0].fullMessage;
24480
+ d.includes(p) ? r = d.split(p)[1] : d.includes(h) && (r = d.split(h)[1].split("\uFF1A")[0]);
24481
+ }
24482
+ this.user = r, this.taskObj.buttons = this.ProcessInsObj.button || [], this.trackList = (((s = i.data) == null ? void 0 : s.flow) || []).filter((l) => ["userTask", "candidate"].includes(l.historyActivityType));
24483
+ const a = ((this.ProcessInsObj.process || {}).variables || {}).deptId;
24484
+ this.deptId = a;
24485
+ const o = (this.ProcessInsObj.process || {}).taskId;
24486
+ this.absoluteTaskId = o, this.approvalData = (i.data || {}).flow || [], this.processXml = ((i.data || {}).process || {}).xml || "", this.handleGetProcessStatus(), this.$emit("get-process-data", this.ProcessInsObj);
24467
24487
  }
24468
24488
  }), this.getCurrentProcess(), this.getUserInfo());
24469
24489
  });
@@ -25003,7 +25023,7 @@ var dT = function() {
25003
25023
  }
25004
25024
  }, [i("span", {
25005
25025
  staticClass: "process-mliv-jd"
25006
- }, [e._v(e._s(`${e.processStatus.taskState == 4 ? e.processStatus.currUserName : e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]) : e._e()]) : e._e(), i("div", {
25026
+ }, [e._v(e._s(`${e.user}\u5BA1\u6279\u4E2D`))])])]) : e._e()]) : e._e(), i("div", {
25007
25027
  staticClass: "process-card",
25008
25028
  style: {
25009
25029
  height: e.processCardHeight
@@ -25238,7 +25258,7 @@ var fT = /* @__PURE__ */ ve(
25238
25258
  hT,
25239
25259
  !1,
25240
25260
  mT,
25241
- "a4fed71a",
25261
+ "24df7d3f",
25242
25262
  null,
25243
25263
  null
25244
25264
  );
@@ -25248,7 +25268,7 @@ function mT(e) {
25248
25268
  }
25249
25269
  const ST = /* @__PURE__ */ function() {
25250
25270
  return fT.exports;
25251
- }(), gT = "ddy-process-h5", yT = "1.0.1-rc.3.97", vT = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", AT = "./ddy-process-h5.umd.cjs", bT = "./style.css", CT = "module", wT = {
25271
+ }(), gT = "ddy-process-h5", yT = "1.0.1-rc.3.99", vT = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", AT = "./ddy-process-h5.umd.cjs", bT = "./style.css", CT = "module", wT = {
25252
25272
  ".": {
25253
25273
  import: "./ddy-process-h5.js",
25254
25274
  require: "./ddy-process-h5.umd.cjs"