From 25bf481493bcf18fca79e4d250f9c91dedf832e5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 四月 2024 15:15:58 +0800 Subject: [PATCH] 2024-04-02 --- src/menu/components/table/base-table/columns/editColumn/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/menu/components/table/base-table/columns/editColumn/index.jsx b/src/menu/components/table/base-table/columns/editColumn/index.jsx index e4494c0..3377f09 100644 --- a/src/menu/components/table/base-table/columns/editColumn/index.jsx +++ b/src/menu/components/table/base-table/columns/editColumn/index.jsx @@ -91,7 +91,7 @@ if (this.record.type === 'text' || this.record.type === 'number') { if (this.record.perspective === 'linkmenu') { - _options.push('linkmenu', 'linkfields', 'open') + _options.push('linkmenu', 'open') } else if (this.record.perspective === 'linkurl') { _options.push('linkurl', 'linkfields', 'open') } @@ -99,6 +99,14 @@ _options.push('decimal') } else if (this.record.type === 'custom' && this.record.IsSort === 'true') { _options.push('sortField') + } + + if (this.record.Hide !== 'true') { + if (['number', 'formula'].includes(this.record.type)) { + _options.push('noValue') + } else if (this.record.type === 'text' && ['YYYY-MM-DD', 'YYYY-MM-DD HH:mm:ss'].includes(this.record.textFormat)) { + _options.push('noValue') + } } return _options @@ -177,7 +185,7 @@ } } else if (key === 'format' && value === 'percent') { this.props.form.setFieldsValue({postfix: '%'}) - } else if (['perspective', 'eval', 'IsSort'].includes(key)) { + } else if (['perspective', 'eval', 'IsSort', 'textFormat'].includes(key)) { let _options = this.getOptions() this.setState({ -- Gitblit v1.8.0