From a7f2e9ef18784e55be79ca7342c32eb5cf95b94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 2 Nov 2023 19:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=BB=98=E8=AE=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=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 | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index bb75f7f8c..9bbb03ea3 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -563,6 +563,58 @@ export function mainListPurchasePlanOpeBtn(option:any) { }) } +// 主列表-任务流程-承接按钮 +export function mainListJobAccBtn(option:any) { + return __defaultBtnOption(option,{ + label: '承接', + name: 'mainJobAcc', + hide: false, + type: 'success', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-任务流程-关闭按钮 +export function mainListJobCloBtn(option:any) { + return __defaultBtnOption(option,{ + label: '关闭', + name: 'mainJobClo', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-任务流程-放弃按钮 +export function mainListJobAbaBtn(option:any) { + return __defaultBtnOption(option,{ + label: '放弃', + name: 'mainJobAba', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-任务流程-执行按钮 +export function mainListJobExeBtn(option:any) { + return __defaultBtnOption(option,{ + label: '执行', + name: 'mainJobExe', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return {