[fix 87650] 标准解读流程-主解读人审核按钮提交改成同意,处理一个节点对应多个nodeId
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user