Переглянути джерело

职业库、专业库路由问题修复

shilipojs 3 роки тому
батько
коміт
b79ff47d84

+ 5 - 2
src/views/career/plan/new-major-detail.vue

@@ -397,9 +397,12 @@ export default {
   methods: {
     handleNodeClick(data,node) {
       if(!node.isLeaf || this.code == node.data.code) return
-      console.log('跳转')
+      // console.log('跳转')
       // 跳转
-      this.$router.replace({path:'/career/plan/MajorDetail',query:{type:this.type,code:node.data.code}})
+      this.code=  node.data.code
+      this.tabActive = 0
+      this.getOverView()
+      // this.$router.replace({path:'/career/plan/MajorDetail',query:{type:this.type,code:node.data.code}})
     },
     isLeaf(data,node) {
       return node.childCount == 0

+ 5 - 3
src/views/career/vocation/new-detail.vue

@@ -338,13 +338,15 @@ export default {
       console.log('跳转')
       console.log(row)
       // 跳转
-      this.$router.push({path:'/career/plan/ProfessLibDetail',query:{code:row.code}})
+      this.$router.push({path:'/career/plan/MajorDetail',query:{code:row.code}})
     },
     handleNodeClick(data,node) {
       if(!node.isLeaf || this.code == node.data.code) return
-      console.log('跳转')
+      this.code =node.data.code
+      this.tabActive = 0
+      this.getVocationalOverview()
       // 跳转
-      this.$router.replace({path:'/career/vocation/Detail',query:{code:node.data.code}})
+      // this.$router.replace({path:'/career/vocation/Detail',query:{code:node.data.code}})
     },
     toJob(post) {
       console.log(post)