From 2b639156302123d4490f03ec02385c4750d1fa11 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 27 一月 2025 13:59:16 +0800 Subject: [PATCH] 2025-01-27 --- src/menu/components/share/actioncomponent/actionform/index.jsx | 11 ++++++++--- src/menu/components/share/actioncomponent/formconfig.jsx | 16 ++++++++++++++++ src/tabviews/zshare/actionList/normalbutton/index.jsx | 28 ++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx index 72792b9..727c2dc 100644 --- a/src/menu/components/share/actioncomponent/actionform/index.jsx +++ b/src/menu/components/share/actioncomponent/actionform/index.jsx @@ -226,9 +226,14 @@ if (Ot === 'required') { shows.push('progress') - } - if (Ot === 'required' && (intertype === 'inner' || intertype === 'system')) { - shows.push('execType') + if (intertype === 'inner' || intertype === 'system') { + shows.push('execType') + if (this.record.execType === 'single') { + shows.push('execInterval') + } + } else { + shows.push('execInterval') + } } if (this.record.openmenu && this.record.openmenu !== 'goback') { shows.push('open') diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 894f804..9213a97 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -1652,6 +1652,14 @@ }] }, { + type: 'number', + key: 'execInterval', + label: '鎵ц闂撮殧', + initVal: card.execInterval || 0, + tooltip: '涓ゆ璇锋眰鐨勬椂闂撮棿闅旓紙鍗曚綅姣锛夈��', + required: false + }, + { type: 'radio', key: 'progress', label: '杩涘害鎻愮ず', @@ -2874,6 +2882,14 @@ }] }, { + type: 'number', + key: 'execInterval', + label: '鎵ц闂撮殧', + initVal: card.execInterval || 0, + tooltip: '涓ゆ璇锋眰鐨勬椂闂撮棿闅旓紙鍗曚綅姣锛夈��', + required: false + }, + { type: 'radio', key: 'progress', label: '杩涘害鎻愮ず', diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index 517c21c..4873a40 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -1943,6 +1943,10 @@ if (params.length === 0) { this.execSuccess(result) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.customLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.customLoopRequest(params, _resolve) } @@ -1980,6 +1984,10 @@ if (params.length === 0) { this.execSuccess(result) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.customLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.customLoopRequest(params, _resolve) } @@ -2002,6 +2010,10 @@ if (params.length === 0) { this.execSuccess(res) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.customLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.customLoopRequest(params, _resolve) } @@ -2349,6 +2361,10 @@ if (params.length === 0) { this.execSuccess(res) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.innerLoopRequest(params, btn, _resolve) + }, btn.execInterval) } else { this.innerLoopRequest(params, btn, _resolve) } @@ -2598,6 +2614,10 @@ if (params.length === 0) { this.execSuccess(result) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.outerLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.outerLoopRequest(params, _resolve) } @@ -2642,6 +2662,10 @@ if (params.length === 0) { this.execSuccess(result) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.outerLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.outerLoopRequest(params, _resolve) } @@ -2665,6 +2689,10 @@ if (params.length === 0) { this.execSuccess(res) _resolve() + } else if (btn.execInterval) { + setTimeout(() => { + this.outerLoopRequest(params, _resolve) + }, btn.execInterval) } else { this.outerLoopRequest(params, _resolve) } -- Gitblit v1.8.0