diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index 9613a4cc3..b7553311d 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -982,6 +982,7 @@ class Question extends Component { position: relative; z-index: 9999999 ; } + ` } diff --git a/public/react/src/modules/question/component/Contentpart.js b/public/react/src/modules/question/component/Contentpart.js index f8e2ee400..b58dc9922 100644 --- a/public/react/src/modules/question/component/Contentpart.js +++ b/public/react/src/modules/question/component/Contentpart.js @@ -363,7 +363,7 @@ class Contentpart extends Component { .xaxisreverseorder .ant-popover-inner-content { padding:0px !important; } - + ` } diff --git a/public/react/src/modules/question/component/Listjihe.js b/public/react/src/modules/question/component/Listjihe.js index 14652cdef..855a4fbad 100644 --- a/public/react/src/modules/question/component/Listjihe.js +++ b/public/react/src/modules/question/component/Listjihe.js @@ -25,6 +25,28 @@ const tagArrays = [ 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ] +const questionType = [ + { + type:'SINGLE', + color:'typeGreen', + name:'单选题' + }, + { + type:'MULTIPLE', + color:'typeBlue', + name:'多选题' + }, + { + type:'JUDGMENT', + color:'typeRed', + name:'判断题' + }, + { + type:'PROGRAM', + color:'typeYellow', + name:'编程题' + } +] //Paperreview_single.js Paperlibraryseeid_items.js class Listjihe extends Component { constructor(props) { @@ -233,10 +255,10 @@ class Listjihe extends Component { }catch (e) { } - + const types = questionType.filter(item=>item.type === items.item_type); return (
+ className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "borderwds pd20 mb20 listjihecolors"}> {/*顶部*/} { mydisplay===true? @@ -301,6 +323,7 @@ class Listjihe extends Component { }
+ {types && types[0].name}
@@ -311,10 +334,10 @@ class Listjihe extends Component { { items.item_type==="PROGRAM"? this.seturls(`/problems/${items.program_attr.identifier}/edit`)} > -
+
: -
+
{ items===undefined||items===null||items===""?"": items.name === undefined || items.name === null || items.name === "" ? diff --git a/public/react/src/modules/question/questioncss/questioncom.css b/public/react/src/modules/question/questioncss/questioncom.css index 096b30007..a0c791190 100644 --- a/public/react/src/modules/question/questioncss/questioncom.css +++ b/public/react/src/modules/question/questioncss/questioncom.css @@ -329,7 +329,7 @@ .listjihetixingstitsy { color: #333333; font-size: 14px; - line-height: 20px !important; + line-height: 25px !important; height: 25px !important; } @@ -1118,3 +1118,27 @@ .text-indents50{ text-indent: 50px } +.typesBtn{ + padding:0px 10px; + height:24px; + line-height:24px; + border-radius:2px; + margin-right:10px; + font-size: 13px; +} +.typeGreen{ + color:#15DB7A; + border:1px solid #15DB7A; +} +.typeBlue{ + color:#0CB9F1; + border:1px solid #0CB9F1; +} +.typeRed{ + color:#FF5555; + border:1px solid #FF5555; +} +.typeYellow{ + color:#FFB538; + border:1px solid #FFB538; +} \ No newline at end of file diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 8d3c85378..aecee799a 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -1267,7 +1267,8 @@ submittojoinclass=(value)=>{ {/* p 老师 l 学生 */} {shixuntype===true?"":
  • 我的实训项目
  • } {pathstype===true?"":
  • {this.props.user&&this.props.user.main_site===false?"我的课程":"我的实践课程"}
  • } - {this.props.user&&this.props.user.main_site===true?
  • 我的开发项目
  • :""} + {this.props.user&&this.props.user.main_site===true?
  • 我的开发项目
  • :""} + { Periofters === true &&
  • 我的题库
  • } {/*
  • 我的众包
  • */}
  • 客户管理