From 8cec010d47fa9cb9c7684f4c84dd31cfe20e7527 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 18 四月 2025 16:41:43 +0800 Subject: [PATCH] 2025-04-18 --- src/menu/components/card/cardcellcomponent/elementform/index.jsx | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/elementform/index.jsx b/src/menu/components/card/cardcellcomponent/elementform/index.jsx index 1435179..7db2122 100644 --- a/src/menu/components/card/cardcellcomponent/elementform/index.jsx +++ b/src/menu/components/card/cardcellcomponent/elementform/index.jsx @@ -115,6 +115,26 @@ }) }) } + } else if (['tsField', 'noVField'].includes(item.key)) { + item.options = [] + + if (side === 'sub') { + config.subColumns.forEach(col => { + let label = `${col.field}锛�${col.label}锛塦 + item.options.push({ + value: col.field, + text: label + }) + }) + } else { + config.columns.forEach(col => { + let label = `${col.field}锛�${col.label}锛塦 + item.options.push({ + value: col.field, + text: label + }) + }) + } } else if (item.key === 'formula') { item.fields = [] @@ -181,6 +201,17 @@ _options.push('value') } + if (this.record.eleType === 'text' && this.record.noValue === 'hide') { + if (this.record.datatype === 'static') { + _options.push('noVField') + if (this.record.noVField) { + _options.push('noVExtra') + } + } else { + _options.push('noVExtra') + } + } + if (this.record.eleType === 'picture' && this.record.noValue === 'show') { _options.push('lostTip') } else if (this.record.eleType === 'video' && this.record.posterType) { @@ -194,7 +225,7 @@ if (['text', 'picture'].includes(this.record.eleType) && this.record.link) { _options.push('linkType') if (this.record.linkType === 'linkmenu') { - _options.push('open') + _options.push('open', 'tsField') if (this.record.link === 'static') { _options.push('linkmenu') } else { @@ -228,18 +259,15 @@ } } else if (this.record.eleType === 'formula') { if (this.record.eval !== 'func') { - _options.push('prefix', 'postfix', 'fixStyle', 'alignItems', 'evalchars') + _options.push('link', 'prefix', 'postfix', 'fixStyle', 'alignItems', 'evalchars') } if (this.record.eval === 'true') { _options.push('decimal') } - if (this.record.eval !== 'func') { - _options.push('link') - } if (this.record.link && this.record.eval !== 'func') { _options.push('linkType') if (this.record.linkType === 'linkmenu') { - _options.push('open') + _options.push('open', 'tsField') if (this.record.link === 'static') { _options.push('linkmenu') } else { @@ -389,7 +417,7 @@ return item }) }) - } else if (['datatype', 'showInfo', 'showType', 'fixStyle', 'posterType', 'eval', 'linkType', 'tipType', 'noValue'].includes(key)) { + } else if (['datatype', 'showInfo', 'showType', 'fixStyle', 'posterType', 'eval', 'linkType', 'tipType', 'noValue', 'noVField'].includes(key)) { let _options = this.getOptions() this.setState({ -- Gitblit v1.8.0