题库调整

yslnewtiku
杨树林 5 years ago
parent b8a59202be
commit 5369dcd0d0

@ -392,6 +392,33 @@ class Question extends Component {
+ subjective_questions_count; + subjective_questions_count;
return ( return (
<div className="newMain clearfix" ref={this.saveContainer}> <div className="newMain clearfix" ref={this.saveContainer}>
{
visible===true?
<style>
{
`
.newHeaders{
position: fixed;
top: 0px;
z-index: 9999999 ;
}
.newFooter{
position: relative;
z-index: 9999999 ;
}
`
}
</style>
:""
}
{
visible===true?
<div
style={{
marginTop: "60px"
}}></div>
:""}
<QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={() => this.modalCancel()} <QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={() => this.modalCancel()}
setDownload={() => this.setDownload()}></QuestionModal> setDownload={() => this.setDownload()}></QuestionModal>
<SiderBar <SiderBar
@ -430,6 +457,8 @@ class Question extends Component {
` `
.ant-drawer-content-wrapper{ .ant-drawer-content-wrapper{
width: 235px; width: 235px;
overflowhidden;
margin-top: 62px;
} }
.ant-drawer-body{ .ant-drawer-body{
height: 100%; height: 100%;
@ -438,12 +467,15 @@ class Question extends Component {
` `
} }
</style> </style>
<Drawer <Drawer
getContainer={this.getContainer} className="drawercontainer"
placement={placement} placement={placement}
closable={false} closable={false}
onClose={() => this.onClose()} onClose={() => this.onClose()}
visible={visible} visible={visible}
mask={false}
closable={true}
> >
{Datacount && Datacount > 0 ? {Datacount && Datacount > 0 ?

@ -16,10 +16,12 @@ import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
import Itembankstop from "./component/Itembankstop"; import Itembankstop from "./component/Itembankstop";
import NoneData from './component/NoneData'; import NoneData from './component/NoneData';
import './questioncss/questioncom.css'; import './questioncss/questioncom.css';
import '../tpm/newshixuns/css/Newshixuns.css';
import Choicequestion from './component/Choicequestion'; import Choicequestion from './component/Choicequestion';
import SingleEditor from "./component/SingleEditor"; import SingleEditor from "./component/SingleEditor";
import ChoquesEditor from "./component/ChoquesEditor" import ChoquesEditor from "./component/ChoquesEditor"
import JudquestionEditor from "./component/JudquestionEditor"; import JudquestionEditor from "./component/JudquestionEditor";
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
// var itembankstop=null; // var itembankstop=null;
// var singleEditor=null; // var singleEditor=null;
// var Judquestio=null; // var Judquestio=null;
@ -208,6 +210,7 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`新增单选题成功`); this.props.showNotification(`新增单选题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
@ -218,6 +221,8 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`编辑单选题成功`); this.props.showNotification(`编辑单选题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
@ -274,6 +279,8 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`新增多选题成功`); this.props.showNotification(`新增多选题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
@ -285,6 +292,8 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`编辑多选题成功`); this.props.showNotification(`编辑多选题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
@ -337,6 +346,8 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`新增判断题成功`); this.props.showNotification(`新增判断题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
@ -347,6 +358,8 @@ class Questionitem_banks extends Component {
.then((result) => { .then((result) => {
if (result.data.status == 0) { if (result.data.status == 0) {
this.props.showNotification(`编辑判断题成功`); this.props.showNotification(`编辑判断题成功`);
this.props.history.replace('/question');
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
@ -392,6 +405,7 @@ class Questionitem_banks extends Component {
const params= this.props&&this.props.match&&this.props.match.params; const params= this.props&&this.props.match&&this.props.match.params;
// console.log(params); // console.log(params);
return ( return (
<div>
<div className="newMain clearfix intermediatecenter " <div className="newMain clearfix intermediatecenter "
style={{ style={{
@ -401,6 +415,7 @@ class Questionitem_banks extends Component {
<style> <style>
{ {
` `
.newFooter{ .newFooter{
display: none; display: none;
} }
@ -472,28 +487,20 @@ class Questionitem_banks extends Component {
</div> </div>
{
item_type===null?
""
:
<div className=" clearfix edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
position:"absolute",
bottom: "0px",
}} >
<a href={'/question'}>
<div className="divquxiao mr20 xiaoshou">
<p className="divquxiaotest" >取消</p>
</div>
</a>
<div className="divbaocun xiaoshou"><p className="divbaocuntests" onClick={()=>this.preservation()}>保存</p></div>
</div>
}
</div>
{
item_type===null?
""
:
<Bottomsubmit bottomvalue={"保存"} onSubmits={() => this.preservation()} url={'/question'}></Bottomsubmit>
}
</div> </div>
) )
@ -504,3 +511,19 @@ class Questionitem_banks extends Component {
} }
export default SnackbarHOC() (TPMIndexHOC ( Questionitem_banks )); export default SnackbarHOC() (TPMIndexHOC ( Questionitem_banks ));
// {
// item_type===null?
// ""
// :
// <div className=" clearfix edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
// position:"absolute",
// bottom: "0px",
// }} >
// <a href={'/question'}>
// <div className="divquxiao mr20 xiaoshou">
// <p className="divquxiaotest" >取消</p>
// </div>
// </a>
// <div className="divbaocun xiaoshou"><p className="divbaocuntests" onClick={()=>this.preservation()}>保存</p></div>
// </div>
// }

@ -111,7 +111,7 @@ class Contentpart extends Component {
.xaxisreverseorder .ant-input-lg { .xaxisreverseorder .ant-input-lg {
height: 41px;} height: 41px;}
.ant-popover{ .xaxisreverseorder .ant-popover{
top: 348px !important; top: 348px !important;
} }

@ -13,7 +13,7 @@ import { getImageUrl, toPath ,trigger,broadcastChannelPostMessage} from 'educode
import axios from 'axios'; import axios from 'axios';
import { Modal,Checkbox ,Radio,Input,message,notification } from 'antd'; import { Modal,Checkbox ,Radio,Input,message,notification,Popover} from 'antd';
import Addcourses from '../courses/coursesPublic/Addcourses'; import Addcourses from '../courses/coursesPublic/Addcourses';
@ -69,6 +69,7 @@ class NewHeader extends Component {
headtypesonClickbool:false, headtypesonClickbool:false,
headtypess:"/", headtypess:"/",
mygetHelmetapi2: null, mygetHelmetapi2: null,
visiblemyss:false,
} }
console.log("176") console.log("176")
// console.log(props); // console.log(props);
@ -699,6 +700,15 @@ submittojoinclass=(value)=>{
document.head.appendChild(link); document.head.appendChild(link);
} }
handleVisibleChanges = (boll) => {
this.setState({
visiblemyss: boll,
})
}
getAppdata=()=>{ getAppdata=()=>{
let url = "/setting.json"; let url = "/setting.json";
axios.get(url).then((response) => { axios.get(url).then((response) => {
@ -868,7 +878,17 @@ submittojoinclass=(value)=>{
}) })
} }
const contents = (
<div className="questiontypes" style={{
width:'93px',
height:'100px',
}}>
<Link to={'/question'}>试题库</Link>
<p className="questiontypeheng"></p>
<Link to={'/question'}>试卷库</Link>
<p className="questiontypeheng"></p>
</div>
);
return ( return (
<div className="newHeaders" id="nHeader" > <div className="newHeaders" id="nHeader" >
@ -942,8 +962,29 @@ submittojoinclass=(value)=>{
) )
}) })
} }
<style>
{
`
.queyppors {
top: 63px !important;
}
.ant-popover-inner-content {
padding:0px !important;
}
`
}
</style>
<li className={`pr `}> <li className={`pr `}>
<Link to={'/question'}>题库</Link> <Popover placement="bottom" content={contents} trigger="click" >
<div className=" sortinxdirection mr10">
<div style={{
color:"#fff"
}}>
题库
</div>
</div>
</Popover>
</li> </li>
{/*<li><a href={this.props.Headertop===undefined?"":'/courses'}>课堂</a></li>*/} {/*<li><a href={this.props.Headertop===undefined?"":'/courses'}>课堂</a></li>*/}

@ -232,7 +232,7 @@ body>.-task-title {
} }
.myrigthsiderbar{ .myrigthsiderbar{
right: 340px !important; right: 15% !important;
} }
.feedbackdivcolor{ .feedbackdivcolor{

Loading…
Cancel
Save