|
@@ -346,6 +346,7 @@ export default {
|
|
|
immediate: true,
|
|
|
handler(val) {
|
|
|
this.code = val.query.code
|
|
|
+ this.type = val.query.type || '本科'
|
|
|
if (val.query.code) {
|
|
|
this.getOverView()
|
|
|
}
|
|
@@ -355,11 +356,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleNodeClick(data,node) {
|
|
|
- if(!node.isLeaf) return
|
|
|
+ if(!node.isLeaf || this.code == node.data.code) return
|
|
|
console.log('跳转')
|
|
|
- console.log(node.data.code)
|
|
|
// 跳转
|
|
|
- this.$router.replace({path:'/career/plan/ProfessLibDetail',query:{code:node.data.code}})
|
|
|
+ this.$router.replace({path:'/career/plan/ProfessLibDetail',query:{type:this.type,code:node.data.code}})
|
|
|
},
|
|
|
isLeaf(data,node) {
|
|
|
return node.childCount == 0
|