Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_hss
cxt 6 years ago
commit 4d3cc55893

@ -62,7 +62,7 @@ module.exports = {
// We generate sourcemaps in production. This is slow but gives good results. // We generate sourcemaps in production. This is slow but gives good results.
// You can exclude the *.map files from the build during deployment. // You can exclude the *.map files from the build during deployment.
// devtool: shouldUseSourceMap ? 'nosources-source-map' : false, //正式版 // devtool: shouldUseSourceMap ? 'nosources-source-map' : false, //正式版
devtool: shouldUseSourceMap ? 'source-map' : false,//测试版 devtool: shouldUseSourceMap ? 'source-map' : 'source-map',//测试版
// In production, we only want to load the polyfills and the app code. // In production, we only want to load the polyfills and the app code.
entry: [require.resolve('./polyfills'), paths.appIndexJs], entry: [require.resolve('./polyfills'), paths.appIndexJs],
output: { output: {

@ -450,6 +450,7 @@ class NewWorkForm extends Component{
className="AboutInputForm groupSetting" className="AboutInputForm groupSetting"
> >
{getFieldDecorator('personNum', { {getFieldDecorator('personNum', {
validateTrigger: 'onNone',
rules: [{ rules: [{
// required: true, // required: true,
// message: '人数不能为空' // message: '人数不能为空'

@ -53,7 +53,7 @@ class ModalWrapper extends Component{
{this.props.checkBoxValuestype===true?<div className={"mt10 color-red"}> {this.props.checkBoxValuestype===true?<div className={"mt10 color-red"}>
请先选择课堂 请先选择课堂
</div>:""} </div>:""}
<div className="mt30 marginauto clearfix edu-txt-center"> <div className="mt20 marginauto clearfix edu-txt-center">
<a onClick={this.onCancel} className="pop_close task-btn mr30">{ cancelText || '取消' }</a> <a onClick={this.onCancel} className="pop_close task-btn mr30">{ cancelText || '取消' }</a>
<a onClick={this.onOk} className="task-btn task-btn-orange" id="submit_send_shixun">{ okText || "确定" }</a> <a onClick={this.onOk} className="task-btn task-btn-orange" id="submit_send_shixun">{ okText || "确定" }</a>
</div> </div>

@ -216,7 +216,9 @@ class Bullsubdirectory extends Component{
let{description,whethertoeditysl,addonAfter,eduintits,informs,isSpinysl} =this.state; let{description,whethertoeditysl,addonAfter,eduintits,informs,isSpinysl} =this.state;
let{myname,mydescription,id}=this.props; let{myname,mydescription,id}=this.props;
const {getFieldDecorator} = this.props.form; const {getFieldDecorator} = this.props.form;
console.log("Bullsubdirectory");
console.log(this.props.isAdmin());
console.log(this.props.yslbool);
return( return(
<React.Fragment > <React.Fragment >
<div > <div >
@ -239,10 +241,13 @@ class Bullsubdirectory extends Component{
<div> <div>
<span className="fr yslbianji" style={{marginRight:"17px"}}> <span className="fr yslbianji" style={{marginRight:"17px"}}>
{ {
this.props.isClassManagement() === true ? this.props.isAdmin() === true ?
(this.props.yslbool===false? (this.props.yslbool===false?
<Tooltip placement="bottom" title={<div>
编辑
</div>}>
<i className="iconfont icon-bianji1 newbianji1" onClick={()=>this.bianji(true)}></i> <i className="iconfont icon-bianji1 newbianji1" onClick={()=>this.bianji(true)}></i>
</Tooltip>
: :
"" ""
) )
@ -251,10 +256,13 @@ class Bullsubdirectory extends Component{
</span> </span>
<span className="fr yslbianji" style={{marginRight:"22px"}}> <span className="fr yslbianji" style={{marginRight:"22px"}}>
{ {
this.props.isClassManagement() === true ? this.props.isAdmin() === true ?
(this.props.yslbool===false? (this.props.yslbool===false?
<Tooltip placement="bottom" title={<div>
删除
</div>}>
<i className="iconfont icon-shanchu newbianji1" style={{ color: "#4CACFF"}} onClick={()=>this.setModeltrue(true)}></i> <i className="iconfont icon-shanchu newbianji1" style={{ color: "#4CACFF"}} onClick={()=>this.setModeltrue(true)}></i>
</Tooltip>
: :
"" ""
) )

@ -82,11 +82,16 @@ class GroupPackage extends Component {
</p> </p>
} }
{ {
datas&&datas.group_info&&datas.group_info.base_on_project? datas&&datas.group_info&&datas.group_info.base_on_project===1?
<p> <p>
<span className="ysltextcolor66">基于项目实施</span> <span className="ysltextcolor66">基于项目实施</span>
<span className="ysltextcolor05">学生必须在本平台创建项目项目管理员可以提交作品</span> <span className="ysltextcolor05">学生必须在本平台创建项目项目管理员可以提交作品</span>
</p> </p>
:datas&&datas.group_info&&datas.group_info.base_on_project===0?
<p>
<span className="ysltextcolor66">不基于项目</span>
<span className="ysltextcolor05">无需在平台创建项目任意小组成员均可以提交作品</span>
</p>
:"" :""
} }
</div> </div>

@ -89,7 +89,7 @@ function CourseGroupChooser({ course_groups, isAdminOrCreator = true, item, inde
<p className="drop_down_btn"> <p className="drop_down_btn">
<a href="javascript:void(0)" className="color-grey-6" <a href="javascript:void(0)" className="color-grey-6"
onClick={() => trigger('groupAdd')} onClick={() => trigger('groupAdd')}
>添加分班...</a> >添加分班</a>
</p> </p>
</ul> </ul>
) )

@ -65,16 +65,22 @@ function CourseGroupChooserModal({ course_groups = [], isAdminOrCreator, item, i
className="courseGroupChooserModal" className="courseGroupChooserModal"
> >
<style>{` <style>{`
.courseGroupChooserModal .ant-modal-body{
padding:20px 30px;
}
.courseGroupChooserModal .description { .courseGroupChooserModal .description {
font-size: 16px; font-size: 16px;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
.courseGroupChooserModal .marginauto{
margin-top:10px!important;
}
.courseGroupChooserModal .drop_down_menu { .courseGroupChooserModal .drop_down_menu {
position: relative; position: relative;
top: auto; top: auto;
box-shadow: none; box-shadow: none;
padding-top: 12px; padding:0px;
} }
.courseGroupChooserModal .drop_down_menu .mainGroup{ .courseGroupChooserModal .drop_down_menu .mainGroup{
background: #f2f9ff; background: #f2f9ff;
@ -95,9 +101,15 @@ function CourseGroupChooserModal({ course_groups = [], isAdminOrCreator, item, i
padding: 0px; padding: 0px;
} }
.courseGroupChooserModal .drop_down_menu .drop_down_btn { .courseGroupChooserModal .drop_down_menu .drop_down_btn {
height: 26px;
line-height: 26px;
padding: 0px 20px; padding: 0px 20px;
margin: 0; margin: 0;
} }
.mainGroup .drop_down_menu .drop_down_btn{
height: 26px;
line-height: 26px;
}
`}</style> `}</style>
{/* <React.Fragment> {/* <React.Fragment>
<React.Fragment> */} <React.Fragment> */}

@ -251,16 +251,19 @@ class Listofworksstudentone extends Component {
textAlign: "center" textAlign: "center"
} }
}> }>
{record.cost_time === null? "--":record.cost_time === undefined?"--": {record.cost_time === null? "--":record.cost_time === undefined?"--":record.cost_time === "--"?"--":
<a style={ <Tooltip placement="bottom" title={<div>
{ 学员在EduCoder做实训花费的时间
color: '#747A7F', </div>}>
textAlign: "center" <span style={
{
color: '#747A7F',
textAlign: "center"
}
} }
} >{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
title={"学员在EduCoder做实训花费的时间"} </span>
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time} </Tooltip>
</a>
} }
</span> </span>
) )
@ -524,16 +527,19 @@ class Listofworksstudentone extends Component {
textAlign: "center" textAlign: "center"
} }
}> }>
{record.cost_time === null? "--":record.cost_time === undefined?"--": {record.cost_time === null? "--":record.cost_time === undefined?"--":record.cost_time === "--"?"--":
<Tooltip placement="bottom" title={<div>
学员在EduCoder做实训花费的时间
</div>}>
<a style={ <a style={
{ {
color: '#747A7F', color: '#747A7F',
textAlign: "center" textAlign: "center"
} }
} }
title={"学员在EduCoder做实训花费的时间"}
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time} >{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
</a> </a>
</Tooltip>
} }
</span> </span>
// <a style={ // <a style={
@ -847,16 +853,19 @@ class Listofworksstudentone extends Component {
textAlign: "center" textAlign: "center"
} }
}> }>
{record.cost_time === null ? "--":record.cost_time === undefined ?"--": {record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time === "--" ?"--":
<Tooltip placement="bottom" title={<div>
学员在EduCoder做实训花费的时间
</div>}>
<a style={ <a style={
{ {
color: '#747A7F', color: '#747A7F',
textAlign: "center" textAlign: "center"
} }
} }
title={"学员在EduCoder做实训花费的时间"}
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time} >{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
</a> </a>
</Tooltip>
} }
</span> </span>
) )

@ -227,10 +227,6 @@
left:0px; left:0px;
background: #4CACFF; background: #4CACFF;
} }
.square-Item{
height: 295px;
}
/* 题库相关 */ /* 题库相关 */
.breadcrumb{ .breadcrumb{
height: 18px; height: 18px;

Loading…
Cancel
Save