diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js index b2f598486..4e8146118 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js @@ -163,7 +163,7 @@ class CommonWorkItem extends Component{ }
this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }> -

+

{canNotLink? @@ -199,7 +199,13 @@ class CommonWorkItem extends Component{ } */}

-

+ { + item && item.upper_category_name && + // 22 }> +

所属目录:{item.upper_category_name}
+ // + } +

{ item.author && {item.author} } {item.commit_count===undefined?"":{item.commit_count} 已交} {item.uncommit_count===undefined?"":{item.uncommit_count} 未交} diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js index 6a7e3c878..c5db27252 100644 --- a/public/react/src/modules/courses/busyWork/commonWork.js +++ b/public/react/src/modules/courses/busyWork/commonWork.js @@ -399,6 +399,10 @@ class commonWork extends Component{ } } + + newaddDir = () => { + trigger('addcommon_homeworks', parseInt(this.state.main_category_id)) + } moveTo = (item) => { const len = this.state.checkBoxValues.length if (len == 0) { @@ -581,7 +585,7 @@ class commonWork extends Component{ { isAdmin &&

this.addDir(category_id)} + onClick={()=>this.newaddDir()} >新建目录...

}