earlyWarningList.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!-- 安全检查-校院巡查管理 -->
  2. <template>
  3. <view class="earlyWarning">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <viw class="list">
  6. <view class="list_t">2023-07-02</view>
  7. <view class="list_li" @click="handleClick(item,'detail')">
  8. <view class="list_li_t">
  9. <view class="list_li_t_l"></view>
  10. <view class="list_li_t_c red_color">预案</view>
  11. <view class="list_li_t_c2">甲烷气体泄露-中风险</view>
  12. <view class="list_li_t_r"></view>
  13. </view>
  14. <view class="list_li_b">
  15. <view class="list_li_b_t">
  16. <text>甲烷监测实验室</text>
  17. <text>17:20</text>
  18. </view>
  19. <view class="list_li_b_b">
  20. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  21. <text>测试一号楼-三层-C111</text>
  22. </view>
  23. </view>
  24. </view>
  25. </viw>
  26. <img class="null-img" v-if="!dataList[0]" src="@/images/null-data-1.png">
  27. </scroll-view>
  28. </view>
  29. </template>
  30. <script>
  31. import { config } from '@/api/request/config.js'
  32. import {checkManageList,conditionCollegeInfo} from '@/api/index.js'
  33. export default {
  34. name: "rectifyList",
  35. components: {
  36. },
  37. data() {
  38. return {
  39. //列表请求参数
  40. getData:{
  41. pageNum:1,
  42. pageSize:20,
  43. },
  44. dataList:[{}],
  45. total:0,
  46. }
  47. },
  48. onLoad(option) {
  49. },
  50. onShow() {
  51. },
  52. mounted(){
  53. },
  54. methods: {
  55. //滚动事件
  56. scrollGet(){
  57. let self=this;
  58. if(self.total/self.getData.pageSize<=self.getData.pageNum){
  59. console.log('没有更多数据!')
  60. }else{
  61. setTimeout(function(){
  62. self.getData.pageNum += 1;
  63. self.getList();
  64. },1000)
  65. }
  66. },
  67. handleClick(row,doType){
  68. let self=this;
  69. if( doType=='detail'){//详情
  70. }
  71. },
  72. async getList(){
  73. let self = this;
  74. const {data} = await checkManageList(this.getData);
  75. if(data.code==200){
  76. this.dataList=[...this.dataList,...data.data.records]
  77. this.total=data.data.total;
  78. }
  79. },
  80. }
  81. }
  82. </script>
  83. <style lang="stylus" scoped>
  84. .earlyWarning{
  85. height:100%;
  86. display flex;
  87. padding: 0 30rpx;
  88. box-sizing: border-box;
  89. .red_color{
  90. color: #D40000;
  91. border: 1rpx solid #D40000;
  92. }
  93. .orange_color{
  94. color: #FF4800;
  95. border: 1rpx solid #FF4800;
  96. }
  97. .yellow_color{
  98. color: #FFA34E;
  99. border: 1rpx solid #FFA34E;
  100. }
  101. .null-img{
  102. display block
  103. width:276rpx;
  104. height:321rpx;
  105. margin:100rpx 0 0 274rpx;
  106. }
  107. .list{
  108. .list_t{
  109. height: 80rpx;
  110. font-size: 30rpx;
  111. font-family: PingFang SC-Medium, PingFang SC;
  112. font-weight: 400;
  113. color: #666666;
  114. line-height: 80rpx;
  115. }
  116. .list_li{
  117. width: 690rpx;
  118. height:auto;
  119. background: #FFFFFF;
  120. border-radius: 10rpx;
  121. padding-bottom: 52rpx;
  122. box-sizing: border-box;
  123. .list_li_t{
  124. position: relative;
  125. height: 110rpx;
  126. display: flex;
  127. justify-content: flex-start;
  128. align-items: center;
  129. .list_li_t_l{
  130. position: absolute;
  131. left:-15rpx;
  132. top: 76rpx;
  133. width: 30rpx;
  134. height: 30rpx;
  135. background:#F5F5F5;
  136. border-radius: 15rpx;
  137. }
  138. .list_li_t_c{
  139. height: 40rpx;
  140. font-size: 30rpx;
  141. font-family: PingFang SC-Medium, PingFang SC;
  142. font-weight: 400;
  143. line-height: 36rpx;
  144. margin-left: 30rpx;
  145. margin-right: 20rpx;
  146. border-radius: 20rpx;
  147. padding: 0 20rpx;
  148. box-sizing: border-box;
  149. }
  150. .list_li_t_c2{
  151. font-size: 30rpx;
  152. font-family: PingFang SC-Medium, PingFang SC;
  153. font-weight: 400;
  154. color: #333333;
  155. line-height: 30rpx;
  156. white-space: nowrap;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. flex: 1;
  160. }
  161. .list_li_t_r{
  162. position: absolute;
  163. right:-15rpx;
  164. top: 76rpx;
  165. width: 30rpx;
  166. height: 30rpx;
  167. background:#F5F5F5;
  168. border-radius: 15rpx;
  169. }
  170. }
  171. .list_li_b{
  172. margin: 0 30rpx;
  173. border-top: 1rpx dotted #D8D8D8;
  174. .list_li_b_t{
  175. display: flex;
  176. justify-content: space-between;
  177. margin-top:28rpx;
  178. >text:nth-of-type(1){
  179. font-size: 30rpx;
  180. font-family: PingFang SC-Medium, PingFang SC;
  181. font-weight: 400;
  182. color: #333333;
  183. line-height: 30rpx;
  184. }
  185. >text:nth-of-type(2){
  186. font-size: 30rpx;
  187. font-family: PingFang SC-Medium, PingFang SC;
  188. font-weight: 400;
  189. color: #666666;
  190. line-height: 30rpx;
  191. }
  192. }
  193. .list_li_b_b{
  194. display: flex;
  195. justify-content: flex-start;
  196. margin-top:30rpx;
  197. >img{
  198. width: 30rpx;
  199. height: 30rpx;
  200. margin-right: 22rpx;
  201. }
  202. >text{
  203. font-size: 28rpx;
  204. font-family: PingFang SC-Medium, PingFang SC;
  205. font-weight: 400;
  206. color: #666666;
  207. line-height: 28rpx;
  208. white-space: nowrap;
  209. overflow: hidden;
  210. text-overflow: ellipsis;
  211. flex: 1;
  212. }
  213. }
  214. }
  215. }
  216. }
  217. .info-max-box{
  218. flex: 1;
  219. overflow: scroll;
  220. }
  221. }
  222. </style>