import React, { useEffect, useState } from 'react'; import { Descriptions } from 'antd'; import {CloseOutlined} from '@ant-design/icons'; import { httpget2 } from '../../../../utils/request'; import apiurl from '../../../../service/apiurl'; import moment from "moment" function Wxq({ id, data, dispatch }) { console.log(data); const width = 400; const [detail, setDetail] = useState({}) const closePop = () => { dispatch.runtime.closeFeaturePop(id); }; const getDetailData = async(id) => { try { const res = await httpget2(`${apiurl.home.wxqdetail}/${id}`); setDetail(res.data) } catch (error) { } } useEffect(() => { if (data?.PID) { getDetailData(data?.PID) } }, [data]) return ( <>