跳到主要内容

修改平台默认按钮名称

修改默认“审批”按钮为“审批中”

let currentFormParam = dataForm.getDataFormInfo();
if (currentFormParam.currentNodeName==='审批') {
if (currentFormParam.formViewType === 'view') {
dataForm.isHiddenButton('审批', true);

dataForm.addButtonBefore('审批中',()=>{
dataForm.formInfo.showDataFormEditView()
})
}else if (currentFormParam.formViewType === 'edit') {
dataForm.isHiddenButton('审批中', true);
}
}