| | |
| | | _options.push('value') |
| | | } |
| | | |
| | | if (this.record.eleType === 'text' && this.record.datatype === 'static' && this.record.noValue === 'hide') { |
| | | _options.push('noVField') |
| | | 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) { |
| | |
| | | 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({ |
| | |
| | | options: [], |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'noVExtra', |
| | | label: '空值扩展', |
| | | initVal: card.noVExtra || '', |
| | | tooltip: '当字段值(或静态元素的空值字段)为扩展值时(不区分大小写,多个值用逗号分隔),等效于空值,元素将被隐藏。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'lostTip', |
| | | label: '图片缺失', |
| | |
| | | } |
| | | } |
| | | |
| | | if (card.noVField && !data[card.noVField]) { |
| | | val = '' |
| | | if (card.noVField) { |
| | | if (!data[card.noVField]) { |
| | | val = '' |
| | | } else if (card.noVExtra && new RegExp('^(' + card.noVExtra.split(',').join('|') + ')$', 'ig').test(data[card.noVField])) { |
| | | val = '' |
| | | } |
| | | } |
| | | } else if (data.hasOwnProperty(card.field)) { |
| | | val = data[card.field] + '' |
| | | if (card.noVExtra && val && new RegExp('^(' + card.noVExtra.split(',').join('|') + ')$', 'ig').test(val)) { |
| | | val = '' |
| | | } |
| | | } |
| | | |
| | | if (val && card.format && card.format !== 'encryption') { |