yinhuaninfo_gongshi.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div>
  3. <div class="footed">
  4. <div
  5. class="footed_box"
  6. v-for="(item, index) in TroubleshootData_list"
  7. :key="index"
  8. >
  9. <div class="footed_box_one">
  10. <p class="footed_box_one_p1">{{ item.add_person }}</p>
  11. <!-- <p class="footed_box_one_p2">{{item.created_at}}</p> -->
  12. <p class="footed_box_one_p6" v-if="item.rectification_status == 0">
  13. 未整改
  14. </p>
  15. <p class="footed_box_one_p6_2" v-if="item.rectification_status == 1">
  16. 已整改
  17. </p>
  18. <p
  19. class="footed_box_one_p6_3"
  20. style="background: #fdaf00"
  21. v-if="item.rectification_status == 2"
  22. >
  23. 申请延期
  24. </p>
  25. <p class="footed_box_one_p6_3" v-if="item.rectification_status == 3">
  26. 逾期
  27. </p>
  28. <p class="footed_box_one_p4" v-if="item.status == 1">未验收</p>
  29. <p class="footed_box_one_p3" v-if="item.status == 2">已验收</p>
  30. <p class="footed_box_one_p5" v-if="item.status == 3">逾期</p>
  31. <p class="footed_box_one_p5" v-if="item.status == 4">未通过</p>
  32. </div>
  33. <div class="footed_box_two">
  34. <div class="footed_box_two_div">
  35. <span class="footed_box_span1">风险点</span>
  36. <span>{{ item.risk_point }}</span>
  37. </div>
  38. <div class="footed_box_two_div">
  39. <span class="footed_box_span1">检查专业</span>
  40. <span>{{ item.inspection_specialty }}</span>
  41. </div>
  42. <div class="footed_box_two_div">
  43. <span class="footed_box_span1">责任单位</span>
  44. <span>{{ item.rectification_duty_unit }}</span>
  45. </div>
  46. </div>
  47. <div class="footed_box_three" @click="dianji(item)">
  48. <img src="../../../assets/images/meihuajing/信息.png" alt="" />
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. // 隐患列表
  59. TroubleshootData_list: [],
  60. };
  61. },
  62. methods: {
  63. // 获取隐患排查列表
  64. getTroubleshootData() {
  65. this.TroubleshootData_list = [];
  66. this.$toast.loading();
  67. this.$http
  68. .post(
  69. "http://meihuajing.nxjiewei.com:8011/api/troubleshoot/getTroubleshootData",
  70. {
  71. type: 5,
  72. }
  73. )
  74. .then((res) => {
  75. this.$toast.clear();
  76. console.log(res);
  77. console.log(res.data.data.data);
  78. this.TroubleshootData_list = res.data.data.data;
  79. });
  80. },
  81. dianji(item) {
  82. if (item.rectification_status == 1 && item.status == 3) {
  83. //已整改 逾期
  84. this.$router.push(
  85. `/meihuajing/yinhuanpaicha/yinhuanform_yzg_yq?id=` + item.id
  86. );
  87. } else if (item.rectification_status == 3) {
  88. // 逾期 未验收
  89. this.$router.push(
  90. `/meihuajing/yinhuanpaicha/yinhuanform_wzgyq?id=` + item.id
  91. );
  92. } else if (item.rectification_status == 0 && item.status == 1) {
  93. //未整改 未验收
  94. this.$router.push(
  95. `/meihuajing/yinhuanpaicha/yinhuanform_wzg_wys?id=` + item.id
  96. );
  97. } else if (item.rectification_status == 2 && item.status == 1) {
  98. //申请延期 未验收
  99. this.$router.push(
  100. `/meihuajing/yinhuanpaicha/yinhuanform_sqyq_wys?id=` + item.id
  101. );
  102. } else if (item.rectification_status == 1 && item.status == 1) {
  103. //已整改 未验收
  104. this.$router.push(
  105. `/meihuajing/yinhuanpaicha/yinhuanform_yzg_wys?id=` + item.id
  106. );
  107. } else if (item.status == 4) {
  108. // 未通过
  109. this.$router.push(
  110. `/meihuajing/yinhuanpaicha/yinhuanform_yzg_wtg?id=` + item.id
  111. );
  112. } else if (item.status == 2) {
  113. // 已验收
  114. this.$router.push(
  115. `/meihuajing/yinhuanpaicha/yinhuanform_my_yys?id=` + item.id
  116. );
  117. }
  118. },
  119. },
  120. mounted() {
  121. document.body.style.backgroundColor = "#f0f0f0"; //背景色
  122. this.getTroubleshootData();
  123. },
  124. };
  125. </script>
  126. <style scoped>
  127. >>> .van-nav-bar {
  128. background: #39f;
  129. }
  130. >>> .van-nav-bar__title {
  131. color: #fff;
  132. }
  133. >>> .van-nav-bar .van-icon {
  134. color: #fff;
  135. }
  136. >>> .van-nav-bar__text {
  137. color: #fff;
  138. }
  139. [class*="van-hairline"]:after {
  140. border: none;
  141. }
  142. .footed {
  143. width: 100%;
  144. background: #fff;
  145. }
  146. .footed_box {
  147. width: 90%;
  148. margin: 5px auto;
  149. display: flex;
  150. border-bottom: 1px solid #f0f0f0;
  151. }
  152. .footed_box_one {
  153. width: 30%;
  154. text-align: center;
  155. }
  156. .footed_box_two {
  157. width: 56%;
  158. }
  159. .footed_box_three {
  160. width: 10%;
  161. text-align: center;
  162. }
  163. .footed_box_three > img {
  164. margin-top: 34px;
  165. width: 34px;
  166. }
  167. .footed_box_two_div {
  168. display: flex;
  169. margin-top: 10px;
  170. margin-bottom: 10px;
  171. }
  172. .footed_box_span1 {
  173. width: 77px;
  174. color: #9b9b9b;
  175. }
  176. .footed_box_one_p1 {
  177. margin-top: 10px;
  178. font-size: 20px;
  179. }
  180. .footed_box_one_p2 {
  181. font-size: 14px;
  182. color: #9b9b9b;
  183. }
  184. .footed_box_one_p3 {
  185. background: #4dc100;
  186. width: 70px;
  187. height: 25px;
  188. margin: 5px auto;
  189. color: #fff;
  190. border-radius: 20px;
  191. line-height: 25px;
  192. font-size: 15px;
  193. }
  194. .footed_box_one_p4 {
  195. background: #fdaf00;
  196. width: 70px;
  197. height: 25px;
  198. margin: 5px auto;
  199. color: #fff;
  200. border-radius: 20px;
  201. line-height: 25px;
  202. font-size: 15px;
  203. }
  204. .footed_box_one_p5 {
  205. background: #c00201;
  206. width: 70px;
  207. height: 25px;
  208. margin: 5px auto;
  209. color: #fff;
  210. border-radius: 20px;
  211. line-height: 25px;
  212. font-size: 15px;
  213. }
  214. .footed_box_one_p6 {
  215. background: #39f;
  216. width: 70px;
  217. height: 25px;
  218. margin: 5px auto;
  219. color: #fff;
  220. border-radius: 20px;
  221. line-height: 25px;
  222. font-size: 15px;
  223. }
  224. .footed_box_one_p6_2 {
  225. background: #3ba7b5;
  226. width: 70px;
  227. height: 25px;
  228. margin: 5px auto;
  229. color: #fff;
  230. border-radius: 20px;
  231. line-height: 25px;
  232. font-size: 15px;
  233. }
  234. .footed_box_one_p6_3 {
  235. background: #c00201;
  236. width: 70px;
  237. height: 25px;
  238. margin: 5px auto;
  239. color: #fff;
  240. border-radius: 20px;
  241. line-height: 25px;
  242. font-size: 15px;
  243. }
  244. </style>