safetyExamineWorkbench.vue 8.6 KB

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