dangerList.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <!-- 安全检查-安全隐患 -->
  2. <template>
  3. <view class="examine">
  4. <view class="header">
  5. <view class="tabTitle_tow">
  6. <view class="tabTitle_tow_li" @tap="tabClickTow(index)" :key="index" v-for="(item,index) in tabTextTow">
  7. <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item}}</view>
  8. <view :class="{on:curTabTow==index}" class="tabTitle_tow_across"></view>
  9. </view>
  10. </view>
  11. <view class="lab_title">
  12. <picker @change="collegeChange" :value="collegeIndex" :range="collegeArray" class="lab_title_l">
  13. <view class="lab_title_l_n">
  14. <view>{{collegeArray[collegeIndex]}}</view>
  15. <img src="@/images/Version3.3.3/icon_06.png">
  16. </view>
  17. </picker>
  18. <view class="lab_title_r">
  19. <view class="lab_title_r_btn" @click="searchBtn">
  20. <img src="@/images/Version3.3.3/icon_aqjc_ss.png"/>
  21. </view>
  22. <input type="text" v-model="getData.name" placeholder="实验室/房间号" maxlength="50" placeholder-style="color: #CCCCCC;font-size:26rpx;">
  23. </view>
  24. </view>
  25. </view>
  26. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  27. <view class="list_three">
  28. <view class="list_three_li" v-for="(item,index) in dataList" :key="index">
  29. <view class="list_three_li_t">
  30. <view class="list_three_li_t_l">
  31. <img src="@/images/Version3.3.3/icon_xyxc_qx.png"/>
  32. <text></text>
  33. </view>
  34. <view class="list_three_li_t_c">实验室名称-房间号</view>
  35. <view class="list_three_li_t_c2">已逾期</view>
  36. <view class="list_three_li_t_r"></view>
  37. </view>
  38. <view class="list_three_li_m">
  39. <view class="list_three_li_m_t">计划标题计划标题计划标题计划标题计划标题计划...</view>
  40. <view class="list_three_li_m_b">
  41. <text class="blue_color">待整改</text>
  42. <text>校院巡查</text>
  43. <text>环境与测绘学院</text>
  44. </view>
  45. </view>
  46. <!-- 开始检查 -->
  47. <view class="list_three_li_b">整改期限:2023-01-01</view>
  48. </view>
  49. </view>
  50. </scroll-view>
  51. <view class="bottom_btn" @click="handleClick('subBtn')">开始检查</view>
  52. </view>
  53. </template>
  54. <script>
  55. import { config } from '@/api/request/config.js'
  56. import { } from '@/api/index.js'
  57. export default {
  58. name: "rectifyList",
  59. components: {
  60. },
  61. data() {
  62. return {
  63. pageType:0,
  64. //列表请求参数
  65. getData:{
  66. pageNum:1,
  67. pageSize:20,
  68. },
  69. tabTextTow:['全部','待检查','待复核','已完成','暂无法整改'],
  70. curTabTow:0,
  71. form:{
  72. name:'',
  73. type:'校院巡查',
  74. startTime:'',
  75. endTime:'',
  76. inspectScope:[],
  77. tiemQuickList:[],
  78. scopeIndex:'',
  79. seleteListLab:[],
  80. patrolIndex:'',
  81. seleteListMember:[],
  82. },
  83. collegeList:[{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},],
  84. collegeIndex :0,
  85. collegeArray:['选择学院','学院名称1','学院名称2','学院名称3',],
  86. dataList:[{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',}],
  87. }
  88. },
  89. onLoad(option) {
  90. if(option.form){
  91. this.form=JSON.parse(decodeURIComponent(option.form));
  92. console.log(this.form)
  93. }
  94. },
  95. onShow() {
  96. },
  97. mounted(){
  98. },
  99. methods: {
  100. //顶部tab点击
  101. tabClickTow(index) {
  102. this.curTabTow = index;
  103. },
  104. //选择学院
  105. collegeChange(e){
  106. this.collegeIndex = e.target.value;
  107. this.dataList=[];
  108. this.getList();
  109. },
  110. //实验室搜索
  111. searchBtn(){
  112. this.dataList=[];
  113. this.getList();
  114. },
  115. //滚动事件
  116. scrollGet(){
  117. let self=this;
  118. if(self.total<=self.getData.pageNum){
  119. console.log('没有更多数据!')
  120. }else{
  121. setTimeout(function(){
  122. self.getData.pageNum += 1;
  123. self.getList();
  124. },1000)
  125. }
  126. },
  127. //学院选择
  128. collegeSelete(index){
  129. this.collegeList[index].type = !this.collegeList[index].type
  130. },
  131. handleClick(doType){
  132. let self=this;
  133. if( doType=='subBtn'){//
  134. console.log(11)
  135. }
  136. },
  137. async getList(){
  138. let list=[{name:'实验室名称-房间号',type:false,id:4},{name:'实验室名称-房间号',type:false,id:5}]
  139. this.total=5;
  140. this.dataList=[...this.dataList,...list]
  141. // let self = this;
  142. // let obj = {
  143. // pageNum:this.getData.page,
  144. // pageSize:this.getData.pageSize,
  145. // };
  146. // const {data} = await groupList(obj);
  147. // if(data.code==200){
  148. // this.total=data.total;
  149. // this.dataList=[...this.dataList,...data.data]
  150. // }
  151. },
  152. }
  153. }
  154. </script>
  155. <style lang="stylus" scoped>
  156. .examine{
  157. height:100%;
  158. display flex;
  159. // padding: 0 30rpx;
  160. // box-sizing: border-box;
  161. padding-bottom: 126rpx;
  162. box-sizing: border-box;
  163. .blue_color{
  164. color: #0183FA;
  165. border: 1rpx solid #0183FA;
  166. }
  167. .red_color{
  168. color: #FF4545;
  169. border: 1rpx solid #FF4545;
  170. }
  171. .green_color{
  172. color: #1FA50D;
  173. border: 1rpx solid #1FA50D;
  174. }
  175. .orange_color{
  176. color: #FA8E1B;
  177. border: 1rpx solid #FA8E1B;
  178. }
  179. .gray_color{
  180. color: #A2A2A2;
  181. border: 1rpx solid #A2A2A2;
  182. }
  183. .info-max-box{
  184. flex: 1;
  185. overflow: scroll;
  186. padding: 220rpx 0rpx 0;
  187. box-sizing: border-box;
  188. }
  189. /* 切换按钮 */
  190. .header{
  191. width:100%;
  192. position: fixed;
  193. top: 0rpx;
  194. z-index: 100;
  195. .tabTitle_tow{
  196. width:100%;
  197. height: 100rpx;
  198. background: #fff;
  199. display flex;
  200. justify-content: flex-start;
  201. align-items: center;
  202. border-bottom: 1rpx solid #E0E0E0;
  203. .tabTitle_tow_li{
  204. position: relative;
  205. width:152rpx;
  206. text-align center;
  207. .tabTitle_tow_text{
  208. display: inline-block;
  209. font-size: 30rpx;
  210. font-family: PingFang SC;
  211. font-weight: 500;
  212. color: #333333;
  213. line-height: 46rpx;
  214. position: relative;
  215. &.on{
  216. color:#0183FA;
  217. }
  218. }
  219. .tabTitle_tow_across{
  220. width: 50rpx;
  221. height: 4rpx;
  222. background: #0183FA;
  223. border-radius: 2rpx;
  224. margin-left: 50rpx;
  225. display none;
  226. &.on{
  227. display block;
  228. }
  229. }
  230. }
  231. }
  232. .lab_title{
  233. width: 750rpx;
  234. height: 100rpx;
  235. background: #FFFFFF;
  236. padding: 20rpx 30rpx;
  237. box-sizing: border-box;
  238. display: flex;
  239. justify-content: flex-start;
  240. .lab_title_l{
  241. width: 250rpx;
  242. height: 60rpx;
  243. margin-right: 20rpx;
  244. .lab_title_l_n{
  245. width: 250rpx;
  246. height: 60rpx;
  247. border-radius: 10rpx;
  248. border: 1rpx solid #E0E0E0;
  249. display: flex;
  250. justify-content: flex-start;
  251. align-items: center;
  252. >view{
  253. flex:1;
  254. line-height:60rpx;
  255. margin-left:20rpx;
  256. color: #999999;
  257. font-size:28rpx;
  258. }
  259. >img{
  260. width: 14rpx;
  261. height: 8rpx;
  262. margin-right: 30rpx;
  263. }
  264. }
  265. }
  266. .lab_title_r{
  267. width: 420rpx;
  268. height: 60rpx;
  269. position:relative;
  270. border-radius: 10rpx;
  271. border: 1rpx solid #E0E0E0;
  272. .lab_title_r_btn{
  273. width: 60rpx;
  274. height: 60rpx
  275. position: absolute;
  276. top: 0rpx;
  277. left:0rpx;
  278. >img{
  279. width: 20rpx;
  280. height: 20rpx;
  281. position: absolute;
  282. top: 20rpx;
  283. left: 24rpx;
  284. }
  285. }
  286. >input{
  287. width: 360rpx;
  288. height: 60rpx;
  289. position: absolute;
  290. top: 0rpx;
  291. left: 60rpx;
  292. }
  293. }
  294. }
  295. }
  296. .list_three{
  297. padding: 0 30rpx;
  298. box-sizing: border-box;
  299. .list_three_li{
  300. position: relative;
  301. width: 690rpx;
  302. height: 320rpx;
  303. background: #fff;
  304. border-radius: 10rpx;
  305. overflow: hidden;
  306. margin-bottom: 20rpx;
  307. .list_three_li_t{
  308. width: 100%;
  309. position: absolute;
  310. left: 0;
  311. top: 0;
  312. .list_three_li_t_l{
  313. >img{
  314. width: 70rpx;
  315. height: 70rpx;
  316. }
  317. >text{
  318. position: absolute;
  319. left: -15rpx;
  320. top: 76rpx;
  321. display: inline-block;
  322. width: 30rpx;
  323. height: 30rpx;
  324. background: #F5F5F5;
  325. border-radius: 15rpx;
  326. }
  327. }
  328. .list_three_li_t_c{
  329. width: 630rpx;
  330. height: 110rpx;
  331. position: absolute;
  332. left: 30rpx;
  333. top: 0;
  334. font-size: 30rpx;
  335. font-family: PingFang SC-Medium, PingFang SC;
  336. font-weight: 400;
  337. color: #333333;
  338. line-height: 110rpx;
  339. border-bottom: 1rpx dashed #D8D8D8;
  340. overflow: hidden;
  341. text-overflow:ellipsis;
  342. white-space: nowrap;
  343. padding-right: 60rpx;
  344. box-sizing: border-box;
  345. }
  346. .list_three_li_t_c2{
  347. position: absolute;
  348. right: 20rpx;
  349. top: 38rpx;
  350. width: 120rpx;
  351. height: 40rpx;
  352. font-size: 28rpx;
  353. font-family: PingFang SC-Medium, PingFang SC;
  354. font-weight: 400;
  355. color: #FF5757;
  356. line-height: 40rpx;
  357. border: 1rpx solid #FF5757;
  358. border-radius: 6rpx;
  359. text-align: center;
  360. }
  361. .list_three_li_t_r{
  362. position: absolute;
  363. right:-15rpx;
  364. top: 76rpx;
  365. width: 30rpx;
  366. height: 30rpx;
  367. background:#F5F5F5;
  368. border-radius: 15rpx;
  369. }
  370. }
  371. .list_three_li_m{
  372. position: absolute;
  373. top: 110rpx;
  374. left: 0;
  375. width: 690rpx;
  376. height: 158rpx;
  377. padding-left: 30rpx;
  378. box-sizing: border-box;
  379. .list_three_li_m_t{
  380. font-size: 28rpx;
  381. font-family: PingFang SC-Medium, PingFang SC;
  382. font-weight: 400;
  383. color: #666666;
  384. line-height: 40rpx;
  385. margin-top:22rpx;
  386. }
  387. .list_three_li_m_b{
  388. margin-top:26rpx;
  389. >text:nth-of-type(1){
  390. font-size: 26rpx;
  391. font-family: PingFang SC-Medium, PingFang SC;
  392. font-weight: 400;
  393. line-height: 40rpx;
  394. border-radius: 6rpx;
  395. padding: 0 20rpx;
  396. margin-right: 14rpx;
  397. }
  398. >text:nth-of-type(2){
  399. font-size: 26rpx;
  400. font-family: PingFang SC-Medium, PingFang SC;
  401. font-weight: 400;
  402. color: #0183FA;
  403. line-height: 40rpx;
  404. padding: 0 8rpx;
  405. border-radius: 6rpx;
  406. background: rgba(1,131,250,0.1);
  407. margin-right: 24rpx;
  408. }
  409. >text:nth-of-type(3){
  410. display: inline-block;
  411. width: 380rpx;
  412. font-size: 26rpx;
  413. font-family: PingFang SC-Medium, PingFang SC;
  414. font-weight: 400;
  415. color: #333333;
  416. line-height: 26rpx;
  417. overflow: hidden;
  418. text-overflow:ellipsis;
  419. white-space: nowrap;
  420. }
  421. }
  422. }
  423. .list_three_li_b{
  424. height: 60rpx;
  425. width: 100%;
  426. position: absolute;
  427. top: 258rpx;
  428. left: 0;
  429. font-size: 28rpx;
  430. font-family: PingFang SC-Medium, PingFang SC;
  431. font-weight: 400;
  432. color: #666666;
  433. line-height: 60rpx;
  434. padding-left: 28rpx;
  435. box-sizing: border-box;
  436. }
  437. }
  438. }
  439. .bottom_btn{
  440. position: fixed;
  441. bottom: 26rpx;
  442. left: 30rpx;
  443. font-size: 30rpx;
  444. font-family: PingFang SC-Medium, PingFang SC;
  445. font-weight: 400;
  446. color: #FFFFFF;
  447. line-height: 90rpx;
  448. width: 690rpx;
  449. height: 90rpx;
  450. background: #0183FA;
  451. border-radius: 20rpx;
  452. text-align: center;
  453. }
  454. /* 指纹采集 */
  455. .shade {
  456. height: 100%;
  457. width: 100%;
  458. position: fixed;
  459. display: flex;
  460. flex-direction: column;
  461. z-index: 10;
  462. background: rgba(0, 0, 0, 0.2);
  463. .null-box {
  464. flex: 1;
  465. }
  466. .shade_n {
  467. position: absolute;
  468. bottom: 0;
  469. left: 0;
  470. width: 750rpx;
  471. height: 560rpx;
  472. background: #FFFFFF;
  473. border-radius: 20rpx 20rpx 0rpx 0rpx;
  474. .shade_n_title{
  475. height: 100rpx;
  476. padding: 0 30rpx;
  477. box-sizing: border-box;
  478. display: flex;
  479. justify-content:space-between;
  480. border-bottom: 1rpx solid #E0E0E0;
  481. >text:nth-of-type(1){
  482. font-size: 30rpx;
  483. font-family: PingFang SC-Medium, PingFang SC;
  484. font-weight: 400;
  485. color: #333333;
  486. line-height: 100rpx;
  487. }
  488. >text:nth-of-type(2){
  489. font-size: 30rpx;
  490. font-family: PingFang SC-Medium, PingFang SC;
  491. font-weight: 400;
  492. color: #0183FA;
  493. line-height: 100rpx;
  494. }
  495. }
  496. .shade_n_b{
  497. height: 460rpx;
  498. padding: 0 30rpx;
  499. box-sizing: border-box;
  500. overflow-y: auto;
  501. .shade_n_b_li{
  502. display: flex;
  503. justify-content:space-between;
  504. align-items: center;
  505. height: 80rpx;
  506. border-bottom: 1rpx solid #E0E0E0;
  507. >text{
  508. font-size: 28rpx;
  509. font-family: PingFang SC-Medium, PingFang SC;
  510. font-weight: 400;
  511. line-height: 80rpx;
  512. overflow: hidden;
  513. text-overflow:ellipsis;
  514. white-space: nowrap;
  515. }
  516. >img{
  517. width: 24rpx;
  518. height: 16rpx;
  519. margin-right: 14rpx;
  520. }
  521. }
  522. .color_A{
  523. color: #333333;
  524. }
  525. .color_B{
  526. color: #0183FA;
  527. }
  528. }
  529. }
  530. }
  531. }
  532. </style>