patrolPlanList.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <!-- 安全检查-发起巡查计划 -->
  2. <template>
  3. <view class="examine">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view>
  6. <view class="tabTitle">
  7. <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
  8. <view :class="{on:curTab==index}" class="tabTitle_text">{{item}}</view>
  9. <view :class="{on:curTab==index}" class="tabTitle_across"></view>
  10. </view>
  11. </view>
  12. <view class="search">
  13. <view class="search_btn">
  14. <img src="@/images/Version3.3.3/icon_aqjc_ss.png"/>
  15. </view>
  16. <input type="text" v-model="name" placeholder="计划标题" maxlength="50" placeholder-style="color: #CCCCCC;font-size:26rpx;">
  17. </view>
  18. <view class="list">
  19. <view class="list_li" v-for="(item,index) in dataList" :key="index">
  20. <view class="list_li_t">
  21. <view class="list_li_t_l">
  22. <img src="@/images/Version3.3.3/icon_xyxc_qx.png"/>
  23. <text></text>
  24. </view>
  25. <view class="list_li_t_c">{{item.name}}</view>
  26. <view class="list_li_t_c2">已逾期</view>
  27. <view class="list_li_t_r"></view>
  28. </view>
  29. <view class="list_li_m">
  30. <view class="list_li_m_t">计划周期:2023-03-12至2023-03-15</view>
  31. <view class="list_li_m_b">
  32. <text class="blue_color">未开始</text>
  33. <text>校院巡查</text>
  34. </view>
  35. </view>
  36. <view class="list_li_b">
  37. <img src="@/images/Version3.3.3/icon_djcsys.png"/>
  38. <text>待检查实验室:</text>
  39. <text>22间</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </scroll-view>
  45. <view class="bottom_btn" @click="handleClick('subBtn')">发起巡查计划</view>
  46. </view>
  47. </template>
  48. <script>
  49. import { config } from '@/api/request/config.js'
  50. import { } from '@/api/index.js'
  51. export default {
  52. name: "rectifyList",
  53. components: {
  54. },
  55. data() {
  56. return {
  57. pageType:0,
  58. //列表请求参数
  59. getData:{
  60. pageNum:1,
  61. pageSize:20,
  62. },
  63. total:0,
  64. tabText:['全部','未开始','进行中','已结束'],
  65. curTab:0,
  66. dataList:[{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',}],
  67. }
  68. },
  69. onLoad() {
  70. },
  71. onShow() {
  72. this.getList();
  73. },
  74. mounted(){
  75. },
  76. methods: {
  77. //滚动事件
  78. scrollGet(){
  79. let self=this;
  80. if(self.total<=self.getData.pageNum){
  81. console.log('没有更多数据!')
  82. }else{
  83. setTimeout(function(){
  84. self.getData.pageNum += 1;
  85. self.getList();
  86. },1000)
  87. }
  88. },
  89. //顶部tab点击
  90. tabClick(index) {
  91. this.curTab = index;
  92. },
  93. handleClick(doType){
  94. let self=this;
  95. if( doType=='subBtn'){//发起巡查计划
  96. console.log(11)
  97. }
  98. },
  99. async getList(){
  100. console.log('getList')
  101. let list=[{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',},{name:'计划标题计划标题计划标题计划标题',}]
  102. this.total=5;
  103. this.dataList=[...this.dataList,...list]
  104. // let self = this;
  105. // let obj = {
  106. // pageNum:this.getData.page,
  107. // pageSize:this.getData.pageSize,
  108. // };
  109. // const {data} = await groupList(obj);
  110. // if(data.code==200){
  111. // this.total=data.total;
  112. // this.dataList=[...this.dataList,...data.data]
  113. // }
  114. }
  115. }
  116. }
  117. </script>
  118. <style lang="stylus" scoped>
  119. .examine{
  120. height:100%;
  121. display flex;
  122. .info-max-box{
  123. flex: 1;
  124. overflow: scroll;
  125. padding-bottom: 128rpx;
  126. padding-top: 100rpx;
  127. }
  128. .blue_color{
  129. color: #0183FA;
  130. border: 1rpx solid #0183FA;
  131. }
  132. .red_color{
  133. color: #FF4545;
  134. border: 1rpx solid #FF4545;
  135. }
  136. .green_color{
  137. color: #1FA50D;
  138. border: 1rpx solid #1FA50D;
  139. }
  140. /* 切换按钮 */
  141. .tabTitle{
  142. width:100%;
  143. height: 100rpx;
  144. background: #fff;
  145. display flex;
  146. justify-content: flex-start;
  147. align-items: center;
  148. position: fixed;
  149. top: 0;
  150. z-index: 100;
  151. .tabTitle_li{
  152. position: relative;
  153. width:146rpx;
  154. text-align center;
  155. .tabTitle_text{
  156. display: inline-block;
  157. font-size: 30rpx;
  158. font-family: PingFang SC;
  159. font-weight: 500;
  160. color: #333333;
  161. line-height: 46rpx;
  162. position: relative;
  163. &.on{
  164. color:#0183FA;
  165. }
  166. }
  167. .tabTitle_across{
  168. width: 50rpx;
  169. height: 4rpx;
  170. background: #0183FA;
  171. border-radius: 2rpx;
  172. margin-left: 46rpx;
  173. display none;
  174. &.on{
  175. display block;
  176. }
  177. }
  178. }
  179. }
  180. .search{
  181. width: 750rpx;
  182. height: 100rpx;
  183. background: #FFFFFF;
  184. padding: 20rpx 30rpx;
  185. box-sizing: border-box;
  186. position: relative;
  187. margin-top: 20rpx;
  188. .search_btn{
  189. width: 70rpx;
  190. height: 60rpx;
  191. position: absolute;
  192. top: 20rpx;
  193. left: 30rpx;
  194. >img{
  195. width: 20rpx;
  196. height: 20rpx;
  197. position: absolute;
  198. top: 20rpx;
  199. left: 24rpx;
  200. }
  201. }
  202. >input{
  203. position: absolute;
  204. top: 20rpx;
  205. left: 30rpx;
  206. width: 690rpx;
  207. height: 60rpx;
  208. border-radius: 50rpx;
  209. opacity: 1;
  210. border: 1rpx solid #E0E0E0;
  211. padding-left: 74rpx;
  212. box-sizing: border-box;
  213. }
  214. }
  215. .list{
  216. padding: 0 30rpx;
  217. box-sizing: border-box;
  218. margin-top: 20rpx;
  219. .list_li{
  220. position: relative;
  221. width: 690rpx;
  222. height: 360rpx;
  223. background: #fff;
  224. border-radius: 10rpx;
  225. overflow: hidden;
  226. margin-bottom: 20rpx;
  227. .list_li_t{
  228. width: 100%;
  229. position: absolute;
  230. left: 0;
  231. top: 0;
  232. .list_li_t_l{
  233. >img{
  234. width: 70rpx;
  235. height: 70rpx;
  236. }
  237. >text{
  238. position: absolute;
  239. left: -15rpx;
  240. top: 76rpx;
  241. display: inline-block;
  242. width: 30rpx;
  243. height: 30rpx;
  244. background: #F5F5F5;
  245. border-radius: 15rpx;
  246. }
  247. }
  248. .list_li_t_c{
  249. width: 630rpx;
  250. height: 110rpx;
  251. position: absolute;
  252. left: 30rpx;
  253. top: 0;
  254. font-size: 30rpx;
  255. font-family: PingFang SC-Medium, PingFang SC;
  256. font-weight: 400;
  257. color: #333333;
  258. line-height: 110rpx;
  259. border-bottom: 1rpx dashed #D8D8D8;
  260. overflow: hidden;
  261. text-overflow:ellipsis;
  262. white-space: nowrap;
  263. padding-right: 60rpx;
  264. box-sizing: border-box;
  265. }
  266. .list_li_t_c2{
  267. position: absolute;
  268. right: 20rpx;
  269. top: 38rpx;
  270. width: 120rpx;
  271. height: 40rpx;
  272. font-size: 28rpx;
  273. font-family: PingFang SC-Medium, PingFang SC;
  274. font-weight: 400;
  275. color: #FF5757;
  276. line-height: 40rpx;
  277. border: 1rpx solid #FF5757;
  278. border-radius: 6rpx;
  279. text-align: center;
  280. }
  281. .list_li_t_r{
  282. position: absolute;
  283. right:-15rpx;
  284. top: 76rpx;
  285. width: 30rpx;
  286. height: 30rpx;
  287. background:#F5F5F5;
  288. border-radius: 15rpx;
  289. }
  290. }
  291. .list_li_m{
  292. position: absolute;
  293. top: 110rpx;
  294. left: 0;
  295. width: 690rpx;
  296. height: 168rpx;
  297. border-bottom: 1rpx solid #E0E0E0;
  298. padding-left: 30rpx;
  299. box-sizing: border-box;
  300. .list_li_m_t{
  301. font-size: 28rpx;
  302. font-family: PingFang SC-Medium, PingFang SC;
  303. font-weight: 400;
  304. color: #666666;
  305. line-height: 40rpx;
  306. margin-top:22rpx;
  307. }
  308. .list_li_m_b{
  309. margin-top:26rpx;
  310. >text:nth-of-type(1){
  311. font-size: 26rpx;
  312. font-family: PingFang SC-Medium, PingFang SC;
  313. font-weight: 400;
  314. line-height: 40rpx;
  315. border-radius: 6rpx;
  316. padding: 0 20rpx;
  317. margin-right: 14rpx;
  318. }
  319. >text:nth-of-type(2){
  320. font-size: 26rpx;
  321. font-family: PingFang SC-Medium, PingFang SC;
  322. font-weight: 400;
  323. color: #0183FA;
  324. line-height: 40rpx;
  325. padding: 0 8rpx;
  326. border-radius: 6rpx;
  327. background: rgba(1,131,250,0.1);
  328. }
  329. }
  330. }
  331. .list_li_b{
  332. height: 80rpx;
  333. position: absolute;
  334. top: 278rpx;
  335. left: 0;
  336. display: flex;
  337. justify-content: flex-start;
  338. align-items: center;
  339. >img{
  340. width: 24rpx;
  341. height: 30rpx;
  342. margin-right: 26rpx;
  343. margin-left: 30rpx;
  344. }
  345. >text:nth-of-type(1){
  346. font-size: 28rpx;
  347. font-family: PingFang SC-Medium, PingFang SC;
  348. font-weight: 400;
  349. color: #333333;
  350. line-height: 28rpx;
  351. }
  352. >text:nth-of-type(2){
  353. font-size: 28rpx;
  354. font-family: PingFang SC-Medium, PingFang SC;
  355. font-weight: 400;
  356. color: #0183FA;
  357. line-height: 28rpx;
  358. }
  359. }
  360. }
  361. }
  362. .bottom_btn{
  363. position: fixed;
  364. bottom: 26rpx;
  365. left: 30rpx;
  366. font-size: 30rpx;
  367. font-family: PingFang SC-Medium, PingFang SC;
  368. font-weight: 400;
  369. color: #FFFFFF;
  370. line-height: 90rpx;
  371. width: 690rpx;
  372. height: 90rpx;
  373. background: #0183FA;
  374. border-radius: 20rpx;
  375. text-align: center;
  376. }
  377. }
  378. </style>