From 1607bcf25594cfb033b209c8028c70f9842a1a1e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 29 九月 2022 18:18:18 +0800 Subject: [PATCH] 2022-09-29 --- src/menu/components/card/balcony/index.jsx | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/src/menu/components/card/balcony/index.jsx b/src/menu/components/card/balcony/index.jsx index fb7ec08..6bf605e 100644 --- a/src/menu/components/card/balcony/index.jsx +++ b/src/menu/components/card/balcony/index.jsx @@ -113,19 +113,11 @@ card.errors = [] if (card.wrap.datatype === 'static') { - // let supModule = card.wrap.linkType === 'static' ? '' : 'has' - card.elements.forEach(cell => { if (cell.eleType === 'button') { if (cell.OpenType === 'pop' || (cell.OpenType === 'funcbutton' && cell.execMode === 'pop')) { if (!cell.modal || cell.modal.fields.length === 0) { card.errors.push({ level: 1, detail: `鎸夐挳鈥�${cell.label}鈥濅腑琛ㄥ崟灏氭湭娣诲姞`}) - // } else if (!supModule) { - // cell.modal.fields.forEach(m => { - // if (m.type === 'linkMain') { - // card.errors.push({ level: 1, detail: `鎸夐挳鈥�${cell.label}鈥濅腑鍏宠仈涓昏〃琛ㄥ崟鈥�${m.label}鈥濇棤鏁坄}) - // } - // }) } } } else if (cell.datatype === 'dynamic' && cell.field) { @@ -133,10 +125,7 @@ } }) } else { - // let supModule = card.wrap.linkType === 'static' ? '' : 'has' - let columns = card.columns.map(c => c.field) - // let lowcols = card.columns.map(c => c.field.toLowerCase()) if (card.setting.interType === 'system' && card.setting.execute !== 'false' && !card.setting.dataresource) { card.errors.push({ level: 0, detail: '鏈缃暟鎹簮锛�'}) @@ -153,14 +142,6 @@ if (cell.OpenType === 'pop' || (cell.OpenType === 'funcbutton' && cell.execMode === 'pop')) { if (!cell.modal || cell.modal.fields.length === 0) { card.errors.push({ level: 1, detail: `鎸夐挳鈥�${cell.label}鈥濅腑琛ㄥ崟灏氭湭娣诲姞`}) - // } else { - // cell.modal.fields.forEach(m => { - // if (m.type === 'linkMain' && !supModule) { - // card.errors.push({ level: 1, detail: `鎸夐挳鈥�${cell.label}鈥濅腑鍏宠仈涓昏〃琛ㄥ崟鈥�${m.label}鈥濇棤鏁坄}) - // } else if (m.field && card.wrap.linkType !== 'sync' && !columns.includes(m.field) && lowcols.includes(m.field.toLowerCase())) { - // card.errors.push({ level: 1, detail: `鎸夐挳鈥�${cell.label}鈥濅腑琛ㄥ崟鈥�${m.label}鈥濆ぇ灏忓啓涓庡瓧娈甸泦涓嶄竴鑷碻}) - // } - // }) } } } else if (cell.datatype === 'dynamic' && cell.field && !columns.includes(cell.field)) { -- Gitblit v1.8.0