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/formconfig.jsx | 11 +++++++++++ src/tabviews/custom/components/card/cardcellList/index.jsx | 5 ++++- src/menu/components/card/cardcellcomponent/elementform/index.jsx | 6 +++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/elementform/index.jsx b/src/menu/components/card/cardcellcomponent/elementform/index.jsx index 5181b6d..7db2122 100644 --- a/src/menu/components/card/cardcellcomponent/elementform/index.jsx +++ b/src/menu/components/card/cardcellcomponent/elementform/index.jsx @@ -115,7 +115,7 @@ }) }) } - } else if (item.key === 'noVField') { + } else if (['tsField', 'noVField'].includes(item.key)) { item.options = [] if (side === 'sub') { @@ -225,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 { @@ -267,7 +267,7 @@ 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 { diff --git a/src/menu/components/card/cardcellcomponent/formconfig.jsx b/src/menu/components/card/cardcellcomponent/formconfig.jsx index c57d042..521cfbb 100644 --- a/src/menu/components/card/cardcellcomponent/formconfig.jsx +++ b/src/menu/components/card/cardcellcomponent/formconfig.jsx @@ -685,6 +685,17 @@ options: fields }, { + type: 'select', + key: 'tsField', + label: '閫忚瀛楁', + initVal: card.tsField || '', + tooltip: '閫忚瀛楁灏嗗~鍏呰嚦鍏宠仈鑿滃崟鐨勬悳绱㈡潯浠朵腑锛堥�忚瀛楁涓虹┖鏃讹紝榛樿涓哄綋鍓嶅厓绱犵粦瀹氬瓧娈碉級銆�', + options: fields, + allowClear: true, + required: false, + forbid: appType === 'mob' + }, + { type: 'radio', key: 'open', label: '鎵撳紑鏂瑰紡', diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx index c37be32..49368fc 100644 --- a/src/tabviews/custom/components/card/cardcellList/index.jsx +++ b/src/tabviews/custom/components/card/cardcellList/index.jsx @@ -109,7 +109,10 @@ $BID: data.$$uuid || '' } - if (card.field) { + if (card.tsField) { + __param.$searchkey = card.tsField + __param.$searchval = data[card.tsField] || '' + } else if (card.field) { __param.$searchkey = card.field __param.$searchval = data[card.field] || '' } -- Gitblit v1.8.0