dev_aliyun2
harry 5 years ago
parent e67b131f5c
commit 4c44e599a5

@ -1,50 +1,16 @@
export default Itembankstops;
import React, { Component } from "react"; import React, { Component } from "react";
import { Link, NavLink } from 'react-router-dom'; import { getImageUrl } from 'educoder';
import { WordsBtn, ActionBtn, SnackbarHOC, getImageUrl } from 'educoder';
import axios from 'axios'; import axios from 'axios';
import { import {
notification,
Spin,
Table,
Pagination,
Radio, Radio,
Checkbox,
Form, Form,
Input,
Select,
Cascader, Cascader,
Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag, Tooltip
} from "antd"; } from "antd";
import './../questioncss/questioncom.css'; import './../questioncss/questioncom.css';
import Newknledpots from './Newknledpots' import Newknledpots from './Newknledpots'
const InputGroup = Input.Group;
const { Option } = Select;
const queryString = require('query-string'); const queryString = require('query-string');
const options = [
{
value: '方向',
label: '方向',
children: [
{
value: '课程',
label: '课程',
},
],
},
{
value: 'jiangsu',
label: 'Jiangsu',
children: [
{
value: 'nanjing',
label: 'Nanjing',
},
],
},
];
//Comthetestpaperst试卷的 //Comthetestpaperst试卷的
class Itembankstop extends Component { class Itembankstop extends Component {
constructor(props) { constructor(props) {
@ -685,7 +651,6 @@ class Itembankstop extends Component {
` `
body{ body{
width: 100%!important; width: 100%!important;
overflow: hidden!important;
} }
.ant-form-item{ .ant-form-item{
margin-bottom: 0px !important; margin-bottom: 0px !important;
@ -738,6 +703,7 @@ class Itembankstop extends Component {
)( )(
<Cascader style={{ width: '270px' }} options={options} onChange={this.handleFormzhishidian} <Cascader style={{ width: '270px' }} options={options} onChange={this.handleFormzhishidian}
placeholder="请选择..." />
)} )}
</Form.Item> </Form.Item>
@ -765,14 +731,13 @@ class Itembankstop extends Component {
</div > </div>
) )}
}
</Form.Item> </Form.Item>
} }
{ {
this.state.Knowpoints === undefined || this.state.Knowpoints === null ? "" : this.state.Knowpoints === undefined || this.state.Knowpoints === null ? "" :
this.state.Knowpoints.length > 0 ? this.state.Knowpoints.length > 0 ?
<div className="sortinxdirection huanhan w100s mt15" style={{ <div className="sortinxdirection huanhan w100s mt15" style={{
@ -794,7 +759,7 @@ class Itembankstop extends Component {
</div> </div>
: :
"" ""
} }
@ -803,11 +768,12 @@ class Itembankstop extends Component {
label="题型" label="题型"
> >
{getFieldDecorator("rbtx", {getFieldDecorator("rbtx",
{initialValue: this.state.rbtx, {
rules: [{required: true, message: '请选择题型'}], initialValue: this.state.rbtx,
rules: [{ required: true, message: '请选择题型' }],
} }
)( )(
<Select style={{width: '270px'}} disabled={this.state.boolnews} onChange={this.handleFormtixing} <Select style={{ width: '270px' }} disabled={this.state.boolnews} onChange={this.handleFormtixing}
placeholder="请选择..."> placeholder="请选择...">
<Option value="PROGRAM">编程题</Option> <Option value="PROGRAM">编程题</Option>
<Option value="SINGLE">单选题</Option> <Option value="SINGLE">单选题</Option>
@ -815,7 +781,7 @@ class Itembankstop extends Component {
<Option value="JUDGMENT">判断题</Option> <Option value="JUDGMENT">判断题</Option>
</Select> </Select>
)} )}
</Form.Item > </Form.Item>
<style> <style>
{ {
@ -886,11 +852,12 @@ class Itembankstop extends Component {
)} )}
</Form.Item> </Form.Item>
</div> </div>
</Form > </Form>
<div className="h20"></div> <div className="h20"></div>
</div > </div>
) )
} }

Loading…
Cancel
Save