From 67036fb0ed31d77ca33b660ce5f9f47c29ae65c0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 03 三月 2024 11:47:46 +0800 Subject: [PATCH] 2024-03-03 --- src/tabviews/custom/components/share/normalTable/index.jsx | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/share/normalTable/index.jsx b/src/tabviews/custom/components/share/normalTable/index.jsx index 69244ec..66f8c96 100644 --- a/src/tabviews/custom/components/share/normalTable/index.jsx +++ b/src/tabviews/custom/components/share/normalTable/index.jsx @@ -126,6 +126,10 @@ content = <span>{col.prefix || ''}<Encrypts value={content} />{col.postfix || ''}</span> } + if (col.noValue === 'hide' && content < '1949-10-02') { + content = '' + } + if (col.textFormat !== 'encryption') { content = (col.prefix || '') + content + (col.postfix || '') } @@ -175,6 +179,9 @@ try { content = parseFloat(record[col.field]) if (isNaN(content)) { + content = '' + } + if (col.noValue === 'hide' && content === 0) { content = '' } } catch (e) { @@ -348,6 +355,10 @@ // eslint-disable-next-line let func = new Function('data', col.formula) content = func([record]) + + if (col.noValue === 'hide' && content === 0) { + content = '' + } } catch (e) { console.warn(e) content = '' @@ -361,6 +372,10 @@ try { // eslint-disable-next-line content = eval(content) + + if (col.noValue === 'hide' && content === 0) { + content = '' + } } catch (e) { console.info(content) console.warn(e) -- Gitblit v1.8.0