<template>
  <span style="color: #409EFF;cursor: pointer" @click.stop="jump">{{label}}:</span>
</template>

<script>
export default {
  name: "index",
  props: {
    label: String,
    value:String,
    corpType: String,
  },
  methods:{
    jump(){
      console.log(this.value,this.corpType)
      if (this.corpType == 'DD'){
        this.$router.push({
          path: '/basicData/portinformation/index',
          query: {customerName: this.value},
        });
      }else if (this.corpType == 'CD'){
        this.$router.push({
          path: '/basicData/fleetInformation/index',
          query: {customerName: this.value},
        });
      }else if (this.corpType == 'GC'){
        this.$router.push({
          path: '/basicData/factoryInformation/factoryInformation/index',
          query: {customerName: this.value},
        });
      }else if (this.corpType == 'GYS'){
        this.$router.push({
          path: '/basicData/customerManagement/supplierMaterial/index',
          query: {customerName: this.value},
        });
      }else if (this.corpType == 'GS'){
        this.$router.push({
          path: '/basicData/customerManagement/companyMaterial/index',
          query: {customerName: this.value},
        });
      }else {
        this.$router.push({
          path: '/basicData/customerInformation/index',
          query: {customerName: this.value},
        });
      }
    },
  }
}
</script>

<style scoped>

</style>
