snapshotList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  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" @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"
  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/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  225. });
  226. },
  227. tabClick(index) {
  228. this.tabIndex = index;
  229. this.pageType = index;
  230. if(index==1){
  231. this.getList();
  232. }else if(index==2){
  233. this.getListTow();
  234. }
  235. },
  236. tabClickTow(index) {
  237. this.tabIndexTow = index;
  238. this.pageType = index;
  239. if(index==1){
  240. this.getList();
  241. }else if(index==2){
  242. this.getListTow();
  243. }
  244. },
  245. /******图片上传******/
  246. selectImage() {
  247. let self = this;
  248. if (this.form.imgDtoList.length > 4) {
  249. uni.showToast({
  250. title: '最多上传5张图片',
  251. icon: "none",
  252. mask: true,
  253. duration: 2000
  254. });
  255. return
  256. }
  257. wx.chooseImage({
  258. count: 1,
  259. sizeType: ["original", "compressed"],
  260. sourceType: ["album", "camera"],
  261. success: function(res) {
  262. let tempFilePaths = res.tempFilePaths[0];
  263. self.uploadImg(tempFilePaths);
  264. }
  265. });
  266. },
  267. async uploadImg(tempFilePaths) {
  268. var self = this;
  269. uni.showLoading({
  270. title: '上传中',
  271. mask: true
  272. });
  273. uni.uploadFile({
  274. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  275. header: {
  276. 'Authorization': uni.getStorageSync('token')
  277. },
  278. filePath: tempFilePaths,
  279. name: 'file',
  280. formData: {
  281. 'user': 'test'
  282. },
  283. success: (uploadFileRes) => {
  284. let res = JSON.parse(uploadFileRes.data);
  285. if (res.code == 200) {
  286. this.form.imgDtoList.push({
  287. 'fileUrl': res.data.url,
  288. 'fileName': res.data.name
  289. });
  290. console.log(res.data.url)
  291. } else {
  292. uni.showToast({
  293. title: res.msg,
  294. icon: "none",
  295. mask: true,
  296. duration: 2000
  297. });
  298. }
  299. },
  300. fail: err => {},
  301. complete: () => {
  302. uni.hideLoading()
  303. }
  304. });
  305. },
  306. //删除图片
  307. delImg(minIndex) {
  308. this.form.imgDtoList.splice(minIndex, 1);
  309. this.$forceUpdate();
  310. },
  311. /******搜索房间弹层开关******/
  312. popupClick(type) {
  313. if (type == 1) {
  314. this.room = "";
  315. this.roomList = [];
  316. this.popupType = true;
  317. this.buildBySub();
  318. } else if (type == 2) {
  319. this.popupType = false;
  320. }
  321. },
  322. //搜索房间接口
  323. async buildBySub() {
  324. let self = this;
  325. const {
  326. data
  327. } = await laboratorySubRelInfoGetRelList({
  328. 'searchValue': this.form.searchValue,
  329. });
  330. if (data.code == 200) {
  331. if (data.data[0]) {
  332. this.roomList = data.data;
  333. } else {
  334. uni.showToast({
  335. title: '未找到相关实验室',
  336. icon: "none",
  337. mask: true,
  338. duration: 2000
  339. });
  340. }
  341. }
  342. },
  343. //确认搜索房间
  344. popupClickItem(item) {
  345. console.log(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. console.log(self.form)
  398. if (!this.form.subId) {
  399. uni.showToast({
  400. title: '请选择实验室!',
  401. icon: "none",
  402. mask: true,
  403. duration: 2000
  404. });
  405. return
  406. }
  407. if (!this.form.hazardDescribe) {
  408. uni.showToast({
  409. title: '请输入隐患描述!',
  410. icon: "none",
  411. mask: true,
  412. duration: 2000
  413. });
  414. return
  415. }
  416. if (this.form.imgDtoList.length<=0) {
  417. uni.showToast({
  418. title: '请选择现场照片!',
  419. icon: "none",
  420. mask: true,
  421. duration: 2000
  422. });
  423. return
  424. }
  425. const {
  426. data
  427. } = await securityAppCheckPhotoMyAdd(self.form);
  428. if (data.code == 200) {
  429. uni.showToast({
  430. title: '提交成功',
  431. icon: "none",
  432. mask: true,
  433. duration: 2000
  434. });
  435. let infoData={
  436. photoId:data.data
  437. };
  438. uni.navigateTo({
  439. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  440. });
  441. }
  442. },
  443. }
  444. }
  445. </script>
  446. <style lang="stylus" scoped>
  447. .snapshotList {
  448. height: 100%;
  449. display flex;
  450. .tabTitle {
  451. width: 600rpx;
  452. height: 80rpx;
  453. display: flex;
  454. justify-content: center;
  455. margin: 20rpx 0 0 74rpx;
  456. >view:nth-of-type(1) {
  457. width: 300rpx;
  458. height: 80rpx;
  459. border-radius: 50rpx 0rpx 0rpx 50rpx;
  460. }
  461. >view:nth-of-type(2) {
  462. width: 300rpx;
  463. height: 80rpx;
  464. border-radius: 0rpx 50rpx 50rpx 0rpx;
  465. }
  466. .tab-A {
  467. font-size: 30rpx;
  468. color: #FFFFFF;
  469. line-height: 80rpx;
  470. text-align: center;
  471. background: #0183FA;
  472. }
  473. .tab-B {
  474. font-size: 30rpx;
  475. color: #333333;
  476. line-height: 80rpx;
  477. text-align: center;
  478. background: #FFFFFF;
  479. }
  480. }
  481. .tabTitleTow {
  482. width: 690rpx;
  483. height: 80rpx;
  484. display: flex;
  485. justify-content: center;
  486. margin: 20rpx 0 0 30rpx;
  487. >view:nth-of-type(1) {
  488. width: 230rpx;
  489. height: 80rpx;
  490. border-radius: 50rpx 0rpx 0rpx 50rpx;
  491. }
  492. >view:nth-of-type(2) {
  493. width: 230rpx;
  494. height: 80rpx;
  495. border-radius: 0rpx 0rpx 0rpx 0rpx;
  496. }
  497. >view:nth-of-type(3) {
  498. width: 230rpx;
  499. height: 80rpx;
  500. border-radius: 0rpx 50rpx 50rpx 0rpx;
  501. }
  502. .tab-C {
  503. font-size: 30rpx;
  504. color: #FFFFFF;
  505. line-height: 80rpx;
  506. text-align: center;
  507. background: #0183FA;
  508. }
  509. .tab-D {
  510. font-size: 30rpx;
  511. color: #333333;
  512. line-height: 80rpx;
  513. text-align: center;
  514. background: #FFFFFF;
  515. }
  516. }
  517. .list {
  518. width: 690rpx;
  519. min-height: 765rpx;
  520. background: #FFFFFF;
  521. border-radius: 20rpx 20rpx 20rpx 20rpx;
  522. margin: 20rpx 0 0 30rpx;
  523. .list-li {
  524. display: flex;
  525. justify-content: space-between;
  526. border-bottom: 1rpx solid #E0E0E0;
  527. padding: 0 22rpx 0 28rpx;
  528. box-sizing: border-box;
  529. >view:nth-of-type(1) {
  530. font-size: 30rpx;
  531. color: #333333;
  532. line-height: 80rpx;
  533. text-align: left;
  534. }
  535. >view:nth-of-type(2) {
  536. font-size: 28rpx;
  537. color: #666666;
  538. line-height: 80rpx;
  539. text-align: left;
  540. display: flex;
  541. justify-content: flex-start;
  542. align-items: center;
  543. >img {
  544. width: 24rpx;
  545. height: 24rpx;
  546. margin-left: 8rpx;
  547. }
  548. }
  549. .project_r {
  550. width: 510rpx;
  551. min-height: 80rpx;
  552. display: flex;
  553. justify-content: flex-end;
  554. align-items: center;
  555. padding-left: 20rpx;
  556. box-sizing: border-box;
  557. color: #666;
  558. }
  559. }
  560. .srearch {
  561. .srearch-l {
  562. width: 60rpx;
  563. height: 60rpx;
  564. margin-right: 40rpx;
  565. >img {
  566. width: 30rpx;
  567. height: 30rpx;
  568. margin: 15rpx 0 0 15rpx;
  569. }
  570. }
  571. .srearch-r {
  572. width: 60rpx;
  573. height: 60rpx;
  574. >img {
  575. width: 30rpx;
  576. height: 30rpx;
  577. margin: 15rpx 0 0 15rpx;
  578. }
  579. }
  580. }
  581. .describe {
  582. width: 636rpx;
  583. height: 120rpx;
  584. border-radius: 10rpx 10rpx 10rpx 10rpx;
  585. border: 1rpx solid #E0E0E0;
  586. margin: 20rpx 0 0 28rpx;
  587. padding: 12rpx 16rpx;
  588. box-sizing: border-box;
  589. }
  590. .check-for-img-max-box {
  591. margin: 20px 28rpx;
  592. .left-title-p {
  593. width: 100%;
  594. text-align: left;
  595. font-size: 30rpx;
  596. font-family: PingFang SC-Medium, PingFang SC;
  597. font-weight: 400;
  598. color: #333333;
  599. line-height: 80rpx;
  600. }
  601. .right-img-box {
  602. .img-box {
  603. display inline-block;
  604. height: 150rpx;
  605. width: 150rpx;
  606. position relative;
  607. margin: 0 14rpx 20rpx 0;
  608. border-radius 10rpx;
  609. overflow hidden;
  610. .img-data {
  611. height: 150rpx;
  612. width: 150rpx;
  613. }
  614. .position-img {
  615. position absolute;
  616. right: 0;
  617. top: 0;
  618. width: 36rpx;
  619. height: 36rpx;
  620. }
  621. }
  622. .img-box:nth-of-type(3n+3) {
  623. margin-right: 0rpx;
  624. }
  625. .add-button {
  626. margin: 0 0rpx 20rpx 0;
  627. border-radius 10rpx;
  628. overflow hidden;
  629. display inline-block;
  630. height: 150rpx;
  631. width: 150rpx;
  632. }
  633. }
  634. }
  635. }
  636. /* 实验室弹框 */
  637. .popup-max-box {
  638. z-index: 10;
  639. height: 100%;
  640. width: 100%;
  641. position fixed;
  642. background rgba(0, 0, 0, 0.2);
  643. display flex;
  644. flex-direction column;
  645. .popup-null {
  646. flex: 1;
  647. }
  648. .popup-big-box {
  649. border-top-left-radius: 20rpx;
  650. border-top-right-radius: 20rpx;
  651. background #fff;
  652. .popup-input-box {
  653. padding: 30rpx 20rpx;
  654. display: flex;
  655. input {
  656. flex: 1;
  657. height: 70rpx;
  658. border: 1rpx solid #e0e0e0;
  659. border-radius: 10rpx;
  660. margin-right: 20rpx;
  661. padding: 0 20rpx;
  662. }
  663. view {
  664. background #0183FA;
  665. color: #fff;
  666. border-radius: 10rpx;
  667. width: 140rpx;
  668. line-height: 70rpx;
  669. text-align center;
  670. font-size: 28rpx;
  671. }
  672. }
  673. .popup-for-max-box {
  674. margin: 0 20rpx 30rpx;
  675. height: 600rpx;
  676. overflow-y scroll;
  677. .popup-for-null {
  678. line-height: 100rpx;
  679. text-align center;
  680. color: #999;
  681. }
  682. .popup-for-box {
  683. display: flex;
  684. padding: 10px 0;
  685. .name-p {
  686. flex: 1;
  687. line-height: 60rpx;
  688. }
  689. .button-p {
  690. background #0183FA;
  691. color: #fff;
  692. text-align center;
  693. width: 100rpx;
  694. line-height: 60rpx;
  695. height: 60rpx;
  696. border-radius: 10rpx;
  697. }
  698. }
  699. }
  700. }
  701. }
  702. .subBtn {
  703. width: 690rpx;
  704. height: 100rpx;
  705. background: #0183FA;
  706. border-radius: 50rpx 50rpx 50rpx 50rpx;
  707. font-weight: 400;
  708. font-size: 30rpx;
  709. color: #FFFFFF;
  710. line-height: 100rpx;
  711. text-align: center;
  712. position: fixed;
  713. left: 30rpx;
  714. bottom: 10rpx;
  715. }
  716. /* 上报记录 */
  717. .escalation {
  718. .escalation-li {
  719. width: 690rpx;
  720. height: 162rpx;
  721. background: #FFFFFF;
  722. border-radius: 20rpx 20rpx 20rpx 20rpx;
  723. margin: 20rpx 30rpx;
  724. padding: 0 30rpx;
  725. box-sizing: border-box;
  726. .escalation-li-t {
  727. display: flex;
  728. justify-content: space-between;
  729. align-items: center;
  730. border-bottom: 1rpx solid #E0E0E0;
  731. >view:nth-of-type(1) {
  732. font-weight: 400;
  733. font-size: 30rpx;
  734. color: #333333;
  735. line-height: 80rpx;
  736. text-align: left;
  737. }
  738. >view:nth-of-type(2) {
  739. font-weight: 400;
  740. font-size: 28rpx;
  741. color: #0183FA;
  742. line-height: 80rpx;
  743. text-align: left;
  744. display: flex;
  745. justify-content: flex-start;
  746. align-items: center;
  747. >img {
  748. width: 24rpx;
  749. height: 24rpx;
  750. }
  751. }
  752. }
  753. .escalation-li-b {
  754. display: flex;
  755. justify-content: space-between;
  756. align-items: center;
  757. >view:nth-of-type(1) {
  758. font-weight: 400;
  759. font-size: 30rpx;
  760. color: #333333;
  761. line-height: 80rpx;
  762. text-align: left;
  763. }
  764. >view:nth-of-type(2) {
  765. font-weight: 400;
  766. font-size: 30rpx;
  767. color: #666666;
  768. line-height: 80rpx;
  769. text-align: left;
  770. }
  771. }
  772. }
  773. }
  774. /* 隐患整改 */
  775. .hidden {
  776. width: 690rpx;
  777. border-radius: 20rpx 20rpx 20rpx 20rpx;
  778. background: #FFFFFF;
  779. padding: 0 30rpx;
  780. box-sizing: border-box;
  781. margin: 20rpx 30rpx;
  782. .hidden-li {
  783. height: 80rpx;
  784. border-bottom: 1rpx solid #E0E0E0;
  785. display: flex;
  786. justify-content: flex-start;
  787. align-items: center;
  788. .hidden-li-l {
  789. width: 34rpx;
  790. height: 34rpx;
  791. }
  792. .hidden-li-c {
  793. font-size: 28rpx;
  794. color: #333333;
  795. line-height: 30rpx;
  796. text-align: left;
  797. flex: 1;
  798. overflow: hidden;
  799. text-overflow: ellipsis;
  800. white-space: nowrap;
  801. margin: 0 84rpx 0 12rpx;
  802. }
  803. .hidden-li-r {
  804. font-size: 28rpx;
  805. color: #0183FA;
  806. line-height: 80rpx;
  807. text-align: left;
  808. display: flex;
  809. justify-content: flex-start;
  810. align-items: center;
  811. >img {
  812. width: 24rpx;
  813. height: 24rpx;
  814. }
  815. }
  816. }
  817. .hidden-li:last-of-type {
  818. border: none;
  819. }
  820. }
  821. #color-A {
  822. color: #0183FA;
  823. }
  824. #color-B {
  825. color: #16B531;
  826. }
  827. #color-C {
  828. color: #FF8C00;
  829. }
  830. .get-data-null-p {
  831. text-align: center;
  832. height: 100rpx;
  833. line-height: 100rpx;
  834. color: #999;
  835. padding-bottom:200rpx;
  836. }
  837. }
  838. </style>