snapshotList.vue 21 KB

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