| | |
| | | fileInfoList.forEach(item => { |
| | | if (item.ownerType == '22_00018-202' || item.ownerType == '22_00018-203') { |
| | | file.push({ |
| | | name: item.fileList[0].trueName, |
| | | ...item.fileList[0], |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | } |
| | | if (item.ownerType == '22_00018-204' || item.ownerType == '22_00018-207') { |
| | | file1.push({ |
| | | name: item.fileList[0].trueName, |
| | | ...item.fileList[0], |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | } |
| | |
| | | </FormItem> |
| | | </Col> |
| | | <Col span={8}> |
| | | <FormItem label='问题属地' field='myQuesAddress'> |
| | | <FormItem |
| | | label={(<div style={{ display: 'flex' }}>问题属地<div className="must">必填</div></div>)} |
| | | field='myQuesAddress' |
| | | rules={[{ message: '请选择问题属地', required: true }]} |
| | | > |
| | | <Cascader |
| | | placeholder='请选择' |
| | | options={$$.locationOption()} |
| | | showSearch |
| | | onChange={(value, option) => { |
| | | if (option) { |
| | | console.log(option) |
| | | props.formRef.current.setFieldsValue({ |
| | | queProv: option[0].value, |
| | | queProvName: option[0].label, |
| | | queCity: option[1].value, |
| | | queCityName: option[1].label, |
| | | queArea: option[2].value, |
| | | queAreaName: option[2].label, |
| | | queRoad: option[3] && option[3].value || '', |
| | | queRoadName: option[3] && option[3].label || '', |
| | | // queProv: option[0].value, |
| | | // queProvName: option[0].label, |
| | | // queCity: option[1].value, |
| | | // queCityName: option[1].label, |
| | | queArea: option[0].value, |
| | | queAreaName: option[0].label, |
| | | queRoad: option[1] && option[1].value || '', |
| | | queRoadName: option[1] && option[1].label || '', |
| | | }) |
| | | } else { |
| | | //清除数据 |