index.vue 2.7 KB

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