examineList.vue 14 KB

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