|
|
|
@ -13,7 +13,7 @@ import {
|
|
|
|
|
Input,
|
|
|
|
|
Select,
|
|
|
|
|
Cascader,
|
|
|
|
|
Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag
|
|
|
|
|
Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag,Tooltip
|
|
|
|
|
} from "antd";
|
|
|
|
|
import './../questioncss/questioncom.css';
|
|
|
|
|
import Newknledpots from './Newknledpots'
|
|
|
|
@ -57,6 +57,7 @@ class Itembankstop extends Component {
|
|
|
|
|
options: [],
|
|
|
|
|
NewknTypedel:false,
|
|
|
|
|
boolred:false,
|
|
|
|
|
boolnews:false,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -71,6 +72,23 @@ class Itembankstop extends Component {
|
|
|
|
|
//初始化
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
|
if (JSON.stringify(params) === "{}") {
|
|
|
|
|
// "新增"
|
|
|
|
|
this.setState({
|
|
|
|
|
boolnews:false,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
if(params){
|
|
|
|
|
if( params.id){
|
|
|
|
|
this.setState({
|
|
|
|
|
boolnews:true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
this.props.getcontentMdRef(this);
|
|
|
|
@ -754,6 +772,8 @@ class Itembankstop extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="题型"
|
|
|
|
|
>
|
|
|
|
@ -762,18 +782,16 @@ class Itembankstop extends Component {
|
|
|
|
|
rules: [{required: true, message: '请选择题型'}],
|
|
|
|
|
}
|
|
|
|
|
)(
|
|
|
|
|
<Select style={{width: '270px'}} onChange={this.handleFormtixing}
|
|
|
|
|
<Select style={{width: '270px'}} disabled={this.state.boolnews} onChange={this.handleFormtixing}
|
|
|
|
|
placeholder="请选择...">
|
|
|
|
|
<Option value="PROGRAM">编程题</Option>
|
|
|
|
|
<Option value="SINGLE">单选题</Option>
|
|
|
|
|
<Option value="MULTIPLE">多选题</Option>
|
|
|
|
|
<Option value="JUDGMENT">判断题</Option>
|
|
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|