nonReligiousInformationInfo.vue 6.1 KB

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