inforSign.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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/apiDemo/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. console.log(uni.getStorageSync('saoCodeId'))
  72. },
  73. methods: {
  74. //滚动事件
  75. scrollGet(){},
  76. //查询详情
  77. async getInforSign(){
  78. let self = this;
  79. let id = uni.getStorageSync('saoCodeId');
  80. const {data} = await getInforSign(id);
  81. if(data.code == 200){
  82. this.itemData = data.data;
  83. console.log(this.itemData)
  84. }
  85. },
  86. //查看图片
  87. lockImg(list){
  88. console.log(list)
  89. if(!list[0]){
  90. return
  91. }
  92. let urlList=[];
  93. for(let i=0;i<list.length;i++){
  94. urlList.push(this.baseUrl+list[i].infoContent)
  95. }
  96. wx.previewImage({
  97. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  98. current: '', // 当前显示图片的http链接,默认是第一个
  99. success: function(res) {},
  100. fail: function(res) {},
  101. complete: function(res) {},
  102. })
  103. },
  104. handleClick(doType){
  105. let self=this;
  106. if(doType=='start'){//提交
  107. uni.navigateTo({
  108. url: '/pages_safetyExamine/examineManage/examineAdd?id='+ uni.getStorageSync('saoCodeId')
  109. });
  110. }
  111. },
  112. }
  113. }
  114. </script>
  115. <style lang="stylus" scoped>
  116. .examine{
  117. height:100%;
  118. display flex;
  119. box-sizing: border-box;
  120. .info-max-box{
  121. flex: 1;
  122. overflow: scroll;
  123. padding-bottom: 128rpx;
  124. box-sizing: border-box;
  125. }
  126. .header{
  127. width: 690rpx;
  128. height: 100rpx;
  129. background: #FFFFFF;
  130. border-radius: 20rpx 20rpx 20rpx 20rpx;
  131. margin: 20rpx 30rpx;
  132. padding: 0 30rpx;
  133. box-sizing: border-box;
  134. display: flex;
  135. justify-content: flex-start;
  136. align-items: center;
  137. .header_l{
  138. width: auto;
  139. height: 60rpx;
  140. background: #FFFFFF;
  141. border-radius: 50rpx 50rpx 50rpx 50rpx;
  142. opacity: 1;
  143. border: 1rpx solid #DF4848;
  144. padding: 0 20rpx;
  145. box-sizing: border-box;
  146. display: flex;
  147. justify-content: flex-start;
  148. align-items: center;
  149. margin-right: 26rpx;
  150. >text:nth-of-type(1){
  151. font-size: 24rpx;
  152. font-family: PingFang SC-Medium, PingFang SC;
  153. font-weight: 400;
  154. color: #DF4848;
  155. line-height: 60rpx;
  156. }
  157. >text:nth-of-type(2){
  158. display: inline-block;
  159. width: 0rpx;
  160. height: 19rpx;
  161. opacity: 1;
  162. border: 1rpx solid #A2A2A2;
  163. margin: 0 10rpx;
  164. }
  165. >text:nth-of-type(3){
  166. font-size: 24rpx;
  167. font-family: PingFang SC-Medium, PingFang SC;
  168. font-weight: 400;
  169. color: #DF4848;
  170. line-height: 60rpx;
  171. }
  172. }
  173. .header_r{
  174. font-size: 30rpx;
  175. font-family: PingFang SC-Medium, PingFang SC;
  176. font-weight: 400;
  177. color: #333333;
  178. line-height: 60rpx;
  179. flex: 1;
  180. white-space: nowrap;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. }
  184. }
  185. .basics{
  186. width: 690rpx;
  187. background: #FFFFFF;
  188. border-radius: 20rpx;
  189. padding: 0rpx 30rpx;
  190. box-sizing: border-box;
  191. margin: 20rpx 30rpx ;
  192. .grade{
  193. height: 100rpx;
  194. display: flex;
  195. justify-content: space-between;
  196. border-bottom: 1rpx solid #D8D8D8;
  197. >text:nth-of-type(1){
  198. font-size: 28rpx;
  199. font-family: PingFang SC-Medium, PingFang SC;
  200. font-weight: 400;
  201. color: #333333;
  202. line-height: 100rpx;
  203. }
  204. >text:nth-of-type(2){
  205. flex: 1;
  206. font-size: 28rpx;
  207. font-family: PingFang SC-Medium, PingFang SC;
  208. font-weight: 400;
  209. color: #666666;
  210. line-height: 100rpx;
  211. text-align: right;
  212. }
  213. }
  214. .duty{
  215. display: flex;
  216. justify-content: space-between;
  217. padding: 20rpx 0rpx;
  218. box-sizing: border-box;
  219. .duty_l{
  220. font-size: 28rpx;
  221. font-family: PingFang SC-Medium, PingFang SC;
  222. font-weight: 400;
  223. color: #333333;
  224. line-height: 60rpx;
  225. }
  226. .duty_r{
  227. flex: 1;
  228. >text{
  229. display: block;
  230. font-size: 28rpx;
  231. font-family: PingFang SC-Medium, PingFang SC;
  232. font-weight: 400;
  233. color: #666666;
  234. line-height: 60rpx;
  235. text-align: right;
  236. }
  237. }
  238. }
  239. }
  240. .category{
  241. width: 690rpx;
  242. background: #FFFFFF;
  243. border-radius: 20rpx;
  244. margin: 20rpx 30rpx ;
  245. padding-bottom: 20rpx;
  246. box-sizing: border-box;
  247. .title{
  248. width: 690rpx;
  249. height: 80rpx;
  250. background: #133E93;
  251. border-radius: 10rpx 10rpx 0rpx 0rpx;
  252. font-size: 30rpx;
  253. font-family: PingFang SC-Medium, PingFang SC;
  254. font-weight: 400;
  255. color: #FFFFFF;
  256. line-height: 80rpx;
  257. text-align: center;
  258. margin-bottom:20rpx;
  259. }
  260. .category_li{
  261. margin-left: 34rpx;
  262. display: flex;
  263. justify-content: flex-start;
  264. >text:nth-of-type(1){
  265. display: inline-block;
  266. width: 20rpx;
  267. height: 20rpx;
  268. border-radius: 50%;
  269. background: #D8D8D8;
  270. margin-right: 14rpx;
  271. margin-top: 20rpx;
  272. }
  273. >text:nth-of-type(2){
  274. flex: 1;
  275. font-size: 28rpx;
  276. font-family: PingFang SC-Medium, PingFang SC;
  277. font-weight: 400;
  278. color: #666666;
  279. line-height: 60rpx;
  280. }
  281. }
  282. /* 安全警示标识 */
  283. .identify_img{
  284. display: flex;
  285. justify-content: flex-start;
  286. flex-wrap:wrap;
  287. margin-left: 34rpx;
  288. >img{
  289. width: 67rpx;
  290. height: 90rpx;
  291. margin-right: 24rpx;
  292. margin-bottom: 20rpx;
  293. }
  294. }
  295. /* 紧急报警电话 */
  296. .telephone_li{
  297. flex: 1;
  298. font-size: 28rpx;
  299. font-family: PingFang SC-Medium, PingFang SC;
  300. font-weight: 400;
  301. color: #333333;
  302. line-height: 60rpx;
  303. margin-left: 34rpx;
  304. }
  305. }
  306. /* 待整改 */
  307. .bottom_btn{
  308. position: fixed;
  309. bottom: 26rpx;
  310. left: 30rpx;
  311. font-size: 30rpx;
  312. font-family: PingFang SC-Medium, PingFang SC;
  313. font-weight: 400;
  314. color: #FFFFFF;
  315. line-height: 90rpx;
  316. width: 690rpx;
  317. height: 90rpx;
  318. background: #0183FA;
  319. border-radius: 20rpx;
  320. text-align: center;
  321. }
  322. }
  323. </style>