Commit 3fa02ec7 by yangchen

按钮组增加配置参数:是否展示

parent b01545e1
......@@ -89,11 +89,18 @@ export default {
}
// 监听工作流状态改变
GMS.vbus.$on("workflow-state-change", this.handleWorkflowStateChange)
this.handleButtonShow()
},
beforeDestroy() {
GMS.vbus.$off("workflow-state-change", this.handleWorkflowStateChange);
},
methods: {
handleButtonShow(){
const display = this.define.config && this.define.config.formulas && this.define.config.formulas.display || true
if(display === false || display === 'false'){
this.buttonShow = false
}
},
handleWorkflowStateChange(val) {
this.workflowState = val
this.getBtnGroup()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment