snapshotList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. <!-- 随手拍列表 -->
  2. <template>
  3. <view class="snapshotList">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tabTitle" v-if="userType==0">
  6. <view :class="tabIndex==index?'tab-A':'tab-B'" v-for="(item,index) in tabList" :key='index' @click="tabClick(index)">
  7. {{item}}
  8. </view>
  9. </view>
  10. <view class="tabTitleTow" v-if="userType==1">
  11. <view :class="tabIndexTow==index?'tab-C':'tab-D'" v-for="(item,index) in tabListTow" :key='index'
  12. @click="tabClickTow(index)">{{item}}</view>
  13. </view>
  14. <view v-if="pageType==0">
  15. <view class="list">
  16. <view class="list-li srearch">
  17. <view>{{form.subName?form.subName:'实验室名称'}}({{form.subRoom?form.subRoom:'房间号'}})</view>
  18. <view>
  19. <view class="srearch-l" @click="popupClick(1)">
  20. <img src="@/pages_safetyCheck/images/icon_aqjc_ss.png">
  21. </view>
  22. <view class="srearch-r" @click="saoCode()">
  23. <img src="@/pages_safetyCheck/images/icon_aqjc_sm.png">
  24. </view>
  25. </view>
  26. </view>
  27. <view class="list-li">
  28. <view>学院单位名称</view>
  29. <view>{{form.deptName}}</view>
  30. </view>
  31. <view class="list-li">
  32. <view>检查项目</view>
  33. <view @click="inspectionItemsClick()">
  34. {{form.hazardCheckCode?form.hazardCheckCode:''}}{{form.hazardCheckName?form.hazardCheckName:'模糊搜索检查项'}}
  35. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  36. </view>
  37. </view>
  38. <view class="list-li">
  39. <view>隐患描述</view>
  40. <view></view>
  41. </view>
  42. <textarea class="describe" type="text" v-model="form.hazardDescribe" maxlength="200"
  43. placeholder="请填写隐患描述" placeholder-style="font-size:24rpx;color:#999;"></textarea>
  44. <view class="check-for-img-max-box">
  45. <view class="left-title-p"></view>
  46. <view class="right-img-box">
  47. <view class="img-box" v-for="(imgUrl,imgIndex) in form.imgDtoList" :key="imgIndex">
  48. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  49. <img class="position-img" src="@/pages_safetyCheck/images/icon_ssp_closure.png"
  50. @click="delImg(imgIndex)">
  51. </view>
  52. <img class="add-button" src="@/pages_safetyCheck/images/img_ssp_pz@1x.png"
  53. @click="selectImage()" v-if="form.imgDtoList.length<5">
  54. </view>
  55. </view>
  56. </view>
  57. <view class="subBtn" @click="submitForm">提交</view>
  58. </view>
  59. <!-- 上报记录 -->
  60. <view class="escalation" v-if="pageType==1">
  61. <view class="escalation-li" @click="recordClick(item)" v-for="(item,index) in dataList">
  62. <view class="escalation-li-t">
  63. <view>{{item.subName}} ({{item.subRoom}})</view>
  64. <view :id="item.rectifyStatus==0?'color-A':(item.rectifyStatus==1?'color-B':(item.rectifyStatus==2?'color-C':''))">
  65. {{item.rectifyStatus==0?'待整改':(item.rectifyStatus==1?'已整改':(item.rectifyStatus==2?'暂无法整改':''))}}
  66. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  67. </view>
  68. </view>
  69. <view class="escalation-li-b">
  70. <view>上报时间</view>
  71. <view>{{item.createTime}}</view>
  72. </view>
  73. </view>
  74. </view>
  75. <!-- 隐患整改 -->
  76. <view class="hidden" v-if="pageType==2">
  77. <view class="hidden-li" @click="hiddenClick(item)" v-for="(item,index) in dataList">
  78. <img class="hidden-li-l" src="@/pages_safetyCheck/images/icon_sys_xz@1x.png">
  79. <view class="hidden-li-c">{{item.subName}}</view>
  80. <view class="hidden-li-r">
  81. <view v-if="item.stayhRectifyCheckNum!=0">待整改{{item.stayhRectifyCheckNum}}项</view>
  82. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  83. </view>
  84. </view>
  85. </view>
  86. <view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
  87. </scroll-view>
  88. <view class="popup-max-box" v-if="popupType">
  89. <view class="popup-null" @click="popupClick(2)"></view>
  90. <view class="popup-big-box">
  91. <view class="popup-input-box">
  92. <input type="text" maxlength="10" v-model="form.searchValue" placeholder="请输入关键字">
  93. <view @click="buildBySub">搜索</view>
  94. </view>
  95. <view class="popup-for-max-box">
  96. <view class="popup-for-null" v-if="!roomList[0]">暂无数据</view>
  97. <view class="popup-for-box" v-for="(item,index) in roomList" :key="index">
  98. <view class="name-p">{{item.subName}} ({{item.roomNum?item.roomNum:'-'}})</view>
  99. <view class="button-p" @click="popupClickItem(item)">确定</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. import {
  108. config
  109. } from '@/api/request/config.js'
  110. import {} from '@/pages/api/index.js'
  111. import {
  112. laboratorySubRelInfoGetRelList,
  113. securityAppCheckPhotoMyAdd,
  114. securityAppCheckPhotoMyList,
  115. securityAppCheckPhotoRectifyList,
  116. } from '@/pages_safetyCheck/api/index.js'
  117. export default {
  118. name: "snapshotList",
  119. components: {
  120. },
  121. data() {
  122. return {
  123. baseUrl: config.base_url,
  124. pageType: 0,
  125. userType: 1,
  126. tabList: ['随手拍上报', '上报记录'],
  127. tabIndex: 0,
  128. tabListTow: ['随手拍上报', '上报记录', '隐患整改'],
  129. tabIndexTow: 0,
  130. newData: {
  131. },
  132. form: {
  133. rectifyDescribe: '',
  134. imgDtoList: [],
  135. hazardCheckName: '',
  136. },
  137. popupType: false,
  138. roomList: [],
  139. checkOptionList: [],
  140. getDataType: false,
  141. // 查询参数
  142. queryParams: {
  143. page: 1,
  144. pageSize: 10,
  145. },
  146. total: 0,
  147. dataList:[],
  148. }
  149. },
  150. onLoad(option) {
  151. if (option.form) {
  152. this.form = JSON.parse(decodeURIComponent(option.form));
  153. }
  154. },
  155. onShow() {
  156. },
  157. mounted() {
  158. },
  159. methods: {
  160. //滚动事件
  161. scrollGet() {
  162. let self = this;
  163. if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
  164. this.$set(this, 'getDataType', true);
  165. } else {
  166. this.queryParams.page += 1;
  167. this.$nextTick(() => {
  168. if(this.pageType==1){
  169. this.getList();
  170. }else if(this.pageType==2){
  171. this.getListTow();
  172. }
  173. })
  174. }
  175. },
  176. //上报记录
  177. async getList() {
  178. let self = this;
  179. const {
  180. data
  181. } = await securityAppCheckPhotoMyList(this.queryParams);
  182. if (data.code == 200) {
  183. if (self.queryParams.page == 1) {
  184. this.dataList = data.data.records;
  185. this.total = data.data.total;
  186. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  187. this.$set(this, 'getDataType', true);
  188. }
  189. } else {
  190. this.dataList = [...this.dataList, ...data.data.records]
  191. this.total = data.data.total;
  192. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  193. this.$set(this, 'getDataType', true);
  194. }
  195. }
  196. }
  197. },
  198. //隐患整改
  199. async getListTow() {
  200. let self = this;
  201. const {
  202. data
  203. } = await securityAppCheckPhotoRectifyList();
  204. if (data.code == 200) {
  205. if (data.data[0]) {
  206. this.dataList = data.data;
  207. } else {
  208. this.$set(this, 'getDataType', true);
  209. }
  210. }
  211. },
  212. //上报记录跳转详情
  213. recordClick(row){
  214. let infoData=row;
  215. uni.navigateTo({
  216. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  217. });
  218. },
  219. //隐患整改跳转详情
  220. hiddenClick(row){
  221. let infoData=row;
  222. infoData.pageType=2;
  223. uni.navigateTo({
  224. url: '/pages_safetyCheck/views/snapshotManage/snapshotItems?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  225. });
  226. },
  227. tabClick(index) {
  228. this.tabIndex = index;
  229. this.pageType = index;
  230. this.dataList=[];
  231. if(index==1){
  232. this.getList();
  233. }else if(index==2){
  234. this.getListTow();
  235. }
  236. },
  237. tabClickTow(index) {
  238. this.tabIndexTow = index;
  239. this.pageType = index;
  240. this.dataList=[];
  241. if(index==1){
  242. this.getList();
  243. }else if(index==2){
  244. this.getListTow();
  245. }
  246. },
  247. /******图片上传******/
  248. selectImage() {
  249. let self = this;
  250. if (this.form.imgDtoList.length > 4) {
  251. uni.showToast({
  252. title: '最多上传5张图片',
  253. icon: "none",
  254. mask: true,
  255. duration: 2000
  256. });
  257. return
  258. }
  259. wx.chooseImage({
  260. count: 1,
  261. sizeType: ["original", "compressed"],
  262. sourceType: ["album", "camera"],
  263. success: function(res) {
  264. let tempFilePaths = res.tempFilePaths[0];
  265. self.uploadImg(tempFilePaths);
  266. }
  267. });
  268. },
  269. async uploadImg(tempFilePaths) {
  270. var self = this;
  271. uni.showLoading({
  272. title: '上传中',
  273. mask: true
  274. });
  275. uni.uploadFile({
  276. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  277. header: {
  278. 'Authorization': uni.getStorageSync('token')
  279. },
  280. filePath: tempFilePaths,
  281. name: 'file',
  282. formData: {
  283. 'user': 'test'
  284. },
  285. success: (uploadFileRes) => {
  286. let res = JSON.parse(uploadFileRes.data);
  287. if (res.code == 200) {
  288. this.form.imgDtoList.push({
  289. 'fileUrl': res.data.url,
  290. 'fileName': res.data.name
  291. });
  292. } else {
  293. uni.showToast({
  294. title: res.msg,
  295. icon: "none",
  296. mask: true,
  297. duration: 2000
  298. });
  299. }
  300. },
  301. fail: err => {},
  302. complete: () => {
  303. uni.hideLoading()
  304. }
  305. });
  306. },
  307. //删除图片
  308. delImg(minIndex) {
  309. this.form.imgDtoList.splice(minIndex, 1);
  310. this.$forceUpdate();
  311. },
  312. /******搜索房间弹层开关******/
  313. popupClick(type) {
  314. if (type == 1) {
  315. this.room = "";
  316. this.roomList = [];
  317. this.popupType = true;
  318. this.buildBySub();
  319. } else if (type == 2) {
  320. this.popupType = false;
  321. }
  322. },
  323. //搜索房间接口
  324. async buildBySub() {
  325. let self = this;
  326. const {
  327. data
  328. } = await laboratorySubRelInfoGetRelList({
  329. 'searchValue': this.form.searchValue,
  330. });
  331. if (data.code == 200) {
  332. if (data.data[0]) {
  333. this.roomList = data.data;
  334. } else {
  335. uni.showToast({
  336. title: '未找到相关实验室',
  337. icon: "none",
  338. mask: true,
  339. duration: 2000
  340. });
  341. }
  342. }
  343. },
  344. //确认搜索房间
  345. popupClickItem(item) {
  346. this.$set(this.form, "subId", item.subId)
  347. this.$set(this.form, "subName", item.subName)
  348. this.$set(this.form, "subRoom", item.roomNum)
  349. this.$set(this.form, "deptId", item.deptId)
  350. this.$set(this.form, "deptName", item.deptName)
  351. this.$set(this.form, "buildId", item.buildId)
  352. this.$set(this.form, "buildName", item.buildName)
  353. this.$set(this.form, "floorId", item.floorId)
  354. this.$set(this.form, "floorName", item.floorName)
  355. this.$set(this.form, "typeId", item.typeId)
  356. this.$set(this.form, "classTypeNames", item.classTypeNames)
  357. this.$set(this.form, "levelId", item.levelId)
  358. this.$set(this.form, "classLevelName", item.classLevelName)
  359. this.popupType = false;
  360. },
  361. /******调用摄像头******/
  362. saoCode() {
  363. let self = this;
  364. uni.scanCode({
  365. onlyFromCamera: true,
  366. success: function(res) {
  367. let list = res.result.split("?")[1].split("&");
  368. let codeData = {};
  369. list.forEach((item) => {
  370. codeData[item.split("=")[0]] = item.split("=")[1];
  371. })
  372. console.log('二维码', codeData)
  373. if (codeData.code) {
  374. self.laboratoryAppletGetSubDetailInfo(codeData.code);
  375. } else {
  376. uni.showToast({
  377. title: '请扫描正确的二维码',
  378. icon: "none",
  379. mask: true,
  380. duration: 2000
  381. });
  382. }
  383. }
  384. });
  385. },
  386. //搜索项跳转
  387. inspectionItemsClick() {
  388. this.form.pageType=1;//1随手拍检查项
  389. uni.navigateTo({
  390. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsSearch?form=' + encodeURIComponent(
  391. JSON.stringify(this.form))
  392. });
  393. },
  394. //上报
  395. async submitForm() {
  396. let self = this;
  397. if (!this.form.subId) {
  398. uni.showToast({
  399. title: '请选择实验室!',
  400. icon: "none",
  401. mask: true,
  402. duration: 2000
  403. });
  404. return
  405. }
  406. if (!this.form.hazardDescribe) {
  407. uni.showToast({
  408. title: '请输入隐患描述!',
  409. icon: "none",
  410. mask: true,
  411. duration: 2000
  412. });
  413. return
  414. }
  415. if (this.form.imgDtoList.length<=0) {
  416. uni.showToast({
  417. title: '请选择现场照片!',
  418. icon: "none",
  419. mask: true,
  420. duration: 2000
  421. });
  422. return
  423. }
  424. const {
  425. data
  426. } = await securityAppCheckPhotoMyAdd(self.form);
  427. if (data.code == 200) {
  428. uni.showToast({
  429. title: '提交成功',
  430. icon: "none",
  431. mask: true,
  432. duration: 2000
  433. });
  434. let infoData={
  435. photoId:data.data
  436. };
  437. uni.navigateTo({
  438. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  439. });
  440. }
  441. },
  442. }
  443. }
  444. </script>
  445. <style lang="stylus" scoped>
  446. .snapshotList {
  447. height: 100%;
  448. display flex;
  449. .tabTitle {
  450. width: 600rpx;
  451. height: 80rpx;
  452. display: flex;
  453. justify-content: center;
  454. margin: 20rpx 0 0 74rpx;
  455. >view:nth-of-type(1) {
  456. width: 300rpx;
  457. height: 80rpx;
  458. border-radius: 50rpx 0rpx 0rpx 50rpx;
  459. }
  460. >view:nth-of-type(2) {
  461. width: 300rpx;
  462. height: 80rpx;
  463. border-radius: 0rpx 50rpx 50rpx 0rpx;
  464. }
  465. .tab-A {
  466. font-size: 30rpx;
  467. color: #FFFFFF;
  468. line-height: 80rpx;
  469. text-align: center;
  470. background: #0183FA;
  471. }
  472. .tab-B {
  473. font-size: 30rpx;
  474. color: #333333;
  475. line-height: 80rpx;
  476. text-align: center;
  477. background: #FFFFFF;
  478. }
  479. }
  480. .tabTitleTow {
  481. width: 690rpx;
  482. height: 80rpx;
  483. display: flex;
  484. justify-content: center;
  485. margin: 20rpx 0 0 30rpx;
  486. >view:nth-of-type(1) {
  487. width: 230rpx;
  488. height: 80rpx;
  489. border-radius: 50rpx 0rpx 0rpx 50rpx;
  490. }
  491. >view:nth-of-type(2) {
  492. width: 230rpx;
  493. height: 80rpx;
  494. border-radius: 0rpx 0rpx 0rpx 0rpx;
  495. }
  496. >view:nth-of-type(3) {
  497. width: 230rpx;
  498. height: 80rpx;
  499. border-radius: 0rpx 50rpx 50rpx 0rpx;
  500. }
  501. .tab-C {
  502. font-size: 30rpx;
  503. color: #FFFFFF;
  504. line-height: 80rpx;
  505. text-align: center;
  506. background: #0183FA;
  507. }
  508. .tab-D {
  509. font-size: 30rpx;
  510. color: #333333;
  511. line-height: 80rpx;
  512. text-align: center;
  513. background: #FFFFFF;
  514. }
  515. }
  516. .list {
  517. width: 690rpx;
  518. min-height: 765rpx;
  519. background: #FFFFFF;
  520. border-radius: 20rpx 20rpx 20rpx 20rpx;
  521. margin: 20rpx 0 0 30rpx;
  522. .list-li {
  523. display: flex;
  524. justify-content: space-between;
  525. border-bottom: 1rpx solid #E0E0E0;
  526. padding: 0 22rpx 0 28rpx;
  527. box-sizing: border-box;
  528. >view:nth-of-type(1) {
  529. font-size: 30rpx;
  530. color: #333333;
  531. line-height: 80rpx;
  532. text-align: left;
  533. }
  534. >view:nth-of-type(2) {
  535. font-size: 28rpx;
  536. color: #666666;
  537. line-height: 80rpx;
  538. text-align: left;
  539. display: flex;
  540. justify-content: flex-start;
  541. align-items: center;
  542. >img {
  543. width: 24rpx;
  544. height: 24rpx;
  545. margin-left: 8rpx;
  546. }
  547. }
  548. .project_r {
  549. width: 510rpx;
  550. min-height: 80rpx;
  551. display: flex;
  552. justify-content: flex-end;
  553. align-items: center;
  554. padding-left: 20rpx;
  555. box-sizing: border-box;
  556. color: #666;
  557. }
  558. }
  559. .srearch {
  560. .srearch-l {
  561. width: 60rpx;
  562. height: 60rpx;
  563. margin-right: 40rpx;
  564. >img {
  565. width: 30rpx;
  566. height: 30rpx;
  567. margin: 15rpx 0 0 15rpx;
  568. }
  569. }
  570. .srearch-r {
  571. width: 60rpx;
  572. height: 60rpx;
  573. >img {
  574. width: 30rpx;
  575. height: 30rpx;
  576. margin: 15rpx 0 0 15rpx;
  577. }
  578. }
  579. }
  580. .describe {
  581. width: 636rpx;
  582. height: 120rpx;
  583. border-radius: 10rpx 10rpx 10rpx 10rpx;
  584. border: 1rpx solid #E0E0E0;
  585. margin: 20rpx 0 0 28rpx;
  586. padding: 12rpx 16rpx;
  587. box-sizing: border-box;
  588. }
  589. .check-for-img-max-box {
  590. margin: 20px 28rpx;
  591. .left-title-p {
  592. width: 100%;
  593. text-align: left;
  594. font-size: 30rpx;
  595. font-family: PingFang SC-Medium, PingFang SC;
  596. font-weight: 400;
  597. color: #333333;
  598. line-height: 80rpx;
  599. }
  600. .right-img-box {
  601. .img-box {
  602. display inline-block;
  603. height: 150rpx;
  604. width: 150rpx;
  605. position relative;
  606. margin: 0 14rpx 20rpx 0;
  607. border-radius 10rpx;
  608. overflow hidden;
  609. .img-data {
  610. height: 150rpx;
  611. width: 150rpx;
  612. }
  613. .position-img {
  614. position absolute;
  615. right: 0;
  616. top: 0;
  617. width: 36rpx;
  618. height: 36rpx;
  619. }
  620. }
  621. .img-box:nth-of-type(3n+3) {
  622. margin-right: 0rpx;
  623. }
  624. .add-button {
  625. margin: 0 0rpx 20rpx 0;
  626. border-radius 10rpx;
  627. overflow hidden;
  628. display inline-block;
  629. height: 150rpx;
  630. width: 150rpx;
  631. }
  632. }
  633. }
  634. }
  635. /* 实验室弹框 */
  636. .popup-max-box {
  637. z-index: 10;
  638. height: 100%;
  639. width: 100%;
  640. position fixed;
  641. background rgba(0, 0, 0, 0.2);
  642. display flex;
  643. flex-direction column;
  644. .popup-null {
  645. flex: 1;
  646. }
  647. .popup-big-box {
  648. border-top-left-radius: 20rpx;
  649. border-top-right-radius: 20rpx;
  650. background #fff;
  651. .popup-input-box {
  652. padding: 30rpx 20rpx;
  653. display: flex;
  654. input {
  655. flex: 1;
  656. height: 70rpx;
  657. border: 1rpx solid #e0e0e0;
  658. border-radius: 10rpx;
  659. margin-right: 20rpx;
  660. padding: 0 20rpx;
  661. }
  662. view {
  663. background #0183FA;
  664. color: #fff;
  665. border-radius: 10rpx;
  666. width: 140rpx;
  667. line-height: 70rpx;
  668. text-align center;
  669. font-size: 28rpx;
  670. }
  671. }
  672. .popup-for-max-box {
  673. margin: 0 20rpx 30rpx;
  674. height: 600rpx;
  675. overflow-y scroll;
  676. .popup-for-null {
  677. line-height: 100rpx;
  678. text-align center;
  679. color: #999;
  680. }
  681. .popup-for-box {
  682. display: flex;
  683. padding: 10px 0;
  684. .name-p {
  685. flex: 1;
  686. line-height: 60rpx;
  687. }
  688. .button-p {
  689. background #0183FA;
  690. color: #fff;
  691. text-align center;
  692. width: 100rpx;
  693. line-height: 60rpx;
  694. height: 60rpx;
  695. border-radius: 10rpx;
  696. }
  697. }
  698. }
  699. }
  700. }
  701. .subBtn {
  702. width: 690rpx;
  703. height: 100rpx;
  704. background: #0183FA;
  705. border-radius: 50rpx 50rpx 50rpx 50rpx;
  706. font-weight: 400;
  707. font-size: 30rpx;
  708. color: #FFFFFF;
  709. line-height: 100rpx;
  710. text-align: center;
  711. position: fixed;
  712. left: 30rpx;
  713. bottom: 10rpx;
  714. }
  715. /* 上报记录 */
  716. .escalation {
  717. .escalation-li {
  718. width: 690rpx;
  719. height: 162rpx;
  720. background: #FFFFFF;
  721. border-radius: 20rpx 20rpx 20rpx 20rpx;
  722. margin: 20rpx 30rpx;
  723. padding: 0 30rpx;
  724. box-sizing: border-box;
  725. .escalation-li-t {
  726. display: flex;
  727. justify-content: space-between;
  728. align-items: center;
  729. border-bottom: 1rpx solid #E0E0E0;
  730. >view:nth-of-type(1) {
  731. font-weight: 400;
  732. font-size: 30rpx;
  733. color: #333333;
  734. line-height: 80rpx;
  735. text-align: left;
  736. }
  737. >view:nth-of-type(2) {
  738. font-weight: 400;
  739. font-size: 28rpx;
  740. color: #0183FA;
  741. line-height: 80rpx;
  742. text-align: left;
  743. display: flex;
  744. justify-content: flex-start;
  745. align-items: center;
  746. >img {
  747. width: 24rpx;
  748. height: 24rpx;
  749. }
  750. }
  751. }
  752. .escalation-li-b {
  753. display: flex;
  754. justify-content: space-between;
  755. align-items: center;
  756. >view:nth-of-type(1) {
  757. font-weight: 400;
  758. font-size: 30rpx;
  759. color: #333333;
  760. line-height: 80rpx;
  761. text-align: left;
  762. }
  763. >view:nth-of-type(2) {
  764. font-weight: 400;
  765. font-size: 30rpx;
  766. color: #666666;
  767. line-height: 80rpx;
  768. text-align: left;
  769. }
  770. }
  771. }
  772. }
  773. /* 隐患整改 */
  774. .hidden {
  775. width: 690rpx;
  776. border-radius: 20rpx 20rpx 20rpx 20rpx;
  777. background: #FFFFFF;
  778. padding: 0 30rpx;
  779. box-sizing: border-box;
  780. margin: 20rpx 30rpx;
  781. .hidden-li {
  782. height: 80rpx;
  783. border-bottom: 1rpx solid #E0E0E0;
  784. display: flex;
  785. justify-content: flex-start;
  786. align-items: center;
  787. .hidden-li-l {
  788. width: 34rpx;
  789. height: 34rpx;
  790. }
  791. .hidden-li-c {
  792. font-size: 28rpx;
  793. color: #333333;
  794. line-height: 30rpx;
  795. text-align: left;
  796. flex: 1;
  797. overflow: hidden;
  798. text-overflow: ellipsis;
  799. white-space: nowrap;
  800. margin: 0 84rpx 0 12rpx;
  801. }
  802. .hidden-li-r {
  803. font-size: 28rpx;
  804. color: #0183FA;
  805. line-height: 80rpx;
  806. text-align: left;
  807. display: flex;
  808. justify-content: flex-start;
  809. align-items: center;
  810. >img {
  811. width: 24rpx;
  812. height: 24rpx;
  813. }
  814. }
  815. }
  816. .hidden-li:last-of-type {
  817. border: none;
  818. }
  819. }
  820. #color-A {
  821. color: #0183FA;
  822. }
  823. #color-B {
  824. color: #16B531;
  825. }
  826. #color-C {
  827. color: #FF8C00;
  828. }
  829. .get-data-null-p {
  830. text-align: center;
  831. height: 100rpx;
  832. line-height: 100rpx;
  833. color: #999;
  834. padding-bottom:200rpx;
  835. }
  836. }
  837. </style>