index.vue 3.0 KB

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