diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 334a62814..f8f94a132 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -103,7 +103,7 @@ export function defaultResetBtn(option:any) { }) } -// 设置 +// 字段设置 export function defaultSetBtn(option:any) { return __defaultBtnOption(option,{ label: '设置', @@ -223,6 +223,71 @@ export function mainListDeleteBtn(option:any) { }) } +// 主列表-申请流程-关闭按钮 +export function mainListCloseBtn(option:any) { + return __defaultBtnOption(option,{ + label: '关闭', + name: 'mainClose', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-申请流程-重新添加按钮 +export function mainListReAddBtn(option:any) { + return __defaultBtnOption(option,{ + label: '重新添加', + name: 'mainReAdd', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-申请流程-提交审批按钮 +export function mainListSubmitBtn(option:any) { + return __defaultBtnOption(option,{ + label: '提交审批', + name: 'mainSubmit', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-申请流程-驳回按钮 +export function mainListTurnDownBtn(option:any) { + return __defaultBtnOption(option,{ + label: '驳回', + name: 'mainTurnDown', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-申请流程-审批通过按钮 +export function mainListApproveBtn(option:any) { + return __defaultBtnOption(option,{ + label: '审批通过', + name: 'mainApprove', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return {