update 征求意见流程
This commit is contained in:
+18
-2
@@ -121,9 +121,9 @@ export default class EsEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据value获取key
|
* 根据value模糊获取key
|
||||||
*/
|
*/
|
||||||
keyOfValue (value) {
|
keyOfValueByLike (value) {
|
||||||
if (!value && value !== 0) {
|
if (!value && value !== 0) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@@ -135,4 +135,20 @@ export default class EsEnum {
|
|||||||
}
|
}
|
||||||
return null
|
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.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
|
this.btnList = ConsultationProcess[this.nodeEnumsKey].btn
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user