update 征求意见流程

This commit is contained in:
赵霄
2023-11-28 10:10:58 +08:00
parent 1cf3e8d389
commit 039cf85a75
2 changed files with 19 additions and 3 deletions
+18 -2
View File
@@ -121,9 +121,9 @@ export default class EsEnum {
}
/**
* 根据value获取key
* 根据value模糊获取key
*/
keyOfValue (value) {
keyOfValueByLike (value) {
if (!value && value !== 0) {
return null
}
@@ -135,4 +135,20 @@ export default class EsEnum {
}
return null
}
/**
* 根据value获取key
*/
keyOfValue (value) {
if (!value && value !== 0) {
return null
}
for (const i in this) {
const e = this[i]
if (e.value !== undefined && e.value !== null && value.toString() === e.value.toString()) {
return i
}
}
return null
}
}
@@ -777,7 +777,7 @@ export default {
this.initPersonInfoData(this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0)
})
// 找不到这个节点默认使用审批节点页面及按钮,发起除外
this.nodeEnumsKey = this.currentNode ? ConsultationProcess.keyOfValue(this.currentNode) || 'regulatoryEngineerApproval' : 'initiate'
this.nodeEnumsKey = this.currentNode ? ConsultationProcess.keyOfValueByLike(this.currentNode) || 'regulatoryEngineerApproval' : 'initiate'
this.btnList = ConsultationProcess[this.nodeEnumsKey].btn
},
methods: {