From d1d42e2a3d170a9338d71d1c28fb465e3409d03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 25 Oct 2023 15:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 67 ++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) 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 {