ddy-process-pc-vue3 1.0.1-rc.3.137 → 1.0.1-rc.3.159
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-pc-vue3.js +78 -12
- package/v2/ddy-process-pc-vue3.umd.cjs +38 -38
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-pc-vue3.js +1474 -1408
- package/v2.7/ddy-process-pc-vue3.umd.cjs +45 -45
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-pc-vue3.js +6538 -6471
- package/v3/ddy-process-pc-vue3.umd.cjs +21 -21
- package/v3/style.css +1 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ function oN(e, i) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.
|
|
19
|
+
const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.159", cN = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", uN = "./ddy-process-pc-vue3.umd.cjs", dN = "./style.css", fN = "module", pN = {
|
|
20
20
|
".": {
|
|
21
21
|
import: "./ddy-process-pc-vue3.js",
|
|
22
22
|
require: "./ddy-process-pc-vue3.umd.cjs"
|
|
@@ -6043,7 +6043,9 @@ var uR = function() {
|
|
|
6043
6043
|
label: e.label || "\u5904\u7406\u4EBA",
|
|
6044
6044
|
rules: e.rules || {}
|
|
6045
6045
|
}
|
|
6046
|
-
}, [e.processNodeObj.
|
|
6046
|
+
}, [e.processNodeObj.flowName ? n("div", {
|
|
6047
|
+
staticClass: "setVal"
|
|
6048
|
+
}, [e._v(" " + e._s(e.processNodeObj.flowName) + " ")]) : e.processNodeObj.userList && e.processNodeObj.userList.length >= 2 ? n("el-select", {
|
|
6047
6049
|
attrs: {
|
|
6048
6050
|
filterable: "",
|
|
6049
6051
|
multiple: e.processNodeObj.loopCardinality == -1,
|
|
@@ -6234,6 +6236,8 @@ const fR = {
|
|
|
6234
6236
|
else if (!this.processNodeObj.assignee || !Array.isArray(this.processNodeObj.assignee) || !this.processNodeObj.setPersonnel || this.isOption(this.processNodeObj.humanPerformerName) || this.processNodeObj.nodeInfoDTO && (!this.processNodeObj.nodeInfoDTO.assignee || !Array.isArray(this.processNodeObj.nodeInfoDTO.assignee) || !this.processNodeObj.nodeInfoDTO.setPersonnel || this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))) {
|
|
6235
6237
|
if (this.targetUserId && this.targetUserId.length > 0)
|
|
6236
6238
|
i.multiNodeParticipant = {}, i.multiNodeParticipant[this.processNode.nodeInfoDTO ? this.processNodeObj.nodeInfoDTO.id : this.processNodeObj.id] = Array.isArray(this.targetUserId) ? this.targetUserId : [this.targetUserId];
|
|
6239
|
+
else if (this.processNodeObj.flowName)
|
|
6240
|
+
i.multiNodeParticipant || (i.multiNodeParticipant = {}), i.multiNodeParticipant[this.processNodeObj.id] = this.processNodeObj.flowIds || [];
|
|
6237
6241
|
else if (this.processNodeObj.REQUIRED !== !1 || this.processNodeObj.nodeInfoDTO && this.processNodeObj.nodeInfoDTO.REQUIRED !== !1)
|
|
6238
6242
|
return this.processNodeObj.nodeInfoDTO ? this.processNodeObj.nodeInfoDTO.name && al.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`) : this.processNodeObj.name && al.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`), !1;
|
|
6239
6243
|
} else
|
|
@@ -24197,6 +24201,53 @@ const oG = {
|
|
|
24197
24201
|
}
|
|
24198
24202
|
});
|
|
24199
24203
|
},
|
|
24204
|
+
getItemV(e) {
|
|
24205
|
+
let i = e;
|
|
24206
|
+
if (i.nodeType == "userTask") {
|
|
24207
|
+
const n = (i.routeTxt || []).find((a) => a.type == "custom");
|
|
24208
|
+
if (n) {
|
|
24209
|
+
let a = "", s = [];
|
|
24210
|
+
(n.ids || []).includes("currentUser") ? (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]) : (n.ids || []).includes("applyUser") && (a = this.ProcessInsObj.variables.applyUserName || n.name, s = [this.ProcessInsObj.variables.applyUserId]), i = {
|
|
24211
|
+
...i,
|
|
24212
|
+
flowType: "custom",
|
|
24213
|
+
flowName: a,
|
|
24214
|
+
flowIds: s
|
|
24215
|
+
};
|
|
24216
|
+
} else
|
|
24217
|
+
i = {
|
|
24218
|
+
...i,
|
|
24219
|
+
flowType: "",
|
|
24220
|
+
flowName: "",
|
|
24221
|
+
flowIds: ""
|
|
24222
|
+
};
|
|
24223
|
+
} else
|
|
24224
|
+
i.branches = (i.branches || []).map((n) => {
|
|
24225
|
+
let a = n.nodeInfoDTO ? n.nodeInfoDTO : n;
|
|
24226
|
+
const s = (a.routeTxt || []).find((c) => c.type == "custom");
|
|
24227
|
+
if (s) {
|
|
24228
|
+
let c = "", p = [];
|
|
24229
|
+
(s.ids || []).includes("currentUser") ? (c = localStorage.getItem("realName") || s.name, p = [localStorage.getItem("userId")]) : (s.ids || []).includes("applyUser") && (c = this.ProcessInsObj.variables.applyUserName || s.name, p = [this.ProcessInsObj.variables.applyUserId]), a = {
|
|
24230
|
+
...a,
|
|
24231
|
+
flowType: "custom",
|
|
24232
|
+
flowName: c,
|
|
24233
|
+
flowIds: p
|
|
24234
|
+
};
|
|
24235
|
+
} else
|
|
24236
|
+
a = {
|
|
24237
|
+
...a,
|
|
24238
|
+
flowType: "",
|
|
24239
|
+
flowName: "",
|
|
24240
|
+
flowIds: ""
|
|
24241
|
+
};
|
|
24242
|
+
return n.nodeInfoDTO ? {
|
|
24243
|
+
...n,
|
|
24244
|
+
nodeInfoDTO: a
|
|
24245
|
+
} : {
|
|
24246
|
+
...n
|
|
24247
|
+
};
|
|
24248
|
+
});
|
|
24249
|
+
return i;
|
|
24250
|
+
},
|
|
24200
24251
|
async getNextNode(e) {
|
|
24201
24252
|
if (this.ProcessInsObj && this.ProcessInsObj.taskParentId)
|
|
24202
24253
|
return !0;
|
|
@@ -24206,11 +24257,11 @@ const oG = {
|
|
|
24206
24257
|
this.absoluteTaskId,
|
|
24207
24258
|
this.processId
|
|
24208
24259
|
);
|
|
24209
|
-
} catch (
|
|
24210
|
-
console.error(
|
|
24260
|
+
} catch (s) {
|
|
24261
|
+
console.error(s), i = {};
|
|
24211
24262
|
}
|
|
24212
24263
|
let n = i.data || {};
|
|
24213
|
-
i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
|
|
24264
|
+
(n.nodeInfoDTO ? n.nodeInfoDTO : n).nodeType == "userTask" && (n = this.getItemV(n)), i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
|
|
24214
24265
|
this.absoluteTaskId,
|
|
24215
24266
|
i.data.id
|
|
24216
24267
|
)), i.code == 200 && i.data.evaluation && i.data.branches && i.data.branches.length > 0 && i.data.branches[0].nodeType != "userTask" && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
|
|
@@ -24304,7 +24355,7 @@ const oG = {
|
|
|
24304
24355
|
if (n.data) {
|
|
24305
24356
|
for (let a = 0; a < n.data.length; a++) {
|
|
24306
24357
|
let s = n.data[a];
|
|
24307
|
-
s.incomingConditionItemList && s.incomingConditionItemList.length !== 0 && (s.nodeInfoDTO.incomingConditionItemList = s.incomingConditionItemList, s.incomingConditionItemList, this.incomingConditionItemList.push(...s.incomingConditionItemList)), s.nodeInfoDTO.nodeType != "userTask"
|
|
24358
|
+
s.incomingConditionItemList && s.incomingConditionItemList.length !== 0 && (s.nodeInfoDTO.incomingConditionItemList = s.incomingConditionItemList, s.incomingConditionItemList, this.incomingConditionItemList.push(...s.incomingConditionItemList)), s.nodeInfoDTO.nodeType != "userTask" ? s.nodeInfoDTO.branches = await this.getOutgoingProcessNode(e, s.nodeInfoDTO.id) : s.nodeInfoDTO && (s.nodeInfoDTO = this.getItemV(s.nodeInfoDTO)), n.data[a].type != "endEvent" && (n.data[a].humanPerformerName == "\u56FA\u5B9A\u8D26\u6237" || n.data[a].humanPerformerName == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && await et.repository.getParticipantsOfPerformerNames(e, [n.data[a].id]).then((c) => {
|
|
24308
24359
|
n.data[a].routeTxt.userNames = c.data[n.data[a].id];
|
|
24309
24360
|
});
|
|
24310
24361
|
}
|
|
@@ -24520,7 +24571,7 @@ var sG = /* @__PURE__ */ li(
|
|
|
24520
24571
|
aG,
|
|
24521
24572
|
!1,
|
|
24522
24573
|
lG,
|
|
24523
|
-
"
|
|
24574
|
+
"cc812b62",
|
|
24524
24575
|
null,
|
|
24525
24576
|
null
|
|
24526
24577
|
);
|
|
@@ -25169,10 +25220,25 @@ const bG = {
|
|
|
25169
25220
|
processBudgetModelList: []
|
|
25170
25221
|
});
|
|
25171
25222
|
},
|
|
25223
|
+
getListV(e) {
|
|
25224
|
+
return (e || []).map((i) => {
|
|
25225
|
+
const n = (i.routeTxt || []).find((a) => a.type == "custom");
|
|
25226
|
+
if (n) {
|
|
25227
|
+
let a = "", s = [];
|
|
25228
|
+
return (n.ids || []).includes("currentUser") ? (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]) : (n.ids || []).includes("applyUser") && (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]), {
|
|
25229
|
+
...i,
|
|
25230
|
+
flowType: "custom",
|
|
25231
|
+
flowName: a,
|
|
25232
|
+
flowIds: s
|
|
25233
|
+
};
|
|
25234
|
+
}
|
|
25235
|
+
return i;
|
|
25236
|
+
});
|
|
25237
|
+
},
|
|
25172
25238
|
processDefChange(e) {
|
|
25173
25239
|
this.processDefId = e, et.repository.getFirstProcessNode(this.processDefId).then(async (i) => {
|
|
25174
25240
|
if (i.code == wt.success) {
|
|
25175
|
-
if (this.processList = i.data, this.flag = !0, await this.getNodeUserDept(), !this.deptId)
|
|
25241
|
+
if (this.processList = this.getListV(i.data), this.flag = !0, await this.getNodeUserDept(), !this.deptId)
|
|
25176
25242
|
return;
|
|
25177
25243
|
this.getUserDataByDeptId();
|
|
25178
25244
|
}
|
|
@@ -25252,7 +25318,7 @@ const bG = {
|
|
|
25252
25318
|
}), new Promise((a, s) => {
|
|
25253
25319
|
this.cancelCallBack = s, et.repository.getFirstProcessNode(e).then(async (c) => {
|
|
25254
25320
|
if (c.code == wt.success) {
|
|
25255
|
-
if (this.processList = c.data, this.flag = !0, await this.getNodeUserDept(), !this.deptId)
|
|
25321
|
+
if (this.processList = this.getListV(c.data), this.flag = !0, await this.getNodeUserDept(), !this.deptId)
|
|
25256
25322
|
return;
|
|
25257
25323
|
this.getUserDataByDeptId(), this.callback = a;
|
|
25258
25324
|
}
|
|
@@ -25272,7 +25338,7 @@ const bG = {
|
|
|
25272
25338
|
this.cancelCallBack = n, et.repository.getProcessDefListNew(e).then((a) => {
|
|
25273
25339
|
a.code == wt.success && (a.data.length == 1 ? (this.processDefList = a.data, this.processDefId = a.data[0].id, this.processDefName = a.data[0].name, et.repository.getFirstProcessNode(this.processDefId).then(async (s) => {
|
|
25274
25340
|
if (s.code == wt.success) {
|
|
25275
|
-
if (this.processList = s.data, this.flag = !0, this.callback = i, await this.getNodeUserDept(), !this.deptId)
|
|
25341
|
+
if (this.processList = this.getListV(s.data), this.flag = !0, this.callback = i, await this.getNodeUserDept(), !this.deptId)
|
|
25276
25342
|
return;
|
|
25277
25343
|
this.getUserDataByDeptId();
|
|
25278
25344
|
}
|
|
@@ -25322,7 +25388,7 @@ const bG = {
|
|
|
25322
25388
|
listShow(e) {
|
|
25323
25389
|
return this.processList = [], this.otherProcessList = [], this.processDefId = "", this.processDefName = "", this.revival = !1, new Promise((i, n) => {
|
|
25324
25390
|
e.length == 1 ? (this.processDefId = e[0].id, this.processDefName = e[0].name, this.cancelCallBack = n, et.repository.getFirstProcessNode(this.processDefId).then((a) => {
|
|
25325
|
-
a.code == wt.success && (this.processList = a.data, this.flag = !0, this.callback = i, et.repository.getAfferentParticipantNodeList(this.processDefId).then((s) => {
|
|
25391
|
+
a.code == wt.success && (this.processList = this.getListV(a.data), this.flag = !0, this.callback = i, et.repository.getAfferentParticipantNodeList(this.processDefId).then((s) => {
|
|
25326
25392
|
this.otherProcessList = s.data.filter((c) => c.id != this.processList[0].id), this.otherProcessList.map((c) => {
|
|
25327
25393
|
c.REQUIRED = !1;
|
|
25328
25394
|
});
|
|
@@ -25384,7 +25450,7 @@ var _G = /* @__PURE__ */ li(
|
|
|
25384
25450
|
vG,
|
|
25385
25451
|
!1,
|
|
25386
25452
|
yG,
|
|
25387
|
-
"
|
|
25453
|
+
"20ef8f3f",
|
|
25388
25454
|
null,
|
|
25389
25455
|
null
|
|
25390
25456
|
);
|