diff --git a/src/api/index.js b/src/api/index.js
index 36c0956..6f22e08 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -43,6 +43,7 @@ export default {
reportDetail: `${host}occupationlab/achievement/reportDetail`, // 成绩报告详情
updateReport: `${host}occupationlab/achievement/updateReport`, // 更新成绩报告
schoolCourseByAchievement: `${host}nakadai/nakadai/curriculum/schoolCourseByAchievement`, // 获取学校购买订单后的课程
+ exportLabReport: `${host}occupationlab/achievement/exportLabReport`,
// 考核列表
pageStuAssessment: `${host}occupationlab/assessment/pageStuAssessment`, // 学生端——学生考核列表
@@ -63,6 +64,8 @@ export default {
queryAllColumns: `${host}occupationlab/enterprise/information/column/queryAllColumns`, // 栏目树
queryArticleByCondition: `${host}occupationlab/enterprise/information/article/queryArticleByCondition`, // 文章列表分页条件查询
getArticle: `${host}occupationlab/enterprise/information/article/getArticle`, // 根据id查询文章
+ firstLevelColumn: `${host}occupationlab/enterprise/information/column/firstLevelColumn`,
+ secondaryColumnsByFirst: `${host}occupationlab/enterprise/information/column/secondaryColumnsByFirst`,
// 线上赛事
onlineContestQuery: `${host}occupationlab/enterprise/match/onlineContest/onlineContestQuery`, // 线上赛事列表分页条件查询
diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue
index a9878a5..c128970 100644
--- a/src/components/breadcrumb/index.vue
+++ b/src/components/breadcrumb/index.vue
@@ -6,7 +6,7 @@
+ :to="{ path: route, query }">
{{item}}
- - {{item.title}}
+ -
+ {{item.title}}
+
+
@@ -68,14 +73,18 @@ export default {
title: "最近更新"
}
],
- menus: []
+ menus: [],
+ columns: [], // 资讯一级栏目
+ columnActive: this.$route.query.parentId
};
},
mounted() {
const path = this.$route.path
this.menus = Setting.whiteList.find(e => e === path) ? this.touristMenu : this.loginedMenu
+ this.getColumns()
},
methods: {
+ // 跳转
jump(item) {
const { index } = item
// 数据科研点击后打开新窗口去到数据平台
@@ -92,10 +101,23 @@ export default {
location.reload()
} else {
this.active = index
- this.$router.push(index).catch(err => {})
+ this.columnActive = ''
+ index === '/info/list' || this.$router.push(index).catch(err => {})
token !== this.token && location.reload() // 如果登录后再返回该页面,浏览器里会存有token,但是这个页面里的token是刚进到页面时获取的,应该是空,如果是这个情况,则刷新,否则右上角还会显示为登录按钮
- }
+ }
}
+ },
+ // 获取资讯一级栏目
+ async getColumns() {
+ const res = await this.$get(this.api.firstLevelColumn)
+ this.columns = res.data
+ },
+ // 一级栏目点击回调
+ toInfo(e, column) {
+ e.stopPropagation()
+ const { id } = column
+ this.columnActive = id
+ this.$router.push(`/info?parentId=${id}&name=${column.name}`)
}
}
};
@@ -103,25 +125,62 @@ export default {