examineList.vue 14 KB

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