From c41b93d4c5e2146a1d1568887fb8ce1e3144d7fb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 十二月 2019 18:24:36 +0800 Subject: [PATCH] 2019-12-31 --- src/templates/tableshare/searchform/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/tableshare/searchform/index.jsx b/src/templates/tableshare/searchform/index.jsx index df348b6..2585ba8 100644 --- a/src/templates/tableshare/searchform/index.jsx +++ b/src/templates/tableshare/searchform/index.jsx @@ -316,11 +316,11 @@ values.id = this.props.card.id values.uuid = this.props.card.uuid // 涓嬫媺鑿滃崟鎴栧叧鑱旇彍鍗� - if ((values.type === 'select' || values.type === 'link') && values.resourceType === '0') { + if ((values.type === 'multiselect' || values.type === 'select' || values.type === 'link') && values.resourceType === '0') { values.options = this.refs.editTable.state.dataSource values.dataSource = '' let emptys = [] - if (values.type === 'select') { + if (values.type === 'multiselect' || values.type === 'select') { emptys = values.options.filter(op => !(op.Value && op.Text)) } else { emptys = values.options.filter(op => !(op.Value && op.Text && op.ParentID)) @@ -328,7 +328,7 @@ if (emptys.length > 0) { isvalid = false } - } else if ((values.type === 'select' || values.type === 'link') && values.resourceType === '1') { + } else if ((values.type === 'multiselect' || values.type === 'select' || values.type === 'link') && values.resourceType === '1') { values.options = [] } -- Gitblit v1.8.0