earlyWarningDetail.vue 12 KB

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