index.vue 2.7 KB

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