在线监督,专家名称不显示全名
This commit is contained in:
@ -185,7 +185,7 @@ const OnlineSupervision: React.FC<{}> = () => {
|
||||
rowKey={"id"}
|
||||
/>
|
||||
</div>
|
||||
<ViewModal modalVisible={visible} onCancel={() => closeViewDetails()} ref={viewModalRef} />
|
||||
<ViewModal modalVisible={visible} showStatus={false} onCancel={() => closeViewDetails()} ref={viewModalRef} />
|
||||
</Spin>
|
||||
)
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ const ReservedItems: React.FC<{}> = () => {
|
||||
rowKey={"id"}
|
||||
/>
|
||||
</div>
|
||||
<ViewModal modalVisible = {visible} onCancel = {()=> closeViewDetails()} ref = {viewModalRef}/>
|
||||
<ViewModal modalVisible = {visible} showStatus={false} onCancel = {()=> closeViewDetails()} ref = {viewModalRef}/>
|
||||
</Spin>
|
||||
)
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ const PostSupervision: React.FC<{}> = () => {
|
||||
rowKey={"id"}
|
||||
/>
|
||||
</div>
|
||||
<ViewModal modalVisible={visible} onCancel={() => closeViewDetails()} ref={viewModalRef} />
|
||||
<ViewModal modalVisible={visible} showStatus={true} onCancel={() => closeViewDetails()} ref={viewModalRef} />
|
||||
</Spin>
|
||||
)
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ import ProTable from '@ant-design/pro-table';
|
||||
interface ViewDetailsProps {
|
||||
modalVisible: boolean; //开启关闭控制
|
||||
onCancel: () => void; //关闭方法传入
|
||||
showStatus:boolean; //是否展示全名
|
||||
}
|
||||
|
||||
// interface ReportInfo {
|
||||
@ -86,7 +87,7 @@ const columns: any = [
|
||||
* @returns
|
||||
*/
|
||||
const ViewDetails: React.FC<ViewDetailsProps> = forwardRef((props,ref) => {
|
||||
const {modalVisible, onCancel} = props;
|
||||
const {modalVisible, onCancel, showStatus} = props;
|
||||
const [initReservationInfo, setInitReservationInfo] = useState<boolean>(false);
|
||||
const [initReportInfo, setInitReportInfo] = useState<boolean>(false);
|
||||
const [reservationInfo, setReservationInfo] = useState<ReservationInfo>();
|
||||
@ -110,7 +111,7 @@ const columns: any = [
|
||||
setInitReservationInfo(false);
|
||||
});
|
||||
//获取报道信息
|
||||
getReportInfo(id)
|
||||
getReportInfo({id:id,showStatus:showStatus})
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
setReportInfo(res.data);
|
||||
|
@ -24,8 +24,8 @@ export async function getPage(params?: any) {
|
||||
* 查询报道信息
|
||||
* @param params
|
||||
*/
|
||||
export async function getReportInfo(params?: string) {
|
||||
return request('/api/biz-service-ebtp-evaluation/v1/eleceval/expert/number/report/' + params, {
|
||||
export async function getReportInfo(params?: any) {
|
||||
return request('/api/biz-service-ebtp-evaluation/v1/eleceval/expert/number/report/' + params.id + "?showStatus=" + params.showStatus, {
|
||||
method: 'GET'
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user