earlyWarningChemistryDetail.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <!-- 化学品报警信息-->
  2. <template>
  3. <view class="earlyWarning">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <!-- 预案报警 -->
  6. <view class="header">化学品违规带离</view>
  7. <view class="site">
  8. <view class="site_t">
  9. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  10. <text>2023-10-1014:00</text>
  11. </view>
  12. <view class="site_b">
  13. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  14. <text>一号实验室</text>
  15. <text></text>
  16. <text>一号楼二楼C区C111</text>
  17. </view>
  18. </view>
  19. <view class="basics">
  20. <view class="small_title"><text></text><text>化学品信息</text></view>
  21. <view class="basics_li" style="margin-top:20rpx;">
  22. <text>化学品名称</text>
  23. <text></text>
  24. </view>
  25. <view class="basics_li">
  26. <text>存放位置:</text>
  27. <text>3号柜化学品余量:100g</text>
  28. </view>
  29. <view class="basics_li">
  30. <text>化学品余量:</text>
  31. <text>100g</text>
  32. </view>
  33. <view class="basics_li">
  34. <text>申领人:</text>
  35. <text>曹秀康</text>
  36. </view>
  37. <view class="basics_li">
  38. <text>申领时间:</text>
  39. <text>10-10 10:00:23</text>
  40. </view>
  41. <view class="basics_li">
  42. <text>过期时间:</text>
  43. <text>10-10 10:00:23</text>
  44. </view>
  45. </view>
  46. <view class="note">
  47. <view class="small_title"><text></text><text>预警通知</text></view>
  48. <view class="note_li" style="margin-top:20rpx;">
  49. <text>声光报警通知</text>
  50. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  51. </view>
  52. </view>
  53. <view class="picture">
  54. <view class="small_title"><text></text><text>报警抓拍</text></view>
  55. <view class="picture_b" @click="lockImg(item.uploadDtoList)">
  56. <img src="@/images/icon_yjxx_ytz.png"/>
  57. <!-- <img :src="baseUrl+imgItem.fileUrl" v-for="(imgItem,imgIndex) in item.uploadDtoList"/> -->
  58. </view>
  59. </view>
  60. <view class="bottom_btn">查看监控</view>
  61. </scroll-view>
  62. </view>
  63. </template>
  64. <script>
  65. import { config } from '@/api/request/config.js'
  66. import {checkManageList,conditionCollegeInfo} from '@/api/index.js'
  67. export default {
  68. name: "rectifyList",
  69. components: {
  70. },
  71. data() {
  72. return {
  73. //列表请求参数
  74. getData:{
  75. pageNum:1,
  76. pageSize:20,
  77. },
  78. status:0,
  79. total:0,
  80. }
  81. },
  82. onLoad(option) {
  83. },
  84. onShow() {
  85. },
  86. mounted(){
  87. },
  88. methods: {
  89. //滚动事件
  90. scrollGet(){
  91. let self=this;
  92. },
  93. //查看图片
  94. lockImg(list){
  95. console.log(list)
  96. if(!list[0]){
  97. return
  98. }
  99. let urlList=[];
  100. for(let i=0;i<list.length;i++){
  101. urlList.push(this.baseUrl+list[i].fileUrl)
  102. }
  103. wx.previewImage({
  104. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  105. current: '', // 当前显示图片的http链接,默认是第一个
  106. success: function(res) {},
  107. fail: function(res) {},
  108. complete: function(res) {},
  109. })
  110. },
  111. handleClick(row,doType){
  112. let self=this;
  113. if( doType=='detail'){//详情
  114. }
  115. },
  116. }
  117. }
  118. </script>
  119. <style lang="stylus" scoped>
  120. .earlyWarning{
  121. height:100%;
  122. display flex;
  123. padding-bottom: 30rpx;
  124. box-sizing: border-box;
  125. .red_color{
  126. color: #D40000;
  127. border: 1rpx solid #D40000;
  128. }
  129. .orange_color{
  130. color: #FF4800;
  131. border: 1rpx solid #FF4800;
  132. }
  133. .yellow_color{
  134. color: #FFA34E;
  135. border: 1rpx solid #FFA34E;
  136. }
  137. .info-max-box{
  138. flex: 1;
  139. overflow: scroll;
  140. }
  141. .header{
  142. width: 750rpx;
  143. height: 80rpx;
  144. font-size: 28rpx;
  145. font-family: PingFang SC-Medium, PingFang SC;
  146. font-weight: 400;
  147. color: #FF4800;
  148. line-height: 80rpx;
  149. text-align: center;
  150. background: rgba(255,72,0,0.2);
  151. }
  152. .site{
  153. width: 690rpx;
  154. height: 170rpx;
  155. background: #FFFFFF;
  156. border-radius: 20rpx 20rpx 20rpx 20rpx;
  157. margin:20rpx 30rpx;
  158. overflow: hidden;
  159. .site_t{
  160. height: 40rpx;
  161. display: flex;
  162. justify-content: flex-start;
  163. align-items: center;
  164. margin-top: 32rpx;
  165. >img{
  166. width: 30rpx;
  167. height: 30rpx;
  168. margin-right: 22rpx;
  169. margin-left: 30rpx;
  170. }
  171. >text:nth-of-type(1){
  172. font-size: 28rpx;
  173. font-family: PingFang SC-Medium, PingFang SC;
  174. font-weight: 400;
  175. color: #333333;
  176. line-height: 28rpx;
  177. }
  178. }
  179. .site_b{
  180. height: 40rpx;
  181. display: flex;
  182. justify-content: flex-start;
  183. align-items: center;
  184. margin-top: 20rpx;
  185. >img{
  186. width: 30rpx;
  187. height: 30rpx;
  188. margin-right: 22rpx;
  189. margin-left: 30rpx;
  190. }
  191. >text:nth-of-type(1){
  192. font-size: 28rpx;
  193. font-family: PingFang SC-Medium, PingFang SC;
  194. font-weight: 400;
  195. color: #333333;
  196. line-height: 28rpx;
  197. }
  198. >text:nth-of-type(2){
  199. display: inline-block;
  200. width: 2rpx;
  201. height: 20rpx;
  202. background: #E0E0E0;
  203. margin: 0 24rpx 0 28rpx;
  204. }
  205. >text:nth-of-type(3){
  206. font-size: 28rpx;
  207. font-family: PingFang SC-Medium, PingFang SC;
  208. font-weight: 400;
  209. color: #333333;
  210. line-height: 28rpx;
  211. }
  212. }
  213. }
  214. .small_title{
  215. height: 90rpx;
  216. display: flex;
  217. justify-content: flex-start;
  218. align-items: center;
  219. border-bottom: 1rpx solid #E0E0E0;
  220. >text:nth-of-type(1){
  221. display: inline-block;
  222. width: 4rpx;
  223. height: 30rpx;
  224. background: #0183FA;
  225. margin: 0 22rpx 0 28rpx;
  226. }
  227. >text:nth-of-type(1){
  228. font-size: 30rpx;
  229. font-family: PingFang SC-Medium, PingFang SC;
  230. font-weight: 400;
  231. color: #333333;
  232. line-height: 30rpx;
  233. }
  234. }
  235. .basics{
  236. margin-left: 30rpx;
  237. width: 690rpx;
  238. height: auto;
  239. background: #FFFFFF;
  240. border-radius: 20rpx 20rpx 20rpx 20rpx;
  241. padding-bottom: 16rpx;
  242. box-sizing: border-box;
  243. .basics_li{
  244. display: flex;
  245. justify-content: space-between;
  246. margin: 0 30rpx;
  247. >text:nth-of-type(1){
  248. font-size: 28rpx;
  249. font-family: PingFang SC-Medium, PingFang SC;
  250. font-weight: 400;
  251. color: #333333;
  252. line-height: 60rpx;
  253. }
  254. >text:nth-of-type(2){
  255. font-size: 28rpx;
  256. font-family: PingFang SC-Medium, PingFang SC;
  257. font-weight: 400;
  258. color: #333333;
  259. line-height: 60rpx;
  260. text-align: right;
  261. flex: 1;
  262. }
  263. }
  264. }
  265. .note{
  266. margin-left: 30rpx;
  267. margin-top: 20rpx;
  268. width: 690rpx;
  269. height: auto;
  270. background: #FFFFFF;
  271. border-radius: 20rpx 20rpx 20rpx 20rpx;
  272. padding-bottom: 16rpx;
  273. box-sizing: border-box;
  274. .note_li{
  275. display: flex;
  276. justify-content: space-between;
  277. margin: 0 30rpx;
  278. >text:nth-of-type(1){
  279. font-size: 28rpx;
  280. font-family: PingFang SC-Medium, PingFang SC;
  281. font-weight: 400;
  282. color: #333333;
  283. line-height: 60rpx;
  284. }
  285. .note_li_r{
  286. display: flex;
  287. justify-content: flex-start;
  288. align-items: center;
  289. >img{
  290. width: 28rpx;
  291. height: 28rpx;
  292. margin-right: 10rpx;
  293. }
  294. font-size: 28rpx;
  295. font-family: PingFang SC-Medium, PingFang SC;
  296. font-weight: 400;
  297. color: #0183FA;
  298. line-height: 60rpx;
  299. }
  300. }
  301. }
  302. .picture{
  303. margin-left: 30rpx;
  304. width: 690rpx;
  305. height: auto;
  306. background: #FFFFFF;
  307. border-radius: 20rpx 20rpx 20rpx 20rpx;
  308. margin-top: 20rpx;
  309. .picture_b{
  310. display: flex;
  311. justify-content: flex-start;
  312. flex-wrap: wrap;
  313. padding: 40rpx 30rpx 10rpx;
  314. box-sizing: border-box;
  315. >img{
  316. width: 180rpx;
  317. height: 180rpx;
  318. border-radius: 10rpx 10rpx 10rpx 10rpx;
  319. margin-right: 38rpx;
  320. margin-bottom: 10rpx;
  321. }
  322. >img:nth-of-type(3n+3){
  323. margin-right: 0rpx;
  324. }
  325. }
  326. }
  327. .bottom_btn{
  328. width: 690rpx;
  329. height: 90rpx;
  330. border-radius: 10rpx 10rpx 10rpx 10rpx;
  331. opacity: 1;
  332. border: 1rpx solid #0183FA;
  333. font-size: 30rpx;
  334. font-family: PingFang SC-Medium, PingFang SC;
  335. font-weight: 400;
  336. color: #0183FA;
  337. line-height: 90rpx;
  338. text-align: center;
  339. background: #F5F5F5;
  340. margin: 90rpx 30rpx 30rpx;
  341. }
  342. }
  343. </style>