dev_forum
caishi 6 years ago
parent bf12c79e3a
commit 99e86faa5b

@ -185,6 +185,9 @@ class UseBank extends Component{
align-items: center;
display: -webkit-flex;
}
.setImgW .edu-nodata-img{
width:218px!important;
}
`}</style>
@ -224,7 +227,7 @@ class UseBank extends Component{
></Search>
</div>
{
nav_my==='myself'?
object_list && object_list.length == 0 && page == 1 ? "" : nav_my==='myself'?
<p className="color-grey-6 mb25 edu-txt-center">选用对象你在课堂{engNameMap[object_type]}列表中已<span className="color-orange-tip">加入题库</span>{engNameMap[object_type]}</p>
:
<p className="color-grey-6 mb25 edu-txt-center">选用对象题库中已设置成公共属性的所有{engNameMap[object_type]}</p>
@ -240,7 +243,7 @@ class UseBank extends Component{
</div>
:
object_list && object_list.length == 0 && page == 1 ?
<NoneData></NoneData>
<div className="setImgW"><NoneData></NoneData></div>
:
<div className="edu-back-skyblue padding20" style={{"height":"230px", "overflowY": 'auto'}}>
<InfiniteScroll
@ -262,14 +265,10 @@ class UseBank extends Component{
return (
<p className="clearfix mb7" key={item.id}>
<Checkbox className="fl" value={item.id}></Checkbox>
<span className="fl with45">
<ConditionToolTip title={item.name} condition={item.name && item.name.length > 19 }>
<label className="task-hide fl" style={{"maxWidth":"208px;"}}>{item.name}</label>
</ConditionToolTip>
<span className="fl with65">
<label className="task-hide fl" title={item.name && item.name.length > 30 ? item.name:""} style={{"maxWidth":"100%"}}>{item.name}</label>
</span>
<ConditionToolTip title={item.course_list_name} condition={item.course_list_name && item.course_list_name.length > 13 }>
<span className={nav_my==='myself'?"fl with50 color-grey-6 task-hide pl5":"fl with30 color-grey-6 task-hide pl5"}>{item.course_list_name}</span>
</ConditionToolTip>
<span title={item.course_list_name && item.course_list_name.length > 14 && item.course_list_name} className={nav_my==='myself'?"fl with30 color-grey-6 task-hide pl5":"fl with30 color-grey-6 task-hide pl5"}>{item.course_list_name}</span>
{
nav_my==='public' &&
<span className="fl with16 color-grey-6 task-hide pl10">{item.username}</span>

@ -77,41 +77,28 @@ class ModulationModal extends Component{
</p>
<p style={{
width: '100%',
height:'150px',
}}>
<textarea style={{
width: '100%',
height:'150px',
border:'1px solid rgba(234,234,234,1)'
}}
placeholder="请填写您对作品调分的原因" className={"mt20"}
value={textareaval}
<div className="clearfix">
<textarea
className="winput-100-150"
placeholder="请填写您对作品调分的原因"
value={textareaval}
onInput={this.settextarea}
></textarea>
<span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span>
</p>
<p>
<Input style={{
<li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li>
</div>
<li>
<Input style={{
width: '20%',
marginTop: textareavaltype===true?'50px':'40px'
}}
placeholder="请填写分数"
value={Inputsval}
onInput={this.setInputs}/> <span className="ml10"></span>
</p>
<span className={Inputsvaltype===true?"color-red":"none"}>分数不能为空</span>
<div className="clearfix mt30 edu-txt-center mb10">
</li>
<li style={{height:"20px",lineHeight:"20px"}}><span className={Inputsvaltype===true?"color-red":"none"}>分数不能为空</span></li>
<div className="clearfix edu-txt-center">
<a className="task-btn color-white mr30" onClick={this.props.Cancel}>{this.props.Cancelname || '取消'}</a>
<a className="task-btn task-btn-orange" onClick={this.Saves}>{this.props.Savesname || '保存'}</a>
</div>
</div>
</Modal>
</div>

@ -103,17 +103,17 @@ class GraduateTopicDetail extends Component{
return(
<div className="newMain">
<div className="educontent mt10 mb50">
<p className="clearfix mb20">
<p className="clearfix mb10">
<WordsBtn style="grey" className="fl" to={`/courses/${tableData.course_id}`}>{tableData && tableData.course_name}</WordsBtn>
<span className="color-grey-9 fl ml3 mr3">&gt;</span>
<WordsBtn style="grey" className="fl" to={`/courses/${tableData.course_id}/graduation_topics/${tableData.graduation_id}`}>{tableData.graduation_name}</WordsBtn>
<span className="color-grey-9 fl ml3 mr3">&gt;</span>
<span>选题详情</span>
</p>
<p className="clearfix mb20">
<p className="clearfix mb20 lineh-25">
<span className="color-grey-3 font-24 fl task-hide" style={{lineHeight:"30px",maxWidth:"900px"}}>{tableData && tableData.graduation_topic_name}</span>
<CoursesListType typelist={[`${tableData && tableData.status_name}`]} typesylename={""} />
<WordsBtn className="fr font-16" style="grey" onClick={()=>this.props.history.goBack()}>返回</WordsBtn>
<span className="fl mt4" style={{height:"25px"}}><CoursesListType typelist={[`${tableData && tableData.status_name}`]} typesylename={""} /></span>
<WordsBtn className="fr font-16 mt2" style="grey" onClick={()=>this.props.history.goBack()}>返回</WordsBtn>
</p>
<div>
<div className="clearfix edu-back-white bor-bottom-greyE" >

@ -79,20 +79,20 @@ class GraduateTopicDetailTable extends Component{
<div className="mt30">
{
topicInfo &&
<p className="mb20">
<span className="mr60">
<p className="clearfix exu-txt-left mb20">
<span className="fl with25">
<span className="color-grey-9">课题类型</span>
<span className="color-grey-3">{topicInfo.topic_type ? type[`${topicInfo.topic_type}`] :"--"}</span>
</span>
<span className="mr60">
<span className="fl with25">
<span className="color-grey-9">课题来源</span>
<span className="color-grey-3">{topicInfo.topic_source ? source[`${topicInfo.topic_source}`] :"--"}</span>
</span>
<span className="mr60">
<span className="fl with25">
<span className="color-grey-9">课题性质1</span>
<span className="color-grey-3">{topicInfo.topic_property_first ? first[`${topicInfo.topic_property_first}`] :"--"}</span>
</span>
<span className="mr60">
<span className="fl with25">
<span className="color-grey-9">课题性质2</span>
<span className="color-grey-3">{topicInfo.topic_property_second ? second[`${topicInfo.topic_property_second}`] :"--"}</span>
</span>
@ -100,16 +100,16 @@ class GraduateTopicDetailTable extends Component{
}
{
topicInfo &&
<p>
<span className="mr60">
<p className="clearfix exu-txt-left">
<span className="fl with25">
<span className="color-grey-9">课题重复情况</span>
<span className="color-grey-3">{topicInfo.topic_repeat ? repeat[`${topicInfo.topic_repeat}`] :"--"}</span>
</span>
<span className="mr60">
<span className="fl with25">
<span className="color-grey-9">调研或实习地点</span>
<span className="color-grey-3">{topicInfo.city || "--"}</span>
</span>
<span className="mr60">
<span className="fl with50">
<span className="color-grey-9">课题来源单位</span>
<span className="color-grey-3">{topicInfo.source_unit || "--"}</span>
</span>

@ -74,7 +74,8 @@ class GraduateTopicDetailTable extends Component{
}
hideAgreeTopic=()=>{
this.setState({
agreeFlag:false
agreeFlag:false,
classesId:undefined
})
}
sureAgreeTopic=(count)=>{
@ -116,6 +117,7 @@ class GraduateTopicDetailTable extends Component{
//切换分班
changeClasses=(value)=>{
debugger
this.setState({
classesId:value
})
@ -130,7 +132,8 @@ class GraduateTopicDetailTable extends Component{
}
hideClasses=()=>{
this.setState({
visible:false
visible:false,
classesId:undefined
})
}
@ -209,7 +212,7 @@ class GraduateTopicDetailTable extends Component{
{
tableData.group_list && tableData.group_list.map((item,key)=>{
return(
<Option value={item.course_group_id} key={key}>{item.group_name}</Option>
<Option value={item.group_id} key={key}>{item.group_name}</Option>
)
})
}

@ -328,8 +328,8 @@ class GraduateTopicNew extends Component{
<span className="color-grey-9 fl ml3 mr3">&gt;</span>
<span>{topicId==undefined?"新建":"编辑"}</span>
</p>
<div className="clearfix mb30">
<p className="fl color-black summaryname mt5">{topicId==undefined?"新建":"编辑"}毕设选题</p>
<div className="clearfix mb20 lineh-25">
<p className="fl color-black summaryname">{topicId==undefined?"新建":"编辑"}毕设选题</p>
<a onClick={()=>this.props.history.goBack()} className="color-grey-6 fr font-16">返回</a>
</div>

@ -348,7 +348,7 @@ class Poll extends Component{
}
this.setState({
course_groups:list,
checkBoxValues:checkValue
checkBoxValues:value
})
this.setState({
modalname:"立即发布",

@ -97,7 +97,7 @@ class PollDetailIndex extends Component{
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
<Menu.Item key="0">答题列表</Menu.Item>
{
(isAdmin || (isStudent && pollDetail && pollDetail.show_result == 1 && pollDetail.polls_status == 3)) && <Menu.Item key="1">统计结果</Menu.Item>
(isAdmin || (isStudent && pollDetail && pollDetail.show_result == 1 && pollDetail.polls_status == 3 && user_permission && user_permission.current_status==1)) && <Menu.Item key="1">统计结果</Menu.Item>
}
{ isAdmin && <Menu.Item key="2">问卷预览</Menu.Item> }
<Menu.Item key="3">设置</Menu.Item>

@ -556,7 +556,9 @@ class PollDetailTabForth extends Component{
<div className="edu-back-white">
<div className="bor-bottom-greyE padding30">
<p className="mb30 clearfix">
<span className="font-16 fl">发布设置 <span className="color-grey-c font-14">课堂管理员教师助教拥有发布设置权限</span></span>
<span className="font-16 fl">发布设置
{/* <span className="color-grey-c font-14">(课堂管理员、教师、助教拥有发布设置权限)</span> */}
</span>
{
!flagPageEdit && isAdmin ?
<a className="fr" onClick={this.editSetting}><Tooltip title="编辑"><i className="iconfont icon-bianjidaibeijing font-20 color-green"></i></Tooltip></a>
@ -564,17 +566,20 @@ class PollDetailTabForth extends Component{
}
</p>
<div className="pl25">
<p className="clearfix mb20">
<Form.Item className="fl pollForm">
{getFieldDecorator('unitSet')
(
<Checkbox disabled={un_change_unified == true ? true : !flagPageEdit}
className="mr15 font-16 color-grey-6" checked={ unitSetting }
onChange={this.changeUnit}>统一设置</Checkbox>
)}
</Form.Item>
<span className="color-grey-c font-14">选中则所有分班使用相同的发布设置仅课堂管理员可修改否则各个分班允许单独设置</span>
</p>
{
course_group && course_group.length > 0 &&
<p className="clearfix mb20">
<Form.Item className="fl pollForm">
{getFieldDecorator('unitSet')
(
<Checkbox disabled={un_change_unified == true ? true : !flagPageEdit}
className="mr15 font-16 color-grey-6" checked={ unitSetting }
onChange={this.changeUnit}>统一设置</Checkbox>
)}
</Form.Item>
<span className="color-grey-c font-14">选中则所有分班使用相同的发布设置仅课堂管理员可修改否则各个分班允许单独设置</span>
</p>
}
{
unitSetting ?
<div>

@ -46,7 +46,7 @@ class PollDetailTabThird extends Component{
<span className="color-grey-3">
{
pollDetail && pollDetail.question_types.q_counts > 0 &&
<span>合计12{pollDetail.question_types.q_counts}</span>
<span>合计{pollDetail.question_types.q_counts}</span>
}
{
pollDetail && pollDetail.question_types.q_singles > 0 &&

@ -1842,11 +1842,11 @@ class Listofworks extends Component {
border-bottom: none!important;
height: 85px;
}
.ant-table-tbody > tr > td {
.ant-tables .ant-table-tbody > tr > td {
height: 85px;
}
`}</style>
<div className="edu-table edu-back-white ">
<div className="edu-table edu-back-white ant-tables">
{data === undefined ? "" : <Table
dataSource={data}
columns={columns}

@ -295,27 +295,27 @@ class ShixunhomeWorkItem extends Component{
{/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/}
{
this.props.isAdmin?<Link to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list"}
className="fl font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
}
{
this.props.isStudent? <Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/openlist`}
className="fl font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
}
{
this.props.isNotMember?this.props.discussMessage.private_icon===false?
<span className="fl font-16 font-bd color-dark maxwidth580">{discussMessage.name}</span>
<span className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</span>
:
<Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/openlist`}
className="fl font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</Link>:""
}
{
this.props.discussMessage.private_icon===false?
<Tooltip title={ this.props.isNotMember?"私有属性,非课堂成员不能访问":"私有属性"} placement="bottom">
<i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl"></i>
<i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl mt4"></i>
</Tooltip>
:
<div></div>

Loading…
Cancel
Save