|
|
|
@ -2,7 +2,7 @@ import React,{Component} from "React";
|
|
|
|
|
import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal} from "antd";
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import TPMMDEditor from '../../../tpm/challengesnew/TPMMDEditor';
|
|
|
|
|
import { WordsBtn,getUrl ,bytesToSize,appendFileSizeToUploadFileAll} from 'educoder';
|
|
|
|
|
import { WordsBtn,getUrl ,bytesToSize,appendFileSizeToUploadFileAll,AttachmentList} from 'educoder';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import Modals from '../../../modals/Modals';
|
|
|
|
|
import '../../css/Courses.css';
|
|
|
|
@ -419,35 +419,35 @@ class GraduationTasksedit extends Component{
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<input type="hidden" id='descriptiontypes' />
|
|
|
|
|
<AttachmentList {...this.props} {...this.state} attachments={attachments&&attachments}></AttachmentList>
|
|
|
|
|
{/*{attachments&&attachments.map((item,key)=>{*/}
|
|
|
|
|
|
|
|
|
|
{attachments&&attachments.map((item,key)=>{
|
|
|
|
|
{/*return(*/}
|
|
|
|
|
{/*<div className="color-grey mt5"*/}
|
|
|
|
|
{/*key={key}*/}
|
|
|
|
|
{/*>*/}
|
|
|
|
|
{/*<a className="color-grey ml3">*/}
|
|
|
|
|
{/*<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>*/}
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/*<a*/}
|
|
|
|
|
{/*href={item.url}*/}
|
|
|
|
|
{/*className="mr12 color9B9B" length="58">*/}
|
|
|
|
|
{/*{item.title}*/}
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<div className="color-grey mt5"
|
|
|
|
|
key={key}
|
|
|
|
|
>
|
|
|
|
|
<a className="color-grey ml3">
|
|
|
|
|
<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a
|
|
|
|
|
href={item.url}
|
|
|
|
|
className="mr12 color9B9B" length="58">
|
|
|
|
|
{item.title}
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
<span className="color656565 mt2 color-grey-6 font-12 mr8">
|
|
|
|
|
{item.filesize}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
{item.delete===true?
|
|
|
|
|
<i className="font-14 iconfont icon-guanbi "
|
|
|
|
|
id={item.id}
|
|
|
|
|
onClick={()=>this.onAttachmentRemove(item.id)}
|
|
|
|
|
aria-hidden="true">
|
|
|
|
|
</i>:""}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/*<span className="color656565 mt2 color-grey-6 font-12 mr8">*/}
|
|
|
|
|
{/*{item.filesize}*/}
|
|
|
|
|
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*{item.delete===true?*/}
|
|
|
|
|
{/*<i className="font-14 iconfont icon-guanbi "*/}
|
|
|
|
|
{/*id={item.id}*/}
|
|
|
|
|
{/*onClick={()=>this.onAttachmentRemove(item.id)}*/}
|
|
|
|
|
{/*aria-hidden="true">*/}
|
|
|
|
|
{/*</i>:""}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*)*/}
|
|
|
|
|
{/*})}*/}
|
|
|
|
|
<Upload {...uploadProps} fileList={this.state.fileList} className="upload_1 ml5">
|
|
|
|
|
<Button className="uploadBtn">
|
|
|
|
|
<Icon type="upload" /> 上传附件
|
|
|
|
|