inforSign.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <!-- 安全信息牌 -->
  2. <template>
  3. <view class="examine">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="header">
  6. <view class="header_l">
  7. <text>{{itemData.typeName}}</text>
  8. <text></text>
  9. <text>{{itemData.levelName}}</text>
  10. </view>
  11. <view class="header_r">{{itemData.deptName}}-{{itemData.room}}</view>
  12. </view>
  13. <view class="basics">
  14. <view class="grade">
  15. <text>责任单位:</text>
  16. <text>{{itemData.deptName}}</text>
  17. </view>
  18. <view class="grade">
  19. <text>实验室负责人:</text>
  20. <text >{{itemData.adminName}}-{{itemData.adminPhone?itemData.adminPhone:'未填写'}}</text>
  21. </view>
  22. <view class="duty">
  23. <view class="duty_l">安全责任人:</view>
  24. <view class="duty_r">
  25. <text>{{itemData.safeUserNameAdminPhone}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="category" v-if="item.privateList.length>0 && item.classifyType==1" v-for="(item,index) in itemData.classifyList">
  30. <view class="title" :style="'background:'+item.showColour">{{item.classifyName}}</view>
  31. <view class="category_li" v-for="(item2,index2) in item.privateList" :key="index2"><text></text><text>{{item2.infoName}}</text></view>
  32. </view>
  33. <view class="category" v-if="item.privateList.length>0 && item.classifyType==2" v-for="(item,index) in itemData.classifyList">
  34. <view class="title">{{item.classifyName}}</view>
  35. <view class="identify_img" @click="lockImg(item.privateList)">
  36. <img :src="baseUrl+item2.infoContent" v-for="(item2,index2) in item.privateList" :key="index2"/>
  37. </view>
  38. </view>
  39. <view class="category" v-if="item.privateList.length>0 && item.isSpecial==2" v-for="(item,index) in itemData.classifyList">
  40. <view class="title">{{item.classifyName}}</view>
  41. <view class="telephone_li" v-for="(item3,index3) in item.privateList" :key="index3">{{item3.infoContent}}</view>
  42. </view>
  43. </scroll-view>
  44. <view class="bottom_btn" @click="handleClick('start')">开展检查</view>
  45. </view>
  46. </template>
  47. <script>
  48. import { config } from '@/api/request/config.js'
  49. import { getSelectInfoByRoom,getInforSign} from '@/api/index.js'
  50. export default {
  51. name: "rectifyList",
  52. components: {
  53. },
  54. data() {
  55. return {
  56. baseUrl:config.base_url,
  57. pageType:2,
  58. id:'',
  59. itemData:{},
  60. }
  61. },
  62. onLoad(option) {
  63. if(option.subId){
  64. this.id=option.subId;
  65. }
  66. },
  67. onShow() {
  68. },
  69. mounted(){
  70. this.getInforSign()
  71. },
  72. methods: {
  73. //滚动事件
  74. scrollGet(){},
  75. //查询详情
  76. async getInforSign(){
  77. let self = this;
  78. let id = uni.getStorageSync('saoCodeId');
  79. const {data} = await getInforSign(id);
  80. if(data.code == 200){
  81. this.itemData = data.data;
  82. console.log(this.itemData)
  83. }
  84. },
  85. //查看图片
  86. lockImg(list){
  87. console.log(list)
  88. if(!list[0]){
  89. return
  90. }
  91. let urlList=[];
  92. for(let i=0;i<list.length;i++){
  93. urlList.push(this.baseUrl+list[i].infoContent)
  94. }
  95. wx.previewImage({
  96. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  97. current: '', // 当前显示图片的http链接,默认是第一个
  98. success: function(res) {},
  99. fail: function(res) {},
  100. complete: function(res) {},
  101. })
  102. },
  103. handleClick(doType){
  104. let self=this;
  105. if(doType=='start'){//提交
  106. uni.navigateTo({
  107. url: '/pages/pages_safetyExamine/examineManage/examineAdd?id='+ uni.getStorageSync('saoCodeId')
  108. });
  109. }
  110. },
  111. }
  112. }
  113. </script>
  114. <style lang="stylus" scoped>
  115. .examine{
  116. height:100%;
  117. display flex;
  118. box-sizing: border-box;
  119. .info-max-box{
  120. flex: 1;
  121. overflow: scroll;
  122. padding-bottom: 128rpx;
  123. box-sizing: border-box;
  124. }
  125. .header{
  126. width: 690rpx;
  127. height: 100rpx;
  128. background: #FFFFFF;
  129. border-radius: 20rpx 20rpx 20rpx 20rpx;
  130. margin: 20rpx 30rpx;
  131. padding: 0 30rpx;
  132. box-sizing: border-box;
  133. display: flex;
  134. justify-content: flex-start;
  135. align-items: center;
  136. .header_l{
  137. width: auto;
  138. height: 60rpx;
  139. background: #FFFFFF;
  140. border-radius: 50rpx 50rpx 50rpx 50rpx;
  141. opacity: 1;
  142. border: 1rpx solid #DF4848;
  143. padding: 0 20rpx;
  144. box-sizing: border-box;
  145. display: flex;
  146. justify-content: flex-start;
  147. align-items: center;
  148. margin-right: 26rpx;
  149. >text:nth-of-type(1){
  150. font-size: 24rpx;
  151. font-family: PingFang SC-Medium, PingFang SC;
  152. font-weight: 400;
  153. color: #DF4848;
  154. line-height: 60rpx;
  155. }
  156. >text:nth-of-type(2){
  157. display: inline-block;
  158. width: 0rpx;
  159. height: 19rpx;
  160. opacity: 1;
  161. border: 1rpx solid #A2A2A2;
  162. margin: 0 10rpx;
  163. }
  164. >text:nth-of-type(3){
  165. font-size: 24rpx;
  166. font-family: PingFang SC-Medium, PingFang SC;
  167. font-weight: 400;
  168. color: #DF4848;
  169. line-height: 60rpx;
  170. }
  171. }
  172. .header_r{
  173. font-size: 30rpx;
  174. font-family: PingFang SC-Medium, PingFang SC;
  175. font-weight: 400;
  176. color: #333333;
  177. line-height: 60rpx;
  178. flex: 1;
  179. white-space: nowrap;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. }
  183. }
  184. .basics{
  185. width: 690rpx;
  186. background: #FFFFFF;
  187. border-radius: 20rpx;
  188. padding: 0rpx 30rpx;
  189. box-sizing: border-box;
  190. margin: 20rpx 30rpx ;
  191. .grade{
  192. height: 100rpx;
  193. display: flex;
  194. justify-content: space-between;
  195. border-bottom: 1rpx solid #D8D8D8;
  196. >text:nth-of-type(1){
  197. font-size: 28rpx;
  198. font-family: PingFang SC-Medium, PingFang SC;
  199. font-weight: 400;
  200. color: #333333;
  201. line-height: 100rpx;
  202. }
  203. >text:nth-of-type(2){
  204. flex: 1;
  205. font-size: 28rpx;
  206. font-family: PingFang SC-Medium, PingFang SC;
  207. font-weight: 400;
  208. color: #666666;
  209. line-height: 100rpx;
  210. text-align: right;
  211. }
  212. }
  213. .duty{
  214. display: flex;
  215. justify-content: space-between;
  216. padding: 20rpx 0rpx;
  217. box-sizing: border-box;
  218. .duty_l{
  219. font-size: 28rpx;
  220. font-family: PingFang SC-Medium, PingFang SC;
  221. font-weight: 400;
  222. color: #333333;
  223. line-height: 60rpx;
  224. }
  225. .duty_r{
  226. flex: 1;
  227. >text{
  228. display: block;
  229. font-size: 28rpx;
  230. font-family: PingFang SC-Medium, PingFang SC;
  231. font-weight: 400;
  232. color: #666666;
  233. line-height: 60rpx;
  234. text-align: right;
  235. }
  236. }
  237. }
  238. }
  239. .category{
  240. width: 690rpx;
  241. background: #FFFFFF;
  242. border-radius: 20rpx;
  243. margin: 20rpx 30rpx ;
  244. padding-bottom: 20rpx;
  245. box-sizing: border-box;
  246. .title{
  247. width: 690rpx;
  248. height: 80rpx;
  249. background: #133E93;
  250. border-radius: 10rpx 10rpx 0rpx 0rpx;
  251. font-size: 30rpx;
  252. font-family: PingFang SC-Medium, PingFang SC;
  253. font-weight: 400;
  254. color: #FFFFFF;
  255. line-height: 80rpx;
  256. text-align: center;
  257. margin-bottom:20rpx;
  258. }
  259. .category_li{
  260. margin-left: 34rpx;
  261. display: flex;
  262. justify-content: flex-start;
  263. >text:nth-of-type(1){
  264. display: inline-block;
  265. width: 20rpx;
  266. height: 20rpx;
  267. border-radius: 50%;
  268. background: #D8D8D8;
  269. margin-right: 14rpx;
  270. margin-top: 20rpx;
  271. }
  272. >text:nth-of-type(2){
  273. flex: 1;
  274. font-size: 28rpx;
  275. font-family: PingFang SC-Medium, PingFang SC;
  276. font-weight: 400;
  277. color: #666666;
  278. line-height: 60rpx;
  279. }
  280. }
  281. /* 安全警示标识 */
  282. .identify_img{
  283. display: flex;
  284. justify-content: flex-start;
  285. flex-wrap:wrap;
  286. margin-left: 34rpx;
  287. >img{
  288. width: 67rpx;
  289. height: 90rpx;
  290. margin-right: 24rpx;
  291. margin-bottom: 20rpx;
  292. }
  293. }
  294. /* 紧急报警电话 */
  295. .telephone_li{
  296. flex: 1;
  297. font-size: 28rpx;
  298. font-family: PingFang SC-Medium, PingFang SC;
  299. font-weight: 400;
  300. color: #333333;
  301. line-height: 60rpx;
  302. margin-left: 34rpx;
  303. }
  304. }
  305. /* 待整改 */
  306. .bottom_btn{
  307. position: fixed;
  308. bottom: 26rpx;
  309. left: 30rpx;
  310. font-size: 30rpx;
  311. font-family: PingFang SC-Medium, PingFang SC;
  312. font-weight: 400;
  313. color: #FFFFFF;
  314. line-height: 90rpx;
  315. width: 690rpx;
  316. height: 90rpx;
  317. background: #0183FA;
  318. border-radius: 20rpx;
  319. text-align: center;
  320. }
  321. }
  322. </style>