Commit 51748078 authored by 皮倩雯's avatar 皮倩雯

fix: 表字段字段配置图片配置bug修复'

parent 68cada4a
......@@ -221,9 +221,9 @@ const AddModal = props => {
break;
case '图片':
case '可预览图片':
data[0].Config = pramData.picture ? '拍照相册' : '';
// data[0].Preset = pramData.picture ? '拍照相册' : '';
// data[0].ValidationRule = pramData.must ? 'required' : '';
// data[0].Config = pramData.picture ? '拍照相册' : '';
data[0].Preset = pramData.picture ? '拍照相册' : '';
data[0].ValidationRule = pramData.must ? 'required' : '';
break;
case '平铺值选择器':
case '搜索选择器':
......@@ -458,9 +458,9 @@ const AddModal = props => {
break;
case '图片':
case '可预览图片':
res[0].data.root.Config === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
// res[0].data.root.Config === '拍照相册' ? (picture = true) : (picture = false);
res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
break;
case '编码':
let code = res[0].data.root.Config.split('.');
......@@ -1183,9 +1183,9 @@ const AddModal = props => {
break;
case '图片':
case '可预览图片':
aa.Config === '拍照相册' ? (picture = true) : (picture = false);
// aa.Preset === '拍照相册' ? (picture = true) : (picture = false);
// aa.ValidationRule === 'required' ? (must = true) : (must = false);
// aa.Config === '拍照相册' ? (picture = true) : (picture = false);
aa.Preset === '拍照相册' ? (picture = true) : (picture = false);
aa.ValidationRule === 'required' ? (must = true) : (must = false);
break;
case '编码':
let code = aa.Config.split('.');
......@@ -1532,9 +1532,9 @@ const AddModal = props => {
break;
case '图片':
case '可预览图片':
res[0].data.root.Config === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
// res[0].data.root.Config === '拍照相册' ? (picture = true) : (picture = false);
res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
break;
case '编码':
let code = res[0].data.root.Config.split('.');
......@@ -1867,9 +1867,9 @@ const AddModal = props => {
break;
case '图片':
case '可预览图片':
data[0].Config = pramData.picture ? '拍照相册' : '';
// data[0].Preset = pramData.picture ? '拍照相册' : '';
// data[0].ValidationRule = pramData.must ? 'required' : '';
// data[0].Config = pramData.picture ? '拍照相册' : '';
data[0].Preset = pramData.picture ? '拍照相册' : '';
data[0].ValidationRule = pramData.must ? 'required' : '';
break;
case '平铺值选择器':
case '搜索选择器':
......@@ -2524,12 +2524,12 @@ const AddModal = props => {
>
允许从相册选取
</Checkbox>
{/* <Checkbox
<Checkbox
checked={pramData.must}
onChange={e => onChangeReady(e, 'must')}
>
必填字段
</Checkbox> */}
</Checkbox>
</div>
</Item>
);
......@@ -3012,10 +3012,10 @@ const AddModal = props => {
}
})()}
{/* </div> */}
{/* {Shape === '图片' || Shape === '可预览图片' ? (
{Shape === '图片' || Shape === '可预览图片' ? (
''
) : ( */}
{/* <Item label="预设值" labelCol={{ span: 4 }}> */}
) : (
<Item labelCol={{ span: 4 }}>
{/* <div className={styles.listEvent}> */}
<Row>
<Col span={12}>
......@@ -3055,8 +3055,10 @@ const AddModal = props => {
</Tooltip>
</Col>
</Row>
{/* </Item> */}
{/* // )} */}
</Item>
)}
{/* <Item label="异常值">
<div className={styles.listEvent}>
<Input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment