|
@ -18,6 +18,7 @@ function Detail(props) { |
|
|
const { record, visible = false, close = () => {} } = props; |
|
|
const { record, visible = false, close = () => {} } = props; |
|
|
const [form] = Form.useForm(); |
|
|
const [form] = Form.useForm(); |
|
|
const [effectiveDateList, setEffectiveDateList] = useState(record.property); |
|
|
const [effectiveDateList, setEffectiveDateList] = useState(record.property); |
|
|
|
|
|
console.log(effectiveDateList) |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
setEffectiveDateList(record.property); |
|
|
setEffectiveDateList(record.property); |
|
|
console.log(record.property); |
|
|
console.log(record.property); |
|
@ -84,11 +85,10 @@ function Detail(props) { |
|
|
</Descriptions.Item> |
|
|
</Descriptions.Item> |
|
|
</Descriptions> |
|
|
</Descriptions> |
|
|
<Divider /> |
|
|
<Divider /> |
|
|
{effectiveDateList && |
|
|
|
|
|
effectiveDateList?.map((item, index) => { |
|
|
|
|
|
console.log(item); |
|
|
|
|
|
return <EffectiveDetail record={item} key={index} />; |
|
|
|
|
|
})} |
|
|
|
|
|
|
|
|
{/* {effectiveDateList && |
|
|
|
|
|
effectiveDateList.time_part_arr?.map((item, index) => { |
|
|
|
|
|
console.log(item); */} |
|
|
|
|
|
<EffectiveDetail record={effectiveDateList}/> |
|
|
</div> |
|
|
</div> |
|
|
</Modal> |
|
|
</Modal> |
|
|
); |
|
|
); |
|
|