移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

278 righe
7.0 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. 监控
  5. </div>
  6. <div class="jg"></div>
  7. <div class="main1">
  8. <p class="tit">设备</p>
  9. <!-- <p class="content">农业农村管理方面法律及法规规定的行政处罚</p>-->
  10. <van-grid :column-num="2" :border="false">
  11. <van-grid-item>
  12. <div class="onDiv">
  13. <img src="../../../../static/images/lawEnforcement/icon/monitor_icon_01.png"/>
  14. <div class="onDiv_text">
  15. <p>{{monitorList.length}}<span>台</span></p>
  16. <p>在线设备</p>
  17. </div>
  18. </div>
  19. </van-grid-item>
  20. <van-grid-item>
  21. <div class="onDiv outDiv">
  22. <img src="../../../../static/images/lawEnforcement/icon/monitor_icon_01.png"/>
  23. <div class="onDiv_text">
  24. <p>{{monitorList2.length}}<span>台</span></p>
  25. <p>离线设备</p>
  26. </div>
  27. </div>
  28. </van-grid-item>
  29. </van-grid>
  30. </div>
  31. <van-tabs v-model="active" animated>
  32. <van-tab title="在线设备">
  33. <div class="onList" v-for="(item,index) in monitorList" :key="index" @click="openAlert">
  34. <div class="onList_tit">
  35. <img src="../../../../static/images/lawEnforcement/icon/monitor_icon_02.png" alt="">
  36. <p>{{item.belongTeam}}</p>
  37. </div>
  38. <p class="onList_num">{{item.monitorCode}}</p>
  39. <p class="onList_time">接入时间:{{item.createTime.substr(0,10)}}</p>
  40. </div>
  41. </van-tab>
  42. <van-tab title="离线设备">
  43. <div class="onList offList" v-for="(item,index) in monitorList2" :key="index" @click="openAlert">
  44. <div class="onList_tit">
  45. <img src="../../../../static/images/lawEnforcement/icon/monitor_icon_02.png" alt="">
  46. <p>{{item.belongTeam}}</p>
  47. </div>
  48. <p class="onList_num">{{item.monitorCode}}</p>
  49. <p class="onList_time">最近时间:{{item.createTime.substr(0,10)}}</p>
  50. </div>
  51. </van-tab>
  52. </van-tabs>
  53. <div style="height: 20PX"></div>
  54. <lawNew></lawNew>
  55. </div>
  56. </template>
  57. <script>
  58. import lawNew from "@/components/common/lawNew_footer";
  59. import {getMonitor} from "@/api/lawEnforcement";
  60. import request from "@/utils/request";
  61. export default {
  62. name: "caseAllocation",
  63. components: {
  64. lawNew
  65. },
  66. data() {
  67. return {
  68. active: 0,
  69. queryParams:{
  70. sysNormalDisable:'0'
  71. },
  72. queryParams2:{
  73. sysNormalDisable:'1'
  74. },
  75. monitorList:[],
  76. monitorList2:[],
  77. };
  78. },
  79. created() {
  80. this.getList();
  81. },
  82. methods: {
  83. getList(){
  84. getMonitor(this.queryParams).then(response => {
  85. console.log(response)
  86. this.monitorList = response.rows;
  87. });
  88. getMonitor(this.queryParams2).then(response => {
  89. console.log(response)
  90. this.monitorList2 = response.rows;
  91. });
  92. },
  93. openAlert(){
  94. this.$dialog.alert({
  95. message: '暂未开通功能',
  96. })
  97. }
  98. },
  99. }
  100. </script>
  101. <style scoped lang="scss">
  102. .jg{
  103. height: 116px;
  104. }
  105. .onDiv{
  106. display: flex;
  107. width: 90%;
  108. background-image: linear-gradient(to right, #F57F65 , #F9A96D);
  109. justify-content: center;
  110. align-items: center;
  111. border-radius: 8PX;
  112. padding: 12PX 0 15PX;
  113. .onDiv_text{
  114. margin-left: 10%;
  115. p{
  116. color: #ffffff;
  117. line-height: 1;
  118. &:first-child{
  119. font-size: 32PX;
  120. margin-bottom: 5PX;
  121. span{
  122. font-size: 14PX;
  123. }
  124. }
  125. }
  126. }
  127. }
  128. .outDiv{
  129. background:#C9C9C9;
  130. }
  131. .onList{
  132. background: #1D6FE9 url("../../../../static/images/lawEnforcement/icon/monitor_icon_03.png") no-repeat;
  133. background-position: right 5% top 40%;
  134. width: 46%;
  135. padding: 3% 5%;
  136. color: #ffffff;
  137. border-radius: 10PX;
  138. float: left;
  139. margin: 4% 2% 0;
  140. .onList_tit{
  141. display: flex;
  142. align-items: center;
  143. p{
  144. margin-left: 5PX;
  145. }
  146. }
  147. .onList_num{
  148. font-size: 28PX;
  149. margin: 5PX 0;
  150. }
  151. }
  152. .offList{
  153. background: #C9C9C9 url("../../../../static/images/lawEnforcement/icon/monitor_icon_04.png") no-repeat;
  154. background-position: right 5% top 40%;
  155. }
  156. /deep/ .van-tabs--line .van-tabs__wrap{
  157. border-radius: 100rem;
  158. }
  159. /deep/ .van-tab{
  160. z-index: 1;
  161. }
  162. /deep/ .van-tab--active{
  163. color: #1D6FE9;
  164. }
  165. /deep/ .van-tabs__nav{
  166. background: #ECECEC;
  167. }
  168. /deep/ .van-tabs__line{
  169. background: #fff;
  170. border-radius: 100rem;
  171. z-index: 0;
  172. width: 47%;
  173. height: 60%;
  174. bottom: 0.5rem;
  175. }
  176. .home_wrapper{
  177. background: #F6F6F6;
  178. min-height: 100vh;
  179. width: 100vw;
  180. padding: 0 3% 0.2rem;
  181. .header_main{
  182. height: 116px;
  183. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  184. background-size: 100% 100%;
  185. position: fixed;
  186. top: 0;
  187. left: 0;
  188. width: 100%;
  189. font-size: 36px;
  190. line-height: 116px;
  191. text-align: center;
  192. color: #fff;
  193. z-index: 999;
  194. .return_btn{
  195. width: 24px;
  196. height: 43.2px;
  197. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  198. background-size: 20px 36px;
  199. position: absolute;
  200. left: 38px;
  201. top: 36px;
  202. }
  203. .add_btn{
  204. width: 56.4px;
  205. height: 40.8px;
  206. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  207. background-size: 47px 34px;
  208. position: absolute;
  209. right: 38px;
  210. top: 36px;
  211. }
  212. }
  213. }
  214. .main1{
  215. padding: 0 3%;
  216. margin: 25PX auto 0;
  217. .content{
  218. color: #878787;
  219. padding-left: 2%;
  220. margin-top: 10PX;
  221. }
  222. /deep/ .van-grid-item__content{
  223. background: transparent;
  224. padding-left: 0;
  225. padding-right: 0;
  226. p{
  227. /*color: #333333;*/
  228. font-size: 14PX;
  229. }
  230. }
  231. }
  232. .tit{
  233. font-weight: bold;
  234. font-size: 16PX;
  235. padding: 0 2%;
  236. background: url("../../../../static/images/lawEnforcement/new/index_icon_18.png") no-repeat left center;
  237. line-height: 1;
  238. }
  239. .main_box{
  240. width: 100%;
  241. margin: 0 auto;
  242. border-radius: 10PX;
  243. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  244. overflow: hidden;
  245. background-color: #FFF;
  246. margin-top: 10PX;
  247. p,/deep/ .van-grid-item__text{
  248. font-size: .35rem;
  249. color: #646566;
  250. }
  251. .custom-title{
  252. font-size: 17PX;
  253. color: #333333;
  254. vertical-align: middle;
  255. line-height: 1;
  256. position: relative;
  257. }
  258. .tap{
  259. color: #1D6FE9;
  260. }
  261. .bgBlue{
  262. display: block;
  263. position: absolute;
  264. width: 17PX;
  265. height: 17PX;
  266. border-radius: 50%;
  267. background-color: rgba(29,111,233,0.26);
  268. top: -2PX;
  269. right: -8PX;
  270. }
  271. }
  272. </style>