From 8a0b3081ecacbb844ea639ccc53ffd2c151cec1e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 28 三月 2021 02:13:53 +0800 Subject: [PATCH] 2021-03-28 --- src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx index 5f55b07..d8da93d 100644 --- a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx +++ b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx @@ -50,6 +50,10 @@ }) } + if (!card.linkurl && (!card.linkmenu || card.linkmenu.length === 0)) { + card.perspective = '' + } + return [ { type: 'text', @@ -295,8 +299,11 @@ type: 'radio', key: 'perspective', label: '瀛楁閫忚', - initVal: card.perspective || 'linkmenu', + initVal: card.perspective || '', options: [{ + value: '', + text: '鏃�' + }, { value: 'linkmenu', text: '鑿滃崟' }, { @@ -309,7 +316,7 @@ key: 'linkmenu', label: Formdict['model.menu'], initVal: card.linkmenu || [], - required: false, + required: true, options: menulist }, { @@ -317,7 +324,15 @@ key: 'linkurl', label: '閾炬帴鍦板潃', initVal: card.linkurl || '', - required: false + required: true + }, + { + type: 'multiselect', + key: 'linkfields', + label: '鍏宠仈瀛楁', + initVal: card.linkfields || [], + required: false, + options: fields }, { type: 'multiselect', -- Gitblit v1.8.0