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