index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div>
  3. <saleClue v-if="salClueShow" @changeApplication="onChange"></saleClue>
  4. <projectChange v-if="projectChangeShow" @changeApplication="onChange"></projectChange>
  5. <quotedPrice v-if="quotedPriceShow" @changeApplication="onChange"></quotedPrice>
  6. <contract v-if="contractShow" @changeApplication="onChange"></contract>
  7. <customer v-if="customerShow" @changeApplication="onChange"></customer>
  8. <agenter v-if="agenerShow" @changeApplication="onChange"></agenter>
  9. <publicClue v-if="pubClueShow" @changeApplication="onChange"></publicClue>
  10. </div>
  11. </template>
  12. <script>
  13. import saleClue from '@/HManagement/ecycle/saleClue/index'
  14. import projectChange from './projectChange/index'
  15. import quotedPrice from './quotedPrice/index'
  16. import contract from './contract/index'
  17. import customer from './customer/index'
  18. import agenter from './agentManage/index'
  19. import publicClue from './publicClue/index'
  20. export default {
  21. name: "index",
  22. components:{saleClue,projectChange,quotedPrice,contract,customer,agenter,publicClue},
  23. data(){
  24. return {
  25. salClueShow:true,
  26. projectChangeShow:false,
  27. quotedPriceShow:false,
  28. contractShow:false,
  29. customerShow:false,
  30. agenerShow:false,
  31. pubClueShow:false
  32. }
  33. },
  34. methods:{
  35. onChange(val){
  36. console.log(val,'val切换')
  37. console.log(this.projectChangeShow,this.salClueShow)
  38. if (val === '1'){
  39. this.salClueShow = true
  40. this.projectChangeShow = false
  41. this.quotedPriceShow = false
  42. this.contractShow = false
  43. this.customerShow = false
  44. this.agenerShow = false
  45. this.pubClueShow = false
  46. }else if (val === '2') {
  47. this.customerShow = true
  48. this.salClueShow = false
  49. this.projectChangeShow = false
  50. this.quotedPriceShow = false
  51. this.contractShow = false
  52. this.agenerShow = false
  53. this.pubClueShow = false
  54. }else if (val === '3'){
  55. this.contractShow = true
  56. this.quotedPriceShow = false
  57. this.salClueShow = false
  58. this.projectChangeShow = false
  59. this.customerShow = false
  60. this.agenerShow = false
  61. this.pubClueShow = false
  62. }else if (val === '4'){
  63. this.projectChangeShow = true
  64. this.quotedPriceShow = false
  65. this.salClueShow = false
  66. this.contractShow = false
  67. this.customerShow = false
  68. this.agenerShow = false
  69. this.pubClueShow = false
  70. }else if (val === '5'){
  71. this.quotedPriceShow = true
  72. this.customerShow = false
  73. this.contractShow = false
  74. this.salClueShow = false
  75. this.projectChangeShow = false
  76. this.agenerShow = false
  77. this.pubClueShow = false
  78. }else if (val === '6'){
  79. this.agenerShow = true
  80. this.customerShow = false
  81. this.contractShow = false
  82. this.salClueShow = false
  83. this.projectChangeShow = false
  84. this.quotedPriceShow = false
  85. this.pubClueShow = false
  86. }else if (val === '7'){
  87. this.pubClueShow = true
  88. this.customerShow = false
  89. this.contractShow = false
  90. this.salClueShow = false
  91. this.projectChangeShow = false
  92. this.quotedPriceShow = false
  93. this.agenerShow = false
  94. }
  95. console.log(this.projectChangeShow,this.salClueShow)
  96. }
  97. }
  98. }
  99. </script>
  100. <style scoped>
  101. </style>