ReligiousPeopleReportInfo.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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.abnormalName }}</p>
  18. <p>人员身份证号:{{ inputForm.abnormalIdcar }}</p>
  19. <p>
  20. 性别:
  21. <span v-if="inputForm.sex == 1">男</span>
  22. <span v-if="inputForm.sex == 2">女</span>
  23. </p>
  24. <p>手机号:{{ inputForm.abnormalPhone }}</p>
  25. <p>籍贯:{{ inputForm.nativePlace }}</p>
  26. <p>现居地:{{ inputForm.currentResidence }}</p>
  27. <p>现居地详情:{{ inputForm.currentResidenceDetail }}</p>
  28. <p>异常行为:{{ inputForm.abnormalBehavior }}</p>
  29. </div>
  30. <van-button
  31. v-if="inputForm.assessment == 0"
  32. type="primary"
  33. class="btn-sub"
  34. @click="update"
  35. >审核</van-button
  36. >
  37. </div>
  38. </template>
  39. <script>
  40. import { ref } from "vue";
  41. import { useRoute } from "vue-router";
  42. import ReligiousPeopleReportService from "@/api/differentbelievers/ReligiousPeopleReportService";
  43. export default {
  44. setup() {
  45. const onClickLeft = () => {
  46. history.back();
  47. };
  48. // 加载
  49. let isLoading = ref(true);
  50. // 异常人员信息
  51. let inputForm = ref({
  52. id: "",
  53. abnormalName: "",
  54. abnormalIdcar: "",
  55. sex: "",
  56. abnormalPhone: "",
  57. nativePlace: "",
  58. currentResidence: "",
  59. currentResidenceDetail: "",
  60. abnormalBehavior: "",
  61. state: "0",
  62. assessment: "0",
  63. currentResidenceId: "",
  64. currentResidenceLevel1: "",
  65. currentResidenceLevel2: "",
  66. currentResidenceLevel3: "",
  67. currentResidenceLevel4: "",
  68. currentResidenceLevel5: "",
  69. currentResidenceLevel6: "",
  70. });
  71. // 获取信息
  72. let route = useRoute();
  73. new ReligiousPeopleReportService()
  74. .queryById(route.query.id)
  75. .then((data) => {
  76. inputForm.value = data;
  77. isLoading.value = false;
  78. });
  79. // 审核通过
  80. const update = () => {
  81. isLoading.value = true;
  82. inputForm.value.assessment = 1;
  83. new ReligiousPeopleReportService().save(inputForm.value).then((res) => {
  84. console.log(res);
  85. onClickLeft();
  86. isLoading.value = false;
  87. });
  88. };
  89. return {
  90. onClickLeft,
  91. inputForm,
  92. isLoading,
  93. update,
  94. };
  95. },
  96. };
  97. </script>
  98. <style lang="less">
  99. .main {
  100. background: #fff;
  101. position: relative;
  102. top: 40px;
  103. }
  104. .banner {
  105. background-color: #36a7f3;
  106. padding: 20px 50px 40px 50px;
  107. color: #fff;
  108. h2 {
  109. &:nth-child(1) {
  110. margin-top: 0px;
  111. text-align: left;
  112. }
  113. &:nth-child(2) {
  114. text-align: center;
  115. }
  116. &:nth-child(3) {
  117. text-align: right;
  118. }
  119. }
  120. }
  121. .info {
  122. position: relative;
  123. width: 86vw;
  124. // height: 120px;
  125. margin: 10px auto;
  126. padding: 10px;
  127. background: #fff;
  128. border-radius: 20px;
  129. top: -50px;
  130. font-size: 14px;
  131. }
  132. .btn-sub {
  133. width: 90%;
  134. border-radius: 20px;
  135. margin-left: 5%;
  136. }
  137. .van-loading {
  138. text-align: center;
  139. margin-top: 80px;
  140. }
  141. </style>