From 71fce3cc19f80a6e0eba36cfc5e67995ee9712ff Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 23 七月 2020 09:23:59 +0800 Subject: [PATCH] 2020-07-23 --- src/tabviews/zshare/topSearch/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 478a1a4..b38f024 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -76,7 +76,7 @@ duration: 5 }) } else { - item.options = item.oriOptions.filter(option => option.parentId === supItem.initval) + item.options = item.oriOptions.filter(option => option.ParentID === supItem.initval) } } else if (item.type === 'group' && item.Hide !== 'true') { _groups.push(fromJS(item).toJS()) @@ -174,7 +174,7 @@ } if (res.search.type === 'link') { - _item.parentId = cell[res.search.linkField] + _item.ParentID = cell[res.search.linkField] } item.options.push(_item) @@ -212,7 +212,7 @@ let supItem = _list.filter(form => form.field === item.linkField)[0] if (supItem) { - item.options = item.oriOptions.filter(option => option.parentId === supItem.initval) + item.options = item.oriOptions.filter(option => option.ParentID === supItem.initval) } } @@ -230,7 +230,7 @@ supfields.forEach(supfield => { formlist = formlist.map(item => { if (item.type === 'link' && item.linkField === supfield.field) { - item.options = item.oriOptions.filter(option => option.parentId === supfield.initval) + item.options = item.oriOptions.filter(option => option.ParentID === supfield.initval) item.initval = item.options[0] ? item.options[0].Value : '' if (this.props.form.getFieldValue(item.field) !== undefined) { @@ -257,7 +257,7 @@ let fieldsvalue = {} formlist = formlist.map(item => { if (item.type === 'link' && item.linkField === _field.field) { - item.options = item.oriOptions.filter(option => option.parentId === value) + item.options = item.oriOptions.filter(option => option.ParentID === value) item.initval = item.options[0] ? item.options[0].Value : '' if (this.props.form.getFieldValue(item.field) !== undefined) { -- Gitblit v1.8.0