diff --git a/app/models/mirror_repository.rb b/app/models/mirror_repository.rb
index e29b008ad..96a92e5e7 100644
--- a/app/models/mirror_repository.rb
+++ b/app/models/mirror_repository.rb
@@ -5,7 +5,7 @@ class MirrorRepository < ApplicationRecord
- scope :published_mirror, -> { where(status: 1) }
+ scope :published_mirror, -> { where(status: [1,2,3,5]) }
scope :published_main_mirror, -> { published_mirror.where(main_type: 1) }
scope :published_small_mirror, -> { published_mirror.where(main_type: 0) }
diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js
index c414df55a..70cc43f4c 100644
--- a/public/react/src/modules/courses/Index.js
+++ b/public/react/src/modules/courses/Index.js
@@ -661,6 +661,11 @@ class CoursesIndex extends Component{
(props) => ()
}
>
+ ()
+ }
+ >
{/* 普通作业 */}
()
}
>
+ ()
+ }
+ >
{
const { course_groups , sortedInfo } = that.state
let showSorter = isParent==true
@@ -581,6 +583,16 @@ class studentsList extends Component{
// console.log(paramsString);
// console.log(checkBoxValues);
// console.log(searchValue);
+ let pageType = TYPE_STUDENTS
+ if (this.props.match.path.endsWith('students')) {
+
+ } else if (course_group_id) {
+ pageType = TYPE_COURSE_GOURP_PARENT
+ } else {
+ pageType = TYPE_COURSE_GOURP_CHILD
+ }
+
+
return(
{course_group_name || '未分班'}
{isAdmin && invite_code &&
@@ -617,15 +629,21 @@ class studentsList extends Component{
searchPlaceholder={ '请输入姓名、学号进行搜索' }
firstRowRight={
- { isSuperAdmin &&
+ {
+ // pageType !== TYPE_STUDENTS &&
+ isSuperAdmin &&
this.refs['createGroupByImportModal'].setVisible(true)}>导入创建分班
}
- { !isCourseEnd && isAdmin && isParent && this.addDir()}>添加分班 }
- { isAdmin && !isParent && course_group_id != 0 && this.deleteDir()}>删除分班 }
- { isAdmin && !isParent && course_group_id != 0 && this.renameDir()}>分班重命名 }
+ {
+ // pageType !== TYPE_STUDENTS &&
+ !isCourseEnd && isAdmin && isParent && this.addDir()}>添加分班 }
+ {
+ isAdmin && !isParent && course_group_id != 0 && this.deleteDir()}>删除分班 }
+ {
+ isAdmin && !isParent && course_group_id != 0 && this.renameDir()}>分班重命名 }