题库调整

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

@ -392,6 +392,33 @@ class Question extends Component {
+ subjective_questions_count;
return (
<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()}
setDownload={() => this.setDownload()}></QuestionModal>
<SiderBar
@ -428,22 +455,27 @@ class Question extends Component {
<style>
{
`
.ant-drawer-content-wrapper{
.ant-drawer-content-wrapper{
width: 235px;
overflowhidden;
margin-top: 62px;
}
.ant-drawer-body{
.ant-drawer-body{
height: 100%;
background:rgba(234,234,234,1);
}
`
}
</style>
<Drawer
getContainer={this.getContainer}
className="drawercontainer"
placement={placement}
closable={false}
onClose={() => this.onClose()}
visible={visible}
mask={false}
closable={true}
>
{Datacount && Datacount > 0 ?

@ -16,10 +16,12 @@ import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
import Itembankstop from "./component/Itembankstop";
import NoneData from './component/NoneData';
import './questioncss/questioncom.css';
import '../tpm/newshixuns/css/Newshixuns.css';
import Choicequestion from './component/Choicequestion';
import SingleEditor from "./component/SingleEditor";
import ChoquesEditor from "./component/ChoquesEditor"
import JudquestionEditor from "./component/JudquestionEditor";
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
// var itembankstop=null;
// var singleEditor=null;
// var Judquestio=null;
@ -208,6 +210,7 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`新增单选题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
@ -218,6 +221,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`编辑单选题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
@ -274,6 +279,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`新增多选题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
@ -285,6 +292,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`编辑多选题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
@ -337,6 +346,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`新增判断题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
console.log(error);
@ -347,6 +358,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
this.props.showNotification(`编辑判断题成功`);
this.props.history.replace('/question');
}
}).catch((error) => {
console.log(error);
@ -392,6 +405,7 @@ class Questionitem_banks extends Component {
const params= this.props&&this.props.match&&this.props.match.params;
// console.log(params);
return (
<div>
<div className="newMain clearfix intermediatecenter "
style={{
@ -401,6 +415,7 @@ class Questionitem_banks extends Component {
<style>
{
`
.newFooter{
display: none;
}
@ -472,28 +487,20 @@ class Questionitem_banks extends Component {
</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>
)
@ -504,3 +511,19 @@ class Questionitem_banks extends Component {
}
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,12 +111,12 @@ class Contentpart extends Component {
.xaxisreverseorder .ant-input-lg {
height: 41px;}
.ant-popover{
.xaxisreverseorder .ant-popover{
top: 348px !important;
}
.ant-popover-inner-content {
.ant-popover-inner-content {
padding:0px !important;
}

@ -13,7 +13,7 @@ import { getImageUrl, toPath ,trigger,broadcastChannelPostMessage} from 'educode
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';
@ -69,6 +69,7 @@ class NewHeader extends Component {
headtypesonClickbool:false,
headtypess:"/",
mygetHelmetapi2: null,
visiblemyss:false,
}
console.log("176")
// console.log(props);
@ -699,6 +700,15 @@ submittojoinclass=(value)=>{
document.head.appendChild(link);
}
handleVisibleChanges = (boll) => {
this.setState({
visiblemyss: boll,
})
}
getAppdata=()=>{
let url = "/setting.json";
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 (
<div className="newHeaders" id="nHeader" >
@ -942,8 +962,29 @@ submittojoinclass=(value)=>{
)
})
}
<li className={`pr`}>
<Link to={'/question'}>题库</Link>
<style>
{
`
.queyppors {
top: 63px !important;
}
.ant-popover-inner-content {
padding:0px !important;
}
`
}
</style>
<li className={`pr `}>
<Popover placement="bottom" content={contents} trigger="click" >
<div className=" sortinxdirection mr10">
<div style={{
color:"#fff"
}}>
题库
</div>
</div>
</Popover>
</li>
{/*<li><a href={this.props.Headertop===undefined?"":'/courses'}>课堂</a></li>*/}

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

Loading…
Cancel
Save