From c0bfc28f0263866ea5ee8d224c1083e4132a3c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 7 Jan 2020 19:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/question/Question.js | 1 - .../question/component/ChoquesEditor.js | 2 +- .../modules/question/component/Contentpart.js | 5 ++- .../question/component/Itembankstop.js | 31 ++++++------- .../comthetestpaper/Comthetestpapers.js | 18 +++++++- .../comthetestpaper/Comthetestpaperst.js | 45 +++++++++++++------ .../question/questioncss/questioncom.css | 5 ++- 7 files changed, 69 insertions(+), 38 deletions(-) diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index 8120b1860..171a2f2d7 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -882,7 +882,6 @@ class Question extends Component { /> {/*头部*/} this.getitem_basketss(id)} selectallquestionsonthispage={()=>this.selectallquestionsonthispage()} getitem_baskets={(e)=>this.getitem_baskets(e)} diff --git a/public/react/src/modules/question/component/ChoquesEditor.js b/public/react/src/modules/question/component/ChoquesEditor.js index 28ef8e8a5..99a713d7f 100644 --- a/public/react/src/modules/question/component/ChoquesEditor.js +++ b/public/react/src/modules/question/component/ChoquesEditor.js @@ -309,7 +309,7 @@ class ChoquesEditor extends Component{ {/* 点击设置答案 */} {/* TODO 加了tooltip后,会丢失掉span的class */} {/* */} - this.onOptionClick(index)} style={{flex: '0 0 38px'}}>
{tagArray[index]}
diff --git a/public/react/src/modules/question/component/Contentpart.js b/public/react/src/modules/question/component/Contentpart.js index ee5b49e6b..0768c86b6 100644 --- a/public/react/src/modules/question/component/Contentpart.js +++ b/public/react/src/modules/question/component/Contentpart.js @@ -176,7 +176,8 @@ class Contentpart extends Component { { defaultActiveKey===0||defaultActiveKey==="0"? this.props.setdatafuns(value)} /> : - +
{getFieldDecorator("rbkc", - { + {initialValue: this.state.rbkc, rules: [{required: true, message: '请选择课程'}], } )( -
- - - -
)}
+
{getFieldDecorator("rbzsd" )(
- - - this.NewknTypedeldel(true)}/> + this.NewknTypedeldel(true)}/>

{object.name}

- this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> + this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/>
) @@ -590,19 +586,18 @@ class Itembankstop extends Component { label="题型" > {getFieldDecorator("rbtx", - { + {initialValue: this.state.rbtx, rules: [{required: true, message: '请选择题型'}], } )( - - - )} @@ -663,11 +658,11 @@ class Itembankstop extends Component {
{getFieldDecorator('rbnd', - { + {initialValue: this.state.rbnd, rules: [{required: true, message: '请选择难度'}], } )( - + 简单 适中 困难 diff --git a/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js b/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js index 4f6099202..29f482471 100644 --- a/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js +++ b/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js @@ -393,7 +393,23 @@ class Comthetestpapers extends Component { .ant-select-selection{ height: 33px !important; } - .ant-input-group{ + .kechen .ant-input-group{ + width:258px !important; + } + + .zsdd .ant-input-group{ + width:258px !important; + } + + .sjmc .ant-input-group{ + width:258px !important; + } + + .kssc .ant-input-group{ + width:258px !important; + } + + .rbndclass .ant-input-group{ width:258px !important; } .ant-input { diff --git a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js index 8b3010ed5..88d5b9725 100644 --- a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js +++ b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js @@ -575,7 +575,23 @@ class Comthetestpaperst extends Component { .ant-select-selection{ height: 33px !important; } - .ant-input-group{ + .kechen .ant-input-group{ + width:258px !important; + } + + .zsdd .ant-input-group{ + width:258px !important; + } + + .sjmc .ant-input-group{ + width:258px !important; + } + + .kssc .ant-input-group{ + width:258px !important; + } + + .rbndclass .ant-input-group{ width:258px !important; } .ant-input { @@ -600,24 +616,24 @@ class Comthetestpaperst extends Component { }
- +
+
- {getFieldDecorator("rbkc", - { + {getFieldDecorator("rbkc" + , + {initialValue: this.state.rbkc, rules: [{required: true, message: '请选择课程'}], } )( -
- - - - -
)}
+
+
+
@@ -666,7 +682,7 @@ class Comthetestpaperst extends Component {
)} - +
- {getFieldDecorator('rbnd', - { + {getFieldDecorator('rbnd' + , + {initialValue: this.state.rbnd, rules: [{required: true, message: '请选择难度'}], } )( - + 简单 适中 困难 diff --git a/public/react/src/modules/question/questioncss/questioncom.css b/public/react/src/modules/question/questioncss/questioncom.css index c117ce20a..5d37aeccd 100644 --- a/public/react/src/modules/question/questioncss/questioncom.css +++ b/public/react/src/modules/question/questioncss/questioncom.css @@ -928,7 +928,6 @@ height: 100%; overflow-y: scroll !important; width: 100%; - margin-top: 60px !important; position: fixed; top:0px; bottom: 0px; @@ -936,3 +935,7 @@ z-index: 999999; right: 0px; } + +.searchwidth{ + width: 347px !important; +}