ddy-process-h5 1.0.1-rc.2 → 1.0.1-rc.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v2/ddy-process-h5.js +412 -372
- package/v2/ddy-process-h5.umd.cjs +9 -9
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-h5.js +130 -90
- package/v2.7/ddy-process-h5.umd.cjs +1 -1
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-h5.js +1299 -1292
- package/v3/ddy-process-h5.umd.cjs +8 -8
- package/v3/style.css +1 -1
package/v2.7/ddy-process-h5.js
CHANGED
|
@@ -18317,15 +18317,19 @@ const TC = {
|
|
|
18317
18317
|
watch: {
|
|
18318
18318
|
items: {
|
|
18319
18319
|
handler(e, i) {
|
|
18320
|
-
e && e.length && (this.multiNodeParticipant = {}, this.partNode = {}, this.partNodeArr = {}, this.gateVars = {}, this
|
|
18321
|
-
if (t.userTaskModelDTO || (t.userTaskModelDTO = {
|
|
18320
|
+
e && e.length && (this.multiNodeParticipant = {}, this.partNode = {}, this.partNodeArr = {}, this.gateVars = {}, this.nodeItems = JSON.parse(JSON.stringify(e)), console.log("\u8FDB\u6765\u4E86", this.nodeItems), this.nodeItems.map((t) => {
|
|
18321
|
+
if (console.log("v", t, Array.isArray(t.assignees), t.assignees), t.userTaskModelDTO || (t.userTaskModelDTO = {
|
|
18322
18322
|
name: t.name,
|
|
18323
18323
|
humanPerformer: {
|
|
18324
18324
|
name: t.humanPerformerName
|
|
18325
18325
|
},
|
|
18326
18326
|
routeTxt: t.routeTxt,
|
|
18327
18327
|
participantList: t.participantList
|
|
18328
|
-
}), t.
|
|
18328
|
+
}), Array.isArray(t.assignees) && t.assignees.length && (this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNodeArr[t.id] || (this.partNodeArr[t.id] = []), t.assignees.forEach((s) => {
|
|
18329
|
+
console.log(this.partNodeArr, this.multiNodeParticipant, s, "\u6D4B\u8BD5");
|
|
18330
|
+
const n = this.partNodeArr[t.id].find((a) => a.name == s.name), r = this.multiNodeParticipant[t.id].find((a) => a == s.id);
|
|
18331
|
+
n || this.partNodeArr[t.id].push(s), r || (this.multiNodeParticipant[t.id].push(s.id), console.log("\u8FDB\u6765\u6765\u7740\u4E86"));
|
|
18332
|
+
})), t.userTaskModelDTO && t.userTaskModelDTO.participantList && t.userTaskModelDTO.participantList.length && t.userTaskModelDTO.humanPerformer && t.userTaskModelDTO.participantList.map((s) => {
|
|
18329
18333
|
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(s.id) || this.multiNodeParticipant[t.id].push(s.id), this.partNode[t.id].includes(s.name) || this.partNode[t.id].push(s.name), this.partNodeArr[t.id].find((n) => n.name == s.name) || this.partNodeArr[t.id].push(s);
|
|
18330
18334
|
}), (t.userTaskModelDTO.humanPerformer.name == "\u56FA\u5B9A\u8D26\u6237" || t.userTaskModelDTO.humanPerformer.name == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && this.personMake.push(t.id), t.userTaskModelDTO.humanPerformer.name == "\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D") {
|
|
18331
18335
|
let s = {
|
|
@@ -18362,7 +18366,7 @@ const TC = {
|
|
|
18362
18366
|
).then((s) => {
|
|
18363
18367
|
s.code == 200 && (this.personMakeList = s.data);
|
|
18364
18368
|
});
|
|
18365
|
-
}), this.checkType == "ExclusiveGatewayModel" && e.length == 1 && this.handleRadioClick(e[0]));
|
|
18369
|
+
}), this.$emit("onMultiNode", this.multiNodeParticipant), this.$emit("onMultiNodeObj", this.partNodeArr), this.$emit("onVars", this.gateVars), this.checkType == "ExclusiveGatewayModel" && e.length == 1 && this.handleRadioClick(e[0]));
|
|
18366
18370
|
},
|
|
18367
18371
|
immediate: !0,
|
|
18368
18372
|
deep: !0
|
|
@@ -18534,7 +18538,7 @@ var IC = /* @__PURE__ */ ve(
|
|
|
18534
18538
|
xC,
|
|
18535
18539
|
!1,
|
|
18536
18540
|
kC,
|
|
18537
|
-
"
|
|
18541
|
+
"79f50d8c",
|
|
18538
18542
|
null,
|
|
18539
18543
|
null
|
|
18540
18544
|
);
|
|
@@ -18550,35 +18554,30 @@ var SC = function() {
|
|
|
18550
18554
|
return t("div", {
|
|
18551
18555
|
staticClass: "test"
|
|
18552
18556
|
}, [e.nodeItems && e.nodeItems.length ? t("div", e._l(e.nodeItems, function(s, n) {
|
|
18553
|
-
var r;
|
|
18554
18557
|
return t("div", {
|
|
18555
18558
|
key: n,
|
|
18556
18559
|
staticClass: "treeperson"
|
|
18557
|
-
}, [
|
|
18560
|
+
}, [s.branches && s.branches.length ? [e.nodeType == "nexting" && s.nodeType != "inclusiveGateway" ? [s.nodeType == "exclusiveGateway" && s.branches.length > 1 ? t("div", {
|
|
18558
18561
|
staticClass: "treeperson-firstnode"
|
|
18559
|
-
}, [
|
|
18560
|
-
staticClass: "treeperson-title"
|
|
18561
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B91\uFF1A" + e._s(e.nodeType) + " "), t("span", {
|
|
18562
|
-
staticClass: "treeperson-title--re"
|
|
18563
|
-
}, [e._v("*")])]), t("pre", [e._v(e._s(s.nodeType))]), e._l(s.branches, function(a, o) {
|
|
18562
|
+
}, [e._m(0, !0), e._l(s.branches, function(r, a) {
|
|
18564
18563
|
return t("div", {
|
|
18565
|
-
key:
|
|
18564
|
+
key: a,
|
|
18566
18565
|
staticClass: "treeperson-radio",
|
|
18567
|
-
class: e.firstCheck == (
|
|
18566
|
+
class: e.firstCheck == (r.nodeInfoDTO ? r.nodeInfoDTO.id : r.id) ? "treeperson-radio-active" : "",
|
|
18568
18567
|
on: {
|
|
18569
|
-
click: function(
|
|
18570
|
-
return e.handleFirstNodeClick(
|
|
18568
|
+
click: function(o) {
|
|
18569
|
+
return e.handleFirstNodeClick(r, s.branches);
|
|
18571
18570
|
}
|
|
18572
18571
|
}
|
|
18573
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18572
|
+
}, [t("span"), e._v(" " + e._s(r.id.includes("Flow") ? r.nodeName || r.name : r.nodeInfoDTO ? r.nodeInfoDTO.nodeName || r.nodeInfoDTO.name || r.nodeName || r.name : r.nodeName || r.name) + " ")]);
|
|
18574
18573
|
})], 2) : s.nodeType == "exclusiveGateway" && s.branches.length == 1 ? t("div", {
|
|
18575
18574
|
staticClass: "treeperson-firstnode"
|
|
18576
|
-
},
|
|
18575
|
+
}, e._l(s.branches, function(r, a) {
|
|
18577
18576
|
return t("div", [t("span"), t("TreePerson", {
|
|
18578
18577
|
ref: "TreePersonRef",
|
|
18579
18578
|
refInFor: !0,
|
|
18580
18579
|
attrs: {
|
|
18581
|
-
items:
|
|
18580
|
+
items: r.branches && r.branches.length > 0 ? r.branches : [r],
|
|
18582
18581
|
nodeType: "nexting",
|
|
18583
18582
|
param: e.param
|
|
18584
18583
|
},
|
|
@@ -18587,41 +18586,33 @@ var SC = function() {
|
|
|
18587
18586
|
onMultiNodeObj: e.onMultiNodeObj
|
|
18588
18587
|
}
|
|
18589
18588
|
})], 1);
|
|
18590
|
-
})
|
|
18589
|
+
}), 0) : s.nodeType == "inclusiveGateway" && s.branches.length >= 1 ? t("div", {
|
|
18591
18590
|
staticClass: "treeperson-firstnode"
|
|
18592
|
-
}, [
|
|
18593
|
-
staticClass: "treeperson-title"
|
|
18594
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B91-2\uFF1A" + e._s(e.nodeType) + " "), t("span", {
|
|
18595
|
-
staticClass: "treeperson-title--re"
|
|
18596
|
-
}, [e._v("*")])]), t("pre", [e._v(e._s(s.nodeType))]), e._l(s.branches, function(a, o) {
|
|
18591
|
+
}, [e._m(1, !0), e._l(s.branches, function(r, a) {
|
|
18597
18592
|
return t("div", {
|
|
18598
|
-
key:
|
|
18593
|
+
key: a,
|
|
18599
18594
|
staticClass: "treeperson-radio",
|
|
18600
|
-
class: e.firstCheck == (
|
|
18595
|
+
class: e.firstCheck == (r.nodeInfoDTO ? r.nodeInfoDTO.id : r.id) ? "treeperson-radio-active" : "",
|
|
18601
18596
|
on: {
|
|
18602
|
-
click: function(
|
|
18603
|
-
return e.handleMultiFirstNodeClick(
|
|
18597
|
+
click: function(o) {
|
|
18598
|
+
return e.handleMultiFirstNodeClick(r);
|
|
18604
18599
|
}
|
|
18605
18600
|
}
|
|
18606
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18601
|
+
}, [t("span"), e._v(" " + e._s(r.nodeInfoDTO ? r.nodeInfoDTO.nodeName || r.nodeInfoDTO.name : r.nodeName || r.name) + " ")]);
|
|
18607
18602
|
})], 2) : t("div", {
|
|
18608
18603
|
staticClass: "treeperson-firstnode"
|
|
18609
|
-
}, [
|
|
18610
|
-
staticClass: "treeperson-title"
|
|
18611
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B91-3\uFF1A" + e._s(e.nodeType) + " "), t("span", {
|
|
18612
|
-
staticClass: "treeperson-title--re"
|
|
18613
|
-
}, [e._v("*")])]), t("pre", [e._v(e._s(s.nodeType))]), e._l(s.branches, function(a, o) {
|
|
18604
|
+
}, [e._m(2, !0), e._l(s.branches, function(r, a) {
|
|
18614
18605
|
return t("div", {
|
|
18615
|
-
key:
|
|
18606
|
+
key: a,
|
|
18616
18607
|
staticClass: "treeperson-radio",
|
|
18617
|
-
class: e.firstCheck == (
|
|
18608
|
+
class: e.firstCheck == (r.nodeInfoDTO ? r.nodeInfoDTO.id : r.id) ? "treeperson-radio-active" : "",
|
|
18618
18609
|
on: {
|
|
18619
|
-
click: function(
|
|
18620
|
-
return e.handleFirstNodeClick(
|
|
18610
|
+
click: function(o) {
|
|
18611
|
+
return e.handleFirstNodeClick(r, s.branches);
|
|
18621
18612
|
}
|
|
18622
18613
|
}
|
|
18623
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18624
|
-
})], 2),
|
|
18614
|
+
}, [t("span"), e._v(" " + e._s(r.nodeInfoDTO ? r.nodeInfoDTO.nodeName || r.nodeInfoDTO.name : r.nodeName || r.name) + " ")]);
|
|
18615
|
+
})], 2), e.childrenItems && e.childrenItems.length > 0 && e.childrenItems[0].nodeInfoDTO && e.childrenItems[0].nodeInfoDTO.nodeType != "userTask" ? [t("TreePerson", {
|
|
18625
18616
|
key: e.firstCheck,
|
|
18626
18617
|
ref: "TreePersonRef",
|
|
18627
18618
|
refInFor: !0,
|
|
@@ -18649,25 +18640,23 @@ var SC = function() {
|
|
|
18649
18640
|
}
|
|
18650
18641
|
})]] : e.nodeType == "nexting" && s.nodeType == "inclusiveGateway" ? [s.nodeType == "inclusiveGateway" && s.branches.length >= 1 ? t("div", {
|
|
18651
18642
|
staticClass: "treeperson-firstnode"
|
|
18652
|
-
}, [t("div", {
|
|
18653
|
-
staticClass: "treeperson-
|
|
18654
|
-
},
|
|
18655
|
-
staticClass: "treeperson-title--re"
|
|
18656
|
-
}, [e._v("*")])]), t("pre", [e._v(e._s(s.nodeType))]), e._l(s.branches, function(a, o) {
|
|
18643
|
+
}, [e._m(3, !0), t("div", {
|
|
18644
|
+
staticClass: "treeperson-checkbox-box"
|
|
18645
|
+
}, e._l(s.branches, function(r, a) {
|
|
18657
18646
|
return t("div", {
|
|
18658
|
-
key:
|
|
18647
|
+
key: a,
|
|
18659
18648
|
staticClass: "treeperson-checkbox",
|
|
18660
|
-
class: e.firstMultiCheck.includes(
|
|
18649
|
+
class: e.firstMultiCheck.includes(r.nodeInfoDTO ? r.nodeInfoDTO.id : r.id) ? "treeperson-checkbox-active" : "",
|
|
18661
18650
|
on: {
|
|
18662
|
-
click: function(
|
|
18663
|
-
return e.handleMultiFirstNodeClick(
|
|
18651
|
+
click: function(o) {
|
|
18652
|
+
return e.handleMultiFirstNodeClick(r, s.branches);
|
|
18664
18653
|
}
|
|
18665
18654
|
}
|
|
18666
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18667
|
-
})
|
|
18655
|
+
}, [t("span"), e._v(" " + e._s(r.nodeInfoDTO ? r.nodeInfoDTO.nodeName || r.nodeInfoDTO.name : r.nodeName || r.name) + " ")]);
|
|
18656
|
+
}), 0)]) : e._e(), e._l(e.filterMultiItems(s.branches), function(r) {
|
|
18668
18657
|
return [t("TreeNode", {
|
|
18669
18658
|
attrs: {
|
|
18670
|
-
items:
|
|
18659
|
+
items: r.branches && r.branches.length > 0 ? r.branches : [r.nodeInfoDTO ? r.nodeInfoDTO : r],
|
|
18671
18660
|
endNode: !0,
|
|
18672
18661
|
nodeType: e.nodeType,
|
|
18673
18662
|
param: e.param,
|
|
@@ -18679,19 +18668,19 @@ var SC = function() {
|
|
|
18679
18668
|
onVars: e.onVars
|
|
18680
18669
|
}
|
|
18681
18670
|
})];
|
|
18682
|
-
})] : e._e()] : s.nodeType == "exclusiveGateway" && s.branches && s.branches.length > 1 ? [e._m(
|
|
18671
|
+
})] : e._e()] : s.nodeType == "exclusiveGateway" && s.branches && s.branches.length > 1 ? [e._m(4, !0), s.type == "ExclusiveGatewayModel" && s.branches.length == 1 ? e._e() : t("div", {
|
|
18683
18672
|
staticClass: "treeperson-firstnode"
|
|
18684
|
-
}, e._l(s.branches, function(
|
|
18673
|
+
}, e._l(s.branches, function(r, a) {
|
|
18685
18674
|
return t("div", {
|
|
18686
|
-
key:
|
|
18675
|
+
key: a,
|
|
18687
18676
|
staticClass: "treeperson-checkbox",
|
|
18688
|
-
class: e.firstCheck ==
|
|
18677
|
+
class: e.firstCheck == r.id ? "treeperson-checkbox-active" : "",
|
|
18689
18678
|
on: {
|
|
18690
|
-
click: function(
|
|
18691
|
-
return e.handleFirstNodeClick(
|
|
18679
|
+
click: function(o) {
|
|
18680
|
+
return e.handleFirstNodeClick(r, s.branches);
|
|
18692
18681
|
}
|
|
18693
18682
|
}
|
|
18694
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18683
|
+
}, [t("span"), e._v(" " + e._s(r.nodeName || r.name) + " ")]);
|
|
18695
18684
|
}), 0), t("TreeNode", {
|
|
18696
18685
|
attrs: {
|
|
18697
18686
|
items: e.childrenItems,
|
|
@@ -18705,7 +18694,7 @@ var SC = function() {
|
|
|
18705
18694
|
onMultiNodeObj: e.onMultiNodeObj,
|
|
18706
18695
|
onVars: e.onVars
|
|
18707
18696
|
}
|
|
18708
|
-
})] : s.nodeType == "exclusiveGateway" && s.branches && s.branches.length == 1 ? [e._m(
|
|
18697
|
+
})] : s.nodeType == "exclusiveGateway" && s.branches && s.branches.length == 1 ? [e._m(5, !0), e.nodeType == "nexting" ? [t("TreeNode", {
|
|
18709
18698
|
attrs: {
|
|
18710
18699
|
items: [s.branches[0]],
|
|
18711
18700
|
endNode: e.childrenEndItems,
|
|
@@ -18731,22 +18720,18 @@ var SC = function() {
|
|
|
18731
18720
|
onMultiNodeObj: e.onMultiNodeObj,
|
|
18732
18721
|
onVars: e.onVars
|
|
18733
18722
|
}
|
|
18734
|
-
})]] :
|
|
18735
|
-
staticClass: "treeperson-title"
|
|
18736
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B95\uFF1A" + e._s(e.nodeType) + " "), t("span", {
|
|
18737
|
-
staticClass: "treeperson-title--re"
|
|
18738
|
-
}, [e._v("*")])]), e._l(s.nodeInfoDTO.branches, function(a, o) {
|
|
18723
|
+
})]] : s.id || s.nodeInfoDTO && s.nodeInfoDTO.id ? [e.nodeType == "nexting" ? [s.nodeInfoDTO && s.nodeInfoDTO.nodeType == "exclusiveGateway" ? [e._m(6, !0), e._l(s.nodeInfoDTO.branches, function(r, a) {
|
|
18739
18724
|
return t("div", {
|
|
18740
|
-
key:
|
|
18725
|
+
key: a,
|
|
18741
18726
|
staticClass: "treeperson-radio",
|
|
18742
|
-
class: e.firstCheck == (
|
|
18727
|
+
class: e.firstCheck == (r.nodeInfoDTO ? r.nodeInfoDTO.id : r.id) ? "treeperson-radio-active" : "",
|
|
18743
18728
|
on: {
|
|
18744
|
-
click: function(
|
|
18745
|
-
return e.handleFirstNodeClick(
|
|
18729
|
+
click: function(o) {
|
|
18730
|
+
return e.handleFirstNodeClick(r, s.nodeInfoDTO.branches);
|
|
18746
18731
|
}
|
|
18747
18732
|
}
|
|
18748
|
-
}, [t("span"), e._v(" " + e._s(
|
|
18749
|
-
}), t("
|
|
18733
|
+
}, [t("span"), e._v(" " + e._s(r.nodeName || r.name) + " ")]);
|
|
18734
|
+
}), t("TreePerson", {
|
|
18750
18735
|
key: e.firstCheck,
|
|
18751
18736
|
ref: "TreePersonRef",
|
|
18752
18737
|
refInFor: !0,
|
|
@@ -18759,11 +18744,7 @@ var SC = function() {
|
|
|
18759
18744
|
onMultiNode: e.onMultiNode,
|
|
18760
18745
|
onMultiNodeObj: e.onMultiNodeObj
|
|
18761
18746
|
}
|
|
18762
|
-
})] : [t("
|
|
18763
|
-
staticClass: "treeperson-title"
|
|
18764
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B94\uFF1A" + e._s(e.nodeType) + " "), t("span", {
|
|
18765
|
-
staticClass: "treeperson-title--re"
|
|
18766
|
-
}, [e._v("*")])]), t("pre", [e._v(e._s(JSON.stringify(s, null, 2)))]), t("TreeNode", {
|
|
18747
|
+
})] : [e._m(7, !0), t("TreeNode", {
|
|
18767
18748
|
attrs: {
|
|
18768
18749
|
items: [s.nodeInfoDTO ? s.nodeInfoDTO : s],
|
|
18769
18750
|
endNode: e.childrenEndItems,
|
|
@@ -18789,20 +18770,62 @@ var SC = function() {
|
|
|
18789
18770
|
onMultiNodeObj: e.onMultiNodeObj,
|
|
18790
18771
|
onVars: e.onVars
|
|
18791
18772
|
}
|
|
18792
|
-
})]]], 2);
|
|
18773
|
+
})]] : void 0], 2);
|
|
18793
18774
|
}), 0) : e._e()]);
|
|
18794
18775
|
}, _C = [function() {
|
|
18795
18776
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18796
18777
|
return t("div", {
|
|
18797
18778
|
staticClass: "treeperson-title"
|
|
18798
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\
|
|
18779
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18780
|
+
staticClass: "treeperson-title--re"
|
|
18781
|
+
}, [e._v("*")])]);
|
|
18782
|
+
}, function() {
|
|
18783
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18784
|
+
return t("div", {
|
|
18785
|
+
staticClass: "treeperson-title"
|
|
18786
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18787
|
+
staticClass: "treeperson-title--re"
|
|
18788
|
+
}, [e._v("*")])]);
|
|
18789
|
+
}, function() {
|
|
18790
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18791
|
+
return t("div", {
|
|
18792
|
+
staticClass: "treeperson-title"
|
|
18793
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18794
|
+
staticClass: "treeperson-title--re"
|
|
18795
|
+
}, [e._v("*")])]);
|
|
18796
|
+
}, function() {
|
|
18797
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18798
|
+
return t("div", {
|
|
18799
|
+
staticClass: "treeperson-title"
|
|
18800
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18799
18801
|
staticClass: "treeperson-title--re"
|
|
18800
18802
|
}, [e._v("*")])]);
|
|
18801
18803
|
}, function() {
|
|
18802
18804
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18803
18805
|
return t("div", {
|
|
18804
18806
|
staticClass: "treeperson-title"
|
|
18805
|
-
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\
|
|
18807
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18808
|
+
staticClass: "treeperson-title--re"
|
|
18809
|
+
}, [e._v("*")])]);
|
|
18810
|
+
}, function() {
|
|
18811
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18812
|
+
return t("div", {
|
|
18813
|
+
staticClass: "treeperson-title"
|
|
18814
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18815
|
+
staticClass: "treeperson-title--re"
|
|
18816
|
+
}, [e._v("*")])]);
|
|
18817
|
+
}, function() {
|
|
18818
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18819
|
+
return t("div", {
|
|
18820
|
+
staticClass: "treeperson-title"
|
|
18821
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18822
|
+
staticClass: "treeperson-title--re"
|
|
18823
|
+
}, [e._v("*")])]);
|
|
18824
|
+
}, function() {
|
|
18825
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
18826
|
+
return t("div", {
|
|
18827
|
+
staticClass: "treeperson-title"
|
|
18828
|
+
}, [e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "), t("span", {
|
|
18806
18829
|
staticClass: "treeperson-title--re"
|
|
18807
18830
|
}, [e._v("*")])]);
|
|
18808
18831
|
}];
|
|
@@ -18841,7 +18864,7 @@ const PC = {
|
|
|
18841
18864
|
childrenItems: [],
|
|
18842
18865
|
childrenEndItems: !1,
|
|
18843
18866
|
gateVars: {},
|
|
18844
|
-
multiNode:
|
|
18867
|
+
multiNode: {},
|
|
18845
18868
|
partNodeArr: {},
|
|
18846
18869
|
getVars: {}
|
|
18847
18870
|
};
|
|
@@ -18865,7 +18888,9 @@ const PC = {
|
|
|
18865
18888
|
return console.log(e, this.firstMultiCheck, "originItems"), e.filter((i) => this.firstMultiCheck.includes(i.nodeInfoDTO ? i.nodeInfoDTO.id : i.id));
|
|
18866
18889
|
},
|
|
18867
18890
|
onMultiNode(e) {
|
|
18868
|
-
|
|
18891
|
+
console.log(e, "onMultiNode"), Object.prototype.toString.call(e) == "[object Object]" && (Object.prototype.toString.call(this.multiNode) == "[object Object]" ? Object.keys(e).forEach((i) => {
|
|
18892
|
+
e[i] || (e[i] = [""]), e[i] && e[i].length > 1 ? this.multiNode[i] = e[i].filter((t) => t) : this.multiNode[i] = e[i];
|
|
18893
|
+
}) : 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);
|
|
18869
18894
|
},
|
|
18870
18895
|
onMultiNodeObj(e) {
|
|
18871
18896
|
this.partNodeArr = e, this.$emit("onMultiNodeObj", this.partNodeArr);
|
|
@@ -18920,7 +18945,7 @@ var DC = /* @__PURE__ */ ve(
|
|
|
18920
18945
|
_C,
|
|
18921
18946
|
!1,
|
|
18922
18947
|
BC,
|
|
18923
|
-
"
|
|
18948
|
+
"7f369078",
|
|
18924
18949
|
null,
|
|
18925
18950
|
null
|
|
18926
18951
|
);
|
|
@@ -19654,13 +19679,17 @@ const WC = {
|
|
|
19654
19679
|
let s = "";
|
|
19655
19680
|
const n = i.every((r) => {
|
|
19656
19681
|
console.log(r, "item");
|
|
19657
|
-
|
|
19658
|
-
|
|
19682
|
+
let a = this.multiNodeParticipant[r.id];
|
|
19683
|
+
a = (a || []).filter((l) => l);
|
|
19684
|
+
const o = a && a.length > 0;
|
|
19685
|
+
return o || (s = r), console.log(o, "v"), o;
|
|
19659
19686
|
});
|
|
19660
19687
|
return console.log(n, "hasV", s), n ? !1 : s.name;
|
|
19661
19688
|
} else if (this.nextNodeData[0].nodeType == "exclusiveGateway" && this.nextNodeData[0].branches && this.nextNodeData[0].branches.length == 1) {
|
|
19662
19689
|
const s = this.findUserTaskNode(this.nextNodeData[0].branches[0]);
|
|
19663
|
-
|
|
19690
|
+
let n = (this.multiNodeParticipant[s.id] || []).filter((a) => a);
|
|
19691
|
+
const r = n && n.length > 0;
|
|
19692
|
+
return console.log(this.nextNodeData[0].branches[0], s, "nbnNode", r), r ? !1 : s.name;
|
|
19664
19693
|
} else if (this.nextNodeData[0].nodeType == "exclusiveGateway" && this.nextNodeData[0].branches && this.nextNodeData[0].branches.length > 1) {
|
|
19665
19694
|
const s = this.$refs.TreePersonRef.childrenItems || null;
|
|
19666
19695
|
if (s && s.length > 0) {
|
|
@@ -19672,7 +19701,8 @@ const WC = {
|
|
|
19672
19701
|
} else
|
|
19673
19702
|
return this.pureTip = !0, "\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9";
|
|
19674
19703
|
}
|
|
19675
|
-
}
|
|
19704
|
+
} else
|
|
19705
|
+
return !1;
|
|
19676
19706
|
if (this.nextNodeData.length == 1 && this.nextNodeData[0].userTaskModelDTO && this.taskNode && this.taskNode.length > 0 && this.taskNode[0].taskState != 4 && this.taskNode[0].taskState != 11) {
|
|
19677
19707
|
let e = this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;
|
|
19678
19708
|
if (e != "\u56FA\u5B9A\u8D26\u6237" && e != "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173" && JSON.stringify(this.multiNodeParticipant) == "{}")
|
|
@@ -19957,7 +19987,7 @@ const WC = {
|
|
|
19957
19987
|
}
|
|
19958
19988
|
}
|
|
19959
19989
|
} else {
|
|
19960
|
-
if (this.multiNodeParticipant[this.partObjId] && !this.multiNodeParticipant[this.partObjId].length) {
|
|
19990
|
+
if (console.error(this.multiNodeParticipant, "\u6D4B\u8BD5 multiNodeParticipant \u7A7A\u503C\u60C5\u51B5"), this.multiNodeParticipant[this.partObjId] && !this.multiNodeParticipant[this.partObjId].length) {
|
|
19961
19991
|
this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!", !1, "success");
|
|
19962
19992
|
return;
|
|
19963
19993
|
}
|
|
@@ -19978,7 +20008,17 @@ const WC = {
|
|
|
19978
20008
|
t.setPersonnel ? i = t.assignees : i = (this.partNodeArr[t.id] || []).map((s) => ({
|
|
19979
20009
|
id: s.id,
|
|
19980
20010
|
name: s.name
|
|
19981
|
-
})),
|
|
20011
|
+
})), Date.now() && console.log("\u63D0\u4EA4\u6570\u636E", {
|
|
20012
|
+
pass: !0,
|
|
20013
|
+
assignees: i,
|
|
20014
|
+
processInstanceId: this.param.processInstId,
|
|
20015
|
+
actionName: this.param.actionComplete,
|
|
20016
|
+
commentMsg: this.commentMsg,
|
|
20017
|
+
taskId: this.param.taskInstId,
|
|
20018
|
+
vars: this.param.vars || this.gateVars,
|
|
20019
|
+
multiNodeParticipant: e,
|
|
20020
|
+
attachment: this.attchLists
|
|
20021
|
+
}), await this.param.request.post("/bladex/blade-workflow/tis/complete", {
|
|
19982
20022
|
pass: !0,
|
|
19983
20023
|
assignees: i,
|
|
19984
20024
|
processInstanceId: this.param.processInstId,
|
|
@@ -20139,7 +20179,7 @@ var YC = /* @__PURE__ */ ve(
|
|
|
20139
20179
|
KC,
|
|
20140
20180
|
!1,
|
|
20141
20181
|
zC,
|
|
20142
|
-
"
|
|
20182
|
+
"d6ebd5f8",
|
|
20143
20183
|
null,
|
|
20144
20184
|
null
|
|
20145
20185
|
);
|