From 4c44e599a5870200977a28af02e2509ef658e252 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 14 Mar 2020 21:46:29 +0800 Subject: [PATCH] fix --- .../question/component/Itembankstop.js | 179 +++++++----------- 1 file changed, 73 insertions(+), 106 deletions(-) diff --git a/public/react/src/modules/question/component/Itembankstop.js b/public/react/src/modules/question/component/Itembankstop.js index fa7503ef4..13d87dab7 100644 --- a/public/react/src/modules/question/component/Itembankstop.js +++ b/public/react/src/modules/question/component/Itembankstop.js @@ -1,50 +1,16 @@ -export default Itembankstops; import React, { Component } from "react"; -import { Link, NavLink } from 'react-router-dom'; -import { WordsBtn, ActionBtn, SnackbarHOC, getImageUrl } from 'educoder'; +import { getImageUrl } from 'educoder'; import axios from 'axios'; import { - notification, - Spin, - Table, - Pagination, Radio, - Checkbox, Form, - Input, - Select, Cascader, - Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag, Tooltip } from "antd"; import './../questioncss/questioncom.css'; import Newknledpots from './Newknledpots' -const InputGroup = Input.Group; -const { Option } = Select; const queryString = require('query-string'); -const options = [ - { - value: '方向', - label: '方向', - children: [ - { - value: '课程', - label: '课程', - }, - ], - }, - { - value: 'jiangsu', - label: 'Jiangsu', - children: [ - { - value: 'nanjing', - label: 'Nanjing', - }, - ], - }, -]; //Comthetestpaperst试卷的 class Itembankstop extends Component { constructor(props) { @@ -685,7 +651,6 @@ class Itembankstop extends Component { ` body{ width: 100%!important; - overflow: hidden!important; } .ant-form-item{ margin-bottom: 0px !important; @@ -738,6 +703,7 @@ class Itembankstop extends Component { )( )} @@ -750,51 +716,50 @@ class Itembankstop extends Component { {getFieldDecorator("rbzsd" )(
- + - this.NewknTypedeldel(true)} /> + this.NewknTypedeldel(true)} /> -
- ) - } - + + )} + } -{ - this.state.Knowpoints === undefined || this.state.Knowpoints === null ? "" : - this.state.Knowpoints.length > 0 ? -
- {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { - return ( -
-

{object.name}

- - this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")} /> - -
- ) - })} -
- : - "" -} + { + this.state.Knowpoints === undefined || this.state.Knowpoints === null ? "" : + this.state.Knowpoints.length > 0 ? +
+ {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { + return ( +
+

{object.name}

+ + this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")} /> + +
+ ) + })} +
+ : + "" + } @@ -803,23 +768,24 @@ class Itembankstop extends Component { label="题型" > {getFieldDecorator("rbtx", - {initialValue: this.state.rbtx, - rules: [{required: true, message: '请选择题型'}], + { + initialValue: this.state.rbtx, + rules: [{ required: true, message: '请选择题型' }], } )( - + )} - + - -
- - {getFieldDecorator('rbnd', - { - initialValue: this.state.rbnd, - rules: [{ required: true, message: '请选择难度' }], - } - )( - - 简单 - 适中 - 困难 - , - )} - -
- -
- + } + +
+ + {getFieldDecorator('rbnd', + { + initialValue: this.state.rbnd, + rules: [{ required: true, message: '请选择难度' }], + } + )( + + 简单 + 适中 + 困难 + , + )} + +
+ +
+ ) + }