earlyWarningDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. <!-- 预案报警信息 -->
  2. <template>
  3. <view class="earlyWarning">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <!-- 预案报警 -->
  6. <view class="header" v-if="pageType==0">甲烷气体泄露-中风险</view>
  7. <!-- 化学品 -->
  8. <view class="header_tow" v-if="pageType==1">化学品违规带离</view>
  9. <!-- 气瓶 -->
  10. <view class="header_three" v-if="pageType==2">气瓶违规带离</view>
  11. <!-- 算法识别 -->
  12. <view class="header_four" v-if="pageType==3">多人未穿戴实验服</view>
  13. <!-- 预案报警 -->
  14. <view class="site" v-if="pageType==0">
  15. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  16. <text>一号实验室</text>
  17. <text></text>
  18. <text>一号楼二楼C区C111</text>
  19. </view>
  20. <!-- 化学品 -->
  21. <view class="site_tow" v-if="pageType==1 || pageType==2 || pageType==3">
  22. <view class="site_tow_t">
  23. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  24. <text>2023-10-1014:00</text>
  25. </view>
  26. <view class="site_tow_b">
  27. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  28. <text>一号实验室</text>
  29. <text></text>
  30. <text>一号楼二楼C区C111</text>
  31. </view>
  32. </view>
  33. <!-- 预案报警 -->
  34. <view class="basics" v-if="pageType==0">
  35. <view class="small_title"><text></text><text>风险概况</text></view>
  36. <view class="basics_li" style="margin-top:20rpx;">
  37. <text>发生时间:</text>
  38. <text>10-12 12:00:56至12:03:03 </text>
  39. </view>
  40. <view class="basics_li">
  41. <text>持续时间:</text>
  42. <text>30秒</text>
  43. </view>
  44. <view class="basics_li">
  45. <text>风险响应人员:</text>
  46. <text>曹秀康、杨虎城、刘波 </text>
  47. </view>
  48. <view class="basics_li">
  49. <text>实验室内人员:</text>
  50. <text>刘然、李茶、周瑶瑶、李娇、 李雪、陈记、李玉玉</text>
  51. </view>
  52. </view>
  53. <!-- 化学品 -->
  54. <view class="basics" v-if="pageType==1">
  55. <view class="small_title"><text></text><text>化学品信息</text></view>
  56. <view class="basics_li" style="margin-top:20rpx;">
  57. <text>化学品名称</text>
  58. <text></text>
  59. </view>
  60. <view class="basics_li">
  61. <text>存放位置:</text>
  62. <text>3号柜化学品余量:100g</text>
  63. </view>
  64. <view class="basics_li">
  65. <text>化学品余量:</text>
  66. <text>100g</text>
  67. </view>
  68. <view class="basics_li">
  69. <text>申领人:</text>
  70. <text>曹秀康</text>
  71. </view>
  72. <view class="basics_li">
  73. <text>申领时间:</text>
  74. <text>10-10 10:00:23</text>
  75. </view>
  76. <view class="basics_li">
  77. <text>过期时间:</text>
  78. <text>10-10 10:00:23</text>
  79. </view>
  80. </view>
  81. <!-- 气瓶 -->
  82. <view class="basics" v-if="pageType==2">
  83. <view class="small_title"><text></text><text>气瓶信息</text></view>
  84. <view class="basics_li" style="margin-top:20rpx;">
  85. <text>气体名称</text>
  86. <text></text>
  87. </view>
  88. <view class="basics_li">
  89. <text>气体余量:</text>
  90. <text>10L</text>
  91. </view>
  92. <view class="basics_li">
  93. <text>气瓶规格:</text>
  94. <text>100g/瓶 </text>
  95. </view>
  96. <view class="basics_li">
  97. <text>所有人:</text>
  98. <text>刘然</text>
  99. </view>
  100. <view class="basics_li">
  101. <text>入库时间:</text>
  102. <text>10-10 10:00:23</text>
  103. </view>
  104. <view class="basics_li">
  105. <text>申领人:</text>
  106. <text>刘然</text>
  107. </view>
  108. <view class="basics_li">
  109. <text>申领时间:</text>
  110. <text>10-10 10:00:23</text>
  111. </view>
  112. </view>
  113. <view class="note" v-if="pageType==0 || pageType==3">
  114. <view class="small_title"><text></text><text>通知短信</text></view>
  115. <view class="note_li" style="margin-top:20rpx;">
  116. <text>曹秀康(实验室负责人)</text>
  117. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  118. </view>
  119. <view class="note_li">
  120. <text>李秀丽(安全责任人)</text>
  121. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  122. </view>
  123. <view class="note_li">
  124. <text>周燕(安全责任人)</text>
  125. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  126. </view>
  127. </view>
  128. <view class="note">
  129. <view class="small_title"><text></text><text>预警通知</text></view>
  130. <view class="note_li" style="margin-top:20rpx;">
  131. <text>语音播报</text>
  132. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  133. </view>
  134. </view>
  135. <view class="picture">
  136. <view class="small_title"><text></text><text>报警抓拍</text></view>
  137. <view class="picture_b" @click="lockImg(item.uploadDtoList)">
  138. <img src="@/images/icon_yjxx_ytz.png"/>
  139. <!-- <img :src="baseUrl+imgItem.fileUrl" v-for="(imgItem,imgIndex) in item.uploadDtoList"/> -->
  140. </view>
  141. </view>
  142. <view class="bottom_btn">查看监控</view>
  143. </scroll-view>
  144. </view>
  145. </template>
  146. <script>
  147. import { config } from '@/api/request/config.js'
  148. import {checkManageList,conditionCollegeInfo} from '@/api/index.js'
  149. export default {
  150. name: "rectifyList",
  151. components: {
  152. },
  153. data() {
  154. return {
  155. pageType:2,//0预案报警信息 1化学品 2气瓶 3算法识别
  156. //列表请求参数
  157. getData:{
  158. pageNum:1,
  159. pageSize:20,
  160. },
  161. total:0,
  162. }
  163. },
  164. onLoad(option) {
  165. },
  166. onShow() {
  167. },
  168. mounted(){
  169. if(this.pageType==0){
  170. uni.setNavigationBarTitle({
  171. title:'预案报警信息'
  172. })
  173. }else if(this.pageType==1){
  174. uni.setNavigationBarTitle({
  175. title:'化学品预警信息'
  176. })
  177. }else if(this.pageType==2){
  178. uni.setNavigationBarTitle({
  179. title:'气瓶预警信息'
  180. })
  181. }else if(this.pageType==3){
  182. uni.setNavigationBarTitle({
  183. title:'算法识别预警信息'
  184. })
  185. }
  186. },
  187. methods: {
  188. //滚动事件
  189. scrollGet(){
  190. let self=this;
  191. },
  192. //查看图片
  193. lockImg(list){
  194. console.log(list)
  195. if(!list[0]){
  196. return
  197. }
  198. let urlList=[];
  199. for(let i=0;i<list.length;i++){
  200. urlList.push(this.baseUrl+list[i].fileUrl)
  201. }
  202. wx.previewImage({
  203. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  204. current: '', // 当前显示图片的http链接,默认是第一个
  205. success: function(res) {},
  206. fail: function(res) {},
  207. complete: function(res) {},
  208. })
  209. },
  210. handleClick(row,doType){
  211. let self=this;
  212. if( doType=='detail'){//详情
  213. }
  214. },
  215. }
  216. }
  217. </script>
  218. <style lang="stylus" scoped>
  219. .earlyWarning{
  220. height:100%;
  221. display flex;
  222. padding-bottom: 30rpx;
  223. box-sizing: border-box;
  224. .red_color{
  225. color: #D40000;
  226. border: 1rpx solid #D40000;
  227. }
  228. .orange_color{
  229. color: #FF4800;
  230. border: 1rpx solid #FF4800;
  231. }
  232. .yellow_color{
  233. color: #FFA34E;
  234. border: 1rpx solid #FFA34E;
  235. }
  236. .info-max-box{
  237. flex: 1;
  238. overflow: scroll;
  239. }
  240. .header{
  241. width: 750rpx;
  242. height: 80rpx;
  243. font-size: 28rpx;
  244. font-family: PingFang SC-Medium, PingFang SC;
  245. font-weight: 400;
  246. color: #D40000;
  247. line-height: 80rpx;
  248. text-align: center;
  249. background: rgba(212,0,0,0.2);
  250. }
  251. .header_tow{
  252. width: 750rpx;
  253. height: 80rpx;
  254. font-size: 28rpx;
  255. font-family: PingFang SC-Medium, PingFang SC;
  256. font-weight: 400;
  257. color: #FF4800;
  258. line-height: 80rpx;
  259. text-align: center;
  260. background: rgba(255,72,0,0.2);
  261. }
  262. .header_three{
  263. width: 750rpx;
  264. height: 80rpx;
  265. font-size: 28rpx;
  266. font-family: PingFang SC-Medium, PingFang SC;
  267. font-weight: 400;
  268. color: #FF4800;
  269. line-height: 80rpx;
  270. text-align: center;
  271. background: rgba(255,72,0,0.2);
  272. }
  273. .header_four{
  274. width: 750rpx;
  275. height: 80rpx;
  276. font-size: 28rpx;
  277. font-family: PingFang SC-Medium, PingFang SC;
  278. font-weight: 400;
  279. color: #FFA34E;
  280. line-height: 80rpx;
  281. text-align: center;
  282. background: rgba(255,163,78,0.2);
  283. }
  284. .site{
  285. width: 690rpx;
  286. height: 80rpx;
  287. background: #FFFFFF;
  288. display: flex;
  289. justify-content: flex-start;
  290. align-items: center;
  291. border-radius: 20rpx 20rpx 20rpx 20rpx;
  292. margin:20rpx 30rpx;
  293. >img{
  294. width: 30rpx;
  295. height: 30rpx;
  296. margin-right: 22rpx;
  297. margin-left: 30rpx;
  298. }
  299. >text:nth-of-type(1){
  300. font-size: 28rpx;
  301. font-family: PingFang SC-Medium, PingFang SC;
  302. font-weight: 400;
  303. color: #333333;
  304. line-height: 28rpx;
  305. }
  306. >text:nth-of-type(2){
  307. display: inline-block;
  308. width: 2rpx;
  309. height: 20rpx;
  310. background: #E0E0E0;
  311. margin: 0 24rpx 0 28rpx;
  312. }
  313. >text:nth-of-type(3){
  314. font-size: 28rpx;
  315. font-family: PingFang SC-Medium, PingFang SC;
  316. font-weight: 400;
  317. color: #333333;
  318. line-height: 28rpx;
  319. }
  320. }
  321. .site_tow{
  322. width: 690rpx;
  323. height: 170rpx;
  324. background: #FFFFFF;
  325. border-radius: 20rpx 20rpx 20rpx 20rpx;
  326. margin:20rpx 30rpx;
  327. overflow: hidden;
  328. .site_tow_t{
  329. height: 40rpx;
  330. display: flex;
  331. justify-content: flex-start;
  332. align-items: center;
  333. margin-top: 32rpx;
  334. >img{
  335. width: 30rpx;
  336. height: 30rpx;
  337. margin-right: 22rpx;
  338. margin-left: 30rpx;
  339. }
  340. >text:nth-of-type(1){
  341. font-size: 28rpx;
  342. font-family: PingFang SC-Medium, PingFang SC;
  343. font-weight: 400;
  344. color: #333333;
  345. line-height: 28rpx;
  346. }
  347. }
  348. .site_tow_b{
  349. height: 40rpx;
  350. display: flex;
  351. justify-content: flex-start;
  352. align-items: center;
  353. margin-top: 20rpx;
  354. >img{
  355. width: 30rpx;
  356. height: 30rpx;
  357. margin-right: 22rpx;
  358. margin-left: 30rpx;
  359. }
  360. >text:nth-of-type(1){
  361. font-size: 28rpx;
  362. font-family: PingFang SC-Medium, PingFang SC;
  363. font-weight: 400;
  364. color: #333333;
  365. line-height: 28rpx;
  366. }
  367. >text:nth-of-type(2){
  368. display: inline-block;
  369. width: 2rpx;
  370. height: 20rpx;
  371. background: #E0E0E0;
  372. margin: 0 24rpx 0 28rpx;
  373. }
  374. >text:nth-of-type(3){
  375. font-size: 28rpx;
  376. font-family: PingFang SC-Medium, PingFang SC;
  377. font-weight: 400;
  378. color: #333333;
  379. line-height: 28rpx;
  380. }
  381. }
  382. }
  383. .small_title{
  384. height: 90rpx;
  385. display: flex;
  386. justify-content: flex-start;
  387. align-items: center;
  388. border-bottom: 1rpx solid #E0E0E0;
  389. >text:nth-of-type(1){
  390. display: inline-block;
  391. width: 4rpx;
  392. height: 30rpx;
  393. background: #0183FA;
  394. margin: 0 22rpx 0 28rpx;
  395. }
  396. >text:nth-of-type(1){
  397. font-size: 30rpx;
  398. font-family: PingFang SC-Medium, PingFang SC;
  399. font-weight: 400;
  400. color: #333333;
  401. line-height: 30rpx;
  402. }
  403. }
  404. .basics{
  405. margin-left: 30rpx;
  406. width: 690rpx;
  407. height: auto;
  408. background: #FFFFFF;
  409. border-radius: 20rpx 20rpx 20rpx 20rpx;
  410. padding-bottom: 16rpx;
  411. box-sizing: border-box;
  412. .basics_li{
  413. display: flex;
  414. justify-content: space-between;
  415. margin: 0 30rpx;
  416. >text:nth-of-type(1){
  417. font-size: 28rpx;
  418. font-family: PingFang SC-Medium, PingFang SC;
  419. font-weight: 400;
  420. color: #333333;
  421. line-height: 60rpx;
  422. }
  423. >text:nth-of-type(2){
  424. font-size: 28rpx;
  425. font-family: PingFang SC-Medium, PingFang SC;
  426. font-weight: 400;
  427. color: #333333;
  428. line-height: 60rpx;
  429. flex: 1;
  430. text-align: right;
  431. }
  432. }
  433. }
  434. .note{
  435. margin-left: 30rpx;
  436. margin-top: 20rpx;
  437. width: 690rpx;
  438. height: auto;
  439. background: #FFFFFF;
  440. border-radius: 20rpx 20rpx 20rpx 20rpx;
  441. padding-bottom: 16rpx;
  442. box-sizing: border-box;
  443. .note_li{
  444. display: flex;
  445. justify-content: space-between;
  446. margin: 0 30rpx;
  447. >text:nth-of-type(1){
  448. font-size: 28rpx;
  449. font-family: PingFang SC-Medium, PingFang SC;
  450. font-weight: 400;
  451. color: #333333;
  452. line-height: 60rpx;
  453. }
  454. .note_li_r{
  455. display: flex;
  456. justify-content: flex-start;
  457. align-items: center;
  458. >img{
  459. width: 28rpx;
  460. height: 28rpx;
  461. margin-right: 10rpx;
  462. }
  463. font-size: 28rpx;
  464. font-family: PingFang SC-Medium, PingFang SC;
  465. font-weight: 400;
  466. color: #0183FA;
  467. line-height: 60rpx;
  468. }
  469. }
  470. }
  471. .picture{
  472. margin-left: 30rpx;
  473. width: 690rpx;
  474. height: auto;
  475. background: #FFFFFF;
  476. border-radius: 20rpx 20rpx 20rpx 20rpx;
  477. margin-top: 20rpx;
  478. .picture_b{
  479. display: flex;
  480. justify-content: flex-start;
  481. flex-wrap: wrap;
  482. padding: 40rpx 30rpx 10rpx;
  483. box-sizing: border-box;
  484. >img{
  485. width: 180rpx;
  486. height: 180rpx;
  487. border-radius: 10rpx 10rpx 10rpx 10rpx;
  488. margin-right: 38rpx;
  489. margin-bottom: 10rpx;
  490. }
  491. >img:nth-of-type(3n+3){
  492. margin-right: 0rpx;
  493. }
  494. }
  495. }
  496. .bottom_btn{
  497. width: 690rpx;
  498. height: 90rpx;
  499. border-radius: 10rpx 10rpx 10rpx 10rpx;
  500. opacity: 1;
  501. border: 1rpx solid #0183FA;
  502. font-size: 30rpx;
  503. font-family: PingFang SC-Medium, PingFang SC;
  504. font-weight: 400;
  505. color: #0183FA;
  506. line-height: 90rpx;
  507. text-align: center;
  508. background: #F5F5F5;
  509. margin: 90rpx 30rpx 30rpx;
  510. }
  511. }
  512. </style>