|
|
@ -1,23 +1,12 @@
|
|
|
|
import React, { Component } from "react";
|
|
|
|
import React, { Component } from "react";
|
|
|
|
import {Link, NavLink} from 'react-router-dom';
|
|
|
|
|
|
|
|
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl} from 'educoder';
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
notification,
|
|
|
|
|
|
|
|
Spin,
|
|
|
|
|
|
|
|
Table,
|
|
|
|
|
|
|
|
Pagination,
|
|
|
|
Pagination,
|
|
|
|
Drawer,
|
|
|
|
|
|
|
|
Input,
|
|
|
|
|
|
|
|
Tooltip
|
|
|
|
|
|
|
|
} from "antd";
|
|
|
|
} from "antd";
|
|
|
|
import {parabola} from './animation/parabola'
|
|
|
|
|
|
|
|
import Headplugselections from "./component/Headplugselections";
|
|
|
|
import Headplugselections from "./component/Headplugselections";
|
|
|
|
import QuestionModal from "./component/QuestionModal";
|
|
|
|
import QuestionModal from "./component/QuestionModal";
|
|
|
|
import QuestionModals from "./component/QuestionModals";
|
|
|
|
import QuestionModals from "./component/QuestionModals";
|
|
|
|
import Contentpart from "./component/Contentpart";
|
|
|
|
import Contentpart from "./component/Contentpart";
|
|
|
|
import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
|
|
|
|
|
|
|
|
import NoneData from './component/NoneData';
|
|
|
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
import Bottomsubmit from "../modals/Bottomsubmit";
|
|
|
|
import Bottomsubmit from "../modals/Bottomsubmit";
|
|
|
|
|
|
|
|
|
|
|
@ -177,9 +166,11 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
//获取题库筛选资料
|
|
|
|
//获取题库筛选资料
|
|
|
|
let urls = `/disciplines.json`;
|
|
|
|
let urls = `/disciplines.json`;
|
|
|
|
axios.get(urls, {params: {
|
|
|
|
axios.get(urls, {
|
|
|
|
|
|
|
|
params: {
|
|
|
|
source: "question"
|
|
|
|
source: "question"
|
|
|
|
}}).then((response) => {
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
//console.log("Questiondisciplines");
|
|
|
|
//console.log("Questiondisciplines");
|
|
|
|
//console.log(response.data);
|
|
|
|
//console.log(response.data);
|
|
|
|
if (response) {
|
|
|
|
if (response) {
|
|
|
@ -719,9 +710,11 @@ class NewMyShixunModel extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
url = `/examination_banks/${this.props.exam_id}/revoke_item.json`;
|
|
|
|
url = `/examination_banks/${this.props.exam_id}/revoke_item.json`;
|
|
|
|
axios.delete(url,{ data: {
|
|
|
|
axios.delete(url, {
|
|
|
|
|
|
|
|
data: {
|
|
|
|
item_id: id === undefined ? "" : parseInt(id),
|
|
|
|
item_id: id === undefined ? "" : parseInt(id),
|
|
|
|
}})
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
.then((result) => {
|
|
|
|
.then((result) => {
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
// this.props.showNotification(`撤销成功`);
|
|
|
|
// this.props.showNotification(`撤销成功`);
|
|
|
@ -792,9 +785,11 @@ class NewMyShixunModel extends Component {
|
|
|
|
//删除大题型
|
|
|
|
//删除大题型
|
|
|
|
Deletebigquestiontype = (item_type) => {
|
|
|
|
Deletebigquestiontype = (item_type) => {
|
|
|
|
const url = `/item_baskets/delete_item_type.json`;
|
|
|
|
const url = `/item_baskets/delete_item_type.json`;
|
|
|
|
axios.delete((url), { data: {
|
|
|
|
axios.delete((url), {
|
|
|
|
|
|
|
|
data: {
|
|
|
|
item_type: item_type
|
|
|
|
item_type: item_type
|
|
|
|
}})
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
// this.props.showNotification('删除成功');
|
|
|
|
// this.props.showNotification('删除成功');
|
|
|
|