nonReligiousInformationInfo.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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-show="isLoading">加载中...</van-loading>
  10. <div class="main" v-show="!isLoading">
  11. <div class="banner">
  12. <img src="../../../../public/loginbg/banner.jpg" alt="" />
  13. </div>
  14. <div class="info">
  15. <p class="miniTitle">详细信息</p>
  16. <van-cell-group>
  17. <van-field
  18. v-model="info.nonReligiousCategoriesName"
  19. readonly
  20. label="非宗教类别:"
  21. input-align="right"
  22. />
  23. </van-cell-group>
  24. <van-cell-group>
  25. <van-field
  26. v-model="info.siteName.organizationName"
  27. center
  28. readonly
  29. label="组织名称:"
  30. input-align="right"
  31. />
  32. </van-cell-group>
  33. <van-cell-group>
  34. <van-field
  35. v-model="info.reportingTime"
  36. center
  37. readonly
  38. label="时间:"
  39. input-align="right"
  40. />
  41. </van-cell-group>
  42. <van-cell-group>
  43. <van-field
  44. v-model="info.placeSelectName"
  45. center
  46. readonly
  47. label="地点:"
  48. input-align="right"
  49. />
  50. </van-cell-group>
  51. <van-cell-group>
  52. <van-field
  53. v-model="info.placeDetailed"
  54. center
  55. readonly
  56. label="详细地址:"
  57. input-align="right"
  58. />
  59. </van-cell-group>
  60. <van-cell-group>
  61. <van-field
  62. v-model="info.eventOverview"
  63. center
  64. readonly
  65. label="事件概述:"
  66. input-align="right"
  67. />
  68. </van-cell-group>
  69. <p>事件内容:</p>
  70. <div v-html="info.eventContent" class="showhtml"> </div>
  71. </div>
  72. <van-button
  73. v-if="info.assessment == 0"
  74. type="primary"
  75. class="btn-sub"
  76. @click="update"
  77. >审核</van-button
  78. >
  79. </div>
  80. </template>
  81. <script>
  82. import { ref, onMounted } from "vue";
  83. import nonReligiousInformationService from "@/api/nonReligiousInformation/nonReligiousInformationService";
  84. import UserManage from "@/api/user/UserManage";
  85. import { useRoute } from "vue-router";
  86. import $base from "@/utils/config";
  87. export default {
  88. setup() {
  89. const onClickLeft = () => {
  90. history.back();
  91. };
  92. // 加载
  93. let isLoading = ref(true);
  94. // 活动信息
  95. const info = ref({
  96. siteName:{id:"",organizationName:""},
  97. });
  98. // 文件
  99. let fileList = ref([]);
  100. let route = useRoute();
  101. onMounted(() => {
  102. new nonReligiousInformationService().queryById(route.query.id).then((data) => {
  103. info.value = data;
  104. info.value.nonReligiousCategoriesName=getCategories(info.value.nonReligiousCategories)
  105. isLoading.value = false;
  106. });
  107. });
  108. // 审核通过
  109. const update = () => {
  110. isLoading.value = true;
  111. info.value.assessment = 1;
  112. new nonReligiousInformationService().save(info.value).then((res) => {
  113. isLoading.value = false;
  114. window.xm.showToast({
  115. message:"审核成功!"
  116. })
  117. history.back();
  118. });
  119. };
  120. //字典配置
  121. const getCategories= (key ) => {
  122. let re="";
  123. switch(key){
  124. case "1":
  125. re="宗教组织";
  126. break;
  127. case "10":
  128. re="邪教组织";
  129. break;
  130. case "11":
  131. re="地下神学院";
  132. break;
  133. case "2":
  134. re="地下教会";
  135. break;
  136. case "3":
  137. re="韩美境外渗透组织";
  138. break;
  139. case "4":
  140. re="本地精神控制类有害培训机构";
  141. break;
  142. case "5":
  143. re="“呼喊派”骨干组织";
  144. break;
  145. case "6":
  146. re="“改革宗”地下教会组织";
  147. break;
  148. case "7":
  149. re="藏传佛教本地组织";
  150. break;
  151. case "8":
  152. re="学生传教组织";
  153. break;
  154. case "9":
  155. re="“义诊医疗”地下教会组织";
  156. break;
  157. case "91":
  158. re="“亚文化”传教组织";
  159. break;
  160. case "92":
  161. re="重点公司组织";
  162. break;
  163. }
  164. return re;
  165. };
  166. return {
  167. onClickLeft,
  168. info,
  169. fileList,
  170. isLoading,
  171. update,
  172. getCategories,
  173. };
  174. },
  175. };
  176. </script>
  177. <style lang="less">
  178. .van-cell__value .van-field__right-icon .van-icon-location {
  179. color: #36a7f3 !important;
  180. }
  181. .btn-sub {
  182. width: 90%;
  183. border-radius: 20px;
  184. margin-left: 5%;
  185. margin-bottom: 40px;
  186. margin-top: -100px;
  187. }
  188. .van-loading {
  189. text-align: center;
  190. margin-top: 80px;
  191. }
  192. .van-popup--center {
  193. width: 98% !important;
  194. }
  195. </style>