index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <span style="color: #409EFF;cursor: pointer" @click.stop="jump">{{label}}</span>
  3. </template>
  4. <script>
  5. export default {
  6. name: "index",
  7. props: {
  8. label: String,
  9. value:String,
  10. corpType: String,
  11. },
  12. methods:{
  13. jump(){
  14. console.log(this.value,this.corpType)
  15. if (this.corpType == 'DD'){
  16. this.$router.push({
  17. path: '/basicData/portinformation/index',
  18. query: {customerName: this.value},
  19. });
  20. }else if (this.corpType == 'CD'){
  21. this.$router.push({
  22. path: '/basicData/fleetInformation/index',
  23. query: {customerName: this.value},
  24. });
  25. }else if (this.corpType == 'GC'){
  26. this.$router.push({
  27. path: '/basicData/factoryInformation/factoryInformation/index',
  28. query: {customerName: this.value},
  29. });
  30. }else if (this.corpType == 'GYS'){
  31. this.$router.push({
  32. path: '/basicData/customerManagement/supplierMaterial/index',
  33. query: {customerName: this.value},
  34. });
  35. }else if (this.corpType == 'GS'){
  36. this.$router.push({
  37. path: '/basicData/customerManagement/companyMaterial/index',
  38. query: {customerName: this.value},
  39. });
  40. }else {
  41. this.$router.push({
  42. path: '/basicData/customerInformation/index',
  43. query: {customerName: this.value},
  44. });
  45. }
  46. },
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. </style>