|
|
|
@ -7,7 +7,7 @@ import TPMRightSection from './component/TPMRightSection';
|
|
|
|
|
import TPMNav from './component/TPMNav';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import './tpmmodel/tpmmodel.css'
|
|
|
|
|
import {getUploadActionUrl,appendFileSizeToUploadFileAll} from 'educoder';
|
|
|
|
|
import {getUploadActionUrltwo,appendFileSizeToUploadFileAll} from 'educoder';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
|
|
|
|
const confirm = Modal.confirm;
|
|
|
|
@ -125,7 +125,7 @@ class TPMDataset extends Component {
|
|
|
|
|
getdatas = () => {
|
|
|
|
|
let id=this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
let collaborators=`/shixuns/${id}/jupyter_data_sets.json`;
|
|
|
|
|
let collaborators=`/shixuns/${id}/get_data_sets.json`;
|
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
|
page:1,
|
|
|
|
|
limit:10,
|
|
|
|
@ -329,6 +329,7 @@ class TPMDataset extends Component {
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let id=this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
confirm({
|
|
|
|
|
title: '确定要删除文件吗?',
|
|
|
|
@ -336,7 +337,7 @@ class TPMDataset extends Component {
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
// content: 'Some descriptions',
|
|
|
|
|
onOk: () => {
|
|
|
|
|
const url = `/attachments/destroy_files.json`;
|
|
|
|
|
const url = `/shixuns/${id}/destroy_data_sets.json`;
|
|
|
|
|
axios.delete(url,
|
|
|
|
|
{ params: {
|
|
|
|
|
id:this.state.selectedRowKeysdata,
|
|
|
|
@ -420,7 +421,7 @@ class TPMDataset extends Component {
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/15505
|
|
|
|
|
// showUploadList={false},然后外部拿到 fileList 数组自行渲染列表。
|
|
|
|
|
// showUploadList: false,
|
|
|
|
|
action: `${getUploadActionUrl()}`,
|
|
|
|
|
action: `${getUploadActionUrltwo(id)}`,
|
|
|
|
|
showUploadList:false,
|
|
|
|
|
onChange: this.handleChange,
|
|
|
|
|
onRemove: this.onAttachmentRemove,
|
|
|
|
|