From 6128b532f5397d8863697fc9ffe6f5a6361fca80 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 26 五月 2024 12:13:34 +0800 Subject: [PATCH] 2024-05-26 --- src/tabviews/custom/index.jsx | 66 ++++++++++++++++++--------------- 1 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index b56749d..8f36d50 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -931,39 +931,45 @@ cell.modal.uuid = cell.uuid + 'pop' } - if (cell.verify && cell.verify.invalid === 'true') { - if (item.wrap && (item.wrap.datatype === 'static' || item.wrap.datatype === 'public')) { - cell.verify.invalid = 'false' - } else if (item.setting && item.setting.maxScript && item.setting.maxScript >= 300) { - cell.verify.invalid = 'false' - } else if (cell.intertype !== 'system' && cell.procMode !== 'system') { - cell.verify.invalid = 'false' - } else if (cell.sqlType === 'insert') { - cell.verify.invalid = 'false' - } else if (cell.Ot === 'notRequired') { - cell.verify.invalid = 'false' - } - } - - if (cell.verify && cell.verify.preHandle === 'true') { - let script = cell.verify.pre_func - if (!/#position-/.test(script) || /#position-init/.test(script)) { - try { - // eslint-disable-next-line - let func = new Function('btn', 'position', 'systemType', script) - func(cell, 'init', window.GLOB.systemType) - } catch (e) { - console.warn(e) + if (cell.verify) { + if (cell.verify.invalid === 'true') { + if (item.wrap && (item.wrap.datatype === 'static' || item.wrap.datatype === 'public')) { + cell.verify.invalid = 'false' + } else if (item.setting && item.setting.maxScript && item.setting.maxScript >= 300) { + cell.verify.invalid = 'false' + } else if (cell.intertype !== 'system' && cell.procMode !== 'system') { + cell.verify.invalid = 'false' + } else if (cell.sqlType === 'insert') { + cell.verify.invalid = 'false' + } else if (cell.Ot === 'notRequired') { + cell.verify.invalid = 'false' } } - if (/#position-inner/.test(script)) { - cell.$innerScript = script + + if (cell.verify.linkEnable === 'true' && /@/.test(cell.verify.linkUrl)) { + cell.returnValue = 'true' } - if (/#position-outer/.test(script)) { - cell.$outerScript = script - } - if (/#position-callback/.test(script)) { - cell.$callbackScript = script + + if (cell.verify.preHandle === 'true') { + let script = cell.verify.pre_func + if (!/#position-/.test(script) || /#position-init/.test(script)) { + try { + // eslint-disable-next-line + let func = new Function('btn', 'position', 'systemType', script) + func(cell, 'init', window.GLOB.systemType) + } catch (e) { + console.warn(e) + } + } + if (/#position-inner/.test(script)) { + cell.$innerScript = script + } + if (/#position-outer/.test(script)) { + cell.$outerScript = script + } + if (/#position-callback/.test(script)) { + cell.$callbackScript = script + } } } -- Gitblit v1.8.0