|
|
@ -1,7 +1,7 @@
|
|
|
|
import React,{Component} from "react";
|
|
|
|
import React,{Component} from "react";
|
|
|
|
import { Form, Select, Input, Button,Checkbox,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip} from "antd";
|
|
|
|
import { Form, Select, Input, Button,Checkbox,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip} from "antd";
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
import { WordsBtn, MarkdownToHtml } from 'educoder';
|
|
|
|
import { WordsBtn, getRandomNumber } from 'educoder';
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import PublishRightnow from '../PublishRightnow'
|
|
|
|
import PublishRightnow from '../PublishRightnow'
|
|
|
|
import AccessoryModal from "../../coursesPublic/AccessoryModal";
|
|
|
|
import AccessoryModal from "../../coursesPublic/AccessoryModal";
|
|
|
@ -44,7 +44,7 @@ class TabRightComponents extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/// 确认是否下载
|
|
|
|
/// 确认是否下载
|
|
|
|
confirmysl(url){
|
|
|
|
confirmysl(url){
|
|
|
|
axios.get(url + '?export=true' ).then((response) => {
|
|
|
|
axios.get(url + '&export=true' ).then((response) => {
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
@ -108,8 +108,8 @@ class TabRightComponents extends Component{
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
const isSuperAdmin = this.props.isSuperAdmin()
|
|
|
|
const isSuperAdmin = this.props.isSuperAdmin()
|
|
|
|
|
|
|
|
|
|
|
|
let exportUrl = `/api/homework_commons/${workId}/works_list.zip`
|
|
|
|
let exportUrl = `/api/homework_commons/${workId}/works_list.zip${getRandomNumber()}`
|
|
|
|
const exportResultUrl = `/api/homework_commons/${workId}/works_list.xlsx`
|
|
|
|
const exportResultUrl = `/api/homework_commons/${workId}/works_list.xlsx${getRandomNumber()}`
|
|
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|