index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <auth-wrap ref="authWrap">
  3. <view class="regmeeting-content-info-container" slot="content">
  4. <u-empty
  5. mode="data"
  6. text="暂未报名,前去报名"
  7. v-if="isEmpty"
  8. >
  9. </u-empty>
  10. <template v-else="isEmpty">
  11. <u-cell-group :border="false">
  12. <u-cell title="姓名" :label="meetingInfo.usrName">
  13. </u-cell>
  14. </u-cell-group>
  15. <u-cell-group :border="false">
  16. <u-cell title="单位名称" :label="meetingInfo.orgUnitName">
  17. </u-cell>
  18. </u-cell-group>
  19. <u-cell-group :border="false">
  20. <u-cell title="职务" :label="meetingInfo.uniLevel">
  21. </u-cell>
  22. </u-cell-group>
  23. <u-cell-group :border="false">
  24. <u-cell title="联系电话" :label="meetingInfo.tel">
  25. </u-cell>
  26. </u-cell-group>
  27. <u-cell-group :border="false">
  28. <u-cell title="邮箱" :label="meetingInfo.email">
  29. </u-cell>
  30. </u-cell-group>
  31. <u-cell-group :border="false">
  32. <u-cell title="是否参加现场调研">
  33. <view
  34. slot="label"
  35. >
  36. <u-tag
  37. plain
  38. :text="SYS_YES_NO[meetingInfo.conferenceFlag].name"
  39. :type="meetingInfo.conferenceFlag == SYS_YES_NO['0'].value ? 'success' : 'warning'">
  40. </u-tag>
  41. </view>
  42. </u-cell>
  43. </u-cell-group>
  44. <u-cell-group :border="false" v-if="meetingInfo.conferenceFlag == SYS_YES_NO['0'].value">
  45. <u-cell title="调研会场" :label="meetingInfo.contentTitle">
  46. </u-cell>
  47. </u-cell-group>
  48. <u-cell-group :border="false">
  49. <u-cell title="审核状态">
  50. <view
  51. slot="label"
  52. >
  53. <u-tag
  54. plain
  55. :text="REVIEW_STATUS[meetingInfo.reviewState].name"
  56. :type="REVIEW_STATUS[meetingInfo.reviewState].tag">
  57. </u-tag>
  58. </view>
  59. </u-cell>
  60. </u-cell-group>
  61. <u-cell-group :border="false" v-if="REVIEW_STATUS.noPass.value == meetingInfo.reviewState">
  62. <u-cell title="不通过原因" :label="meetingInfo.reviewMsg">
  63. </u-cell>
  64. </u-cell-group>
  65. <view class="u-page__button-item">
  66. <u-button
  67. :disabled="[REVIEW_STATUS.pass.value].includes(meetingInfo.reviewState)"
  68. text="重新申请"
  69. size="normal"
  70. type="primary"
  71. ></u-button>
  72. </view>
  73. </template>
  74. </view>
  75. </auth-wrap>
  76. </template>
  77. <script>
  78. import { fetchUsrMeetingInfo } from '@/common/api';
  79. import { REVIEW_STATUS, SYS_YES_NO } from '@/common/EnumConst';
  80. import AuthWrap from '@/components/AuthComp/index.vue';
  81. export default {
  82. name: 'content',
  83. components: { AuthWrap },
  84. props: {},
  85. data() {
  86. return {
  87. SYS_YES_NO,
  88. REVIEW_STATUS,
  89. meetingInfo: {},
  90. isEmpty: false,
  91. };
  92. },
  93. created() {
  94. },
  95. onLoad(res) {
  96. // 登录返回之后的页面
  97. if (res) {
  98. this.queryParams = res;
  99. }
  100. this.getUsrMeetingInfo();
  101. },
  102. methods: {
  103. async getUsrMeetingInfo() {
  104. const { data } = await fetchUsrMeetingInfo();
  105. if (!data) {
  106. this.isEmpty = true;
  107. return;
  108. }
  109. this.isEmpty = false;
  110. const {
  111. content,
  112. ...apply
  113. } = data;
  114. this.meetingInfo = apply;
  115. },
  116. },
  117. };
  118. </script>
  119. <style lang="scss" src="./index.scss" />;