snapshotDetail.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <!-- 随手拍详情 -->
  2. <template>
  3. <view class="snapshotDetail">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="items" v-if="inspectionItems==0">
  6. <view class="items-li">
  7. <view>实验室</view>
  8. <view>{{newData.data1}}</view>
  9. </view>
  10. <view class="items-li">
  11. <view>学院单位</view>
  12. <view>{{newData.data2}}</view>
  13. </view>
  14. <view class="items-t">
  15. <view class="items-t-r">{{newData.data3}}</view>
  16. </view>
  17. <view class="items-b">< {{newData.data4}} <</view>
  18. </view>
  19. <view class="items-number" v-if="inspectionItems==0">此检查项在当前实验室累计出现<text>{{newData.data5}}</text>次隐患</view>
  20. <view class="list">
  21. <view class="list-li" v-if="inspectionItems==1">
  22. <view>实验室</view>
  23. <view>{{newData.data1}}</view>
  24. </view>
  25. <view class="list-li" v-if="inspectionItems==1">
  26. <view>学院单位</view>
  27. <view>{{newData.data2}}</view>
  28. </view>
  29. <view class="list-li" v-if="inspectionItems==0">
  30. <view>检查要点</view>
  31. <view>
  32. <img src="@/pages_safetyCheck/images/icon_06.png">
  33. </view>
  34. </view>
  35. <view v-if="inspectionItems==0" class="hidden-content">{{newData.data6}}
  36. </view>
  37. <view class="list-li">
  38. <view>检查隐患</view>
  39. </view>
  40. <view class="hidden-content">{{newData.data7}}
  41. </view>
  42. <view class="photo">
  43. <img src="@/pages_safetyCheck/images/img_ssp_pz@1x.png">
  44. </view>
  45. <view class="list-li">
  46. <view>隐患整改</view>
  47. <view :id="newData.rectificationStatus==0?'fontColor-A':(newData.rectificationStatus==1?'fontColor-B':'fontColor-C')">
  48. {{newData.rectificationStatus==0?'待整改':(newData.rectificationStatus==1?'已整改':'暂无法整改')}}
  49. <img src="@/pages_safetyCheck/images/icon_06.png">
  50. </view>
  51. </view>
  52. <view class="hidden-content">{{newData.data7}}
  53. </view>
  54. <view class="photo">
  55. <img src="@/pages_safetyCheck/images/img_ssp_pz@1x.png">
  56. </view>
  57. <view class="list-li">
  58. <view>姓名:</view>
  59. <view>{{newData.data8}}</view>
  60. </view>
  61. <view class="list-li">
  62. <view>时间:</view>
  63. <view>{{newData.data9}}</view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. <view class="sub-btn">整改</view>
  68. </view>
  69. </template>
  70. <script>
  71. import {
  72. config
  73. } from '@/api/request/config.js'
  74. export default {
  75. name: "snapshotDetail",
  76. components: {
  77. },
  78. data() {
  79. return {
  80. baseUrl: config.base_url,
  81. inspectionItems:0,//0有检查项 1无检查项
  82. newData: {
  83. data1:'实验室名称(房间号)',
  84. data2:'学院单位名称',
  85. data3:'1.1.1 检查项检查项检查项检查',
  86. data4:'1.1 检查项检查项检查项检查项检查项检查项',
  87. data5:'19',
  88. data6:'(1)有学校相关会议(校务会议、党委常委会会议等)纪要,内容包含实验室安全工作。',
  89. data7:'内容内容内容内容内容内容内容内容内容内容内容内内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容',
  90. data8:'李瑶瑶',
  91. data9:'2024-01-01',
  92. rectificationStatus:0,//整改状态 0待整改 1暂无法整改 2已整改
  93. },
  94. }
  95. },
  96. onLoad(option) {},
  97. onShow() {
  98. },
  99. mounted() {
  100. },
  101. methods: {
  102. //滚动事件
  103. scrollGet() {},
  104. }
  105. }
  106. </script>
  107. <style lang="stylus" scoped>
  108. .snapshotDetail {
  109. height: 100%;
  110. display flex;
  111. box-sizing: border-box;
  112. padding-bottom: 160rpx;
  113. box-sizing: border-box;
  114. #bgColor-A {
  115. color: #FFD400;
  116. }
  117. #bgColor-B {
  118. color: #FF8C00;
  119. }
  120. #bgColor-C {
  121. color: #E11608;
  122. }
  123. #fontColor-A {
  124. color: #0183FA;
  125. }
  126. #fontColor-B {
  127. color: #FF8C00;
  128. }
  129. #fontColor-C {
  130. color: #16B531;
  131. }
  132. .items {
  133. width: 690rpx;
  134. min-height: 165rpx;
  135. background: #FFFFFF;
  136. border-radius: 20rpx 20rpx 20rpx 20rpx;
  137. margin: 20rpx 0 0 30rpx;
  138. .items-li{
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: center;
  142. padding: 0 30rpx;
  143. box-sizing: border-box;
  144. border-bottom: 1rpx solid #E0E0E0;
  145. >view:nth-of-type(1) {
  146. font-size: 30rpx;
  147. color: #333333;
  148. line-height: 80rpx;
  149. text-align: left;
  150. }
  151. >view:nth-of-type(2) {
  152. font-size: 28rpx;
  153. color: #666666;
  154. line-height: 80rpx;
  155. text-align: left;
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. }
  160. }
  161. .items-t {
  162. border-bottom: 1rpx solid #E0E0E0;
  163. height: 80rpx;
  164. display: flex;
  165. justify-content: flex-start;
  166. align-items: center;
  167. padding: 0 30rpx;
  168. box-sizing: border-box;
  169. .items-t-l {
  170. width: 175rpx;
  171. height: 50rpx;
  172. background: #E11608;
  173. border-radius: 50rpx 50rpx 50rpx 50rpx;
  174. font-size: 30rpx;
  175. color: #FFFFFF;
  176. line-height: 50rpx;
  177. text-align: center;
  178. margin-right: 14rpx;
  179. }
  180. .items-t-r {
  181. font-size: 30rpx;
  182. color: #333333;
  183. line-height: 42rpx;
  184. text-align: left;
  185. }
  186. }
  187. .items-b {
  188. padding: 0 30rpx;
  189. box-sizing: border-box;
  190. height: 80rpx;
  191. font-size: 28rpx;
  192. color: #666666;
  193. line-height: 80rpx;
  194. text-align: left;
  195. }
  196. }
  197. .items-number {
  198. font-size: 24rpx;
  199. color: #3D3D3D;
  200. line-height: 34rpx;
  201. text-align: right;
  202. margin: 20rpx 60rpx 0 0;
  203. >text {
  204. font-size: 24rpx;
  205. color: #FF0000;
  206. line-height: 34rpx;
  207. text-align: right;
  208. }
  209. }
  210. .list {
  211. width: 690rpx;
  212. margin: 20rpx 30rpx 0;
  213. background: #FFFFFF;
  214. border-radius: 20rpx 20rpx 20rpx 20rpx;
  215. .list-li {
  216. display: flex;
  217. justify-content: space-between;
  218. align-items: center;
  219. padding: 0 30rpx;
  220. box-sizing: border-box;
  221. border-bottom: 1rpx solid #E0E0E0;
  222. >view:nth-of-type(1) {
  223. font-size: 30rpx;
  224. color: #333333;
  225. line-height: 80rpx;
  226. text-align: left;
  227. }
  228. >view:nth-of-type(2) {
  229. font-size: 28rpx;
  230. color: #666666;
  231. line-height: 80rpx;
  232. text-align: left;
  233. display: flex;
  234. justify-content: space-between;
  235. align-items: center;
  236. >img {
  237. width: 24rpx;
  238. height: 12rpx;
  239. margin-left: 10rpx;
  240. }
  241. }
  242. }
  243. .hidden-content {
  244. width: 630rpx;
  245. min-height: 120rpx;
  246. background: #F5F5F5;
  247. border-radius: 20rpx 20rpx 20rpx 20rpx;
  248. margin: 20rpx 30rpx 0;
  249. padding: 20rpx;
  250. box-sizing: border-box;
  251. font-size: 28rpx;
  252. color: #666666;
  253. line-height: 39rpx;
  254. text-align: left;
  255. }
  256. .photo {
  257. display: flex;
  258. justify-content: flex-start;
  259. flex-wrap: wrap;
  260. margin-top: 20rpx;
  261. padding: 0 30rpx;
  262. box-sizing: border-box;
  263. >img {
  264. width: 150rpx;
  265. height: 150rpx;
  266. border-radius: 10rpx 10rpx 10rpx 10rpx;
  267. margin: 0 10rpx 10rpx 0;
  268. }
  269. }
  270. .list-li:last-of-type {
  271. border: none;
  272. }
  273. }
  274. }
  275. .sub-btn{
  276. width: 686rpx;
  277. height: 100rpx;
  278. background: #0183FA;
  279. border-radius: 50rpx 50rpx 50rpx 50rpx;
  280. position: fixed;
  281. left: 30rpx;
  282. bottom: 30rpx;
  283. font-weight: 400;
  284. font-size: 30rpx;
  285. color: #FFFFFF;
  286. line-height: 100rpx;
  287. text-align: center;
  288. }
  289. </style>