tabsAbout.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="detail-contacts-about">
  3. <about-business :list="businessList" :config="getConfigs('business')" class="about-section" />
  4. <about-file
  5. v-if="batchId"
  6. :batch-id="batchId"
  7. :detail-id="detailId"
  8. type="crm_contacts"
  9. class="about-section" />
  10. <about-operation
  11. :detail-id="detailId"
  12. type="crm_contacts"
  13. class="about-section" />
  14. </view>
  15. </template>
  16. <script>
  17. import { QueryBusiness } from 'API/crm/concat'
  18. import AboutBusiness from '../../components/tabAbout/aboutBusiness.vue'
  19. import AboutFile from '../../components/tabAbout/aboutFile.vue'
  20. import AboutOperation from '../../components/tabAbout/aboutOperation.vue'
  21. export default {
  22. name: 'DetailContactsAbout',
  23. components: {
  24. AboutBusiness,
  25. AboutFile,
  26. AboutOperation
  27. },
  28. props: {
  29. detailId: {
  30. type: [String, Number],
  31. default: null
  32. },
  33. detailData: {
  34. type: Object,
  35. default: () => {}
  36. },
  37. batchId: {
  38. type: String,
  39. default: null
  40. }
  41. },
  42. data() {
  43. return {
  44. businessList: [],
  45. }
  46. },
  47. created() {
  48. this.getList()
  49. },
  50. methods: {
  51. getList() {
  52. // 获取商机
  53. let params = {
  54. contactsId: this.detailId,
  55. pageType: 0
  56. }
  57. QueryBusiness(params).then(response => {
  58. console.log('businessList: ', response)
  59. this.businessList = response.list
  60. })
  61. },
  62. getConfigs() {
  63. return {
  64. detail: this.detailData,
  65. type: 'contacts'
  66. }
  67. }
  68. }
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. </style>