category_name

dev_forum
hjm 5 years ago
parent 5ec58eb611
commit f3d0424e50

@ -148,6 +148,8 @@ class CommonWorkDetailIndex extends Component{
let courseId=this.props.match.params.coursesId; let courseId=this.props.match.params.coursesId;
let category_id= category && category.category_id; let category_id= category && category.category_id;
let category_name= category && category.category_name;
let workId=this.props.match.params.workId; let workId=this.props.match.params.workId;
const studentWorkId = this.props.match.params.studentWorkId const studentWorkId = this.props.match.params.studentWorkId
@ -197,7 +199,7 @@ class CommonWorkDetailIndex extends Component{
`}</style> `}</style>
<CBreadcrumb items={[ <CBreadcrumb items={[
{ to: `/courses/${courseId}`, name: course_name}, { to: `/courses/${courseId}`, name: course_name},
{ to: `/courses/${courseId}/${moduleEngName}/${category_id}`, name: moduleName }, { to: `/courses/${courseId}/${moduleEngName}/${category_id}`, name: category_name },
window.location.pathname.indexOf('appraise') == -1 ? { } : { to: `/courses/${courseId}/${moduleEngName}/${workId}/list`, name: '作业详情' }, window.location.pathname.indexOf('appraise') == -1 ? { } : { to: `/courses/${courseId}/${moduleEngName}/${workId}/list`, name: '作业详情' },
// 1. 与上一条联动当匿评他人作品时TA人作品的作者真实姓名切换为“匿名” // 1. 与上一条联动当匿评他人作品时TA人作品的作者真实姓名切换为“匿名”
window.location.pathname.indexOf('appraise') == -1 ? { name: '作业详情' } : { name: author_name }, window.location.pathname.indexOf('appraise') == -1 ? { name: '作业详情' } : { name: author_name },

@ -64,6 +64,8 @@ class WorkDetailPageHeader extends Component{
let courseId=this.props.match.params.coursesId; let courseId=this.props.match.params.coursesId;
let category_id= category && category.category_id; let category_id= category && category.category_id;
let category_name= category && category.category_name;
let workId=this.props.match.params.workId; let workId=this.props.match.params.workId;
const studentWorkId = this.props.match.params.studentWorkId const studentWorkId = this.props.match.params.studentWorkId
@ -88,7 +90,7 @@ class WorkDetailPageHeader extends Component{
`}</style> `}</style>
<CBreadcrumb items={[ <CBreadcrumb items={[
{ to: `/courses/${courseId}`, name: course_name}, { to: `/courses/${courseId}`, name: course_name},
{ to: `/courses/${courseId}/${moduleEngName}/${category_id}`, name: moduleName }, { to: `/courses/${courseId}/${moduleEngName}/${category_id}`, name: category_name },
window.location.pathname.indexOf('appraise') == -1 ? { } : { to: `/courses/${courseId}/${moduleEngName}/${workId}/list`, name: '作业详情' }, window.location.pathname.indexOf('appraise') == -1 ? { } : { to: `/courses/${courseId}/${moduleEngName}/${workId}/list`, name: '作业详情' },
// 1. 与上一条联动当匿评他人作品时TA人作品的作者真实姓名切换为“匿名” // 1. 与上一条联动当匿评他人作品时TA人作品的作者真实姓名切换为“匿名”
window.location.pathname.indexOf('appraise') == -1 ? { name: '作业详情' } : { name: author_name }, window.location.pathname.indexOf('appraise') == -1 ? { name: '作业详情' } : { name: author_name },

Loading…
Cancel
Save