selfMeetingInfo.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <van-nav-bar
  3. fixed
  4. title="私设聚会点"
  5. left-text=""
  6. left-arrow
  7. @click-left="onClickLeft"
  8. />
  9. <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
  10. <div class="main" v-if="!isLoading">
  11. <div class="banner">
  12. <h2>扎实提升“三力”</h2>
  13. <h2>深入推进“三化”</h2>
  14. <h2>坚持“三个思维”</h2>
  15. </div>
  16. <div class="info">
  17. <p>地点:{{ inputForm.placeSelectName }}</p>
  18. <p>详细地点:{{ inputForm.placeDel }}</p>
  19. <p>频次:{{ inputForm.frequency }}</p>
  20. <p>时间:{{ inputForm.partyTime }}</p>
  21. <p>相关人:{{ inputForm.relatedPersons.name }}</p>
  22. <p>内容:{{ inputForm.content }}</p>
  23. </div>
  24. <van-button type="primary" class="btn-sub">审核</van-button>
  25. </div>
  26. </template>
  27. <script>
  28. import { ref } from "vue";
  29. import { useRoute } from "vue-router";
  30. import PrivatePartyPointService from "@/api/privateparty/PrivatePartyPointService";
  31. import UserManage from "@/api/user/UserManage";
  32. export default {
  33. setup() {
  34. const onClickLeft = () => {
  35. history.back();
  36. };
  37. // 加载
  38. let isLoading = ref(true);
  39. // 异常人员信息
  40. let inputForm = ref({
  41. id: "",
  42. place: "320900",
  43. placeSelectName: "盐城市",
  44. placeSelectType3: "320900",
  45. placeSelectType4: "",
  46. placeSelectType5: "",
  47. placeSelectType6: "",
  48. placeDel: "",
  49. frequency: "",
  50. partyTime: "",
  51. relatedPersons: {
  52. id: "",
  53. name: "",
  54. },
  55. content: "",
  56. state: "0",
  57. assessment: "0",
  58. });
  59. // 获取信息
  60. let route = useRoute();
  61. new PrivatePartyPointService().queryById(route.query.id).then((data) => {
  62. inputForm.value = data;
  63. let ids = data.relatedPersons.id.split(",");
  64. inputForm.value.relatedPersons.name = "";
  65. ids.forEach((item) => {
  66. new UserManage().queryById(item).then((data) => {
  67. inputForm.value.relatedPersons.name += data.name + ",";
  68. });
  69. });
  70. isLoading.value = false;
  71. });
  72. return {
  73. onClickLeft,
  74. inputForm,
  75. isLoading,
  76. };
  77. },
  78. };
  79. </script>
  80. <style lang="less">
  81. .main {
  82. background: #fff;
  83. position: relative;
  84. top: 40px;
  85. }
  86. .banner {
  87. background-color: #36a7f3;
  88. padding: 20px 50px 40px 50px;
  89. color: #fff;
  90. h2 {
  91. &:nth-child(1) {
  92. margin-top: 0px;
  93. text-align: left;
  94. }
  95. &:nth-child(2) {
  96. text-align: center;
  97. }
  98. &:nth-child(3) {
  99. text-align: right;
  100. }
  101. }
  102. }
  103. .info {
  104. position: relative;
  105. width: 86vw;
  106. // height: 120px;
  107. margin: 10px auto;
  108. padding: 10px;
  109. background: #fff;
  110. border-radius: 20px;
  111. top: -50px;
  112. font-size: 14px;
  113. }
  114. .btn-sub {
  115. width: 90%;
  116. border-radius: 20px;
  117. margin-left: 5%;
  118. }
  119. .van-loading {
  120. text-align: center;
  121. margin-top: 80px;
  122. }
  123. </style>