Merge branch 'dev_item_bank' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_item_bank
commit
a4b485c542
After Width: | Height: | Size: 770 B |
After Width: | Height: | Size: 785 B |
@ -0,0 +1,50 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import {getImageUrl} from 'educoder';
|
||||||
|
import { Modal,Input} from 'antd';
|
||||||
|
import axios from 'axios';
|
||||||
|
import './../questioncss/questioncom.css'
|
||||||
|
//立即申请试用
|
||||||
|
class PaperDeletModel extends Component {
|
||||||
|
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state={
|
||||||
|
newkntypeinput:""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handleChange=(e)=>{
|
||||||
|
this.setState({
|
||||||
|
newkntypeinput: e.target.value
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
|
||||||
|
return(
|
||||||
|
<Modal
|
||||||
|
keyboard={false}
|
||||||
|
closable={false}
|
||||||
|
footer={null}
|
||||||
|
destroyOnClose={true}
|
||||||
|
title="新增知识点"
|
||||||
|
centered={true}
|
||||||
|
visible={this.props.NewknTypedel===undefined?false:this.props.NewknTypedel}
|
||||||
|
width="442px"
|
||||||
|
>
|
||||||
|
<div className="educouddiv">
|
||||||
|
<div className={"tabeltext-alignleft mt10"}>
|
||||||
|
<Input onInput={this.handleChange} />
|
||||||
|
</div>
|
||||||
|
<div className="clearfix mt30 edu-txt-center">
|
||||||
|
<a className="task-btn mr30 w80" onClick={()=>this.props.setmodalsTypedel()}>取消</a>
|
||||||
|
<a className="task-btn task-btn-orange w80" onClick={()=>this.props.setmodalsTypedel(this.state.newkntypeinput)}>确定</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PaperDeletModel;
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* @Description:
|
||||||
|
* @Author: tangjiang
|
||||||
|
* @Github:
|
||||||
|
* @Date: 2020-01-03 10:24:43
|
||||||
|
* @LastEditors : tangjiang
|
||||||
|
* @LastEditTime : 2020-01-03 11:45:22
|
||||||
|
*/
|
||||||
|
import types from './actionTypes';
|
||||||
|
|
||||||
|
export const showOrHideTpiTestCase = (flag) => {
|
||||||
|
return {
|
||||||
|
type: types.SHOW_OR_HIDE_TPI_TEST_CASE,
|
||||||
|
payload: flag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const isCollpaseTsetCase = (flag) => {
|
||||||
|
return {
|
||||||
|
type: types.IS_COLLAPSE_TEST_CASE,
|
||||||
|
payload: flag
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* @Description:
|
||||||
|
* @Author: tangjiang
|
||||||
|
* @Github:
|
||||||
|
* @Date: 2020-01-03 10:24:31
|
||||||
|
* @LastEditors : tangjiang
|
||||||
|
* @LastEditTime : 2020-01-03 11:44:26
|
||||||
|
*/
|
||||||
|
import types from "../actions/actionTypes";
|
||||||
|
|
||||||
|
const initialState = {
|
||||||
|
showOrHide: false,
|
||||||
|
isCollapse: false, // 是否展开测试集
|
||||||
|
};
|
||||||
|
|
||||||
|
const tpiReducer = (state = initialState, action) => {
|
||||||
|
const { type, payload } = action;
|
||||||
|
switch (type) {
|
||||||
|
case types.SHOW_OR_HIDE_TPI_TEST_CASE:
|
||||||
|
return {
|
||||||
|
...state,
|
||||||
|
showOrHide: payload
|
||||||
|
}
|
||||||
|
case types.IS_COLLAPSE_TEST_CASE:
|
||||||
|
return {
|
||||||
|
...state,
|
||||||
|
isCollapse: payload
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
return {
|
||||||
|
...state
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default tpiReducer;
|
Loading…
Reference in new issue