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/mutilform/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index 42b2724..00a1445 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -227,7 +227,7 @@ item.supInitVal = '' } else { item.supInitVal = supItem.initval - item.options = item.oriOptions.filter(option => option.parentId === supItem.initval) + item.options = item.oriOptions.filter(option => option.ParentID === supItem.initval) } } @@ -321,7 +321,7 @@ } if (res.$search.type === 'link') { - item.parentId = cell[res.$search.linkField] + item.ParentID = cell[res.$search.linkField] } else if (res.$search.type === 'select' && res.$search.linkSubField && res.$search.linkSubField.length > 0) { res.$search.linkSubField.forEach(_field => { item[_field] = (cell[_field] || cell[_field] === 0) ? cell[_field] : '' @@ -357,7 +357,7 @@ _formlist = _formlist.map(item => { if (item.type === 'link') { if (item.supInitVal) { - item.options = item.oriOptions.filter(option => option.parentId === item.supInitVal) + item.options = item.oriOptions.filter(option => option.ParentID === item.supInitVal) } else { item.options = item.oriOptions } @@ -381,7 +381,7 @@ 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) { @@ -410,7 +410,7 @@ let _record = {} 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