baseInfo.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div>
  3. <el-alert :closable="false" class="alert" type="info">
  4. <template slot="title">
  5. <div class="shapeWrap">
  6. <span class="shape"></span>
  7. <p>基本信息</p>
  8. </div>
  9. </template>
  10. </el-alert>
  11. <descriptions :column="3" class="marginBtm22">
  12. <descriptions-item label="乐团编号:">
  13. <div v-if="baseInfo && baseInfo.id">
  14. <overflow-text :text="baseInfo.id || ''" width="100%"></overflow-text>
  15. </div>
  16. </descriptions-item>
  17. <descriptions-item label="申请时间:">
  18. {{ baseInfo.createTime | formatTimer }}</descriptions-item
  19. >
  20. <descriptions-item label="开团时间:">
  21. {{ baseInfo.billStartDate | formatTimer }}</descriptions-item
  22. >
  23. <descriptions-item label="收费模式:">
  24. {{ baseInfo.courseViewType | courseViewType }}</descriptions-item
  25. >
  26. <descriptions-item label="收费类型:"
  27. >{{ baseInfo.chargeTypeName }}
  28. </descriptions-item>
  29. <descriptions-item label="合作单位:">
  30. {{ baseInfo.cooperationOrganName }}</descriptions-item
  31. >
  32. <descriptions-item label="教学点:"
  33. >{{ baseInfo.schoolName }}
  34. </descriptions-item>
  35. <descriptions-item label="衔接老师:">
  36. <div>
  37. {{ baseInfo.transactionTeacherName }}
  38. <span
  39. v-if="
  40. baseInfo.transactionTeacherName &&
  41. baseInfo.transactionTeacherPhone
  42. "
  43. >/</span
  44. >
  45. {{ baseInfo.transactionTeacherPhone }}
  46. </div>
  47. </descriptions-item>
  48. <descriptions-item label="乐队指导:"
  49. >{{ baseInfo.directorUserName }}
  50. </descriptions-item>
  51. <descriptions-item label="乐团主管:">
  52. {{ baseInfo.educationalTeacherName }}</descriptions-item
  53. >
  54. </descriptions>
  55. <el-alert :closable="false" class="alert" type="info">
  56. <div class="shapeWrap">
  57. <span class="shape"></span>
  58. 联系人
  59. </div>
  60. </el-alert>
  61. <descriptions
  62. :column="3"
  63. v-if="baseInfo.cooperationOrganLinkmanList.length > 0"
  64. >
  65. <template v-for="(item, index) in baseInfo.cooperationOrganLinkmanList">
  66. <descriptions-item label="联系人:" :key="index">
  67. {{ item.linkman }}</descriptions-item
  68. >
  69. <descriptions-item label="职位:" :key="index">
  70. {{ item.job }}</descriptions-item
  71. >
  72. <descriptions-item label="手机号:" :key="index">
  73. {{ item.mobileNo }}</descriptions-item
  74. >
  75. </template>
  76. </descriptions>
  77. <div v-else>
  78. <empty desc="暂无联系人" />
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import { getBasicInfo } from "./api";
  84. export default {
  85. data() {
  86. return {
  87. baseInfo: {
  88. id: "",
  89. createTime: "",
  90. billStartDate: "",
  91. courseViewType: "",
  92. chargeTypeName: "",
  93. cooperationOrganName: "",
  94. transactionTeacherName: "",
  95. transactionTeacherPhone: "",
  96. directorUserName: "",
  97. educationalTeacherName: "",
  98. cooperationOrganLinkmanList: [],
  99. },
  100. };
  101. },
  102. async mounted() {
  103. try {
  104. const res = await getBasicInfo({ musicGroupId: this.$route.query.id });
  105. this.baseInfo = res.data;
  106. } catch (e) {
  107. console.log(e);
  108. }
  109. },
  110. methods: {},
  111. };
  112. </script>
  113. <style lang="scss" scoped="scoped">
  114. .marginBtm22 {
  115. margin-bottom: 22px;
  116. }
  117. .shapeWrap {
  118. display: flex;
  119. flex-direction: row;
  120. justify-content: flex-start;
  121. align-items: center;
  122. .shape {
  123. position: relative;
  124. top: -1px;
  125. display: block;
  126. margin-right: 10px;
  127. height: 14px;
  128. width: 4px;
  129. background-color: var(--color-primary);
  130. z-index: 500;
  131. }
  132. }
  133. </style>