|
@@ -160,7 +160,6 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
if(SessionCache.getCache('mapData')) {
|
|
if(SessionCache.getCache('mapData')) {
|
|
- console.log(11111111)
|
|
|
|
let info = SessionCache.getCache('mapData')
|
|
let info = SessionCache.getCache('mapData')
|
|
this.menuArr = info.menuArr
|
|
this.menuArr = info.menuArr
|
|
this.actionMenu = info.actionMenu
|
|
this.actionMenu = info.actionMenu
|
|
@@ -171,6 +170,7 @@ export default {
|
|
this.dataArr = info.dataArr
|
|
this.dataArr = info.dataArr
|
|
this.showBoxArr = info.showBoxArr
|
|
this.showBoxArr = info.showBoxArr
|
|
this.overArr = info.overArr
|
|
this.overArr = info.overArr
|
|
|
|
+ this.getContentTops(this.menuDataArr[this.menuIndex].pkId)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let getData={'alias':'KNOWLEDGE_MAP'}
|
|
let getData={'alias':'KNOWLEDGE_MAP'}
|
|
@@ -191,12 +191,13 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
//设置地图学习内容学习状态
|
|
//设置地图学习内容学习状态
|
|
changeState(data){
|
|
changeState(data){
|
|
- if(data.state==1){
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
|
|
+ // if(data.state==1){
|
|
|
|
+ // return false
|
|
|
|
+ // }
|
|
let postData = {pkId:data.pkId}
|
|
let postData = {pkId:data.pkId}
|
|
map.updateLearningState(postData).then((res) => {
|
|
map.updateLearningState(postData).then((res) => {
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
|
|
+ this.getContentTops(this.menuDataArr[this.menuIndex].pkId)
|
|
if(data.type==1){
|
|
if(data.type==1){
|
|
window.open(data.outerAccessUrl)
|
|
window.open(data.outerAccessUrl)
|
|
}else{
|
|
}else{
|
|
@@ -219,7 +220,6 @@ export default {
|
|
}
|
|
}
|
|
SessionCache.setCache('mapData',raw)
|
|
SessionCache.setCache('mapData',raw)
|
|
}
|
|
}
|
|
- this.getContentTops(this.menuDataArr[this.menuIndex].pkId)
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|