|
|
@ -55,32 +55,12 @@ class Selectsetting extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if(response.status===200){
|
|
|
|
if(response.status===200){
|
|
|
|
|
|
|
|
|
|
|
|
let newcourse_groups=[];
|
|
|
|
|
|
|
|
let list =response.data.course_groups;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(list.length!=0){
|
|
|
|
|
|
|
|
list.forEach((item,key)=>{
|
|
|
|
|
|
|
|
newcourse_groups.push ({
|
|
|
|
|
|
|
|
course_group_id:item.course_group_id,
|
|
|
|
|
|
|
|
course_group_name:item.course_group_id,
|
|
|
|
|
|
|
|
publish_time:moment(item.course_group_publish_time).format(dateFormat)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
newcourse_groups.push ({
|
|
|
|
|
|
|
|
course_group_id:undefined,
|
|
|
|
|
|
|
|
course_group_name:undefined,
|
|
|
|
|
|
|
|
publish_time:""
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
datalist:response.data,
|
|
|
|
datalist:response.data,
|
|
|
|
description: response.data.description,
|
|
|
|
description: response.data.description,
|
|
|
|
is_public:response.data.is_public,
|
|
|
|
is_public:response.data.is_public,
|
|
|
|
datatime:response.data.publish_time,
|
|
|
|
datatime:response.data.publish_time,
|
|
|
|
Radiovalue:response.data.delay_publish===false?0:1,
|
|
|
|
Radiovalue:response.data.delay_publish==false?0:1,
|
|
|
|
//attachment_histories:response.data.attachment_histories
|
|
|
|
//attachment_histories:response.data.attachment_histories
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -276,7 +256,7 @@ class Selectsetting extends Component{
|
|
|
|
lineHeight: '30px',
|
|
|
|
lineHeight: '30px',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.state.datatime)
|
|
|
|
console.log(this.state.Radiovalue)
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
@ -334,9 +314,9 @@ class Selectsetting extends Component{
|
|
|
|
.fontlefts{text-align: left; text-align: center;}
|
|
|
|
.fontlefts{text-align: left; text-align: center;}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<ul className="clearfix greybackHead edu-txt-center">
|
|
|
|
<ul className="clearfix greybackHead edu-txt-center">
|
|
|
|
<li className="fl paddingleft22 fontlefts" style={{width:'220px'}}>资源名称</li>
|
|
|
|
<li className="fl paddingleft22 fontlefts" style={{width:'330px'}}>资源名称</li>
|
|
|
|
<li className="fl edu-txt-left" style={{width:'80px'}}>下载</li>
|
|
|
|
<li className="fl edu-txt-left" style={{width:'80px'}}>下载</li>
|
|
|
|
<li className="fl" style={{width:'100px'}}>引用</li>
|
|
|
|
{/*<li className="fl" style={{width:'100px'}}>引用</li>*/}
|
|
|
|
<li className="fl" style={{width:'130px'}}>版本号</li>
|
|
|
|
<li className="fl" style={{width:'130px'}}>版本号</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
@ -363,7 +343,7 @@ class Selectsetting extends Component{
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<div className="pl20 pr20 settingbox">
|
|
|
|
<div className="pl20 pr20 settingbox">
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE">
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE">
|
|
|
|
<li className="fl" style={{width: '241px'}}>
|
|
|
|
<li className="fl" style={{width: '350px'}}>
|
|
|
|
<span className={"isabox"} title={datalist&&datalist.title}> {datalist&&datalist.title} </span>
|
|
|
|
<span className={"isabox"} title={datalist&&datalist.title}> {datalist&&datalist.title} </span>
|
|
|
|
{datalist&&datalist.attachment_histories.length===0?"":<span className={"newcolor-orange fl"}>当前版本</span>}
|
|
|
|
{datalist&&datalist.attachment_histories.length===0?"":<span className={"newcolor-orange fl"}>当前版本</span>}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -378,13 +358,13 @@ class Selectsetting extends Component{
|
|
|
|
{datalist&&datalist.attachment_histories.map((item,key)=>{
|
|
|
|
{datalist&&datalist.attachment_histories.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
<li className="fl" style={{width: '241px'}}>
|
|
|
|
<li className="fl" style={{width: '350px'}}>
|
|
|
|
<span className={"isabox"} title={item.title}> {item.title} </span>
|
|
|
|
<span className={"isabox"} title={item.title}> {item.title} </span>
|
|
|
|
{/*<span className={"newcolor-orange fl"}>当前版本</span>*/}
|
|
|
|
{/*<span className={"newcolor-orange fl"}>当前版本</span>*/}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li className="fl edu-txt-left task-hide paddingl5 "
|
|
|
|
<li className="fl edu-txt-left task-hide paddingl5 "
|
|
|
|
style={{width: '76px'}}> {item.downloads_count} </li>
|
|
|
|
style={{width: '76px'}}> {item.downloads_count} </li>
|
|
|
|
<li className="fl paddingl10 " style={{width: '100px'}}> {item.quotes} </li>
|
|
|
|
{/*<li className="fl paddingl10 " style={{width: '100px'}}> {item.quotes} </li>*/}
|
|
|
|
<li className="fl paddingl10 datastyle">
|
|
|
|
<li className="fl paddingl10 datastyle">
|
|
|
|
{moment(item.created_on).format('YYYY-MM-DD HH:mm')==="Invalid date"?"":moment(item.created_on).format('YYYY-MM-DD HH:mm')}
|
|
|
|
{moment(item.created_on).format('YYYY-MM-DD HH:mm')==="Invalid date"?"":moment(item.created_on).format('YYYY-MM-DD HH:mm')}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -482,9 +462,9 @@ class Selectsetting extends Component{
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
{this.state.newfileListtypes===true?<p className={"color-red"}>请先上传资源</p>:""}
|
|
|
|
{this.state.newfileListtypes===true?<p className={"color-red"}>请先上传资源</p>:""}
|
|
|
|
|
|
|
|
|
|
|
|
<p className={this.state.fileListtype===true?"mt15":""}>
|
|
|
|
<p className={this.state.fileListtype===true?"mt15 selecboxfilas":"selecboxfilas"}>
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|
.ant-checkbox-wrapper{
|
|
|
|
.selecboxfilas .ant-checkbox-wrapper{
|
|
|
|
margin-left:0px !important;
|
|
|
|
margin-left:0px !important;
|
|
|
|
margin-top:10px;
|
|
|
|
margin-top:10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|