dangerList.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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" @click="handleClick('','detail')">
  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. <view class="list_three_li_b">整改期限:2023-01-01</view>
  47. </view>
  48. </view>
  49. </scroll-view>
  50. </view>
  51. </template>
  52. <script>
  53. import { config } from '@/api/request/config.js'
  54. import { } from '@/api/index.js'
  55. export default {
  56. name: "rectifyList",
  57. components: {
  58. },
  59. data() {
  60. return {
  61. pageType:0,
  62. //列表请求参数
  63. getData:{
  64. pageNum:1,
  65. pageSize:20,
  66. },
  67. tabTextTow:['全部','待检查','待复核','已完成','暂无法整改'],
  68. curTabTow:0,
  69. form:{
  70. name:'',
  71. type:'校院巡查',
  72. startTime:'',
  73. endTime:'',
  74. inspectScope:[],
  75. tiemQuickList:[],
  76. scopeIndex:'',
  77. seleteListLab:[],
  78. patrolIndex:'',
  79. seleteListMember:[],
  80. },
  81. collegeList:[{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},{name:'学院名称',type:false},],
  82. collegeIndex :0,
  83. collegeArray:['选择学院','学院名称1','学院名称2','学院名称3',],
  84. dataList:[{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',}],
  85. }
  86. },
  87. onLoad(option) {
  88. if(option.form){
  89. this.form=JSON.parse(decodeURIComponent(option.form));
  90. console.log(this.form)
  91. }
  92. if(option.pageType==1){
  93. uni.setNavigationBarTitle({
  94. title:'校院巡查隐患'
  95. })
  96. }else if(option.pageType==2){
  97. uni.setNavigationBarTitle({
  98. title:'实验室自查隐患'
  99. })
  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(item,doType){
  139. let self=this;
  140. if( doType=='subBtn'){//
  141. }else if(doType=='detail'){//详情
  142. uni.navigateTo({
  143. url: '/pages/pages_safetyExamine/dangerManage/dangerDetail?form='+encodeURIComponent(JSON.stringify(this.form))
  144. })
  145. }
  146. },
  147. async getList(){
  148. let list=[{name:'实验室名称-房间号',type:false,id:4},{name:'实验室名称-房间号',type:false,id:5}]
  149. this.total=5;
  150. this.dataList=[...this.dataList,...list]
  151. // let self = this;
  152. // let obj = {
  153. // pageNum:this.getData.page,
  154. // pageSize:this.getData.pageSize,
  155. // };
  156. // const {data} = await groupList(obj);
  157. // if(data.code==200){
  158. // this.total=data.total;
  159. // this.dataList=[...this.dataList,...data.data]
  160. // }
  161. },
  162. }
  163. }
  164. </script>
  165. <style lang="stylus" scoped>
  166. .examine{
  167. height:100%;
  168. display flex;
  169. // padding: 0 30rpx;
  170. // box-sizing: border-box;
  171. padding-bottom: 20rpx;
  172. box-sizing: border-box;
  173. .blue_color{
  174. color: #0183FA;
  175. border: 1rpx solid #0183FA;
  176. }
  177. .red_color{
  178. color: #FF4545;
  179. border: 1rpx solid #FF4545;
  180. }
  181. .green_color{
  182. color: #1FA50D;
  183. border: 1rpx solid #1FA50D;
  184. }
  185. .orange_color{
  186. color: #FA8E1B;
  187. border: 1rpx solid #FA8E1B;
  188. }
  189. .gray_color{
  190. color: #A2A2A2;
  191. border: 1rpx solid #A2A2A2;
  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:152rpx;
  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: 50rpx;
  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: 320rpx;
  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: 60rpx;
  435. width: 100%;
  436. position: absolute;
  437. top: 258rpx;
  438. left: 0;
  439. font-size: 28rpx;
  440. font-family: PingFang SC-Medium, PingFang SC;
  441. font-weight: 400;
  442. color: #666666;
  443. line-height: 60rpx;
  444. padding-left: 28rpx;
  445. box-sizing: border-box;
  446. }
  447. }
  448. }
  449. }
  450. </style>