diff --git a/LocalReadMe.md b/LocalReadMe.md index ccffeb7f3..0cf1ff123 100644 --- a/LocalReadMe.md +++ b/LocalReadMe.md @@ -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、调用接口: diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index a489e7c3d..ca7892dcc 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -645,10 +645,10 @@ class CommonWorkList extends Component{ // console.log(student_works) return( - + {/**/} { - 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 ? this.hideshowmodel()} - updatas={() => this.isupdatas()} - /> : ""} + {/*{this.state.showmodel === true ? this.hideshowmodel()}*/} + {/* updatas={() => this.isupdatas()}*/} + {/*/> : ""}*/} this.ChangeTab(0)}>作品列表 this.ChangeTab(1)}>作业描述 - {this.props.isAdmin() ? - this.state.code_review === true || jobsettingsdatapage === undefined ? [""] : jobsettingsdatapage.data.homework_status[0] === "未发布" ? "" : - this.ChangeTab(2)}> - 代码查重 : ""} + {/*{this.props.isAdmin() ?*/} + {/* this.state.code_review === true || jobsettingsdatapage === undefined ? [""] : jobsettingsdatapage.data.homework_status[0] === "未发布" ? "" :*/} + {/* this.ChangeTab(2)}>*/} + {/* 代码查重 : ""}*/} {parseInt(tab) === 3?