snapshotList.vue 20 KB

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