From a02fc6a77fa1b35c6516b2d37108d80e260c6c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 22:05:08 +0800 Subject: [PATCH] 2024-11-07 --- src/menu/components/share/actioncomponent/actionform/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx index 730898c..dcf94bf 100644 --- a/src/menu/components/share/actioncomponent/actionform/index.jsx +++ b/src/menu/components/share/actioncomponent/actionform/index.jsx @@ -233,7 +233,7 @@ if (this.record.openmenu && this.record.openmenu !== 'goback') { shows.push('open') } - if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { + if (['grid'].includes(this.record.execSuccess) || ['grid'].includes(this.record.execError)) { shows.push('resetPageIndex') } @@ -305,7 +305,7 @@ if (this.record.execSuccess === 'goback') { shows.push('reload') } - if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { + if (['grid'].includes(this.record.execSuccess) || ['grid'].includes(this.record.execError)) { shows.push('resetPageIndex') } @@ -352,7 +352,7 @@ } else { shows.push('database') } - if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { + if (['grid'].includes(this.record.execSuccess) || ['grid'].includes(this.record.execError)) { shows.push('resetPageIndex') } } else if (openType === 'excelOut') { @@ -389,7 +389,7 @@ } else { shows.push('database') } - if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { + if (['grid'].includes(this.record.execSuccess) || ['grid'].includes(this.record.execError)) { shows.push('resetPageIndex') } if (this.record.Ot !== 'notRequired' && appType === 'mob') { @@ -485,14 +485,16 @@ shows.push('innerFunc', 'extraParam') reRequired.innerFunc = true } - if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { + if (['grid'].includes(this.record.execSuccess) || ['grid'].includes(this.record.execError)) { shows.push('resetPageIndex') } if (this.record.execMode === 'pop' || this.record.execMode === 'prompt') { shows.push('position') } } else if (_funcType === 'mkBinding' || _funcType === 'mkUnBinding') { - shows.push('execSuccess', 'execError') + shows.push('execSuccess', 'execError', 'tipTitle') + } else if (_funcType === 'mkUnsubscribe' || _funcType === 'reAuth') { + shows.push('tipTitle') } else if (_funcType === 'closetab') { shows.push('refreshTab') } else if (_funcType === 'scan') { -- Gitblit v1.8.0