baseInfo.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. {{ baseInfo.transactionTeacherName }}/{{baseInfo.transactionTeacherPhone}}</descriptions-item
  37. >
  38. <descriptions-item label="乐队指导:"
  39. >{{ baseInfo.directorUserName }}
  40. </descriptions-item>
  41. <descriptions-item label="乐团主管:">
  42. {{ baseInfo.educationalTeacherName }}</descriptions-item
  43. >
  44. </descriptions>
  45. <el-alert :closable="false" class="alert" type="info">
  46. <div class="shapeWrap">
  47. <span class="shape"></span>
  48. 联系人
  49. </div>
  50. </el-alert>
  51. <descriptions :column="3">
  52. <template
  53. v-for="(item, index) in baseInfo.cooperationOrganLinkmanList"
  54. >
  55. <descriptions-item label="联系人:" :key="index">
  56. {{ item.linkman }}</descriptions-item
  57. >
  58. <descriptions-item label="职位:" :key="index"> {{ item.job }}</descriptions-item>
  59. <descriptions-item label="手机号:" :key="index">
  60. {{ item.mobileNo }}</descriptions-item
  61. >
  62. </template>
  63. </descriptions>
  64. </div>
  65. </template>
  66. <script>
  67. import { getBasicInfo } from "./api";
  68. export default {
  69. data() {
  70. return {
  71. baseInfo: {
  72. id: "",
  73. createTime: "",
  74. billStartDate: "",
  75. courseViewType: "",
  76. chargeTypeName: "",
  77. cooperationOrganName: "",
  78. transactionTeacherName: "",
  79. transactionTeacherPhone:"",
  80. directorUserName: "",
  81. educationalTeacherName: "",
  82. cooperationOrganLinkmanList: [],
  83. },
  84. };
  85. },
  86. async mounted() {
  87. try {
  88. const res = await getBasicInfo({ musicGroupId: this.$route.query.id });
  89. this.baseInfo = res.data;
  90. } catch (e) {
  91. console.log(e);
  92. }
  93. },
  94. methods: {},
  95. };
  96. </script>
  97. <style lang="scss" scoped="scoped">
  98. .marginBtm22 {
  99. margin-bottom: 22px;
  100. }
  101. .shapeWrap {
  102. display: flex;
  103. flex-direction: row;
  104. justify-content: flex-start;
  105. align-items: center;
  106. .shape {
  107. position: relative;
  108. top: -1px;
  109. display: block;
  110. margin-right: 10px;
  111. height: 14px;
  112. width: 4px;
  113. background-color: #14928a;
  114. z-index: 500;
  115. }
  116. }
  117. </style>