|
@@ -61,34 +61,34 @@ import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
components: { IndexCard },
|
|
|
mixins: [loginCheckMixin],
|
|
|
- computed:{
|
|
|
+ computed: {
|
|
|
...mapGetters(['middlebarRouters']),
|
|
|
idcListOpt() {
|
|
|
const obj = {}
|
|
|
this.idc.map(item => {
|
|
|
- obj[`${item.title}${item.path}`] = {desc: item.desc }
|
|
|
+ obj[`${item.title}${item.path}`] = { desc: item.desc }
|
|
|
})
|
|
|
return obj
|
|
|
},
|
|
|
idcFormatList() {
|
|
|
- if(!this.middlebarRouters.length) return []
|
|
|
- if(!this.middlebarRouters.find(item => item.meta.title == '学情分析')) return []
|
|
|
- if(!checkRole(['frontMaster'])) return this.idc
|
|
|
+ if (!this.middlebarRouters.length) return []
|
|
|
+ if (!this.middlebarRouters.find(item => item.meta.title == '学情分析')) return []
|
|
|
+ if (!checkRole(['frontMaster'])) return this.idc
|
|
|
const listOptKey = Object.keys(this.idcListOpt)
|
|
|
|
|
|
let formatList = []
|
|
|
- return this.middlebarRouters.find(item => item.meta.title == '学情分析').children.slice(0,3).map((item,idx) =>{
|
|
|
+ return this.middlebarRouters.find(item => item.meta.title == '学情分析').children.slice(0, 3).map((item, idx) => {
|
|
|
return {
|
|
|
title: item.meta.title,
|
|
|
- img:this.idc[idx].img,
|
|
|
- path:item.path,
|
|
|
+ img: this.idc[idx].img,
|
|
|
+ path: item.path
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- role:checkRole(['frontStudent']),
|
|
|
+ role: checkRole(['frontStudent']),
|
|
|
onLinePaper: [
|
|
|
{
|
|
|
title: '个人测评',
|
|
@@ -126,8 +126,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- openNew(){
|
|
|
- window.open('https://online.fliphtml5.com/jkrou/hjig/#p=1','_blank')
|
|
|
+ openNew() {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/evaluation/report/flip',
|
|
|
+ query: { path: 'https://online.fliphtml5.com/jkrou/hjig/#p=1' }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|