调整删除代码查重

dev_local_2
杨树林 5 years ago
parent 91e3d4ba74
commit 3a89a9fcc7

@ -3,8 +3,9 @@
命令CREATE DATABASE `edu_local` CHARACTER SET utf8 COLLATE utf8_general_ci;
2.设置本地database.yml
3. 链接mysql执行导入数据库source /Users/jingquanhuang/eduplus2/db/structure.sql
3.1 mac pwd 获取本地目录
4. 导入基础数据: source /Users/jingquanhuang/eduplus2/db/init.sql
4. 初始化种子数据 bundle exec rake db:seed
4. 初始化种子数据 bundle exec rake db:seed
5、启动服务用 bundle exec rails s
6、设置配置文件数据/edu_settins: 配置: origin_database原始数据库及有数据的数据库database需要导入的数据库及database.yml中的数据库
7、调用接口

@ -645,10 +645,10 @@ class CommonWorkList extends Component{
// console.log(student_works)
return(
<React.Fragment>
<CheckCodeModal
ref="checkCodeModal"
{...this.props}
></CheckCodeModal>
{/*<CheckCodeModal*/}
{/* ref="checkCodeModal"*/}
{/* {...this.props}*/}
{/*></CheckCodeModal>*/}
<AccessoryModal
{...this.props}

@ -2363,17 +2363,17 @@ class Listofworksstudentone extends Component {
}
workshowmodel = () => {
this.setState({
showmodel: true
})
}
hideshowmodel = () => {
this.setState({
showmodel: false
})
}
// workshowmodel = () => {
// this.setState({
// showmodel: true
// })
// }
//
// hideshowmodel = () => {
// this.setState({
// showmodel: false
// })
// }
paginationonChanges = (pageNumber) => {
this.setState({
@ -2509,14 +2509,14 @@ class Listofworksstudentone extends Component {
Saves={(value, num) => this.saveModulationModal(value, num)}
/> : ""}
{this.state.showmodel === true ? <ShixunWorkModal
{...this.props}
visible={this.state.showmodel}
modalname={"代码查重"}
data={[]}
issCancel={() => this.hideshowmodel()}
updatas={() => this.isupdatas()}
/> : ""}
{/*{this.state.showmodel === true ? <ShixunWorkModal*/}
{/* {...this.props}*/}
{/* visible={this.state.showmodel}*/}
{/* modalname={"代码查重"}*/}
{/* data={[]}*/}
{/* issCancel={() => this.hideshowmodel()}*/}
{/* updatas={() => this.isupdatas()}*/}
{/*/> : ""}*/}
<DownloadMessageysl
{...this.props}

@ -104,9 +104,9 @@ class ShixunHomeworkPage extends Component {
child.homeworkstart();
}
workshowmodels(child){
child.workshowmodel();
}
// workshowmodels(child){
// child.workshowmodel();
// }
/// 确认是否下载
@ -163,12 +163,12 @@ class ShixunHomeworkPage extends Component {
<div className=" clearfix edu-back-white poll_list">
<a className={parseInt(tab) === 0 ? "active" : ""} onClick={(e) => this.ChangeTab(0)}>作品列表</a>
<a className={parseInt(tab) === 1 ? "active" : ""} onClick={(e) => this.ChangeTab(1)}>作业描述</a>
{this.props.isAdmin() ?
this.state.code_review === true || jobsettingsdatapage === undefined ? [""] : jobsettingsdatapage.data.homework_status[0] === "未发布" ? "" :
<a
className={parseInt(tab) === 2 ? "active" : ""}
onClick={(e) => this.ChangeTab(2)}>
代码查重</a> : ""}
{/*{this.props.isAdmin() ?*/}
{/* this.state.code_review === true || jobsettingsdatapage === undefined ? [""] : jobsettingsdatapage.data.homework_status[0] === "未发布" ? "" :*/}
{/* <a*/}
{/* className={parseInt(tab) === 2 ? "active" : ""}*/}
{/* onClick={(e) => this.ChangeTab(2)}>*/}
{/* 代码查重</a> : ""}*/}
{parseInt(tab) === 3?
<style>{
`
@ -233,10 +233,10 @@ class ShixunHomeworkPage extends Component {
<a className="fr color-blue font-16" onClick={(child)=>this.homeworkstarts(this.child)}>立即发布</a>
: ""
: ""}
{this.props.isAdmin() ?
teacherdatapage && teacherdatapage.code_review === true ?
<a className="fr color-blue font-16" onClick={(child)=>this.workshowmodels(this.child)}>代码查重</a>
: "" : ""}
{/*{this.props.isAdmin() ?*/}
{/* teacherdatapage && teacherdatapage.code_review === true ?*/}
{/* <a className="fr color-blue font-16" onClick={(child)=>this.workshowmodels(this.child)}>代码查重</a>*/}
{/* : "" : ""}*/}
{this.state.view_report === true ? <Link className="fr color-blue font-16" target={"_blank"}
to={`/courses/${this.props.match.params.coursesId}/${jobsettingsdatapage === undefined ? "" : jobsettingsdatapage.data.category.main === 1 ? "shixun_homeworks" :"shixun_homework"}/${teacherdatapage&&teacherdatapage.work_id}/shixun_work_report`}>
查看实训报告

@ -395,17 +395,17 @@ class ShixunStudentWork extends Component {
window.location.href =list
}
workshowmodel=()=>{
this.setState({
showmodel:true
})
}
// workshowmodel=()=>{
// this.setState({
// showmodel:true
// })
// }
hideshowmodel=()=>{
this.setState({
showmodel:false
})
}
// hideshowmodel=()=>{
// this.setState({
// showmodel:false
// })
// }
//立即发布
homeworkstart=()=>{
@ -719,14 +719,14 @@ class ShixunStudentWork extends Component {
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
return (
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
{this.state.showmodel===true?<ShixunWorkModal
{...this.props}
visible={this.state.showmodel}
modalname={"代码查重"}
data={data&&data.group_info}
issCancel={()=>this.hideshowmodel()}
updatas={()=>this.getupdata()}
/>:""}
{/*{this.state.showmodel===true?<ShixunWorkModal*/}
{/* {...this.props}*/}
{/* visible={this.state.showmodel}*/}
{/* modalname={"代码查重"}*/}
{/* data={data&&data.group_info}*/}
{/* issCancel={()=>this.hideshowmodel()}*/}
{/* updatas={()=>this.getupdata()}*/}
{/*/>:""}*/}
<DownloadMessageysl
{...this.props}
value={this.state.DownloadMessageval}
@ -812,9 +812,9 @@ class ShixunStudentWork extends Component {
<li className="clearfix ">
<span className="fl mr10 color-grey-8 ">查重时间{data&&data.last_review_time}</span>
{this.props.isAdmin()?duplicatechecking===false?<span className="fl ">
<a className="Actionbtn newbutton mr20 fl" onClick={this.workshowmodel}>代码查重</a>
</span>:"":""}
{/*{this.props.isAdmin()?duplicatechecking===false?<span className="fl ">*/}
{/* <a className="Actionbtn newbutton mr20 fl" onClick={this.workshowmodel}>代码查重</a>*/}
{/*</span>:"":""}*/}
{/*请输入姓名或学号搜索*/}
<div className="fr mr5 search-new" style={{marginBottom: '1px'}}>

@ -1765,17 +1765,17 @@ class Trainingjobsetting extends Component {
})
}
workshowmodel=()=>{
this.setState({
showmodel:true
})
}
hideshowmodel=()=>{
this.setState({
showmodel:false
})
}
// workshowmodel=()=>{
// this.setState({
// showmodel:true
// })
// }
//
// hideshowmodel=()=>{
// this.setState({
// showmodel:false
// })
// }
testscripttip =(e)=>{
@ -1877,13 +1877,13 @@ class Trainingjobsetting extends Component {
// console.log(this.state.code_review===false)
return (
<div className=" clearfix " ref='targetElementTrainingjobsetting' style={{margin: "auto", minWidth:"1200px"}}>
{this.state.showmodel===true?<ShixunWorkModal
{...this.props}
visible={this.state.showmodel}
modalname={"代码查重"}
data={[]}
issCancel={()=>this.hideshowmodel()}
/>:""}
{/*{this.state.showmodel===true?<ShixunWorkModal*/}
{/* {...this.props}*/}
{/* visible={this.state.showmodel}*/}
{/* modalname={"代码查重"}*/}
{/* data={[]}*/}
{/* issCancel={()=>this.hideshowmodel()}*/}
{/*/>:""}*/}
{/*<DownloadMessage*/}
{/* {...this.props}*/}

@ -291,17 +291,17 @@ class Workquestionandanswer extends Component {
Showupdateinstructions: false,
})
}
workshowmodel = () => {
this.setState({
showmodel: true
})
}
hideshowmodel = () => {
this.setState({
showmodel: false
})
}
// workshowmodel = () => {
// this.setState({
// showmodel: true
// })
// }
//
// hideshowmodel = () => {
// this.setState({
// showmodel: false
// })
// }
homeworkhide = () => {
this.isupdatas()
@ -405,14 +405,14 @@ class Workquestionandanswer extends Component {
return (
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
{this.state.showmodel === true ? <ShixunWorkModal
{...this.props}
visible={this.state.showmodel}
modalname={"代码查重"}
data={[]}
issCancel={() => this.hideshowmodel()}
updatas={() => this.isupdatas()}
/> : ""}
{/*{this.state.showmodel === true ? <ShixunWorkModal*/}
{/* {...this.props}*/}
{/* visible={this.state.showmodel}*/}
{/* modalname={"代码查重"}*/}
{/* data={[]}*/}
{/* issCancel={() => this.hideshowmodel()}*/}
{/* updatas={() => this.isupdatas()}*/}
{/*/> : ""}*/}
{/*<DownloadMessage*/}
{/* {...this.props}*/}
{/* ref="DownloadMessage"*/}

Loading…
Cancel
Save