[fix 87650] 标准解读流程-主解读人审核按钮提交改成同意,处理一个节点对应多个nodeId

This commit is contained in:
danshihao
2024-07-31 14:38:32 +08:00
parent b648d9bf50
commit ddf746a189
3 changed files with 49 additions and 3 deletions
+12 -1
View File
@@ -102,6 +102,12 @@ export default {
default: () => {
return []
}
},
// 当前节点对应的多个nodeId
currentNodeArr: {
type: Array,
required: false,
default: () => ([])
}
},
data () {
@@ -115,7 +121,12 @@ export default {
if (this.specialProcessNodePrefix) {
return this.stepsData.findIndex(tt => tt.xmlNodeId.indexOf(this.specialProcessNodePrefix) === 0)
}
return this.stepsData.findIndex(tt => tt.xmlNodeId === this.currentNode)
let index = this.stepsData.findIndex(tt => tt.xmlNodeId === this.currentNode)
// 分发情况下,传入的nodeId和xmlNodeId不一样,可能是节点对应多个nodeId,但后端只传入一个其中
if (this.currentNodeArr && this.currentNodeArr.length && index === -1) {
index = this.stepsData.findIndex(tt => this.currentNodeArr.includes(tt.xmlNodeId))
}
return index
}
},
watch: {