sceneInspect.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <!-- 现场检查 -->
  2. <template>
  3. <view class="planDetail">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="header">
  6. <img class="header-bg" src="@/pages_safetyCheck/images/img_banner@1x.png">
  7. <view class="tabTitle">
  8. <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
  9. <view class="tabTitle_text">
  10. <img :src="item.img">
  11. <view
  12. :id="curTab==index && curTab==0?'fontColor-A':(curTab==index && curTab==1?'fontColor-B':'')">
  13. {{item.name}}
  14. </view>
  15. <view>{{item.title}}</view>
  16. </view>
  17. <view class="line"></view>
  18. <view :class="{on:curTab==index}" class="tabTitle_across">
  19. <img src="@/pages_safetyCheck/images/img_xyzc_bg@1x.png">
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="list">
  25. <view class="list-li" @click="planClick(item)" v-for="(item,index) in dataList">
  26. <view :id="item.status==0?'bgColor-A':'bgColor-B'">{{item.status==0?'全部检查':'专项检查'}}</view>
  27. <view>{{item.title}}</view>
  28. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  29. </view>
  30. </view>
  31. </scroll-view>
  32. <view class="shade" v-if="dialogVisible">
  33. <view class="null-box" @click="dialogClose()"></view>
  34. <view class="shade_n">
  35. <view class="title">
  36. <view>检查批次</view>
  37. <img src="@/pages_safetyCheck/images/icon_06.png">
  38. </view>
  39. <view class="batch">
  40. <view class="batch-li" @click="batchClick(item)" v-for="(item,index) in batchList">
  41. <view class="batch-li-l">
  42. <text>{{item.title}}</text>
  43. <text>开始检查日期:{{item.time}}</text>
  44. </view>
  45. <view class="batch-li-r">检查进度{{item.schedule}}
  46. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import {
  56. config
  57. } from '@/api/request/config.js'
  58. import {} from '@/pages/api/index.js'
  59. export default {
  60. name: "planDetail",
  61. components: {
  62. },
  63. data() {
  64. return {
  65. baseUrl: config.base_url,
  66. pageType: 0,
  67. tabText: [{
  68. name: '校级检查',
  69. title: '学校检查计划',
  70. img: require('@/pages_safetyCheck/images/icon_aqjc_xjjc@1x.png'),
  71. },
  72. {
  73. name: '学院自查',
  74. title: '学院自查计划',
  75. img: require('@/pages_safetyCheck/images/icon_aqjc_xxzc@1x.png'),
  76. },
  77. {
  78. name: '现场检查',
  79. title: '检查隐患草稿',
  80. img: require('@/pages_safetyCheck/images/icon_aqjc_xcjc@1x.png'),
  81. },
  82. {
  83. name: '随手拍',
  84. title: '隐患上报整改',
  85. img: require('@/pages_safetyCheck/images/icon_aqjc_ssp@1x.png'),
  86. },
  87. ],
  88. curTab: 0,
  89. dataList: [{
  90. status: 0,
  91. title: '计划标题计划标题计划标题计划标题计划标题计划标题计划标题计划标题',
  92. },
  93. {
  94. status: 1,
  95. title: '计划标题计划标题计划标题计划标题',
  96. }
  97. ],
  98. dialogVisible: false,
  99. batchList:[
  100. {
  101. title:'第3次检查',
  102. time:'2024-04-01',
  103. schedule:'0%',
  104. },
  105. {
  106. title:'第3次检查',
  107. time:'2024-04-01',
  108. schedule:'0%',
  109. },
  110. {
  111. title:'第3次检查',
  112. time:'2024-04-01',
  113. schedule:'0%',
  114. },
  115. {
  116. title:'第3次检查',
  117. time:'2024-04-01',
  118. schedule:'0%',
  119. },
  120. {
  121. title:'第3次检查',
  122. time:'2024-04-01',
  123. schedule:'0%',
  124. },
  125. ],
  126. }
  127. },
  128. onLoad(option) {
  129. },
  130. onShow() {
  131. },
  132. mounted() {
  133. },
  134. methods: {
  135. //滚动事件
  136. scrollGet() {},
  137. //顶部tab点击
  138. tabClick(index) {
  139. this.curTab = index;
  140. if(index==0){
  141. //校级检查
  142. }else if(index==1){
  143. //学院自查
  144. }else if(index==2){
  145. //现场检查
  146. }else if(index==3){
  147. //随手拍
  148. uni.navigateTo({
  149. url: "/pages_safetyCheck/views/snapshotManage/snapshotList",
  150. });
  151. }
  152. },
  153. //检查批次点击
  154. batchClick(row){
  155. let infoData=row;
  156. infoData.pageType=this.curTab;
  157. uni.navigateTo({
  158. url: '/pages_safetyCheck/views/inspectManage/inspectList?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  159. });
  160. },
  161. planClick(row){
  162. //如果只有1个检查批次不弹窗
  163. this.dialogVisible = true;
  164. },
  165. dialogClose() {
  166. this.dialogVisible = false;
  167. },
  168. }
  169. }
  170. </script>
  171. <style lang="stylus" scoped>
  172. .planDetail {
  173. height: 100%;
  174. display flex;
  175. box-sizing: border-box;
  176. #fontColor-A {
  177. color: #0040C1;
  178. }
  179. #fontColor-B {
  180. color: #009519;
  181. }
  182. #bgColor-A {
  183. color: #0183FA;
  184. background: rgba(1, 131, 250, 0.2);
  185. }
  186. #bgColor-B {
  187. color: #16B531;
  188. background: rgba(22, 181, 49, 0.2);
  189. }
  190. .header {
  191. width: 100%;
  192. position: fixed;
  193. top: 0rpx;
  194. z-index: 100;
  195. .header-bg{
  196. width: 750rpx;
  197. height: 336rpx;
  198. position: absolute;
  199. }
  200. .tabTitle {
  201. width: 690rpx;
  202. height: 250rpx;
  203. background: #FFFFFF;
  204. border-radius: 20rpx 20rpx 20rpx 20rpx;
  205. display flex;
  206. justify-content: flex-start;
  207. align-items: center;
  208. position: absolute;
  209. left: 30rpx;
  210. top: 208rpx;
  211. .tabTitle_li {
  212. height: 250rpx;
  213. flex: 1;
  214. position: relative;
  215. text-align center;
  216. .line{
  217. width: 2rpx;
  218. height: 30rpx;
  219. background: #D8D8D8;
  220. border-radius: 0rpx 0rpx 0rpx 0rpx;
  221. position: absolute;
  222. top: 40%;
  223. }
  224. .tabTitle_text {
  225. display: flex;
  226. justify-content: center;
  227. flex-direction: column;
  228. align-items: center;
  229. >img {
  230. width: 80rpx;
  231. height: 80rpx;
  232. margin-top: 48rpx;
  233. }
  234. >view:nth-of-type(1) {
  235. font-size: 28rpx;
  236. color: #333333;
  237. line-height: 40rpx;
  238. text-align: left;
  239. margin-top: 8rpx;
  240. }
  241. >view:nth-of-type(2) {
  242. font-size: 22rpx;
  243. color: #666666;
  244. line-height: 30rpx;
  245. text-align: left;
  246. margin-top: 6rpx;
  247. }
  248. position: relative;
  249. &.on {}
  250. }
  251. .tabTitle_across {
  252. /* width: 50rpx;
  253. height: 4rpx;
  254. background: #0183FA;
  255. border-radius: 2rpx; */
  256. margin-left: 38%;
  257. margin-top: 37rpx;
  258. display none;
  259. >img {
  260. width: 40rpx;
  261. height: 26rpx;
  262. }
  263. &.on {
  264. display block;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. .list {
  271. margin-top: 482rpx;
  272. width: 690rpx;
  273. margin-left: 30rpx;
  274. background: #FFFFFF;
  275. border-radius: 20rpx 20rpx 20rpx 20rpx;
  276. .list-li {
  277. border-bottom: 1rpx dashed #E0E0E0;
  278. height: 80rpx;
  279. display: flex;
  280. justify-content: flex-start;
  281. align-items: center;
  282. padding: 0 30rpx;
  283. box-sizing: border-box;
  284. >view:nth-of-type(1) {
  285. width: 120rpx;
  286. height: 40rpx;
  287. background: rgba(1, 131, 250, 0.2);
  288. border-radius: 10rpx 10rpx 10rpx 10rpx;
  289. font-size: 24rpx;
  290. color: #0183FA;
  291. line-height: 40rpx;
  292. text-align: center;
  293. }
  294. >view:nth-of-type(2) {
  295. flex: 1;
  296. font-size: 28rpx;
  297. color: #333333;
  298. line-height: 39rpx;
  299. text-align: left;
  300. margin: 0 52rpx 0 20rpx;
  301. overflow: hidden;
  302. text-overflow: ellipsis;
  303. white-space: nowrap;
  304. }
  305. >img {
  306. width: 24rpx;
  307. height: 24rpx;
  308. }
  309. }
  310. }
  311. .shade {
  312. height: 100%;
  313. width: 100%;
  314. position: fixed;
  315. display: flex;
  316. flex-direction: column;
  317. z-index: 200;
  318. background: rgba(0, 0, 0, 0.2);
  319. .null-box {
  320. flex: 1;
  321. }
  322. .shade_n {
  323. position: absolute;
  324. bottom: 0;
  325. left: 0;
  326. width: 750rpx;
  327. height: 466rpx;
  328. background: #FFFFFF;
  329. border-radius: 20rpx 20rpx 0rpx 0rpx;
  330. overflow-y: auto;
  331. .title {
  332. display: flex;
  333. justify-content: space-between;
  334. align-items: center;
  335. padding: 0 50rpx 0 284rpx;
  336. box-sizing: border-box;
  337. border-bottom: 1rpx solid #E0E0E0;
  338. >view {
  339. font-size: 30rpx;
  340. color: #3D3D3D;
  341. line-height: 90rpx;
  342. text-align: left;
  343. }
  344. >img {
  345. width: 24rpx;
  346. height: 12rpx;
  347. }
  348. }
  349. .batch{
  350. padding: 0 30rpx;
  351. box-sizing: border-box;
  352. .batch-li{
  353. display: flex;
  354. justify-content: space-between;
  355. align-items: center;
  356. border-bottom: 1rpx solid #E0E0E0;
  357. padding: 20rpx 0 16rpx 0rpx;
  358. box-sizing: border-box;
  359. .batch-li-l{
  360. >text:nth-of-type(1){
  361. display: block;
  362. font-size: 30rpx;
  363. color: #333333;
  364. line-height: 42rpx;
  365. text-align: left;
  366. }
  367. >text:nth-of-type(2){
  368. display: block;
  369. font-size: 28rpx;
  370. color: #666666;
  371. line-height: 39rpx;
  372. text-align: left;
  373. margin-top: 6rpx;
  374. }
  375. }
  376. .batch-li-r{
  377. font-size: 28rpx;
  378. color: #666666;
  379. line-height: 39rpx;
  380. text-align: left;
  381. display: flex;
  382. justify-content: flex-start;
  383. align-items: center;
  384. >img{
  385. width: 24rpx;
  386. height: 24rpx;
  387. margin-left: 9rpx;
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. </style>