|
|
@ -113,26 +113,22 @@ class Questionitem_banks extends Component {
|
|
|
|
if (response.data.disciplines) {
|
|
|
|
if (response.data.disciplines) {
|
|
|
|
|
|
|
|
|
|
|
|
const didata = response.data.disciplines;
|
|
|
|
const didata = response.data.disciplines;
|
|
|
|
for (var i = 0; i < didata.length; i++) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < didata.length; i++) {
|
|
|
|
|
|
|
|
const childern=[];
|
|
|
|
//方向
|
|
|
|
//方向
|
|
|
|
const fxdidata = didata[i].sub_disciplines;
|
|
|
|
const fxdidata = didata[i].sub_disciplines;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var j = 0; j < fxdidata.length; j++) {
|
|
|
|
for (var j = 0; j < fxdidata.length; j++) {
|
|
|
|
//课程
|
|
|
|
//课程
|
|
|
|
const zsddata = fxdidata[j].tag_disciplines;
|
|
|
|
const zsddata = fxdidata[j].tag_disciplines;
|
|
|
|
const datakec={
|
|
|
|
childern.push(
|
|
|
|
value: didata[i].id,
|
|
|
|
|
|
|
|
label: didata[i].name,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: fxdidata[j].id,
|
|
|
|
value: fxdidata[j].id,
|
|
|
|
label: fxdidata[j].name,
|
|
|
|
label: fxdidata[j].name,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.state.disciplmy.push(datakec);
|
|
|
|
|
|
|
|
for (var k = 0; k < zsddata.length; k++) {
|
|
|
|
for (var k = 0; k < zsddata.length; k++) {
|
|
|
|
//知识点
|
|
|
|
//知识点
|
|
|
|
this.state.knowledgepoints.push(zsddata[k]);
|
|
|
|
this.state.knowledgepoints.push(zsddata[k]);
|
|
|
@ -141,6 +137,12 @@ class Questionitem_banks extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const datakec={
|
|
|
|
|
|
|
|
value: didata[i].id,
|
|
|
|
|
|
|
|
label: didata[i].name,
|
|
|
|
|
|
|
|
children: childern,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.state.disciplmy.push(datakec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|