SoFunction
Updated on 2025-04-12

vue clicks on Dashboard to jump to the instance of the same table

1. Click to jump to rewrite

Click on the page content: Priority

<router-link :to='{ path: "/cases/case",query: { priorityId: 0 ,type:"priorityId"}}' style="color: #515a6e;">Priority</router-link>

Click on the page content: Status

<router-link :to='{ path: "/cases/case",query: { status: 0 ,type:"status"}}' style="color: #515a6e;">Status</router-link>

Click echarts column

('click',function (param) {
   that.$({
     path: '/cases/case',
     query: { createdTime: ,type:"createdTime" }
   });
 })

2. Table paging method (different jumps show different transmission parameters)

Note: Since the drop-down box of this page also has corresponding priority filtering conditions, all if you write two layers to judge.

getData: function(){
  //Get search content in CaseSearch  eventBus.$on('ticketEntityId',function(val){
    =val;
  })
  eventBus.$on('companyId',function(val){
    =val;
  })
  eventBus.$on('priorityId',function(val){
    =val;
  })
  eventBus.$on('status',function(val){
    =val;
  })
  eventBus.$on('ticketCategory',function(val){
    =val;
  })

  var pageTicketDate = {
    "pageNum": ,
    "pageSize": ,
    "priorityId":,
    "status":,
    "ticketEntityId":,
    "companyId":,
    "ticketCategory":
  };
  // Priority  if((this.$ == 'priorityId')&amp;&amp;(=='')){
    =this.$;
  }

  // state  if((this.$ == 'status')&amp;&amp;(=='')){
    =this.$;
  }

  //Creation time  if (this.$ == 'createdTime') {
     = this.$;
  }

  //Current month  if (this.$ == 'currentMonth') {
     = this.$;
  }

  if(||||||||){
    =;
    =;
    =;
    =;
    =;
    ='';
    ='';
  }

  this.$(pageTicketDate)
  .then(res =&gt; {
     = ;
    for(var i=0;i&lt;;i++){
      // Response time      if([i].waitTime!=undefined){
        [i].waitTime=[i].waitTime+'minute';
      }
      // Processing time      if([i].handleTime!=undefined){
        [i].handleTime=[i].handleTime+'minute';
      }
      // Completion time      if([i].finishTime!=undefined){
        [i].finishTime=[i].finishTime;
      }else{
        [i].finishTime='N/A';
      }
    }
    // Current page     = ;
    // Total number of     = ;
  });
}

Supplementary knowledge:vue click to jump to the details page

1 Product component page (click this component to jump to the details page)

<template>
<div class="goods-info" @click="goGoodsPage()">
<div class="goods-image">
<img v-lazy="goodsImage">
</div>
<div class="goods-name">{{goodsName}}</div>
<div class="goods-price">¥{{ (2) }}</div>
</div>
</template>
&lt;script&gt;
export default {
name: "goodsInfo",
// The home page is sentprops: ["goodsImage", "goodsName", "goodsPrice", "goodsId"],
data() {
return {};
},
methods: {
goGoodsPage() {
// Jump to the product details page, name is the name attribute in the page routing configurationthis.$({name:"goods",query:{goodsId:}})
}
}
};
&lt;/script&gt;
<style lang="scss" scoped>
.goods-info {
padding-bottom: 0.2rem;
.goods-image {
text-align: center;
img{
width: 95%;vertical-align: middle;
}
}
.goods-name {
padding: 0 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.goods-price {
text-align: center;
color: #e5017d;
}
}
</style>

2 Product Details Page (goodsId from the product component page)

&lt;template&gt;
 &lt;div&gt;Product Details Page&lt;/div&gt;
&lt;/template&gt;

&lt;script&gt;
import url from "@/";
export default {
 name: "goods",
 data() {
  return {
   goodsId: ""
  };
 },
 created () {
   // Receive the goodsId sent over    = this.$
   ()
   ();
 },
 methods: {
  getGoodsInfo() {
   let that = this;
   this.$http
    .post(,{goodsId: })
    .then(response =&gt; {
      //Get the corresponding product details based on goodsId      (response)
    })
    .catch(error =&gt; {

    });
  }
 }
};
&lt;/script&gt;

&lt;style lang="scss" scoped&gt;
&lt;/style

The example of clicking on Dashboard in the above vue article is all the content shared by the editor. I hope it can give you a reference and I hope you support me more.