import React, {Component} from "react"; import {Link, NavLink} from 'react-router-dom'; import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl} from 'educoder'; import axios from 'axios'; import { notification, Spin, Table, Pagination, Drawer, Input, Button, Breadcrumb } from "antd"; import {TPMIndexHOC} from "../tpm/TPMIndexHOC"; import NoneData from './component/NoneData'; import './testioncss/testioncss.css'; import '../tpm/newshixuns/css/Newshixuns.css'; import Bottomsubmit from "../../modules/modals/Bottomsubmit"; import Seeoagertit from "./component/Seeoagertit"; import Paperlibraryseeid_item from './component/Paperlibraryseeid_item'; //人工组卷预览 class Paperlibraryseeid extends Component { constructor(props) { super(props); this.contentMdRef = React.createRef(); this.state = { paperlibrartdata:[], } } //初始化 componentDidMount() { console.log("Paperlibraryseeid"); this.getdata(); } getdata = () => { let urls = `/examination_banks/${this.props.match.params.id}.json`; axios.get(urls).then((response) => { if (response) { this.setState({ paperlibrartdata: response.data, }) } }); } //跳转道描点的地方 scrollToAnchor = (anchorName) => { try { if (anchorName) { // 找到锚点 let anchorElement = document.getElementById(anchorName); // 如果对应id的锚点存在,就跳转到锚点 if (anchorElement) { anchorElement.scrollIntoView(); } } } catch (e) { } } preservation = () => { //保存试卷 } setitem_type = (item_type) => { } setCohetepaperbool =(bool)=>{ } getcontentMdRef = (Ref) => { this.contentMdRef = Ref; } render() { let {paperlibrartdata} = this.state; const params = this.props && this.props.match && this.props.match.params; // //console.log(params); return (