snapshotList.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  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. console.log(res)
  372. let list = res.result.split("?")[1].split("&");
  373. let codeData = {};
  374. list.forEach((item) => {
  375. codeData[item.split("=")[0]] = item.split("=")[1];
  376. })
  377. console.log('二维码', codeData)
  378. if (codeData.code) {
  379. self.$set(self.form, "subId", codeData.subId)
  380. self.buildBySub();
  381. self.popupType = true;
  382. } else {
  383. uni.showToast({
  384. title: '请扫描正确的二维码',
  385. icon: "none",
  386. mask: true,
  387. duration: 2000
  388. });
  389. }
  390. }
  391. });
  392. },
  393. //搜索项跳转
  394. inspectionItemsClick() {
  395. this.form.pageType=1;//1随手拍检查项
  396. uni.navigateTo({
  397. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsSearch?form=' + encodeURIComponent(
  398. JSON.stringify(this.form))
  399. });
  400. },
  401. //上报
  402. async submitForm() {
  403. let self = this;
  404. if (!this.form.subId) {
  405. uni.showToast({
  406. title: '请选择实验室!',
  407. icon: "none",
  408. mask: true,
  409. duration: 2000
  410. });
  411. return
  412. }
  413. if (!this.form.hazardDescribe) {
  414. uni.showToast({
  415. title: '请输入隐患描述!',
  416. icon: "none",
  417. mask: true,
  418. duration: 2000
  419. });
  420. return
  421. }
  422. if (this.form.imgDtoList.length<=0) {
  423. uni.showToast({
  424. title: '请选择现场照片!',
  425. icon: "none",
  426. mask: true,
  427. duration: 2000
  428. });
  429. return
  430. }
  431. const {
  432. data
  433. } = await securityAppCheckPhotoMyAdd(self.form);
  434. if (data.code == 200) {
  435. uni.showToast({
  436. title: '提交成功',
  437. icon: "none",
  438. mask: true,
  439. duration: 2000
  440. });
  441. let infoData={
  442. photoId:data.data
  443. };
  444. uni.navigateTo({
  445. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' + encodeURIComponent(JSON.stringify(infoData))
  446. });
  447. }
  448. },
  449. }
  450. }
  451. </script>
  452. <style lang="stylus" scoped>
  453. .snapshotList {
  454. height: 100%;
  455. display flex;
  456. .tabTitle {
  457. width: 600rpx;
  458. height: 80rpx;
  459. display: flex;
  460. justify-content: center;
  461. margin: 20rpx 0 0 74rpx;
  462. >view:nth-of-type(1) {
  463. width: 300rpx;
  464. height: 80rpx;
  465. border-radius: 50rpx 0rpx 0rpx 50rpx;
  466. }
  467. >view:nth-of-type(2) {
  468. width: 300rpx;
  469. height: 80rpx;
  470. border-radius: 0rpx 50rpx 50rpx 0rpx;
  471. }
  472. .tab-A {
  473. font-size: 30rpx;
  474. color: #FFFFFF;
  475. line-height: 80rpx;
  476. text-align: center;
  477. background: #0183FA;
  478. }
  479. .tab-B {
  480. font-size: 30rpx;
  481. color: #333333;
  482. line-height: 80rpx;
  483. text-align: center;
  484. background: #FFFFFF;
  485. }
  486. }
  487. .tabTitleTow {
  488. width: 690rpx;
  489. height: 80rpx;
  490. display: flex;
  491. justify-content: center;
  492. margin: 20rpx 0 0 30rpx;
  493. >view:nth-of-type(1) {
  494. width: 230rpx;
  495. height: 80rpx;
  496. border-radius: 50rpx 0rpx 0rpx 50rpx;
  497. }
  498. >view:nth-of-type(2) {
  499. width: 230rpx;
  500. height: 80rpx;
  501. border-radius: 0rpx 0rpx 0rpx 0rpx;
  502. }
  503. >view:nth-of-type(3) {
  504. width: 230rpx;
  505. height: 80rpx;
  506. border-radius: 0rpx 50rpx 50rpx 0rpx;
  507. }
  508. .tab-C {
  509. font-size: 30rpx;
  510. color: #FFFFFF;
  511. line-height: 80rpx;
  512. text-align: center;
  513. background: #0183FA;
  514. }
  515. .tab-D {
  516. font-size: 30rpx;
  517. color: #333333;
  518. line-height: 80rpx;
  519. text-align: center;
  520. background: #FFFFFF;
  521. }
  522. }
  523. .list {
  524. width: 690rpx;
  525. min-height: 765rpx;
  526. background: #FFFFFF;
  527. border-radius: 20rpx 20rpx 20rpx 20rpx;
  528. margin: 20rpx 0 0 30rpx;
  529. .list-li {
  530. display: flex;
  531. justify-content: space-between;
  532. border-bottom: 1rpx solid #E0E0E0;
  533. padding: 0 22rpx 0 28rpx;
  534. box-sizing: border-box;
  535. >view:nth-of-type(1) {
  536. font-size: 30rpx;
  537. color: #333333;
  538. line-height: 80rpx;
  539. text-align: left;
  540. }
  541. >view:nth-of-type(2) {
  542. font-size: 28rpx;
  543. color: #666666;
  544. line-height: 80rpx;
  545. text-align: left;
  546. display: flex;
  547. justify-content: flex-start;
  548. align-items: center;
  549. >img {
  550. width: 24rpx;
  551. height: 24rpx;
  552. margin-left: 8rpx;
  553. }
  554. }
  555. .project_r {
  556. width: 510rpx;
  557. min-height: 80rpx;
  558. display: flex;
  559. justify-content: flex-end;
  560. align-items: center;
  561. padding-left: 20rpx;
  562. box-sizing: border-box;
  563. color: #666;
  564. }
  565. }
  566. .srearch {
  567. .srearch-l {
  568. width: 60rpx;
  569. height: 60rpx;
  570. margin-right: 40rpx;
  571. >img {
  572. width: 30rpx;
  573. height: 30rpx;
  574. margin: 15rpx 0 0 15rpx;
  575. }
  576. }
  577. .srearch-r {
  578. width: 60rpx;
  579. height: 60rpx;
  580. >img {
  581. width: 30rpx;
  582. height: 30rpx;
  583. margin: 15rpx 0 0 15rpx;
  584. }
  585. }
  586. }
  587. .describe {
  588. width: 636rpx;
  589. height: 120rpx;
  590. border-radius: 10rpx 10rpx 10rpx 10rpx;
  591. border: 1rpx solid #E0E0E0;
  592. margin: 20rpx 0 0 28rpx;
  593. padding: 12rpx 16rpx;
  594. box-sizing: border-box;
  595. }
  596. .check-for-img-max-box {
  597. margin: 20px 28rpx;
  598. .left-title-p {
  599. width: 100%;
  600. text-align: left;
  601. font-size: 30rpx;
  602. font-family: PingFang SC-Medium, PingFang SC;
  603. font-weight: 400;
  604. color: #333333;
  605. line-height: 80rpx;
  606. }
  607. .right-img-box {
  608. .img-box {
  609. display inline-block;
  610. height: 150rpx;
  611. width: 150rpx;
  612. position relative;
  613. margin: 0 10rpx 20rpx 0;
  614. border-radius 10rpx;
  615. overflow hidden;
  616. .img-data {
  617. height: 150rpx;
  618. width: 150rpx;
  619. }
  620. .position-img {
  621. position absolute;
  622. right: 0;
  623. top: 0;
  624. width: 36rpx;
  625. height: 36rpx;
  626. }
  627. }
  628. .img-box:nth-of-type(4n+4) {
  629. margin-right: 0rpx;
  630. }
  631. .add-button {
  632. margin: 0 0rpx 20rpx 0;
  633. border-radius 10rpx;
  634. overflow hidden;
  635. display inline-block;
  636. height: 150rpx;
  637. width: 150rpx;
  638. }
  639. }
  640. }
  641. }
  642. /* 实验室弹框 */
  643. .popup-max-box {
  644. z-index: 10;
  645. height: 100%;
  646. width: 100%;
  647. position fixed;
  648. background rgba(0, 0, 0, 0.2);
  649. display flex;
  650. flex-direction column;
  651. .popup-null {
  652. flex: 1;
  653. }
  654. .popup-big-box {
  655. border-top-left-radius: 20rpx;
  656. border-top-right-radius: 20rpx;
  657. background #fff;
  658. .popup-input-box {
  659. padding: 30rpx 20rpx;
  660. display: flex;
  661. input {
  662. flex: 1;
  663. height: 70rpx;
  664. border: 1rpx solid #e0e0e0;
  665. border-radius: 10rpx;
  666. margin-right: 20rpx;
  667. padding: 0 20rpx;
  668. }
  669. view {
  670. background #0183FA;
  671. color: #fff;
  672. border-radius: 10rpx;
  673. width: 140rpx;
  674. line-height: 70rpx;
  675. text-align center;
  676. font-size: 28rpx;
  677. }
  678. }
  679. .popup-for-max-box {
  680. margin: 0 20rpx 30rpx;
  681. height: 600rpx;
  682. overflow-y scroll;
  683. .popup-for-null {
  684. line-height: 100rpx;
  685. text-align center;
  686. color: #999;
  687. }
  688. .popup-for-box {
  689. display: flex;
  690. padding: 10px 0;
  691. .name-p {
  692. flex: 1;
  693. line-height: 60rpx;
  694. }
  695. .button-p {
  696. background #0183FA;
  697. color: #fff;
  698. text-align center;
  699. width: 100rpx;
  700. line-height: 60rpx;
  701. height: 60rpx;
  702. border-radius: 10rpx;
  703. }
  704. }
  705. }
  706. }
  707. }
  708. .subBtn {
  709. width: 690rpx;
  710. height: 100rpx;
  711. background: #0183FA;
  712. border-radius: 50rpx 50rpx 50rpx 50rpx;
  713. font-weight: 400;
  714. font-size: 30rpx;
  715. color: #FFFFFF;
  716. line-height: 100rpx;
  717. text-align: center;
  718. position: fixed;
  719. left: 30rpx;
  720. bottom: 10rpx;
  721. }
  722. /* 上报记录 */
  723. .escalation {
  724. .escalation-li {
  725. width: 690rpx;
  726. height: 162rpx;
  727. background: #FFFFFF;
  728. border-radius: 20rpx 20rpx 20rpx 20rpx;
  729. margin: 20rpx 30rpx;
  730. padding: 0 30rpx;
  731. box-sizing: border-box;
  732. .escalation-li-t {
  733. display: flex;
  734. justify-content: space-between;
  735. align-items: center;
  736. border-bottom: 1rpx solid #E0E0E0;
  737. >view:nth-of-type(1) {
  738. font-weight: 400;
  739. font-size: 30rpx;
  740. color: #333333;
  741. line-height: 80rpx;
  742. text-align: left;
  743. }
  744. >view:nth-of-type(2) {
  745. font-weight: 400;
  746. font-size: 28rpx;
  747. color: #0183FA;
  748. line-height: 80rpx;
  749. text-align: left;
  750. display: flex;
  751. justify-content: flex-start;
  752. align-items: center;
  753. >img {
  754. width: 24rpx;
  755. height: 24rpx;
  756. }
  757. }
  758. }
  759. .escalation-li-b {
  760. display: flex;
  761. justify-content: space-between;
  762. align-items: center;
  763. >view:nth-of-type(1) {
  764. font-weight: 400;
  765. font-size: 30rpx;
  766. color: #333333;
  767. line-height: 80rpx;
  768. text-align: left;
  769. }
  770. >view:nth-of-type(2) {
  771. font-weight: 400;
  772. font-size: 30rpx;
  773. color: #666666;
  774. line-height: 80rpx;
  775. text-align: left;
  776. }
  777. }
  778. }
  779. }
  780. /* 隐患整改 */
  781. .hidden {
  782. width: 690rpx;
  783. border-radius: 20rpx 20rpx 20rpx 20rpx;
  784. background: #FFFFFF;
  785. padding: 0 30rpx;
  786. box-sizing: border-box;
  787. margin: 20rpx 30rpx;
  788. .hidden-li {
  789. height: 80rpx;
  790. border-bottom: 1rpx solid #E0E0E0;
  791. display: flex;
  792. justify-content: flex-start;
  793. align-items: center;
  794. .hidden-li-l {
  795. width: 34rpx;
  796. height: 34rpx;
  797. }
  798. .hidden-li-c {
  799. font-size: 28rpx;
  800. color: #333333;
  801. line-height: 30rpx;
  802. text-align: left;
  803. flex: 1;
  804. overflow: hidden;
  805. text-overflow: ellipsis;
  806. white-space: nowrap;
  807. margin: 0 84rpx 0 12rpx;
  808. }
  809. .hidden-li-r {
  810. font-size: 28rpx;
  811. color: #0183FA;
  812. line-height: 80rpx;
  813. text-align: left;
  814. display: flex;
  815. justify-content: flex-start;
  816. align-items: center;
  817. >img {
  818. width: 24rpx;
  819. height: 24rpx;
  820. }
  821. }
  822. }
  823. .hidden-li:last-of-type {
  824. border: none;
  825. }
  826. }
  827. #color-A {
  828. color: #0183FA;
  829. }
  830. #color-B {
  831. color: #16B531;
  832. }
  833. #color-C {
  834. color: #FF8C00;
  835. }
  836. .get-data-null-p {
  837. text-align: center;
  838. height: 100rpx;
  839. line-height: 100rpx;
  840. color: #999;
  841. padding-bottom:200rpx;
  842. }
  843. }
  844. </style>