inforSign.vue 7.8 KB

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