dev_jupyter
杨树林 5 years ago
parent 074111a1ce
commit a8d09fba65

@ -538,7 +538,7 @@ class Comthetestpaperst extends Component {
)( )(
<div className="sortinxdirection"> <div className="sortinxdirection">
<InputGroup compact> <InputGroup compact>
<Cascader style={{width: '258px'}} initialValue={this.state.rbkc} options={options} onChange={this.handleFormzhishidian} <Cascader style={{width: '258px'}} value={this.state.rbkc} options={options} onChange={this.handleFormzhishidian}
placeholder="请选择..."/> placeholder="请选择..."/>
</InputGroup> </InputGroup>

@ -20,21 +20,26 @@ import Bottomsubmit from "../../modules/modals/Bottomsubmit";
import Seeoagertit from "./component/Seeoagertit"; import Seeoagertit from "./component/Seeoagertit";
import Paperlibraryseeid_item from './component/Paperlibraryseeid_item'; import Paperlibraryseeid_item from './component/Paperlibraryseeid_item';
import Comthetestpaperst from '../question/comthetestpaper/Comthetestpaperst'; import Comthetestpaperst from '../question/comthetestpaper/Comthetestpaperst';
import JudquestionEditor from "../question/component/JudquestionEditor";
//人工组卷预览 //人工组卷预览
class Paperlibraryeditid extends Component { class Paperlibraryeditid extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.contentMdRef = React.createRef(); this.contentMdRef = React.createRef();
this.Judquestio = React.createRef();
this.state = { this.state = {
paperlibrartdata:[], paperlibrartdata:[],
disciplinesdata: [], disciplinesdata: [],
knowledgepoints: [], knowledgepoints: [],
disciplmy: [], disciplmy: [],
item_banksedit:[]
} }
} }
getJudquestio = (Ref) => {
this.Judquestio = Ref;
}
//初始化 //初始化
componentDidMount() { componentDidMount() {
console.log("Paperlibraryseeid"); console.log("Paperlibraryseeid");
@ -107,6 +112,7 @@ class Paperlibraryeditid extends Component {
if (response) { if (response) {
this.setState({ this.setState({
paperlibrartdata: response.data, paperlibrartdata: response.data,
item_banksedit:response.data.exam,
}) })
} }
}); });
@ -177,7 +183,10 @@ class Paperlibraryeditid extends Component {
<Breadcrumb.Item className={"shubiao"}>试卷编辑</Breadcrumb.Item> <Breadcrumb.Item className={"shubiao"}>试卷编辑</Breadcrumb.Item>
</Breadcrumb> </Breadcrumb>
</div> </div>
<Comthetestpaperst {...this.state} {...this.props}></Comthetestpaperst> <Comthetestpaperst {...this.state} {...this.props}
item_banksedit={this.state.item_banksedit}
getanswerMdRef={(ref) => this.getJudquestio(ref)}
></Comthetestpaperst>

Loading…
Cancel
Save