mooho-base-admin-plus 2.10.60 → 2.10.62

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.
@@ -22662,6 +22662,8 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22662
22662
  props: {},
22663
22663
  data() {
22664
22664
  return {
22665
+ id: null,
22666
+ readonly: null,
22665
22667
  opened: !1,
22666
22668
  current: {},
22667
22669
  offset: {},
@@ -22687,15 +22689,15 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22687
22689
  },
22688
22690
  computed: {
22689
22691
  displayActivities() {
22690
- let a = this.toolbars;
22691
- return this.data && this.data.activities && (a = a.concat(this.data.activities)), this.newActivity && a.push(this.newActivity), a;
22692
+ let a = [];
22693
+ return this.readonly || (a = this.toolbars), this.data && this.data.activities && (a = a.concat(this.data.activities)), this.newActivity && a.push(this.newActivity), a;
22692
22694
  },
22693
22695
  activities() {
22694
22696
  return this.data.activities;
22695
22697
  }
22696
22698
  },
22697
22699
  async created() {
22698
- this.toolbars = [];
22700
+ this.id = this.generateRandomString(10), this.toolbars = [];
22699
22701
  const a = await enumApi.query("ActivityType");
22700
22702
  let r = 0;
22701
22703
  a.forEach((o) => {
@@ -22711,7 +22713,7 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22711
22713
  methods: {
22712
22714
  // 打开界面
22713
22715
  async open(a) {
22714
- this.opened = !0;
22716
+ this.opened = !0, a.processInstID ? this.readonly = !0 : this.readonly = !1;
22715
22717
  const r = await processDefApi.getChart(a);
22716
22718
  this.data = r;
22717
22719
  },
@@ -22786,11 +22788,11 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22786
22788
  },
22787
22789
  // 鼠标按钮在活动上按下
22788
22790
  mousedownActivity(a, r) {
22789
- a.isTool ? (this.newActivity = this.copy(a), this.movingActivity = this.newActivity) : this.movingActivity = a, this.offset.x = a.x - r.layerX, this.offset.y = a.y - r.layerY, this.isMoving = !0;
22791
+ this.readonly || (a.isTool ? (this.newActivity = this.copy(a), this.movingActivity = this.newActivity) : this.movingActivity = a, this.offset.x = a.x - r.layerX, this.offset.y = a.y - r.layerY, this.isMoving = !0);
22790
22792
  },
22791
22793
  // 鼠标按钮在活动上抬起
22792
22794
  mouseupActivity(a) {
22793
- if (this.isCreatingOutcome) {
22795
+ if (!this.readonly && this.isCreatingOutcome) {
22794
22796
  if (this.activityFrom.pid == a.pid || this.data.outcomes.some((r) => r.activityFromPid == this.activityFrom.pid && r.activityToPid == a.pid))
22795
22797
  return;
22796
22798
  this.data.outcomes.push({
@@ -22808,11 +22810,11 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22808
22810
  },
22809
22811
  // 鼠标按钮在点上按下
22810
22812
  mousedownPoint(a, r, o, s) {
22811
- this.movingOutcome = a, this.movingPointIndex = o, this.offset.x = r.x - s.layerX, this.offset.y = r.y - s.layerY, this.isPointMoving = !0;
22813
+ this.readonly || (this.movingOutcome = a, this.movingPointIndex = o, this.offset.x = r.x - s.layerX, this.offset.y = r.y - s.layerY, this.isPointMoving = !0);
22812
22814
  },
22813
22815
  // 鼠标按钮在点上抬起
22814
22816
  mouseupPoint(a, r) {
22815
- if (this.isCreatingOutcome) {
22817
+ if (!this.readonly && this.isCreatingOutcome) {
22816
22818
  if (this.activityFrom.pid == activity.pid || this.data.outcomes.some((o) => o.activityFromPid == this.activityFrom.pid && o.activityToPid == activity.pid))
22817
22819
  return;
22818
22820
  this.data.outcomes.push({
@@ -22830,7 +22832,7 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22830
22832
  },
22831
22833
  // 鼠标双击活动
22832
22834
  dblclickActivity(a) {
22833
- if (!a.isTool)
22835
+ if (!this.readonly && !a.isTool)
22834
22836
  if (this.editActivity = a, a.activityType == "Interactive") {
22835
22837
  let r = [];
22836
22838
  a.destinationRoleParam && (r = JSON.parse(a.destinationRoleParam)), this.$refs.destinationRoleParamTable.loadData(r), this.$refs.interactiveForm.openDefault(a);
@@ -22838,30 +22840,32 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22838
22840
  },
22839
22841
  // 鼠标双击结果
22840
22842
  dblclickOutcome(a) {
22843
+ if (this.readonly)
22844
+ return;
22841
22845
  this.editOutcome = this.copy(a), this.data.activities.find((o) => o.pid == a.activityFromPid).activityType == "Judgement" ? this.$refs.judgementOutcomeForm.openDefault(this.editOutcome) : this.$refs.outcomeForm.openDefault(this.editOutcome);
22842
22846
  },
22843
22847
  // 鼠标按钮抬起
22844
22848
  mouseUp(a) {
22845
- this.isMoving && this.movingActivity && this.movingActivity.isTool && (a.layerX > 10 + 30 * 2 + this.setting.rectWidth + this.setting.rectWidth / 2 && (this.newActivity.processID = this.data.processID, this.newActivity.isTool = !1, this.newActivity.pid = this.getNewActivityID(), this.data.activities.push(this.newActivity)), this.newActivity = null), this.isCreatingOutcome = !1, this.isMoving = !1, this.isPointMoving = !1;
22849
+ this.readonly || (this.isMoving && this.movingActivity && this.movingActivity.isTool && (a.layerX > 10 + 30 * 2 + this.setting.rectWidth + this.setting.rectWidth / 2 && (this.newActivity.processID = this.data.processID, this.newActivity.isTool = !1, this.newActivity.pid = this.getNewActivityID(), this.data.activities.push(this.newActivity)), this.newActivity = null), this.isCreatingOutcome = !1, this.isMoving = !1, this.isPointMoving = !1);
22846
22850
  },
22847
22851
  // 鼠标移动
22848
22852
  mousemove(a) {
22849
- if (this.current.x = a.offsetX, this.current.y = a.offsetY, this.isMoving && (this.movingActivity.x = a.layerX + this.offset.x, this.movingActivity.y = a.layerY + this.offset.y), this.isPointMoving) {
22853
+ if (!this.readonly && (this.current.x = a.offsetX, this.current.y = a.offsetY, this.isMoving && (this.movingActivity.x = a.layerX + this.offset.x, this.movingActivity.y = a.layerY + this.offset.y), this.isPointMoving)) {
22850
22854
  let r = JSON.parse(this.movingOutcome.points);
22851
22855
  r[this.movingPointIndex] = { x: a.layerX + this.offset.x, y: a.layerY + this.offset.y }, this.movingOutcome.points = JSON.stringify(r);
22852
22856
  }
22853
22857
  },
22854
22858
  // 鼠标移入活动中心位置
22855
22859
  mouseenterCenter(a) {
22856
- a.isTool || (a.activeCenter = !0);
22860
+ this.readonly || a.isTool || (a.activeCenter = !0);
22857
22861
  },
22858
22862
  // 鼠标移出活动中心位置
22859
22863
  mouseleaveCenter(a) {
22860
- a.activeCenter = !1;
22864
+ this.readonly || (a.activeCenter = !1);
22861
22865
  },
22862
22866
  // 活动中心位置按下鼠标
22863
22867
  mousedownCenter(a) {
22864
- a.activeCenter && (this.isCreatingOutcome = !0, this.activityFrom = a);
22868
+ this.readonly || a.activeCenter && (this.isCreatingOutcome = !0, this.activityFrom = a);
22865
22869
  },
22866
22870
  // 获取新的Activity id
22867
22871
  getNewActivityID() {
@@ -22936,8 +22940,8 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22936
22940
  y1: o.fromPoint.y,
22937
22941
  x2: o.toPoint.x,
22938
22942
  y2: o.toPoint.y,
22939
- markerStart: "url(#arrowStart)",
22940
- markerEnd: "url(#arrowEnd)"
22943
+ markerStart: "url(#arrowStart_" + this.id + ")",
22944
+ markerEnd: "url(#arrowEnd_" + this.id + ")"
22941
22945
  });
22942
22946
  else {
22943
22947
  let s = JSON.parse(a.points), l = { x: o.fromPoint.x, y: o.fromPoint.y }, c = 0;
@@ -22947,14 +22951,14 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22947
22951
  y1: l.y,
22948
22952
  x2: u.x,
22949
22953
  y2: u.y,
22950
- markerStart: c == 0 ? "url(#arrowStart)" : null
22954
+ markerStart: c == 0 ? "url(#arrowStart_" + this.id + ")" : null
22951
22955
  }), c++, l = u;
22952
22956
  r.push({
22953
22957
  x1: l.x,
22954
22958
  y1: l.y,
22955
22959
  x2: o.toPoint.x,
22956
22960
  y2: o.toPoint.y,
22957
- markerEnd: "url(#arrowEnd)"
22961
+ markerEnd: "url(#arrowEnd_" + this.id + ")"
22958
22962
  });
22959
22963
  }
22960
22964
  return r;
@@ -22962,9 +22966,24 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc
22962
22966
  // 获取点
22963
22967
  getPoints(a) {
22964
22968
  return a.pointCount == null || a.pointCount == 0 ? [] : JSON.parse(a.points);
22969
+ },
22970
+ generateRandomString(a) {
22971
+ const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
22972
+ let o = "";
22973
+ for (let s = 0; s < a; s++) {
22974
+ const l = Math.floor(Math.random() * r.length);
22975
+ o += r[l];
22976
+ }
22977
+ return o;
22978
+ },
22979
+ getColor(a) {
22980
+ if (!this.data.processInst || this.data.processInst.status != "InProcess" && this.data.processInst.status != "Finished")
22981
+ return "#fff";
22982
+ let r = this.data.activityInsts.find((o) => o.activityID == a.id);
22983
+ return r == null ? "#fff" : r.status == "Pending" ? "#ff9900" : r.status == "Finished" ? "#8ecb30" : r.status == "Closed" || r.status == "Pass" ? "gray" : "#fff";
22965
22984
  }
22966
22985
  }
22967
- }, _hoisted_1$O = { class: "title" }, _hoisted_2$y = { class: "ivu-ml-8 ivu-mr-8" }, _hoisted_3$t = ["id", "d"], _hoisted_4$k = ["width"], _hoisted_5$d = ["x", "y", "width", "height"], _hoisted_6$9 = ["x", "y", "font-size"], _hoisted_7$8 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_8$8 = ["x", "y", "width", "height"], _hoisted_9$7 = ["x", "y", "font-size"], _hoisted_10$6 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_11$4 = ["x", "y", "width", "height"], _hoisted_12$4 = ["x", "y", "width", "height"], _hoisted_13$4 = ["x", "y", "font-size"], _hoisted_14$4 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_15$3 = ["points"], _hoisted_16$1 = ["x", "y", "font-size"], _hoisted_17$1 = ["points", "onMousedown", "onMouseup", "onDblclick"], _hoisted_18$1 = ["x", "y", "width", "height"], _hoisted_19$1 = ["x", "y", "width", "height"], _hoisted_20$1 = ["x", "y", "font-size"], _hoisted_21$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_22$1 = ["x1", "y1", "x2", "y2"], _hoisted_23$1 = ["x1", "y1", "x2", "y2"], _hoisted_24$1 = ["x", "y", "font-size"], _hoisted_25$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_26$1 = ["cx", "cy", "r"], _hoisted_27$1 = ["x", "y", "font-size"], _hoisted_28$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_29$1 = ["cx", "cy", "opacity", "onMouseenter", "onMouseleave", "onMousedown", "onMouseup"], _hoisted_30$1 = ["x1", "y1", "x2", "y2", "marker-start", "marker-end", "onDblclick"], _hoisted_31$1 = ["cx", "cy", "onMousedown", "onMouseup"], _hoisted_32$1 = ["font-size", "onDblclick"], _hoisted_33$1 = ["href"], _hoisted_34 = ["x1", "y1", "x2", "y2"];
22986
+ }, _hoisted_1$O = { class: "title" }, _hoisted_2$y = { class: "ivu-ml-8 ivu-mr-8" }, _hoisted_3$t = ["id"], _hoisted_4$k = ["id"], _hoisted_5$d = ["id"], _hoisted_6$9 = ["id"], _hoisted_7$8 = ["id", "d"], _hoisted_8$8 = ["width"], _hoisted_9$7 = ["x", "y", "width", "height"], _hoisted_10$6 = ["x", "y", "font-size"], _hoisted_11$4 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_12$4 = ["x", "y", "width", "height"], _hoisted_13$4 = ["x", "y", "font-size"], _hoisted_14$4 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_15$3 = ["fill", "x", "y", "width", "height"], _hoisted_16$1 = ["x", "y", "width", "height", "href"], _hoisted_17$1 = ["x", "y", "font-size"], _hoisted_18$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_19$1 = ["points"], _hoisted_20$1 = ["x", "y", "font-size"], _hoisted_21$1 = ["points", "onMousedown", "onMouseup", "onDblclick"], _hoisted_22$1 = ["x", "y", "width", "height"], _hoisted_23$1 = ["x", "y", "width", "height", "href"], _hoisted_24$1 = ["x", "y", "font-size"], _hoisted_25$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_26$1 = ["x1", "y1", "x2", "y2"], _hoisted_27$1 = ["x1", "y1", "x2", "y2"], _hoisted_28$1 = ["x", "y", "font-size"], _hoisted_29$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_30$1 = ["cx", "cy", "r"], _hoisted_31$1 = ["x", "y", "font-size"], _hoisted_32$1 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"], _hoisted_33$1 = ["cx", "cy", "opacity", "onMouseenter", "onMouseleave", "onMousedown", "onMouseup"], _hoisted_34 = ["x1", "y1", "x2", "y2", "marker-start", "marker-end", "onDblclick"], _hoisted_35 = ["cx", "cy", "onMousedown", "onMouseup"], _hoisted_36 = ["font-size", "onDblclick"], _hoisted_37 = ["href"], _hoisted_38 = ["x1", "y1", "x2", "y2", "marker-start", "marker-end"];
22968
22987
  function _sfc_render$13(a, r, o, s, l, c) {
22969
22988
  const u = resolveComponent("Button"), d = resolveComponent("Modal"), f = resolveComponent("view-table"), p = resolveComponent("Option"), g = resolveComponent("Select"), v = resolveComponent("modal-form");
22970
22989
  return openBlock(), createElementBlock("div", null, [
@@ -22990,7 +23009,8 @@ function _sfc_render$13(a, r, o, s, l, c) {
22990
23009
  footer: withCtx(() => [
22991
23010
  createElementVNode("div", null, [
22992
23011
  renderSlot(a.$slots, "footer", {}, () => [
22993
- createVNode$1(u, {
23012
+ l.readonly ? createCommentVNode("", !0) : (openBlock(), createBlock(u, {
23013
+ key: 0,
22994
23014
  type: "primary",
22995
23015
  "custom-icon": "fa fa-save",
22996
23016
  onClick: c.save
@@ -22999,8 +23019,9 @@ function _sfc_render$13(a, r, o, s, l, c) {
22999
23019
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Save")), 1)
23000
23020
  ]),
23001
23021
  _: 1
23002
- }, 8, ["onClick"]),
23003
- createVNode$1(u, {
23022
+ }, 8, ["onClick"])),
23023
+ l.readonly ? createCommentVNode("", !0) : (openBlock(), createBlock(u, {
23024
+ key: 1,
23004
23025
  type: "primary",
23005
23026
  "custom-icon": "fa fa-upload",
23006
23027
  onClick: c.publish
@@ -23009,7 +23030,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23009
23030
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Publish")), 1)
23010
23031
  ]),
23011
23032
  _: 1
23012
- }, 8, ["onClick"])
23033
+ }, 8, ["onClick"]))
23013
23034
  ]),
23014
23035
  createVNode$1(u, {
23015
23036
  type: "default",
@@ -23036,53 +23057,54 @@ function _sfc_render$13(a, r, o, s, l, c) {
23036
23057
  onMousemove: r[1] || (r[1] = (...y) => c.mousemove && c.mousemove(...y))
23037
23058
  }, [
23038
23059
  createElementVNode("defs", null, [
23039
- r[4] || (r[4] = createElementVNode("symbol", {
23040
- id: "iconUser",
23060
+ createElementVNode("symbol", {
23061
+ id: "iconUser_" + l.id,
23041
23062
  viewBox: "0 0 1024 1024"
23042
- }, [
23043
- createElementVNode("path", { d: "M908 799.542857a427.428571 427.428571 0 0 0-92.114286-136.571428 429.291429 429.291429 0 0 0-136.571428-92.114286c-0.457143-0.228571-0.914286-0.342857-1.371429-0.571429C749.142857 518.857143 795.428571 435.085714 795.428571 340.571429c0-156.571429-126.857143-283.428571-283.428571-283.428572S228.571429 184 228.571429 340.571429c0 94.514286 46.285714 178.285714 117.485714 229.828571-0.457143 0.228571-0.914286 0.342857-1.371429 0.571429-51.2 21.6-97.142857 52.571429-136.571428 92.114285a429.291429 429.291429 0 0 0-92.114286 136.571429A424.8 424.8 0 0 0 82.285714 957.485714a9.142857 9.142857 0 0 0 9.142857 9.371429h68.571429c5.028571 0 9.028571-4 9.142857-8.914286 2.285714-88.228571 37.714286-170.857143 100.342857-233.485714 64.8-64.8 150.857143-100.457143 242.514286-100.457143s177.714286 35.657143 242.514286 100.457143C817.142857 787.085714 852.571429 869.714286 854.857143 957.942857c0.114286 5.028571 4.114286 8.914286 9.142857 8.914286h68.571429a9.142857 9.142857 0 0 0 9.142857-9.371429c-1.142857-54.628571-12.457143-107.771429-33.714286-157.942857zM512 537.142857c-52.457143 0-101.828571-20.457143-138.971429-57.6S315.428571 393.028571 315.428571 340.571429c0-52.457143 20.457143-101.828571 57.6-138.971429S459.542857 144 512 144s101.828571 20.457143 138.971429 57.6S708.571429 288.114286 708.571429 340.571429c0 52.457143-20.457143 101.828571-57.6 138.971428S564.457143 537.142857 512 537.142857z" })
23044
- ], -1)),
23045
- r[5] || (r[5] = createElementVNode("symbol", {
23046
- id: "iconApi",
23063
+ }, [...r[4] || (r[4] = [
23064
+ createElementVNode("path", { d: "M908 799.542857a427.428571 427.428571 0 0 0-92.114286-136.571428 429.291429 429.291429 0 0 0-136.571428-92.114286c-0.457143-0.228571-0.914286-0.342857-1.371429-0.571429C749.142857 518.857143 795.428571 435.085714 795.428571 340.571429c0-156.571429-126.857143-283.428571-283.428571-283.428572S228.571429 184 228.571429 340.571429c0 94.514286 46.285714 178.285714 117.485714 229.828571-0.457143 0.228571-0.914286 0.342857-1.371429 0.571429-51.2 21.6-97.142857 52.571429-136.571428 92.114285a429.291429 429.291429 0 0 0-92.114286 136.571429A424.8 424.8 0 0 0 82.285714 957.485714a9.142857 9.142857 0 0 0 9.142857 9.371429h68.571429c5.028571 0 9.028571-4 9.142857-8.914286 2.285714-88.228571 37.714286-170.857143 100.342857-233.485714 64.8-64.8 150.857143-100.457143 242.514286-100.457143s177.714286 35.657143 242.514286 100.457143C817.142857 787.085714 852.571429 869.714286 854.857143 957.942857c0.114286 5.028571 4.114286 8.914286 9.142857 8.914286h68.571429a9.142857 9.142857 0 0 0 9.142857-9.371429c-1.142857-54.628571-12.457143-107.771429-33.714286-157.942857zM512 537.142857c-52.457143 0-101.828571-20.457143-138.971429-57.6S315.428571 393.028571 315.428571 340.571429c0-52.457143 20.457143-101.828571 57.6-138.971429S459.542857 144 512 144s101.828571 20.457143 138.971429 57.6S708.571429 288.114286 708.571429 340.571429c0 52.457143-20.457143 101.828571-57.6 138.971428S564.457143 537.142857 512 537.142857z" }, null, -1)
23065
+ ])], 8, _hoisted_3$t),
23066
+ createElementVNode("symbol", {
23067
+ id: "iconApi_" + l.id,
23047
23068
  viewBox: "0 0 1024 1024"
23048
- }, [
23049
- createElementVNode("path", { d: "M975.657143 96.914286l-48.457143-48.457143c-1.828571-1.828571-4.114286-2.628571-6.514286-2.628572s-4.685714 0.914286-6.514285 2.628572l-86.971429 86.971428a227.737143 227.737143 0 0 0-128.114286-39.2c-58.514286 0-117.028571 22.285714-161.714285 66.971429L420.914286 279.657143a9.177143 9.177143 0 0 0 0 12.914286L731.428571 603.085714c1.828571 1.828571 4.114286 2.628571 6.514286 2.628572 2.285714 0 4.685714-0.914286 6.514286-2.628572l116.457143-116.457143c78.742857-78.857143 88-200.8 27.771428-289.714285l86.971429-86.971429c3.542857-3.657143 3.542857-9.485714 0-13.028571zM805.828571 431.657143l-67.885714 67.885714-213.485714-213.485714 67.885714-67.885714c28.457143-28.457143 66.4-44.228571 106.742857-44.228572 40.342857 0 78.171429 15.657143 106.742857 44.228572 28.457143 28.457143 44.228571 66.4 44.228572 106.742857 0 40.342857-15.771429 78.171429-44.228572 106.742857z m-217.371428 120a9.177143 9.177143 0 0 0-12.914286 0L499.428571 627.771429 396.228571 524.571429l76.228572-76.228572c3.542857-3.542857 3.542857-9.371429 0-12.914286L430.857143 393.828571a9.177143 9.177143 0 0 0-12.914286 0L341.714286 470.057143l-49.142857-49.142857a8.971429 8.971429 0 0 0-6.514286-2.628572c-2.285714 0-4.685714 0.914286-6.514286 2.628572L163.2 537.371429c-78.742857 78.857143-88 200.8-27.771429 289.714285l-86.971428 86.971429a9.177143 9.177143 0 0 0 0 12.914286l48.457143 48.457142c1.828571 1.828571 4.114286 2.628571 6.514285 2.628572s4.685714-0.914286 6.514286-2.628572l86.971429-86.971428c38.514286 26.171429 83.314286 39.2 128.114285 39.2 58.514286 0 117.028571-22.285714 161.714286-66.971429l116.457143-116.457143c3.542857-3.542857 3.542857-9.371429 0-12.914285l-49.142857-49.142857 76.228571-76.228572c3.542857-3.542857 3.542857-9.371429 0-12.914286l-41.828571-41.371428zM431.657143 805.828571a150.08 150.08 0 0 1-106.742857 44.228572c-40.342857 0-78.171429-15.657143-106.742857-44.228572a150.08 150.08 0 0 1-44.228572-106.742857c0-40.342857 15.657143-78.171429 44.228572-106.742857l67.885714-67.885714 213.485714 213.485714-67.885714 67.885714z" })
23050
- ], -1)),
23051
- r[6] || (r[6] = createElementVNode("marker", {
23052
- id: "arrowStart",
23069
+ }, [...r[5] || (r[5] = [
23070
+ createElementVNode("path", { d: "M975.657143 96.914286l-48.457143-48.457143c-1.828571-1.828571-4.114286-2.628571-6.514286-2.628572s-4.685714 0.914286-6.514285 2.628572l-86.971429 86.971428a227.737143 227.737143 0 0 0-128.114286-39.2c-58.514286 0-117.028571 22.285714-161.714285 66.971429L420.914286 279.657143a9.177143 9.177143 0 0 0 0 12.914286L731.428571 603.085714c1.828571 1.828571 4.114286 2.628571 6.514286 2.628572 2.285714 0 4.685714-0.914286 6.514286-2.628572l116.457143-116.457143c78.742857-78.857143 88-200.8 27.771428-289.714285l86.971429-86.971429c3.542857-3.657143 3.542857-9.485714 0-13.028571zM805.828571 431.657143l-67.885714 67.885714-213.485714-213.485714 67.885714-67.885714c28.457143-28.457143 66.4-44.228571 106.742857-44.228572 40.342857 0 78.171429 15.657143 106.742857 44.228572 28.457143 28.457143 44.228571 66.4 44.228572 106.742857 0 40.342857-15.771429 78.171429-44.228572 106.742857z m-217.371428 120a9.177143 9.177143 0 0 0-12.914286 0L499.428571 627.771429 396.228571 524.571429l76.228572-76.228572c3.542857-3.542857 3.542857-9.371429 0-12.914286L430.857143 393.828571a9.177143 9.177143 0 0 0-12.914286 0L341.714286 470.057143l-49.142857-49.142857a8.971429 8.971429 0 0 0-6.514286-2.628572c-2.285714 0-4.685714 0.914286-6.514286 2.628572L163.2 537.371429c-78.742857 78.857143-88 200.8-27.771429 289.714285l-86.971428 86.971429a9.177143 9.177143 0 0 0 0 12.914286l48.457143 48.457142c1.828571 1.828571 4.114286 2.628571 6.514285 2.628572s4.685714-0.914286 6.514286-2.628572l86.971429-86.971428c38.514286 26.171429 83.314286 39.2 128.114285 39.2 58.514286 0 117.028571-22.285714 161.714286-66.971429l116.457143-116.457143c3.542857-3.542857 3.542857-9.371429 0-12.914285l-49.142857-49.142857 76.228571-76.228572c3.542857-3.542857 3.542857-9.371429 0-12.914286l-41.828571-41.371428zM431.657143 805.828571a150.08 150.08 0 0 1-106.742857 44.228572c-40.342857 0-78.171429-15.657143-106.742857-44.228572a150.08 150.08 0 0 1-44.228572-106.742857c0-40.342857 15.657143-78.171429 44.228572-106.742857l67.885714-67.885714 213.485714 213.485714-67.885714 67.885714z" }, null, -1)
23071
+ ])], 8, _hoisted_4$k),
23072
+ createElementVNode("marker", {
23073
+ id: "arrowStart_" + l.id,
23053
23074
  markerWidth: "10",
23054
23075
  markerHeight: "10",
23055
23076
  refX: "2",
23056
23077
  refY: "2",
23057
23078
  orient: "auto"
23058
- }, [
23079
+ }, [...r[6] || (r[6] = [
23059
23080
  createElementVNode("circle", {
23060
23081
  cx: "2",
23061
23082
  cy: "2",
23062
23083
  r: "2",
23063
23084
  fill: "#000"
23064
- })
23065
- ], -1)),
23066
- r[7] || (r[7] = createElementVNode("marker", {
23067
- id: "arrowEnd",
23085
+ }, null, -1)
23086
+ ])], 8, _hoisted_5$d),
23087
+ createElementVNode("marker", {
23088
+ id: "arrowEnd_" + l.id,
23068
23089
  markerWidth: "10",
23069
23090
  markerHeight: "10",
23070
23091
  refX: "6",
23071
23092
  refY: "2",
23072
23093
  orient: "auto"
23073
- }, [
23094
+ }, [...r[7] || (r[7] = [
23074
23095
  createElementVNode("path", {
23075
23096
  d: "M0,0 L0,4 L6,2 Z",
23076
23097
  style: { fill: "#000" }
23077
- })
23078
- ], -1)),
23098
+ }, null, -1)
23099
+ ])], 8, _hoisted_6$9),
23079
23100
  (openBlock(!0), createElementBlock(Fragment, null, renderList(l.data.outcomes, (y, _) => (openBlock(), createElementBlock("path", {
23080
23101
  key: _,
23081
- id: "outcome_" + y.pid,
23102
+ id: "outcome_" + l.id + "_" + y.pid,
23082
23103
  d: c.getOutcomPath(y)
23083
- }, null, 8, _hoisted_3$t))), 128))
23104
+ }, null, 8, _hoisted_7$8))), 128))
23084
23105
  ]),
23085
- createElementVNode("rect", {
23106
+ l.readonly ? createCommentVNode("", !0) : (openBlock(), createElementBlock("rect", {
23107
+ key: 0,
23086
23108
  fill: "#ddd",
23087
23109
  "stroke-width": "0",
23088
23110
  rx: "0",
@@ -23091,7 +23113,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23091
23113
  y: 10,
23092
23114
  width: 30 * 2 + l.setting.rectWidth,
23093
23115
  height: 630
23094
- }, null, 8, _hoisted_4$k),
23116
+ }, null, 8, _hoisted_8$8)),
23095
23117
  (openBlock(!0), createElementBlock(Fragment, null, renderList(c.displayActivities, (y, _) => (openBlock(), createElementBlock(Fragment, { key: _ }, [
23096
23118
  y.activityType === "Begin" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
23097
23119
  createElementVNode("rect", {
@@ -23103,7 +23125,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23103
23125
  y: y.y - l.setting.rectHeight / 2,
23104
23126
  width: l.setting.rectWidth,
23105
23127
  height: l.setting.rectHeight
23106
- }, null, 8, _hoisted_5$d),
23128
+ }, null, 8, _hoisted_9$7),
23107
23129
  createElementVNode("text", {
23108
23130
  fill: "#000",
23109
23131
  x: y.x,
@@ -23111,7 +23133,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23111
23133
  "font-size": l.setting.rectFontSize,
23112
23134
  "text-anchor": "middle",
23113
23135
  "dominant-baseline": "middle"
23114
- }, toDisplayString$2(y.name), 9, _hoisted_6$9),
23136
+ }, toDisplayString$2(y.name), 9, _hoisted_10$6),
23115
23137
  createElementVNode("rect", {
23116
23138
  opacity: "0",
23117
23139
  rx: "25",
@@ -23122,7 +23144,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23122
23144
  onMousedown: (S) => c.mousedownActivity(y, S),
23123
23145
  onMouseup: (S) => c.mouseupActivity(y),
23124
23146
  onDblclick: (S) => c.dblclickActivity(y, _)
23125
- }, null, 40, _hoisted_7$8)
23147
+ }, null, 40, _hoisted_11$4)
23126
23148
  ], 64)) : y.activityType === "End" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
23127
23149
  createElementVNode("rect", {
23128
23150
  fill: "#fff",
@@ -23133,7 +23155,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23133
23155
  y: y.y - l.setting.rectHeight / 2,
23134
23156
  width: l.setting.rectWidth,
23135
23157
  height: l.setting.rectHeight
23136
- }, null, 8, _hoisted_8$8),
23158
+ }, null, 8, _hoisted_12$4),
23137
23159
  createElementVNode("text", {
23138
23160
  fill: "#000",
23139
23161
  x: y.x,
@@ -23141,7 +23163,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23141
23163
  "font-size": l.setting.rectFontSize,
23142
23164
  "text-anchor": "middle",
23143
23165
  "dominant-baseline": "middle"
23144
- }, toDisplayString$2(y.name), 9, _hoisted_9$7),
23166
+ }, toDisplayString$2(y.name), 9, _hoisted_13$4),
23145
23167
  createElementVNode("rect", {
23146
23168
  opacity: "0",
23147
23169
  rx: "25",
@@ -23152,10 +23174,10 @@ function _sfc_render$13(a, r, o, s, l, c) {
23152
23174
  onMousedown: (S) => c.mousedownActivity(y, S),
23153
23175
  onMouseup: (S) => c.mouseupActivity(y),
23154
23176
  onDblclick: (S) => c.dblclickActivity(y, _)
23155
- }, null, 40, _hoisted_10$6)
23177
+ }, null, 40, _hoisted_14$4)
23156
23178
  ], 64)) : y.activityType === "Interactive" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23157
23179
  createElementVNode("rect", {
23158
- fill: "#fff",
23180
+ fill: c.getColor(y),
23159
23181
  "stroke-width": "2",
23160
23182
  rx: "5",
23161
23183
  stroke: "#000",
@@ -23163,14 +23185,14 @@ function _sfc_render$13(a, r, o, s, l, c) {
23163
23185
  y: y.y - l.setting.rectHeight / 2,
23164
23186
  width: l.setting.rectWidth,
23165
23187
  height: l.setting.rectHeight
23166
- }, null, 8, _hoisted_11$4),
23188
+ }, null, 8, _hoisted_15$3),
23167
23189
  createElementVNode("use", {
23168
23190
  x: y.x - l.setting.rectWidth / 2 + 2,
23169
23191
  y: y.y - l.setting.rectHeight / 2 + 2,
23170
23192
  width: l.setting.rectHeight / 3,
23171
23193
  height: l.setting.rectHeight / 3,
23172
- href: "#iconUser"
23173
- }, null, 8, _hoisted_12$4),
23194
+ href: "#iconUser_" + l.id
23195
+ }, null, 8, _hoisted_16$1),
23174
23196
  createElementVNode("text", {
23175
23197
  fill: "#000",
23176
23198
  x: y.x,
@@ -23178,7 +23200,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23178
23200
  "font-size": l.setting.rectFontSize,
23179
23201
  "text-anchor": "middle",
23180
23202
  "dominant-baseline": "middle"
23181
- }, toDisplayString$2(y.name), 9, _hoisted_13$4),
23203
+ }, toDisplayString$2(y.name), 9, _hoisted_17$1),
23182
23204
  createElementVNode("rect", {
23183
23205
  opacity: "0",
23184
23206
  rx: "5",
@@ -23189,7 +23211,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23189
23211
  onMousedown: (S) => c.mousedownActivity(y, S),
23190
23212
  onMouseup: (S) => c.mouseupActivity(y),
23191
23213
  onDblclick: (S) => c.dblclickActivity(y, _)
23192
- }, null, 40, _hoisted_14$4)
23214
+ }, null, 40, _hoisted_18$1)
23193
23215
  ], 64)) : createCommentVNode("", !0),
23194
23216
  y.activityType === "Judgement" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
23195
23217
  createElementVNode("polygon", {
@@ -23197,7 +23219,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23197
23219
  fill: "#fff",
23198
23220
  "stroke-width": "2",
23199
23221
  stroke: "#000"
23200
- }, null, 8, _hoisted_15$3),
23222
+ }, null, 8, _hoisted_19$1),
23201
23223
  createElementVNode("text", {
23202
23224
  fill: "#000",
23203
23225
  x: y.x,
@@ -23205,14 +23227,14 @@ function _sfc_render$13(a, r, o, s, l, c) {
23205
23227
  "font-size": l.setting.rectFontSize,
23206
23228
  "text-anchor": "middle",
23207
23229
  "dominant-baseline": "middle"
23208
- }, toDisplayString$2(y.name), 9, _hoisted_16$1),
23230
+ }, toDisplayString$2(y.name), 9, _hoisted_20$1),
23209
23231
  createElementVNode("polygon", {
23210
23232
  opacity: "0",
23211
23233
  points: y.x - l.setting.rectWidth / 2 + " " + y.y + " " + y.x + " " + (y.y - l.setting.rectHeight / 2) + " " + (y.x + l.setting.rectWidth / 2) + " " + y.y + " " + y.x + " " + (y.y + l.setting.rectHeight / 2),
23212
23234
  onMousedown: (S) => c.mousedownActivity(y, S),
23213
23235
  onMouseup: (S) => c.mouseupActivity(y),
23214
23236
  onDblclick: (S) => c.dblclickActivity(y, _)
23215
- }, null, 40, _hoisted_17$1)
23237
+ }, null, 40, _hoisted_21$1)
23216
23238
  ], 64)) : createCommentVNode("", !0),
23217
23239
  y.activityType === "Service" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
23218
23240
  createElementVNode("rect", {
@@ -23224,14 +23246,14 @@ function _sfc_render$13(a, r, o, s, l, c) {
23224
23246
  y: y.y - l.setting.rectHeight / 2,
23225
23247
  width: l.setting.rectWidth,
23226
23248
  height: l.setting.rectHeight
23227
- }, null, 8, _hoisted_18$1),
23249
+ }, null, 8, _hoisted_22$1),
23228
23250
  createElementVNode("use", {
23229
23251
  x: y.x - l.setting.rectWidth / 2 + 2,
23230
23252
  y: y.y - l.setting.rectHeight / 2 + 2,
23231
23253
  width: l.setting.rectHeight / 3,
23232
23254
  height: l.setting.rectHeight / 3,
23233
- href: "#iconApi"
23234
- }, null, 8, _hoisted_19$1),
23255
+ href: "#iconApi_" + l.id
23256
+ }, null, 8, _hoisted_23$1),
23235
23257
  createElementVNode("text", {
23236
23258
  fill: "#000",
23237
23259
  x: y.x,
@@ -23239,7 +23261,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23239
23261
  "font-size": l.setting.rectFontSize,
23240
23262
  "text-anchor": "middle",
23241
23263
  "dominant-baseline": "middle"
23242
- }, toDisplayString$2(y.name), 9, _hoisted_20$1),
23264
+ }, toDisplayString$2(y.name), 9, _hoisted_24$1),
23243
23265
  createElementVNode("rect", {
23244
23266
  opacity: "0",
23245
23267
  rx: "5",
@@ -23250,7 +23272,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23250
23272
  onMousedown: (S) => c.mousedownActivity(y, S),
23251
23273
  onMouseup: (S) => c.mouseupActivity(y),
23252
23274
  onDblclick: (S) => c.dblclickActivity(y, _)
23253
- }, null, 40, _hoisted_21$1)
23275
+ }, null, 40, _hoisted_25$1)
23254
23276
  ], 64)) : createCommentVNode("", !0),
23255
23277
  y.activityType === "ParallelStart" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
23256
23278
  createElementVNode("line", {
@@ -23259,14 +23281,14 @@ function _sfc_render$13(a, r, o, s, l, c) {
23259
23281
  x2: y.x + l.setting.rectWidth / 2,
23260
23282
  y2: y.y - l.setting.rectHeight / 6,
23261
23283
  style: { stroke: "rgb(0, 0, 0)", "stroke-width": "2" }
23262
- }, null, 8, _hoisted_22$1),
23284
+ }, null, 8, _hoisted_26$1),
23263
23285
  createElementVNode("line", {
23264
23286
  x1: y.x - l.setting.rectWidth / 2,
23265
23287
  y1: y.y + l.setting.rectHeight / 6,
23266
23288
  x2: y.x + l.setting.rectWidth / 2,
23267
23289
  y2: y.y + l.setting.rectHeight / 6,
23268
23290
  style: { stroke: "rgb(0, 0, 0)", "stroke-width": "2" }
23269
- }, null, 8, _hoisted_23$1),
23291
+ }, null, 8, _hoisted_27$1),
23270
23292
  createElementVNode("text", {
23271
23293
  fill: "#000",
23272
23294
  x: y.x,
@@ -23274,7 +23296,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23274
23296
  "font-size": l.setting.rectFontSize,
23275
23297
  "text-anchor": "middle",
23276
23298
  "dominant-baseline": "middle"
23277
- }, toDisplayString$2(y.name), 9, _hoisted_24$1),
23299
+ }, toDisplayString$2(y.name), 9, _hoisted_28$1),
23278
23300
  createElementVNode("rect", {
23279
23301
  x: y.x - l.setting.rectWidth / 2,
23280
23302
  y: y.y - l.setting.rectHeight / 2,
@@ -23284,7 +23306,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23284
23306
  onMousedown: (S) => c.mousedownActivity(y, S),
23285
23307
  onMouseup: (S) => c.mouseupActivity(y),
23286
23308
  onDblclick: (S) => c.dblclickActivity(y, _)
23287
- }, null, 40, _hoisted_25$1)
23309
+ }, null, 40, _hoisted_29$1)
23288
23310
  ], 64)) : createCommentVNode("", !0),
23289
23311
  y.activityType === "ParallelEnd" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
23290
23312
  createElementVNode("circle", {
@@ -23294,7 +23316,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23294
23316
  stroke: "black",
23295
23317
  "stroke-width": "2",
23296
23318
  fill: "#fff"
23297
- }, null, 8, _hoisted_26$1),
23319
+ }, null, 8, _hoisted_30$1),
23298
23320
  createElementVNode("text", {
23299
23321
  fill: "#000",
23300
23322
  x: y.x,
@@ -23302,7 +23324,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23302
23324
  "font-size": l.setting.rectFontSize,
23303
23325
  "text-anchor": "middle",
23304
23326
  "dominant-baseline": "middle"
23305
- }, toDisplayString$2(y.name), 9, _hoisted_27$1),
23327
+ }, toDisplayString$2(y.name), 9, _hoisted_31$1),
23306
23328
  createElementVNode("rect", {
23307
23329
  x: y.x - l.setting.rectWidth / 2,
23308
23330
  y: y.y - l.setting.rectHeight / 2,
@@ -23312,7 +23334,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23312
23334
  onMousedown: (S) => c.mousedownActivity(y, S),
23313
23335
  onMouseup: (S) => c.mouseupActivity(y),
23314
23336
  onDblclick: (S) => c.dblclickActivity(y, _)
23315
- }, null, 40, _hoisted_28$1)
23337
+ }, null, 40, _hoisted_32$1)
23316
23338
  ], 64)) : createCommentVNode("", !0),
23317
23339
  y.isTool ? createCommentVNode("", !0) : (openBlock(), createElementBlock("circle", {
23318
23340
  key: 7,
@@ -23327,7 +23349,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23327
23349
  onMouseleave: (S) => c.mouseleaveCenter(y),
23328
23350
  onMousedown: (S) => c.mousedownCenter(y),
23329
23351
  onMouseup: (S) => c.mouseupActivity(y)
23330
- }, null, 40, _hoisted_29$1))
23352
+ }, null, 40, _hoisted_33$1))
23331
23353
  ], 64))), 128)),
23332
23354
  (openBlock(!0), createElementBlock(Fragment, null, renderList(l.data.outcomes, (y, _) => (openBlock(), createElementBlock(Fragment, { key: _ }, [
23333
23355
  (openBlock(!0), createElementBlock(Fragment, null, renderList(c.getLines(y), (S, C) => (openBlock(), createElementBlock("line", {
@@ -23340,7 +23362,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23340
23362
  "marker-start": S.markerStart,
23341
23363
  "marker-end": S.markerEnd,
23342
23364
  onDblclick: (b) => c.dblclickOutcome(y, _)
23343
- }, null, 40, _hoisted_30$1))), 128)),
23365
+ }, null, 40, _hoisted_34))), 128)),
23344
23366
  (openBlock(!0), createElementBlock(Fragment, null, renderList(c.getPoints(y), (S, C) => (openBlock(), createElementBlock("circle", {
23345
23367
  key: C,
23346
23368
  cx: S.x,
@@ -23351,7 +23373,7 @@ function _sfc_render$13(a, r, o, s, l, c) {
23351
23373
  fill: "#000",
23352
23374
  onMousedown: (b) => c.mousedownPoint(y, S, C, b),
23353
23375
  onMouseup: (b) => c.mouseupPoint(y, C)
23354
- }, null, 40, _hoisted_31$1))), 128)),
23376
+ }, null, 40, _hoisted_35))), 128)),
23355
23377
  createElementVNode("text", {
23356
23378
  fill: "#000",
23357
23379
  "font-size": l.setting.lineFontSize,
@@ -23360,21 +23382,21 @@ function _sfc_render$13(a, r, o, s, l, c) {
23360
23382
  onDblclick: (S) => c.dblclickOutcome(y, _)
23361
23383
  }, [
23362
23384
  createElementVNode("textPath", {
23363
- href: "#outcome_" + y.pid,
23385
+ href: "#outcome_" + l.id + "_" + y.pid,
23364
23386
  startOffset: "50%"
23365
- }, toDisplayString$2(y.name), 9, _hoisted_33$1)
23366
- ], 40, _hoisted_32$1)
23387
+ }, toDisplayString$2(y.name), 9, _hoisted_37)
23388
+ ], 40, _hoisted_36)
23367
23389
  ], 64))), 128)),
23368
23390
  l.isCreatingOutcome ? (openBlock(), createElementBlock("line", {
23369
- key: 0,
23391
+ key: 1,
23370
23392
  x1: l.activityFrom.x,
23371
23393
  y1: l.activityFrom.y,
23372
23394
  x2: l.current.x,
23373
23395
  y2: l.current.y,
23374
23396
  style: { stroke: "rgb(0, 0, 0)", "stroke-width": "2", "pointer-events": "none" },
23375
- "marker-start": "url(#arrowStart)",
23376
- "marker-end": "url(#arrowEnd)"
23377
- }, null, 8, _hoisted_34)) : createCommentVNode("", !0)
23397
+ "marker-start": "url(#arrowStart_" + l.id + ")",
23398
+ "marker-end": "url(#arrowEnd_" + l.id + ")"
23399
+ }, null, 8, _hoisted_38)) : createCommentVNode("", !0)
23378
23400
  ], 32))
23379
23401
  ])
23380
23402
  ]),
@@ -28704,7 +28726,7 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N]
28704
28726
  }, _sfc_main$M = {
28705
28727
  // name: this.$route.name,
28706
28728
  mixins: [mixinPage],
28707
- components: {},
28729
+ components: { flowChart },
28708
28730
  data() {
28709
28731
  return {
28710
28732
  filter: {},
@@ -28852,7 +28874,7 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N]
28852
28874
  }
28853
28875
  }, _hoisted_1$y = { class: "i-layout-page-header" }, _hoisted_2$p = { class: "title" }, _hoisted_3$l = { class: "description" }, _hoisted_4$e = { class: "ivu-ml-8 ivu-mr-8" };
28854
28876
  function _sfc_render$M(a, r, o, s, l, c) {
28855
- const u = resolveComponent("PageHeader"), d = resolveComponent("Button"), f = resolveComponent("view-table"), p = resolveComponent("Card"), g = resolveComponent("modal-form"), v = resolveComponent("modal-table"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form"), E = resolveComponent("Modal");
28877
+ const u = resolveComponent("PageHeader"), d = resolveComponent("Button"), f = resolveComponent("view-table"), p = resolveComponent("Card"), g = resolveComponent("modal-form"), v = resolveComponent("modal-table"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form"), E = resolveComponent("Modal"), T = resolveComponent("flow-chart");
28856
28878
  return openBlock(), createElementBlock("div", null, [
28857
28879
  createElementVNode("div", _hoisted_1$y, [
28858
28880
  createVNode$1(u, {
@@ -28883,10 +28905,10 @@ function _sfc_render$M(a, r, o, s, l, c) {
28883
28905
  customFilter: withCtx(() => [
28884
28906
  renderSlot(a.$slots, "customFilter")
28885
28907
  ]),
28886
- filterColumn: withCtx(({ column: T, code: P }) => [
28908
+ filterColumn: withCtx(({ column: P, code: I }) => [
28887
28909
  renderSlot(a.$slots, "filterColumn", {
28888
- column: T,
28889
- code: P
28910
+ column: P,
28911
+ code: I
28890
28912
  })
28891
28913
  ]),
28892
28914
  filterCommand: withCtx(() => [
@@ -28895,32 +28917,32 @@ function _sfc_render$M(a, r, o, s, l, c) {
28895
28917
  middle: withCtx(() => [
28896
28918
  renderSlot(a.$slots, "middle")
28897
28919
  ]),
28898
- commandBefore: withCtx(({ row: T, index: P }) => [
28920
+ commandBefore: withCtx(({ row: P, index: I }) => [
28899
28921
  renderSlot(a.$slots, "commandBefore", {
28900
- row: T,
28901
- index: P
28922
+ row: P,
28923
+ index: I
28902
28924
  })
28903
28925
  ]),
28904
- command: withCtx(({ row: T, index: P }) => [
28905
- T.application.status != "Draft" && T.application.status != "Rejected" ? (openBlock(), createBlock(d, {
28926
+ command: withCtx(({ row: P, index: I }) => [
28927
+ P.application.status != "Draft" && P.application.status != "Rejected" ? (openBlock(), createBlock(d, {
28906
28928
  key: 0,
28907
28929
  size: "small",
28908
28930
  title: a.$t("Front_Btn_Detail"),
28909
28931
  type: "info",
28910
28932
  "custom-icon": "fa fa-file-alt",
28911
- onClick: (I) => c.show(T)
28933
+ onClick: (A) => c.show(P)
28912
28934
  }, null, 8, ["title", "onClick"])) : createCommentVNode("", !0),
28913
- (T.application.status == "Draft" || T.application.status == "Rejected") && T.application.applicantID == a.info.id ? (openBlock(), createBlock(d, {
28935
+ (P.application.status == "Draft" || P.application.status == "Rejected") && P.application.applicantID == a.info.id ? (openBlock(), createBlock(d, {
28914
28936
  key: 1,
28915
28937
  size: "small",
28916
28938
  title: a.$t("Front_Btn_Edit"),
28917
28939
  type: "primary",
28918
28940
  "custom-icon": "fa fa-edit",
28919
- onClick: (I) => c.edit(T)
28941
+ onClick: (A) => c.edit(P)
28920
28942
  }, null, 8, ["title", "onClick"])) : createCommentVNode("", !0),
28921
28943
  renderSlot(a.$slots, "command", {
28922
- row: T,
28923
- index: P
28944
+ row: P,
28945
+ index: I
28924
28946
  })
28925
28947
  ]),
28926
28948
  _: 3
@@ -28931,44 +28953,44 @@ function _sfc_render$M(a, r, o, s, l, c) {
28931
28953
  l.page ? (openBlock(), createBlock(g, {
28932
28954
  key: 0,
28933
28955
  ref: "form",
28934
- onOnAfterSave: r[1] || (r[1] = (T) => a.$refs.table.loadData())
28956
+ onOnAfterSave: r[2] || (r[2] = (P) => a.$refs.table.loadData())
28935
28957
  }, {
28936
28958
  top: withCtx(() => [
28937
28959
  renderSlot(a.$slots, "formTop")
28938
28960
  ]),
28939
- tableColumn: withCtx(({ table: T, tableColumn: P, tableCode: I, row: A, index: x, column: O, code: N }) => [
28961
+ tableColumn: withCtx(({ table: P, tableColumn: I, tableCode: A, row: x, index: O, column: N, code: D }) => [
28940
28962
  renderSlot(a.$slots, "formTableCommand", {
28941
- table: T,
28942
- tableColumn: P,
28943
- tableCode: I,
28944
- row: A,
28945
- index: A,
28946
- column: O,
28947
- code: N
28963
+ table: P,
28964
+ tableColumn: I,
28965
+ tableCode: A,
28966
+ row: x,
28967
+ index: x,
28968
+ column: N,
28969
+ code: D
28948
28970
  })
28949
28971
  ]),
28950
- tableCommand: withCtx(({ table: T, tableColumn: P, tableCode: I, row: A, index: x }) => [
28972
+ tableCommand: withCtx(({ table: P, tableColumn: I, tableCode: A, row: x, index: O }) => [
28951
28973
  renderSlot(a.$slots, "formTableCommand", {
28952
- table: T,
28953
- tableColumn: P,
28954
- tableCode: I,
28955
- row: A,
28956
- index: A
28974
+ table: P,
28975
+ tableColumn: I,
28976
+ tableCode: A,
28977
+ row: x,
28978
+ index: x
28957
28979
  })
28958
28980
  ]),
28959
- column: withCtx(({ form: T, data: P, column: I, code: A }) => [
28981
+ column: withCtx(({ form: P, data: I, column: A, code: x }) => [
28960
28982
  renderSlot(a.$slots, "formColumn", {
28961
- form: T,
28962
- data: P,
28963
- column: I,
28964
- code: A
28983
+ form: P,
28984
+ data: I,
28985
+ column: A,
28986
+ code: x
28965
28987
  })
28966
28988
  ]),
28967
28989
  bottom: withCtx(() => [
28968
28990
  renderSlot(a.$slots, "formBottom")
28969
28991
  ]),
28970
28992
  footer: withCtx(() => [
28971
- r[9] || (r[9] = createElementVNode("span", null, null, -1)),
28993
+ r[11] || (r[11] = createElementVNode("span", null, null, -1)),
28972
28994
  createVNode$1(d, {
28973
28995
  type: "primary",
28974
28996
  "custom-icon": "fa fa-cloud-upload-alt",
@@ -29003,8 +29025,19 @@ function _sfc_render$M(a, r, o, s, l, c) {
29003
29025
  a.$refs.form && a.$refs.form.data && a.$refs.form.data.application && a.$refs.form.data.application.processInstID ? (openBlock(), createBlock(d, {
29004
29026
  key: 1,
29005
29027
  type: "info",
29028
+ "custom-icon": "fa fa-route",
29029
+ onClick: r[0] || (r[0] = (P) => a.$refs.flowChart.open({ processInstID: a.$refs.form.data.application.processInstID }))
29030
+ }, {
29031
+ default: withCtx(() => [
29032
+ createTextVNode(toDisplayString$2(a.$t("Front_Btn_Process")), 1)
29033
+ ]),
29034
+ _: 1
29035
+ })) : createCommentVNode("", !0),
29036
+ a.$refs.form && a.$refs.form.data && a.$refs.form.data.application && a.$refs.form.data.application.processInstID ? (openBlock(), createBlock(d, {
29037
+ key: 2,
29038
+ type: "info",
29006
29039
  "custom-icon": "fa fa-history",
29007
- onClick: r[0] || (r[0] = (T) => a.$refs.approvalHistoryTable.open({ processInstID: a.$refs.form.data.application.processInstID }))
29040
+ onClick: r[1] || (r[1] = (P) => a.$refs.approvalHistoryTable.open({ processInstID: a.$refs.form.data.application.processInstID }))
29008
29041
  }, {
29009
29042
  default: withCtx(() => [
29010
29043
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_History")), 1)
@@ -29018,44 +29051,44 @@ function _sfc_render$M(a, r, o, s, l, c) {
29018
29051
  key: 1,
29019
29052
  ref: "showForm",
29020
29053
  readonly: l.page.showViewCode == null,
29021
- onOnAfterSave: r[4] || (r[4] = (T) => a.$refs.table.loadData())
29054
+ onOnAfterSave: r[6] || (r[6] = (P) => a.$refs.table.loadData())
29022
29055
  }, {
29023
29056
  top: withCtx(() => [
29024
29057
  renderSlot(a.$slots, "showFormTop")
29025
29058
  ]),
29026
- tableColumn: withCtx(({ table: T, tableColumn: P, tableCode: I, row: A, index: x, column: O, code: N }) => [
29059
+ tableColumn: withCtx(({ table: P, tableColumn: I, tableCode: A, row: x, index: O, column: N, code: D }) => [
29027
29060
  renderSlot(a.$slots, "showFormTableCommand", {
29028
- table: T,
29029
- tableColumn: P,
29030
- tableCode: I,
29031
- row: A,
29032
- index: A,
29033
- column: O,
29034
- code: N
29061
+ table: P,
29062
+ tableColumn: I,
29063
+ tableCode: A,
29064
+ row: x,
29065
+ index: x,
29066
+ column: N,
29067
+ code: D
29035
29068
  })
29036
29069
  ]),
29037
- tableCommand: withCtx(({ table: T, tableColumn: P, tableCode: I, row: A, index: x }) => [
29070
+ tableCommand: withCtx(({ table: P, tableColumn: I, tableCode: A, row: x, index: O }) => [
29038
29071
  renderSlot(a.$slots, "showFormTableCommand", {
29039
- table: T,
29040
- tableColumn: P,
29041
- tableCode: I,
29042
- row: A,
29043
- index: A
29072
+ table: P,
29073
+ tableColumn: I,
29074
+ tableCode: A,
29075
+ row: x,
29076
+ index: x
29044
29077
  })
29045
29078
  ]),
29046
- column: withCtx(({ form: T, data: P, column: I, code: A }) => [
29079
+ column: withCtx(({ form: P, data: I, column: A, code: x }) => [
29047
29080
  renderSlot(a.$slots, "showFormColumn", {
29048
- form: T,
29049
- data: P,
29050
- column: I,
29051
- code: A
29081
+ form: P,
29082
+ data: I,
29083
+ column: A,
29084
+ code: x
29052
29085
  })
29053
29086
  ]),
29054
29087
  bottom: withCtx(() => [
29055
29088
  renderSlot(a.$slots, "showFormBottom")
29056
29089
  ]),
29057
29090
  footer: withCtx(() => [
29058
- r[11] || (r[11] = createElementVNode("span", null, null, -1)),
29091
+ r[13] || (r[13] = createElementVNode("span", null, null, -1)),
29059
29092
  l.isRecallable && a.$refs.showForm && a.$refs.showForm.data && a.$refs.showForm.data.application && a.$refs.showForm.data.applicationID && a.$refs.showForm.data.application.status == "Running" ? (openBlock(), createBlock(d, {
29060
29093
  key: 0,
29061
29094
  type: "warning",
@@ -29071,9 +29104,9 @@ function _sfc_render$M(a, r, o, s, l, c) {
29071
29104
  key: 1,
29072
29105
  type: "primary",
29073
29106
  "custom-icon": "fa fa-comment-dots",
29074
- onClick: r[2] || (r[2] = (T) => c.openMessage())
29107
+ onClick: r[3] || (r[3] = (P) => c.openMessage())
29075
29108
  }, {
29076
- default: withCtx(() => [...r[10] || (r[10] = [
29109
+ default: withCtx(() => [...r[12] || (r[12] = [
29077
29110
  createTextVNode(" 发表意见 ", -1)
29078
29111
  ])]),
29079
29112
  _: 1
@@ -29081,8 +29114,19 @@ function _sfc_render$M(a, r, o, s, l, c) {
29081
29114
  a.$refs.showForm && a.$refs.showForm.data && a.$refs.showForm.data.application && a.$refs.showForm.data.application.processInstID ? (openBlock(), createBlock(d, {
29082
29115
  key: 2,
29083
29116
  type: "info",
29117
+ "custom-icon": "fa fa-route",
29118
+ onClick: r[4] || (r[4] = (P) => a.$refs.flowChart.open({ processInstID: a.$refs.showForm.data.application.processInstID }))
29119
+ }, {
29120
+ default: withCtx(() => [
29121
+ createTextVNode(toDisplayString$2(a.$t("Front_Btn_Process")), 1)
29122
+ ]),
29123
+ _: 1
29124
+ })) : createCommentVNode("", !0),
29125
+ a.$refs.showForm && a.$refs.showForm.data && a.$refs.showForm.data.application && a.$refs.showForm.data.application.processInstID ? (openBlock(), createBlock(d, {
29126
+ key: 3,
29127
+ type: "info",
29084
29128
  "custom-icon": "fa fa-history",
29085
- onClick: r[3] || (r[3] = (T) => a.$refs.approvalHistoryTable.open({ processInstID: a.$refs.showForm.data.application.processInstID }))
29129
+ onClick: r[5] || (r[5] = (P) => a.$refs.approvalHistoryTable.open({ processInstID: a.$refs.showForm.data.application.processInstID }))
29086
29130
  }, {
29087
29131
  default: withCtx(() => [
29088
29132
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_History")), 1)
@@ -29098,7 +29142,7 @@ function _sfc_render$M(a, r, o, s, l, c) {
29098
29142
  }, null, 512),
29099
29143
  createVNode$1(E, {
29100
29144
  modelValue: l.messageOpened,
29101
- "onUpdate:modelValue": r[8] || (r[8] = (T) => l.messageOpened = T),
29145
+ "onUpdate:modelValue": r[10] || (r[10] = (P) => l.messageOpened = P),
29102
29146
  scrollable: ""
29103
29147
  }, {
29104
29148
  header: withCtx(() => [
@@ -29121,7 +29165,7 @@ function _sfc_render$M(a, r, o, s, l, c) {
29121
29165
  createVNode$1(d, {
29122
29166
  type: "default",
29123
29167
  "custom-icon": "fa fa-times",
29124
- onClick: r[7] || (r[7] = (T) => l.messageOpened = !1)
29168
+ onClick: r[9] || (r[9] = (P) => l.messageOpened = !1)
29125
29169
  }, {
29126
29170
  default: withCtx(() => [
29127
29171
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Close")), 1)
@@ -29137,7 +29181,7 @@ function _sfc_render$M(a, r, o, s, l, c) {
29137
29181
  "label-position": "top",
29138
29182
  "label-colon": ":",
29139
29183
  class: "ivu-mt",
29140
- onSubmit: r[6] || (r[6] = withModifiers(() => {
29184
+ onSubmit: r[8] || (r[8] = withModifiers(() => {
29141
29185
  }, ["prevent"]))
29142
29186
  }, {
29143
29187
  default: withCtx(() => [
@@ -29163,7 +29207,7 @@ function _sfc_render$M(a, r, o, s, l, c) {
29163
29207
  type: "textarea",
29164
29208
  rows: 6,
29165
29209
  modelValue: l.messageData.message,
29166
- "onUpdate:modelValue": r[5] || (r[5] = (T) => l.messageData.message = T)
29210
+ "onUpdate:modelValue": r[7] || (r[7] = (P) => l.messageData.message = P)
29167
29211
  }, null, 8, ["modelValue"])
29168
29212
  ]),
29169
29213
  _: 1
@@ -29180,7 +29224,8 @@ function _sfc_render$M(a, r, o, s, l, c) {
29180
29224
  ])
29181
29225
  ]),
29182
29226
  _: 1
29183
- }, 8, ["modelValue"])
29227
+ }, 8, ["modelValue"]),
29228
+ createVNode$1(T, { ref: "flowChart" }, null, 512)
29184
29229
  ]);
29185
29230
  }
29186
29231
  const processPage = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]]), __vite_glob_0_35 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -33367,12 +33412,16 @@ const columnEdit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_ren
33367
33412
  let o = {};
33368
33413
  if (this.columns.forEach((s) => {
33369
33414
  if (s.defaultValue)
33370
- if (s.defaultValue == "{today}") {
33371
- let c = (/* @__PURE__ */ new Date()).toISOString().replace(/T.*/, "");
33415
+ if (s.defaultValue.startsWith("{today}")) {
33416
+ let l = /* @__PURE__ */ new Date();
33417
+ s.defaultValue.indexOf("+") != -1 ? l.setDate(l.getDate() + parseInt(s.defaultValue.split("+")[1])) : s.defaultValue.indexOf("-") != -1 && l.setDate(l.getDate() - parseInt(s.defaultValue.split("-")[1]));
33418
+ let c = l.toISOString().replace(/T.*/, "");
33372
33419
  a(o, s, new Date(c));
33373
- } else if (s.defaultValue.startsWith("{today(") && s.defaultValue.endsWith(")}")) {
33374
- let l = s.defaultValue.substr(7, s.defaultValue.length - 9);
33375
- a(o, s, format$6(/* @__PURE__ */ new Date(), l));
33420
+ } else if (s.defaultValue.startsWith("{today(")) {
33421
+ let l = /* @__PURE__ */ new Date();
33422
+ s.defaultValue.indexOf("+") != -1 ? l.setDate(l.getDate() + parseInt(s.defaultValue.split("+")[1])) : s.defaultValue.indexOf("-") != -1 && l.setDate(l.getDate() - parseInt(s.defaultValue.split("-")[1]));
33423
+ let c = s.defaultValue.substr(7, s.defaultValue.indexOf(")}") - 7);
33424
+ a(o, s, format$6(l, c));
33376
33425
  } else s.defaultValue == "{currentUserID}" ? a(o, s, this.info.id) : s.defaultValue == "{currentUser}" ? a(o, s, this.info.name) : s.controlType == "MultiSelect" || s.controlType == "MultiTreeSelect" || s.controlType == "MultiComboSelect" ? r(o, s, s.defaultValue.split(",")) : s.dataType === "Integer" ? a(o, s, parseInt(s.defaultValue)) : s.dataType === "Decimal" ? a(o, s, parseFloat(s.defaultValue)) : s.dataType === "Boolean" && s.defaultValue.toUpperCase == "TRUE" ? a(o, s, !0) : s.dataType === "Boolean" && s.defaultValue.toUpperCase == "FALSE" ? a(o, s, !1) : a(o, s, s.defaultValue);
33377
33426
  else
33378
33427
  (s.controlType == "Check" || s.controlType == "Switch") && s.dataType === "Boolean" ? a(o, s, !1) : a(o, s, null);
@@ -103709,10 +103758,10 @@ const _sfc_main$o = {
103709
103758
  },
103710
103759
  mounted() {
103711
103760
  this.$refs.table.hotInstance.addHook("beforeOnCellMouseUp", (a, r) => {
103712
- if (this.coords = r, a.detail === 2 && r.row >= 0 && !this.readonly) {
103713
- let o = this.hotSetting.columns[r.col], s = this.$refs.table.hotInstance.getSourceData();
103714
- o.controlType === "DialogSelect" && !o.readonly && this.$refs.dialogTable.init(o.source, () => {
103715
- this.$refs.dialogTable.open(this.getParam(s[r.row], o, this.parentData));
103761
+ if (this.coords = r, a.detail === 2 && r.row >= 0 && !this.readonly && !this.$refs.table.hotInstance.getCellMeta(r.row, r.col).readOnly) {
103762
+ let s = this.hotSetting.columns[r.col];
103763
+ s.controlType === "DialogSelect" && !s.readonly && this.$refs.dialogTable.init(s.source, () => {
103764
+ this.$refs.dialogTable.open(this.getParam(this.staticData[r.row], s, this.parentData));
103716
103765
  });
103717
103766
  }
103718
103767
  });
@@ -103820,14 +103869,14 @@ const _sfc_main$o = {
103820
103869
  if (!this.readonly)
103821
103870
  if (l.controlType === "Label" || l.isReadonly == !0)
103822
103871
  c.readOnly = !0;
103823
- else if (l.controlType === "TextInput")
103824
- c.type = "text", c.isRequired && (c.validator = "text-required");
103872
+ else if (c.validator = this.getValidator(c), l.controlType === "TextInput")
103873
+ c.type = "text";
103825
103874
  else if (l.controlType === "NumberInput")
103826
- c.type = "numeric", c.isRequired && (c.validator = "numeric-required");
103875
+ c.type = "numeric";
103827
103876
  else if (l.controlType === "Check")
103828
103877
  c.type = "checkbox";
103829
103878
  else if (l.controlType === "Select") {
103830
- c.editor = "select", c.isRequired && (c.validator = "select-required");
103879
+ c.editor = "select";
103831
103880
  let u = [];
103832
103881
  if (c.isStaticItem)
103833
103882
  (c.itemData || "").trim() && c.itemData.split(/[\n]/).forEach((d) => {
@@ -103874,7 +103923,7 @@ const _sfc_main$o = {
103874
103923
  }));
103875
103924
  }
103876
103925
  c.selectOptions = u.map((d) => d.id);
103877
- } else l.controlType === "Date" && (c.type = "date", c.isRequired && (c.validator = "date-required"), c.dateFormat = "YYYY-MM-DD", c.correctFormat = !0);
103926
+ } else l.controlType === "Date" && (c.type = "date", c.dateFormat = "YYYY-MM-DD", c.correctFormat = !0);
103878
103927
  return c;
103879
103928
  })
103880
103929
  ), this.columns = this.columns.filter((l) => l.isFixed == !0).concat(
@@ -103958,6 +104007,15 @@ const _sfc_main$o = {
103958
104007
  });
103959
104008
  }
103960
104009
  },
104010
+ // 获取验证器
104011
+ getValidator(a) {
104012
+ if (a.controlType === "TextInput" || a.controlType === "Select" || a.controlType === "DialogSelect")
104013
+ return a.isRequired ? "text-required" : "text";
104014
+ if (a.controlType === "NumberInput")
104015
+ return a.isRequired ? "numeric-required" : "numeric";
104016
+ if (a.controlType === "Date")
104017
+ return a.isRequired ? "date-required" : "date";
104018
+ },
103961
104019
  /**
103962
104020
  * 加载数据
103963
104021
  *
@@ -104048,12 +104106,16 @@ const _sfc_main$o = {
104048
104106
  setShowStatus() {
104049
104107
  this.$refs.table.hotInstance.updateSettings({
104050
104108
  cells: (a, r, o) => {
104051
- let s = this.columns.find((l) => l.code == o);
104109
+ let s = this.columns.find((u) => u.code == o), l = s.isShow, c = s.isReadonly;
104052
104110
  if ((s.readonlyJson || "").trim()) {
104053
- let l = JSON.parse(s.readonlyJson);
104054
- if (l.type == "Condition" || l.type == "Expression")
104055
- return { readOnly: this.judgeCondition(l, this.staticData[a]) };
104111
+ let u = JSON.parse(s.readonlyJson);
104112
+ (u.type == "Condition" || u.type == "Expression") && (c = this.judgeCondition(u, this.staticData[a]));
104056
104113
  }
104114
+ if ((s.showJson || "").trim()) {
104115
+ let u = JSON.parse(s.showJson);
104116
+ (u.type == "Condition" || u.type == "Expression") && (l = this.judgeCondition(u, this.staticData[a]));
104117
+ }
104118
+ return l || this.setData(this.staticData[a], o, null), { readOnly: !l || c, validator: l ? this.getValidator(s) : null };
104057
104119
  }
104058
104120
  });
104059
104121
  },
@@ -106099,7 +106161,7 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
106099
106161
  default: viewTable
106100
106162
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
106101
106163
  mixins: [mixinPage],
106102
- components: {},
106164
+ components: { flowChart },
106103
106165
  data() {
106104
106166
  return {
106105
106167
  task: null,
@@ -106253,11 +106315,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
106253
106315
  }
106254
106316
  }, _hoisted_1$d = { class: "title" }, _hoisted_2$a = { class: "description" }, _hoisted_3$8 = { class: "ivu-ml-8 ivu-mr-8" }, _hoisted_4$4 = { class: "title" }, _hoisted_5$2 = { class: "description" }, _hoisted_6$1 = { class: "ivu-ml-8 ivu-mr-8" };
106255
106317
  function _sfc_render$m(a, r, o, s, l, c) {
106256
- const u = resolveComponent("Icon"), d = resolveComponent("view-form"), f = resolveComponent("Button"), p = resolveComponent("Modal"), g = resolveComponent("modal-table"), v = resolveComponent("modal-form"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form");
106318
+ const u = resolveComponent("Icon"), d = resolveComponent("view-form"), f = resolveComponent("Button"), p = resolveComponent("Modal"), g = resolveComponent("modal-table"), v = resolveComponent("modal-form"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form"), E = resolveComponent("flow-chart");
106257
106319
  return openBlock(), createElementBlock("div", null, [
106258
106320
  createVNode$1(p, {
106259
106321
  modelValue: l.opened,
106260
- "onUpdate:modelValue": r[11] || (r[11] = (E) => l.opened = E),
106322
+ "onUpdate:modelValue": r[12] || (r[12] = (T) => l.opened = T),
106261
106323
  scrollable: "",
106262
106324
  fullscreen: l.isFullscreen,
106263
106325
  "mask-closable": a.layout.maskClosable,
@@ -106283,30 +106345,30 @@ function _sfc_render$m(a, r, o, s, l, c) {
106283
106345
  key: 0,
106284
106346
  style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
106285
106347
  type: "ios-expand",
106286
- onClick: r[0] || (r[0] = (E) => l.isFullscreen = !l.isFullscreen)
106348
+ onClick: r[0] || (r[0] = (T) => l.isFullscreen = !l.isFullscreen)
106287
106349
  })),
106288
106350
  l.isFullscreen ? (openBlock(), createBlock(u, {
106289
106351
  key: 1,
106290
106352
  style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
106291
106353
  type: "ios-contract",
106292
- onClick: r[1] || (r[1] = (E) => l.isFullscreen = !l.isFullscreen)
106354
+ onClick: r[1] || (r[1] = (T) => l.isFullscreen = !l.isFullscreen)
106293
106355
  })) : createCommentVNode("", !0),
106294
106356
  createVNode$1(u, {
106295
106357
  type: "ios-close",
106296
- onClick: r[2] || (r[2] = (E) => l.opened = !1)
106358
+ onClick: r[2] || (r[2] = (T) => l.opened = !1)
106297
106359
  })
106298
106360
  ])
106299
106361
  ]),
106300
106362
  footer: withCtx(() => [
106301
106363
  createElementVNode("div", null, [
106302
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.outcomes, (E, T) => (openBlock(), createBlock(f, {
106303
- key: T,
106364
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.outcomes, (T, P) => (openBlock(), createBlock(f, {
106365
+ key: P,
106304
106366
  type: "primary",
106305
106367
  "custom-icon": "fa fa-check-circle",
106306
- onClick: (P) => c.action(E)
106368
+ onClick: (I) => c.action(T)
106307
106369
  }, {
106308
106370
  default: withCtx(() => [
106309
- createTextVNode(toDisplayString$2(E.name == null ? a.$t("Front_Btn_Agree") : E.name), 1)
106371
+ createTextVNode(toDisplayString$2(T.name == null ? a.$t("Front_Btn_Agree") : T.name), 1)
106310
106372
  ]),
106311
106373
  _: 2
106312
106374
  }, 1032, ["onClick"]))), 128)),
@@ -106314,7 +106376,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106314
106376
  key: 0,
106315
106377
  type: "warning",
106316
106378
  "custom-icon": "fa fa-reply",
106317
- onClick: r[4] || (r[4] = (E) => c.reject())
106379
+ onClick: r[4] || (r[4] = (T) => c.reject())
106318
106380
  }, {
106319
106381
  default: withCtx(() => [
106320
106382
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Reject")), 1)
@@ -106325,7 +106387,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106325
106387
  key: 1,
106326
106388
  type: "primary",
106327
106389
  "custom-icon": "fa fa-share",
106328
- onClick: r[5] || (r[5] = (E) => c.back())
106390
+ onClick: r[5] || (r[5] = (T) => c.back())
106329
106391
  }, {
106330
106392
  default: withCtx(() => [
106331
106393
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Back_Previous")), 1)
@@ -106336,7 +106398,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106336
106398
  key: 2,
106337
106399
  type: "primary",
106338
106400
  "custom-icon": "fa fa-share",
106339
- onClick: r[6] || (r[6] = (E) => a.$refs.redirectTaskForm.open())
106401
+ onClick: r[6] || (r[6] = (T) => a.$refs.redirectTaskForm.open())
106340
106402
  }, {
106341
106403
  default: withCtx(() => [
106342
106404
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Redirect")), 1)
@@ -106347,7 +106409,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106347
106409
  key: 3,
106348
106410
  type: "primary",
106349
106411
  "custom-icon": "fa fa-reply-all",
106350
- onClick: r[7] || (r[7] = (E) => c.recall())
106412
+ onClick: r[7] || (r[7] = (T) => c.recall())
106351
106413
  }, {
106352
106414
  default: withCtx(() => [
106353
106415
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Recall")), 1)
@@ -106358,17 +106420,27 @@ function _sfc_render$m(a, r, o, s, l, c) {
106358
106420
  key: 4,
106359
106421
  type: "primary",
106360
106422
  "custom-icon": "fa fa-comment-dots",
106361
- onClick: r[8] || (r[8] = (E) => c.openMessage())
106423
+ onClick: r[8] || (r[8] = (T) => c.openMessage())
106362
106424
  }, {
106363
106425
  default: withCtx(() => [
106364
106426
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Leave_Message")), 1)
106365
106427
  ]),
106366
106428
  _: 1
106367
106429
  })) : createCommentVNode("", !0),
106430
+ createVNode$1(f, {
106431
+ type: "info",
106432
+ "custom-icon": "fa fa-route",
106433
+ onClick: r[9] || (r[9] = (T) => a.$refs.flowChart.open({ processInstID: l.task.processInstID }))
106434
+ }, {
106435
+ default: withCtx(() => [
106436
+ createTextVNode(toDisplayString$2(a.$t("Front_Btn_Process")), 1)
106437
+ ]),
106438
+ _: 1
106439
+ }),
106368
106440
  createVNode$1(f, {
106369
106441
  type: "info",
106370
106442
  "custom-icon": "fa fa-history",
106371
- onClick: r[9] || (r[9] = (E) => a.$refs.approvalHistoryTable.open({ processInstID: l.task.processInstID }))
106443
+ onClick: r[10] || (r[10] = (T) => a.$refs.approvalHistoryTable.open({ processInstID: l.task.processInstID }))
106372
106444
  }, {
106373
106445
  default: withCtx(() => [
106374
106446
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_History")), 1)
@@ -106378,7 +106450,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106378
106450
  createVNode$1(f, {
106379
106451
  type: "default",
106380
106452
  "custom-icon": "fa fa-times",
106381
- onClick: r[10] || (r[10] = (E) => l.opened = !1)
106453
+ onClick: r[11] || (r[11] = (T) => l.opened = !1)
106382
106454
  }, {
106383
106455
  default: withCtx(() => [
106384
106456
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Close")), 1)
@@ -106416,7 +106488,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106416
106488
  createVNode$1(f, {
106417
106489
  type: "primary",
106418
106490
  "custom-icon": "fa fa-check",
106419
- onClick: r[12] || (r[12] = (E) => c.redirect())
106491
+ onClick: r[13] || (r[13] = (T) => c.redirect())
106420
106492
  }, {
106421
106493
  default: withCtx(() => [
106422
106494
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_OK")), 1)
@@ -106428,7 +106500,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106428
106500
  }, 512),
106429
106501
  createVNode$1(p, {
106430
106502
  modelValue: l.messageOpened,
106431
- "onUpdate:modelValue": r[16] || (r[16] = (E) => l.messageOpened = E),
106503
+ "onUpdate:modelValue": r[17] || (r[17] = (T) => l.messageOpened = T),
106432
106504
  scrollable: ""
106433
106505
  }, {
106434
106506
  header: withCtx(() => [
@@ -106451,7 +106523,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106451
106523
  createVNode$1(f, {
106452
106524
  type: "default",
106453
106525
  "custom-icon": "fa fa-times",
106454
- onClick: r[15] || (r[15] = (E) => l.messageOpened = !1)
106526
+ onClick: r[16] || (r[16] = (T) => l.messageOpened = !1)
106455
106527
  }, {
106456
106528
  default: withCtx(() => [
106457
106529
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Close")), 1)
@@ -106467,7 +106539,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106467
106539
  "label-position": "top",
106468
106540
  "label-colon": ":",
106469
106541
  class: "ivu-mt",
106470
- onSubmit: r[14] || (r[14] = withModifiers(() => {
106542
+ onSubmit: r[15] || (r[15] = withModifiers(() => {
106471
106543
  }, ["prevent"]))
106472
106544
  }, {
106473
106545
  default: withCtx(() => [
@@ -106493,7 +106565,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106493
106565
  type: "textarea",
106494
106566
  rows: 6,
106495
106567
  modelValue: l.messageData.message,
106496
- "onUpdate:modelValue": r[13] || (r[13] = (E) => l.messageData.message = E)
106568
+ "onUpdate:modelValue": r[14] || (r[14] = (T) => l.messageData.message = T)
106497
106569
  }, null, 8, ["modelValue"])
106498
106570
  ]),
106499
106571
  _: 1
@@ -106510,7 +106582,8 @@ function _sfc_render$m(a, r, o, s, l, c) {
106510
106582
  ])
106511
106583
  ]),
106512
106584
  _: 1
106513
- }, 8, ["modelValue"])
106585
+ }, 8, ["modelValue"]),
106586
+ createVNode$1(E, { ref: "flowChart" }, null, 512)
106514
106587
  ]);
106515
106588
  }
106516
106589
  const taskForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m]]), __vite_glob_1_35 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({