dev_static
杨树明 5 years ago
parent 29f9c0d92c
commit 33bb561e38

@ -42,7 +42,7 @@ if (isDev) {
// 老师
//debugType="teacher";
// 学生
//debugType="student";
debugType="student";
function railsgettimes(proxy) {

@ -68,6 +68,7 @@ class CommonWorkPost extends Component{
uid: item.id,
name: appendFileSizeToUploadFile(item),
url: item.url,
delete: item.delete,
status: 'done'
}
})
@ -320,19 +321,23 @@ class CommonWorkPost extends Component{
// ModalSave: ()=>this.deleteAttachment(file),
// ModalCancel:this.cancelAttachment
// })
if(!file.percent || file.percent == 100){
this.props.confirm({
content: '是否确认删除?',
onOk: () => {
this.deleteAttachment(file)
},
onCancel() {
console.log('Cancel');
},
});
return false;
}
if (file.delete === false) {
this.props.showNotification(`该作品已被评阅,不能删除该附件`);
return false
} else {
if (!file.percent || file.percent == 100) {
this.props.confirm({
content: '是否确认删除?',
onOk: () => {
this.deleteAttachment(file)
},
onCancel() {
console.log('Cancel');
},
});
return false;
}
}
}
cancelAttachment=()=>{

@ -56,6 +56,7 @@ class GraduationTasksSubmitedit extends Component{
name: appendFileSizeToUploadFile(item),
url: item.url,
filesize: item.filesize,
delete:item.delete,
status: 'done'
}
})
@ -133,15 +134,21 @@ class GraduationTasksSubmitedit extends Component{
}
onAttachmentRemove = (file) => {
if(!file.percent || file.percent == 100){
this.setState({
Modalstype:true,
Modalstopval:'确定要删除这个附件吗?',
ModalSave: ()=>this.deleteAttachment(file),
ModalCancel:this.cancelAttachment
})
return false;
}
if(file.delete===false){
this.props.showNotification(`该作品已被评阅,不能删除该附件`);
return false
}else{
if(!file.percent || file.percent == 100){
this.setState({
Modalstype:true,
Modalstopval:'确定要删除这个附件吗?',
ModalSave: ()=>this.deleteAttachment(file),
ModalCancel:this.cancelAttachment
})
return false;
}
}
}

@ -12,6 +12,7 @@ import ModulationModal from "../../coursesPublic/ModulationModal";
import AllocationModal from "../../coursesPublic/AllocationModal";
import Associationmodel from '../../coursesPublic/Associationmodel';
import AccessoryModal from "../../coursesPublic/AccessoryModal";
import './Graduationclass.css';
const CheckboxGroup = Checkbox.Group;
@ -826,7 +827,7 @@ class GraduationTaskssettinglist extends Component{
className:'edu-txt-center',
render: (text, record) => (
<span>
<a style={{color:'#9A9A9A'}}>{record.classroom==="未分班"?"--":record.classroom}</a>
<a style={{color:'#9A9A9A'}} className={"classroomclass"} title={record.classroom==="未分班"?"":record.classroom}>{record.classroom==="未分班"?"--":record.classroom}</a>
</span>
),
}, {

@ -0,0 +1,7 @@
.classroomclass{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 110px;
display: inline-block;
}
Loading…
Cancel
Save