|
|
@ -1,6 +1,5 @@
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import {Redirect} from 'react-router';
|
|
|
|
import { Modal, Checkbox, Table, message, Pagination, Upload, Button } from 'antd';
|
|
|
|
import {List, Typography, Tag, Modal, Radio, Checkbox, Table,message, Pagination,Upload,Button} from 'antd';
|
|
|
|
|
|
|
|
import { NoneData } from 'educoder'
|
|
|
|
import { NoneData } from 'educoder'
|
|
|
|
|
|
|
|
|
|
|
|
import TPMRightSection from './component/TPMRightSection';
|
|
|
|
import TPMRightSection from './component/TPMRightSection';
|
|
|
@ -179,10 +178,12 @@ class TPMDataset extends Component {
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
axios.get(collaborators, {
|
|
|
|
|
|
|
|
params: {
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 10,
|
|
|
|
limit: 10,
|
|
|
|
}}).then((response)=> {
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
|
|
|
|
|
|
|
@ -235,10 +236,12 @@ class TPMDataset extends Component {
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
axios.get(collaborators, {
|
|
|
|
|
|
|
|
params: {
|
|
|
|
page: page,
|
|
|
|
page: page,
|
|
|
|
limit: limit,
|
|
|
|
limit: limit,
|
|
|
|
}}).then((response)=> {
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
|
|
|
|
|
|
|
@ -289,10 +292,12 @@ class TPMDataset extends Component {
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
let collaborators = `/shixuns/${id}/get_data_sets.json`;
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
axios.get(collaborators, {
|
|
|
|
|
|
|
|
params: {
|
|
|
|
page: page,
|
|
|
|
page: page,
|
|
|
|
limit: limit,
|
|
|
|
limit: limit,
|
|
|
|
}}).then((response)=> {
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
|
|
|
|
|
|
|
|
|
|
@ -452,9 +457,11 @@ class TPMDataset extends Component {
|
|
|
|
onOk: () => {
|
|
|
|
onOk: () => {
|
|
|
|
const url = `/shixuns/${id}/destroy_data_sets.json`;
|
|
|
|
const url = `/shixuns/${id}/destroy_data_sets.json`;
|
|
|
|
axios.delete(url,
|
|
|
|
axios.delete(url,
|
|
|
|
{ params: {
|
|
|
|
{
|
|
|
|
|
|
|
|
params: {
|
|
|
|
id: this.state.selectedRowKeysdata,
|
|
|
|
id: this.state.selectedRowKeysdata,
|
|
|
|
}}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data) {
|
|
|
|
if (response.data) {
|
|
|
|