video_transcode
caicai8 5 years ago
parent c6a2837aca
commit bea567ca88

@ -98,12 +98,12 @@ class Boards extends Component{
this.fetchBoards()
this.fetchAll()
on('updateNavSuccess', this.updateNavSuccess)
// on('updateNavSuccess', this.updateNavSuccess)
}
componentWillUnmount() {
off('updateNavSuccess', this.updateNavSuccess)
}
// componentWillUnmount() {
// off('updateNavSuccess', this.updateNavSuccess)
// }
updateNavSuccess = () => {
this.fetchBoards()
if (this.props.match.params.boardId == this.state.boardid) {
@ -112,7 +112,7 @@ class Boards extends Component{
}
componentDidUpdate = (prevProps) => {
if ( prevProps.match.params.boardId != this.props.match.params.boardId ) {
if ( prevProps.match.params.boardId !== this.props.match.params.boardId ) {
this.setState({
isSpin:true
})

@ -194,13 +194,11 @@ class Addcourses extends Component{
}
submittojoinclass=()=>{
debugger;
let{Addcoursestype}=this.state;
this.setState({
isSpin:true
})
let {invite_code,professor,assistant_professor,student}=this.state;
invite_code="MBTAP";
if(invite_code===undefined||invite_code===""){
this.setState({
invite_codetype:true,

@ -65,7 +65,6 @@ class RepositoryAddFileupload_files extends Component {
fileList = fileList.map(file => {
if (file.response) {
if (file.response.status===0) {
}
}
return file;
@ -76,34 +75,35 @@ class RepositoryAddFileupload_files extends Component {
};
onAttachmentRemove=(info)=>{
console.log(info);
if(info.response){
let shixunId = this.props.match.params.shixunId;
let {message,filspath}=this.state;
if(message===""||message===undefined){
this.props.showNotification('删除文件请先填写提交信息');
return
}
let shixunId = this.props.match.params.shixunId;
let {message,filspath}=this.state;
if(message===""||message===undefined){
this.props.showNotification('删除文件请先填写提交信息');
return;
}
let matchpath =this.props.match.path;
let matchpath =this.props.match.path;
let Repositoryflag =undefined;
let Repositoryflag =undefined;
if( matchpath.indexOf("repository")>-1){
Repositoryflag =undefined;
}
if(matchpath.indexOf("secret_repository")>-1){
Repositoryflag =true;
}
if( matchpath.indexOf("repository")>-1){
Repositoryflag =undefined;
}
if(matchpath.indexOf("secret_repository")>-1){
Repositoryflag =true;
}
let newfilspath=filspath;
let newfilspath=filspath;
if(newfilspath===""){
newfilspath=info.name
}else{
newfilspath=filspath+"/"+info.name
}
const url = `/shixuns//${shixunId}/delete_git_file.json`;
axios.delete(url, { data: {
if(newfilspath===""){
newfilspath=info.name
}else{
newfilspath=filspath+"/"+info.name
}
const url = `/shixuns//${shixunId}/delete_git_file.json`;
axios.delete(url, { data: {
path:newfilspath,
message:message,
secret_repository:Repositoryflag

Loading…
Cancel
Save