siteInspectionInfo.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
  3. <div class="main" v-if="!isLoading">
  4. <div class="banner">
  5. <h2>扎实提升“三力”</h2>
  6. <h2>深入推进“三化”</h2>
  7. <h2>坚持“三个思维”</h2>
  8. </div>
  9. <div class="info">
  10. <p>场所名称:{{ info.siteName.name }}</p>
  11. <p>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点:{{ info.place }}</p>
  12. <p>详细地址:{{ info.placeDel }}</p>
  13. <p>督查时间:{{ info.supervisionTime }}</p>
  14. <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
  15. <p>督查内容:{{ info.supervisionContent }}</p>
  16. </div>
  17. <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
  18. </div>
  19. </template>
  20. <script>
  21. import { ref } from "vue";
  22. import siteInspectionService from "@/api/siteInspection/siteInspectionService";
  23. import UserManage from "@/api/user/UserManage";
  24. import { useRoute } from "vue-router";
  25. export default {
  26. setup() {
  27. window.xm.setNavigationBarTitle({ title: '场所检查详情'})
  28. let isLoading = ref(true);
  29. let canAudit = ref(false);
  30. // 活动信息
  31. const info = ref({
  32. });
  33. let route = useRoute();
  34. new siteInspectionService().queryById(route.query.id).then((data) => {
  35. info.value = data;
  36. if(data.assessment=="0"){
  37. canAudit.value = true;
  38. }else{
  39. canAudit.value = false;
  40. }
  41. isLoading.value = false;
  42. });
  43. return {
  44. info,
  45. isLoading,
  46. canAudit,
  47. };
  48. },
  49. };
  50. </script>
  51. <style lang="less">
  52. .main {
  53. background: #fff;
  54. position: relative;
  55. top: 40px;
  56. }
  57. .banner {
  58. background-color: #36a7f3;
  59. padding: 20px 50px 40px 50px;
  60. color: #fff;
  61. h2 {
  62. &:nth-child(1) {
  63. margin-top: 0px;
  64. text-align: left;
  65. }
  66. &:nth-child(2) {
  67. text-align: center;
  68. }
  69. &:nth-child(3) {
  70. text-align: right;
  71. }
  72. }
  73. }
  74. .info {
  75. position: relative;
  76. width: 86vw;
  77. margin: 10px auto;
  78. padding: 10px;
  79. background: #fff;
  80. border-radius: 20px;
  81. top: -50px;
  82. font-size: 14px;
  83. }
  84. .btn-sub {
  85. width: 90%;
  86. border-radius: 20px;
  87. margin-left: 5%;
  88. }
  89. .van-loading {
  90. text-align: center;
  91. margin-top: 80px;
  92. }
  93. </style>