inspectList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. <!-- 检查和自查列表 -->
  2. <template>
  3. <view class="snapshotList">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="title" @click="planClick()">
  6. <view class="title-l">
  7. <view class="title-l-t">{{optionData.planTitle}}</view>
  8. <view class="title-l-b">
  9. <view v-if="optionData.checkCategory">
  10. {{optionData.checkCategory==1?'校院巡查':(optionData.checkCategory==2?'学院自查':'')}}
  11. </view>
  12. <view v-if="optionData.checkTypeName">{{optionData.checkTypeName}}</view>
  13. <view v-if="optionData.crossCheck==1">交叉互检</view>
  14. </view>
  15. </view>
  16. <img class="title-r" src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  17. </view>
  18. <view class="tabTitleTow">
  19. <view :class="tabIndexTow==index?'tab-C':'tab-D'" v-for="(item,index) in tabListTow"
  20. @click="tabClickTow(index)">{{item}}</view>
  21. </view>
  22. <view>
  23. <view class="level">
  24. <view class="level-li" :id="levelId==item.levelId?'levelColor-A':'levelColor-B'"
  25. @click="levelClick(item.levelId)" v-for="(item,index) in levelList">{{item.levelName}}</view>
  26. </view>
  27. <view class="srearch">
  28. <!-- <picker @change="deptChange" :value="deptData.index" :range="deptData.list" :range-key="'deptName'">
  29. <view class="college">
  30. <view>{{deptData.name?deptData.name:'学院'}}</view>
  31. <img src="@/pages_safetyCheck/images/icon_06.png">
  32. </view>
  33. </picker> -->
  34. <view class="srearch-n">
  35. <view class="srearch-l">
  36. <img src="@/pages_safetyCheck/images/icon_aqjc_ss.png">
  37. </view>
  38. <input class="srearch-c" type="text" @confirm="carriageReturnRequest" v-model="searchValue"
  39. placeholder="搜索实验室" />
  40. <!-- <view class="srearch-r" @click="saoCode()">
  41. <img src="@/pages_safetyCheck/images/icon_aqjc_sm.png">
  42. </view> -->
  43. </view>
  44. </view>
  45. </view>
  46. <view class="hidden">
  47. <view class="lab-info" @click="listClick(item)" v-for="(item,index) in dataList">
  48. <img class="lab-info-l" src="@/pages_safetyCheck/images/icon_aqjc_shiyanshi.png">
  49. <view class="lab-info-c">
  50. <view class="lab-info-c-t">
  51. <view class="lab-info-c-t-l">{{item.subName}}</view>
  52. <view class="lab-info-c-t-r"
  53. :style="'border:1rpx solid '+item.classLevelColor+';background:'+item.classLevelColorTow+';'">
  54. <text
  55. :style="'border-right:1rpx solid '+item.classLevelColor+';color:'+item.classLevelColor+';'">{{item.classLevelName?item.classLevelName:''}}</text>
  56. <text :style="'color:'+item.classLevelColor+';'">{{item.classTypeNames?item.classTypeNames:''}}</text>
  57. </view>
  58. </view>
  59. <view class="lab-info-c-b">
  60. <text>{{tabIndexTow==0?item.roomNum:item.subRoom}}房间&{{item.buildName}}</text>
  61. <text>{{item.deptName}}</text>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
  66. </view>
  67. <img class="saoCode" @click="saoCode()"
  68. src="@/pages_safetyCheck/images/icon_aqjc_saoma.png">
  69. </scroll-view>
  70. </view>
  71. </template>
  72. <script>
  73. import {
  74. config
  75. } from '@/api/request/config.js'
  76. import {
  77. systemDeptDropList,
  78. } from '@/pages/api/index.js'
  79. import {
  80. laboratorySubRelInfoGetRelList,
  81. laboratoryLevelConfigGetWebLevelTitleList,
  82. securityAppCheckManageList,
  83. securityAppCheckDangerGetCheckDangerSubList,
  84. securityAppCheckDangerReviewSubList,
  85. } from '@/pages_safetyCheck/api/index.js'
  86. export default {
  87. name: "snapshotList",
  88. components: {
  89. },
  90. data() {
  91. return {
  92. baseUrl: config.base_url,
  93. pageType: 0,
  94. userType: 1,
  95. tabListTow: ['检查任务', '复查验证', '隐患整改'],
  96. tabIndexTow: 0,
  97. //学院选择
  98. deptData: {
  99. index: null,
  100. list: [],
  101. id: null,
  102. name: null
  103. },
  104. deptIndex: null,
  105. deptList: [],
  106. //弹层实验室数据
  107. popupType: false,
  108. roomList: [],
  109. //级别
  110. levelList: [],
  111. levelId: null,
  112. optionData: null,
  113. //实验室/房间号
  114. searchValue: '',
  115. subId: '',
  116. planSetId: null,
  117. // 查询参数
  118. queryParams: {
  119. page: 1,
  120. pageSize: 20,
  121. },
  122. dataList: [],
  123. total: 0,
  124. getDataType: false,
  125. }
  126. },
  127. onLoad(option) {
  128. let optionData = JSON.parse(decodeURIComponent(option.infoData))
  129. console.log(optionData)
  130. uni.setNavigationBarTitle({
  131. title: optionData.checkPlanSetVoList.checkName
  132. })
  133. this.$set(this, 'tabListTow',
  134. optionData.checkCategory == 1 ? ['检查任务', '复查验证', '隐患整改'] :
  135. (optionData.checkCategory == 2 ? ['自查任务', '复查验证', '隐患整改'] : [])
  136. )
  137. this.$set(this, 'optionData', optionData);
  138. this.$set(this, 'planSetId', optionData.checkPlanSetVoList.planSetId);
  139. },
  140. created() {
  141. this.systemDeptDropList();
  142. this.laboratoryLevelConfigGetWebLevelTitleList();
  143. },
  144. mounted() {
  145. let self = this;
  146. setTimeout(() => {
  147. self.getList();
  148. }, 100);
  149. },
  150. methods: {
  151. //滚动事件
  152. scrollGet() {
  153. let self = this;
  154. if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
  155. this.$set(this, 'getDataType', true);
  156. } else {
  157. this.queryParams.page += 1;
  158. this.$nextTick(() => {
  159. this.getList();
  160. })
  161. }
  162. },
  163. //级别切换
  164. levelClick(id) {
  165. if (this.levelId == id) {
  166. this.$set(this, 'levelId', null);
  167. } else {
  168. this.$set(this, 'levelId', id);
  169. }
  170. this.$set(this, 'getDataType', false);
  171. this.$set(this.queryParams, 'page', 1);
  172. this.getList();
  173. },
  174. //查询类型切换
  175. tabClickTow(index) {
  176. this.$set(this.queryParams, 'page', 1);
  177. this.$set(this, 'deptData', {
  178. index: null,
  179. list: this.deptData.list,
  180. id: null,
  181. name: null
  182. });
  183. this.$set(this, 'searchValue', null);
  184. this.$set(this, 'levelId', null);
  185. this.$set(this, 'getDataType', false);
  186. this.$set(this, 'dataList', []);
  187. this.$set(this, 'total', 0);
  188. this.$set(this, 'tabIndexTow', index);
  189. this.$nextTick(() => {
  190. this.getList();
  191. })
  192. },
  193. //计划详情
  194. planClick() {
  195. let infoData = {
  196. planId: this.optionData.planId
  197. };
  198. uni.navigateTo({
  199. url: '/pages_safetyCheck/views/planDetail?infoData=' + encodeURIComponent(JSON.stringify(
  200. infoData))
  201. });
  202. },
  203. //实验室列表数据选择
  204. listClick(row) {
  205. let infoData = row;
  206. infoData.pageType = this.tabIndexTow;
  207. infoData.planTitle = this.optionData.planTitle;
  208. infoData.checkCategory = this.optionData.checkCategory;
  209. infoData.checkTypeName = this.optionData.checkTypeName;
  210. infoData.crossCheck = this.optionData.crossCheck;
  211. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  212. uni.navigateTo({
  213. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
  214. JSON.stringify(infoData))
  215. });
  216. },
  217. //搜索房间接口
  218. async buildBySub() {
  219. let self = this;
  220. const {
  221. data
  222. } = await laboratorySubRelInfoGetRelList({
  223. 'searchValue': this.form.searchValue,
  224. });
  225. if (data.code == 200) {
  226. if (data.data[0]) {
  227. this.roomList = data.data;
  228. } else {
  229. uni.showToast({
  230. title: '未找到相关实验室',
  231. icon: "none",
  232. mask: true,
  233. duration: 2000
  234. });
  235. }
  236. }
  237. },
  238. /******调用摄像头******/
  239. saoCode() {
  240. let self = this;
  241. uni.scanCode({
  242. onlyFromCamera: true,
  243. success: function(res) {
  244. let list = res.result.split("?")[1].split("&");
  245. let codeData = {};
  246. list.forEach((item) => {
  247. codeData[item.split("=")[0]] = item.split("=")[1];
  248. })
  249. if (codeData.code) {
  250. self.saoList(codeData.subId);
  251. } else {
  252. uni.showToast({
  253. title: '请扫描正确的二维码',
  254. icon: "none",
  255. mask: true,
  256. duration: 2000
  257. });
  258. }
  259. }
  260. });
  261. },
  262. //扫一扫查询数据
  263. async saoList(subId) {
  264. let obj = {
  265. planSetId: this.planSetId,
  266. subId: subId,
  267. }
  268. if (this.tabIndexTow == 0) {
  269. //检查计划
  270. const {
  271. data
  272. } = await securityAppCheckManageList(obj);
  273. if (data.code == 200) {
  274. if (data.data.records[0]) {
  275. //跳转检查项列表页面
  276. let infoData = data.data.records[0];
  277. infoData.pageType = this.tabIndexTow;
  278. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  279. uni.navigateTo({
  280. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  281. encodeURIComponent(
  282. JSON.stringify(infoData))
  283. });
  284. } else {
  285. //未找到数据提示
  286. uni.showToast({
  287. title: '未找到该实验室与本计划批次关联的数据',
  288. icon: "none",
  289. mask: true,
  290. duration: 2000
  291. });
  292. }
  293. }
  294. } else if (this.tabIndexTow == 1) {
  295. //复查计划
  296. obj.planId = this.optionData.planId;
  297. const {
  298. data
  299. } = await securityAppCheckDangerReviewSubList(obj);
  300. if (data.code == 200) {
  301. if (data.data[0] && data.data[0].stayExamineCheckNum != 0) {
  302. //跳转检查项列表页面
  303. let infoData = data.data[0];
  304. infoData.pageType = this.tabIndexTow;
  305. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  306. uni.navigateTo({
  307. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  308. encodeURIComponent(
  309. JSON.stringify(infoData))
  310. });
  311. } else {
  312. //未找到数据提示
  313. uni.showToast({
  314. title: '未找到该实验室与本计划批次关联的数据',
  315. icon: "none",
  316. mask: true,
  317. duration: 2000
  318. });
  319. }
  320. }
  321. } else if (this.tabIndexTow == 2) {
  322. //整改计划
  323. obj.planId = this.optionData.planId;
  324. const {
  325. data
  326. } = await securityAppCheckDangerGetCheckDangerSubList(obj);
  327. if (data.code == 200) {
  328. if (data.data[0]) {
  329. //跳转检查项列表页面
  330. let infoData = data.data[0];
  331. infoData.pageType = this.tabIndexTow;
  332. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  333. uni.navigateTo({
  334. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  335. encodeURIComponent(
  336. JSON.stringify(infoData))
  337. });
  338. } else {
  339. //未找到数据提示
  340. uni.showToast({
  341. title: '未找到该实验室与本计划批次关联的数据',
  342. icon: "none",
  343. mask: true,
  344. duration: 2000
  345. });
  346. }
  347. }
  348. }
  349. },
  350. //学院选择
  351. deptChange(e) {
  352. let self = this;
  353. self.deptData.list.forEach(function(item, index) {
  354. if (index == e.detail.value) {
  355. if (!item.deptId) {
  356. self.$set(self.deptData, 'id', null)
  357. self.$set(self.deptData, 'name', null)
  358. } else {
  359. self.$set(self.deptData, 'id', item.deptId)
  360. self.$set(self.deptData, 'name', item.deptName)
  361. }
  362. }
  363. })
  364. this.$set(this, 'getDataType', false);
  365. this.$set(this.queryParams, 'page', 1);
  366. this.getList();
  367. },
  368. //获取院系
  369. async systemDeptDropList() {
  370. const {
  371. data
  372. } = await systemDeptDropList({
  373. deptName: '',
  374. level: 2,
  375. deptType: 1
  376. });
  377. if (data.code == 200) {
  378. data.data.unshift({
  379. deptid: null,
  380. deptName: '全部'
  381. })
  382. this.$set(this.deptData, 'list', data.data);
  383. }
  384. },
  385. //获取分级
  386. async laboratoryLevelConfigGetWebLevelTitleList() {
  387. const {
  388. data
  389. } = await laboratoryLevelConfigGetWebLevelTitleList({});
  390. if (data.code == 200) {
  391. data.data.forEach(function(item) {
  392. item.levelName = item.levelName.split('/')[0]
  393. })
  394. this.$set(this, 'levelList', data.data);
  395. }
  396. },
  397. //回车触发
  398. carriageReturnRequest() {
  399. this.$set(this, 'getDataType', false);
  400. this.$set(this.queryParams, 'page', 1);
  401. this.getList();
  402. },
  403. //检查任务
  404. async getList() {
  405. let self = this;
  406. let obj = JSON.parse(JSON.stringify(this.queryParams));
  407. obj.planSetId = this.planSetId;
  408. obj.deptId = this.deptData.id ? this.deptData.id : '';
  409. obj.searchValue = this.searchValue ? this.searchValue : '';
  410. obj.levelId = this.levelId ? this.levelId : '';
  411. if (this.tabIndexTow == 0) {
  412. //检查计划
  413. const {
  414. data
  415. } = await securityAppCheckManageList(obj);
  416. if (data.code == 200) {
  417. data.data.records.forEach(function(item) {
  418. if(item.classLevelColor){
  419. item.classLevelColorTow = self.hexToRgb(item.classLevelColor, 0.2)
  420. }
  421. })
  422. if (self.queryParams.page == 1) {
  423. this.dataList = data.data.records;
  424. this.total = data.data.total;
  425. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  426. this.$set(this, 'getDataType', true);
  427. }
  428. } else {
  429. this.dataList = [...this.dataList, ...data.data.records]
  430. this.total = data.data.total;
  431. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  432. this.$set(this, 'getDataType', true);
  433. }
  434. }
  435. }
  436. } else if (this.tabIndexTow == 1) {
  437. //复查计划
  438. obj.planId = this.optionData.planId;
  439. const {
  440. data
  441. } = await securityAppCheckDangerReviewSubList(obj);
  442. if (data.code == 200) {
  443. this.dataList = data.data;
  444. this.$set(this, 'getDataType', true);
  445. // 后台接口暂时不支持分页
  446. // if (self.queryParams.page == 1) {
  447. // this.dataList = data.data.records;
  448. // this.total = data.data.total;
  449. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  450. // this.$set(this, 'getDataType', true);
  451. // }
  452. // } else {
  453. // this.dataList = [...this.dataList, ...data.data.records]
  454. // this.total = data.data.total;
  455. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  456. // this.$set(this, 'getDataType', true);
  457. // }
  458. // }
  459. }
  460. } else if (this.tabIndexTow == 2) {
  461. //整改计划
  462. obj.planId = this.optionData.planId;
  463. const {
  464. data
  465. } = await securityAppCheckDangerGetCheckDangerSubList(obj);
  466. if (data.code == 200) {
  467. this.dataList = data.data;
  468. this.$set(this, 'getDataType', true);
  469. // 后台接口暂时不支持分页
  470. // if (self.queryParams.page == 1) {
  471. // this.dataList = data.data.records;
  472. // this.total = data.data.total;
  473. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  474. // this.$set(this, 'getDataType', true);
  475. // }
  476. // } else {
  477. // this.dataList = [...this.dataList, ...data.data.records]
  478. // this.total = data.data.total;
  479. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  480. // this.$set(this, 'getDataType', true);
  481. // }
  482. // }
  483. }
  484. }
  485. },
  486. //十六进制颜色值和RGB格式转换
  487. hexToRgb(hex, opacity = 1) {
  488. // 去除#号
  489. var color = hex.replace("#", "");
  490. // 分割成红、绿、蓝三部分的16进制字符串
  491. var red = parseInt(color.substring(0, 2), 16);
  492. var green = parseInt(color.substring(2, 4), 16);
  493. var blue = parseInt(color.substring(4, 6), 16);
  494. return `RGB(${red}, ${green}, ${blue},${opacity})`;
  495. },
  496. }
  497. }
  498. </script>
  499. <style lang="stylus" scoped>
  500. .snapshotList {
  501. height: 100%;
  502. display flex;
  503. overflow: hidden;
  504. .info-max-box {
  505. padding-top: 20rpx;
  506. }
  507. .title {
  508. width: 690rpx;
  509. margin: 0 30rpx 20rpx;
  510. height: 150rpx;
  511. background: #FFFFFF;
  512. border-radius: 20rpx 20rpx 20rpx 20rpx;
  513. display: flex;
  514. justify-content: space-between;
  515. align-items: center;
  516. padding: 0 30rpx;
  517. box-sizing: border-box;
  518. .title-l {
  519. width: 594rpx;
  520. .title-l-t {
  521. font-size: 30rpx;
  522. color: #333333;
  523. line-height: 42rpx;
  524. text-align: left;
  525. overflow: hidden;
  526. text-overflow: ellipsis;
  527. white-space: nowrap;
  528. }
  529. .title-l-b {
  530. display: flex;
  531. justify-content: flex-start;
  532. margin-top: 16rpx;
  533. >view {
  534. width: 130rpx;
  535. height: 50rpx;
  536. background: rgba(1, 131, 250, 0.2);
  537. border-radius: 6rpx 6rpx 6rpx 6rpx;
  538. font-size: 24rpx;
  539. color: #0183FA;
  540. line-height: 50rpx;
  541. text-align: center;
  542. margin-right: 14rpx;
  543. }
  544. }
  545. }
  546. .title-r {
  547. width: 24rpx;
  548. height: 24rpx;
  549. }
  550. }
  551. .tabTitleTow {
  552. width: 690rpx;
  553. height: 80rpx;
  554. display: flex;
  555. justify-content: center;
  556. margin: 20rpx 0 0 30rpx;
  557. >view:nth-of-type(1) {
  558. width: 230rpx;
  559. height: 80rpx;
  560. border-radius: 50rpx 0rpx 0rpx 50rpx;
  561. }
  562. >view:nth-of-type(2) {
  563. width: 230rpx;
  564. height: 80rpx;
  565. border-radius: 0rpx 0rpx 0rpx 0rpx;
  566. }
  567. >view:nth-of-type(3) {
  568. width: 230rpx;
  569. height: 80rpx;
  570. border-radius: 0rpx 50rpx 50rpx 0rpx;
  571. }
  572. .tab-C {
  573. font-size: 30rpx;
  574. color: #FFFFFF;
  575. line-height: 80rpx;
  576. text-align: center;
  577. background: #0183FA;
  578. }
  579. .tab-D {
  580. font-size: 30rpx;
  581. color: #333333;
  582. line-height: 80rpx;
  583. text-align: center;
  584. background: #FFFFFF;
  585. }
  586. }
  587. .srearch {
  588. width: 750rpx;
  589. height: 100rpx;
  590. background: #FFFFFF;
  591. border-radius: 0rpx 0rpx 0rpx 0rpx;
  592. overflow: hidden;
  593. display: flex;
  594. display: flex;
  595. justify-content: space-between;
  596. align-items: center;
  597. padding: 0 30rpx;
  598. box-sizing: border-box;
  599. .college {
  600. width: 200rpx;
  601. height: 60rpx;
  602. border-radius: 50rpx 50rpx 50rpx 50rpx;
  603. border: 2rpx solid #E0E0E0;
  604. font-size: 24rpx;
  605. color: #333333;
  606. line-height: 60rpx;
  607. text-align: left;
  608. display: flex;
  609. justify-content: space-between;
  610. align-items: center;
  611. padding: 0 26rpx;
  612. box-sizing: border-box;
  613. overflow: hidden;
  614. text-overflow: ellipsis;
  615. white-space: nowrap;
  616. >view {
  617. width: 124rpx;
  618. display: block;
  619. overflow: hidden;
  620. text-overflow: ellipsis;
  621. white-space: nowrap;
  622. }
  623. >img {
  624. display: block;
  625. width: 24rpx;
  626. height: 12rpx;
  627. }
  628. }
  629. .srearch-n {
  630. width: 690rpx;
  631. height: 60rpx;
  632. border-radius: 50rpx 50rpx 50rpx 50rpx;
  633. border: 2rpx solid #E0E0E0;
  634. display: flex;
  635. justify-content: flex-start;
  636. align-items: center;
  637. .srearch-l {
  638. width: 60rpx;
  639. height: 60rpx;
  640. >img {
  641. width: 20rpx;
  642. height: 20rpx;
  643. margin: 20rpx 0 0 26rpx;
  644. }
  645. }
  646. .srearch-c {
  647. flex: 1;
  648. height: 58rpx;
  649. font-size: 24rpx;
  650. color: #999999;
  651. line-height: 30rpx;
  652. text-align: left;
  653. }
  654. .srearch-r {
  655. width: 90rpx;
  656. height: 60rpx;
  657. >img {
  658. width: 30rpx;
  659. height: 30rpx;
  660. margin: 14rpx 22rpx 0 30rpx;
  661. }
  662. }
  663. }
  664. }
  665. .level {
  666. width: 750rpx;
  667. height: 80rpx;
  668. background: #FFFFFF;
  669. display: flex;
  670. justify-content: flex-start;
  671. padding: 30rpx 30rpx 0;
  672. box-sizing: border-box;
  673. margin-top: 20rpx;
  674. .level-li {
  675. width: 100rpx;
  676. height: 50rpx;
  677. background: #F5F5F5;
  678. border-radius: 50rpx 50rpx 50rpx 50rpx;
  679. border: 2rpx solid #E0E0E0;
  680. margin-right: 10rpx;
  681. font-size: 24rpx;
  682. color: #333333;
  683. line-height: 50rpx;
  684. text-align: center;
  685. }
  686. #levelColor-A {
  687. background: rgba(255, 0, 0, 0.2);
  688. color: #FF0000;
  689. border: 1rpx solid #FF0000;
  690. }
  691. #levelColor-B {
  692. background: #F5F5F5;
  693. color: #333333;
  694. border: 2rpx solid #E0E0E0;
  695. }
  696. }
  697. .list {
  698. width: 690rpx;
  699. min-height: 765rpx;
  700. background: #FFFFFF;
  701. border-radius: 20rpx 20rpx 20rpx 20rpx;
  702. margin: 20rpx 0 0 30rpx;
  703. .list-li {
  704. display: flex;
  705. justify-content: space-between;
  706. border-bottom: 1rpx solid #E0E0E0;
  707. padding: 0 22rpx 0 28rpx;
  708. box-sizing: border-box;
  709. >view:nth-of-type(1) {
  710. font-size: 30rpx;
  711. color: #333333;
  712. line-height: 80rpx;
  713. text-align: left;
  714. }
  715. >view:nth-of-type(2) {
  716. font-size: 28rpx;
  717. color: #666666;
  718. line-height: 80rpx;
  719. text-align: left;
  720. display: flex;
  721. justify-content: flex-start;
  722. align-items: center;
  723. >img {
  724. width: 24rpx;
  725. height: 24rpx;
  726. margin-left: 8rpx;
  727. }
  728. }
  729. .project_r {
  730. width: 510rpx;
  731. min-height: 80rpx;
  732. display: flex;
  733. justify-content: flex-end;
  734. align-items: center;
  735. padding-left: 20rpx;
  736. box-sizing: border-box;
  737. color: #666;
  738. }
  739. }
  740. .describe {
  741. width: 636rpx;
  742. height: 120rpx;
  743. border-radius: 10rpx 10rpx 10rpx 10rpx;
  744. border: 2rpx solid #E0E0E0;
  745. margin: 20rpx 0 0 28rpx;
  746. padding: 12rpx 16rpx;
  747. box-sizing: border-box;
  748. }
  749. .check-for-img-max-box {
  750. margin: 20px 28rpx;
  751. .left-title-p {
  752. width: 100%;
  753. text-align: left;
  754. font-size: 30rpx;
  755. font-family: PingFang SC-Medium, PingFang SC;
  756. font-weight: 400;
  757. color: #333333;
  758. line-height: 80rpx;
  759. }
  760. .right-img-box {
  761. .img-box {
  762. display inline-block;
  763. height: 150rpx;
  764. width: 150rpx;
  765. position relative;
  766. margin: 0 14rpx 20rpx 0;
  767. border-radius 10rpx;
  768. overflow hidden;
  769. .img-data {
  770. height: 150rpx;
  771. width: 150rpx;
  772. }
  773. .position-img {
  774. position absolute;
  775. right: 0;
  776. top: 0;
  777. width: 36rpx;
  778. height: 36rpx;
  779. }
  780. }
  781. .img-box:nth-of-type(3n+3) {
  782. margin-right: 0rpx;
  783. }
  784. .add-button {
  785. margin: 0 0rpx 20rpx 0;
  786. border-radius 10rpx;
  787. overflow hidden;
  788. display inline-block;
  789. height: 150rpx;
  790. width: 150rpx;
  791. }
  792. }
  793. }
  794. }
  795. /* 隐患整改 */
  796. .hidden {
  797. box-sizing: border-box;
  798. margin: 20rpx 0;
  799. .hidden-li:nth-child(1) {
  800. border-top: none;
  801. }
  802. .lab-info {
  803. background: #FFFFFF;
  804. display: flex;
  805. justify-content: space-between;
  806. border: 2rpx dashed #D8D8D8;
  807. .lab-info-l {
  808. width: 80rpx;
  809. height: 80rpx;
  810. background: #0183FA;
  811. border-radius: 10rpx 10rpx 10rpx 10rpx;
  812. margin-left: 30rpx;
  813. margin-top: 30rpx;
  814. margin-bottom: 42rpx;
  815. }
  816. .lab-info-c {
  817. margin: 24rpx 30rpx 0 20rpx;
  818. flex: 1;
  819. .lab-info-c-t {
  820. display: flex;
  821. justify-content: space-between;
  822. .lab-info-c-t-l {
  823. font-size: 30rpx;
  824. color: #333333;
  825. line-height: 42rpx;
  826. text-align: left;
  827. overflow: hidden;
  828. text-overflow: ellipsis;
  829. white-space: nowrap;
  830. }
  831. .lab-info-c-t-r {
  832. display: flex;
  833. justify-content: flex-start;
  834. border-radius: 10rpx 10rpx 10rpx 10rpx;
  835. width: 180rpx;
  836. height: 40rpx;
  837. margin-left: 10rpx;
  838. >text {
  839. display: inline-block;
  840. flex: 1;
  841. text-align: center;
  842. font-size: 24rpx;
  843. line-height: 40rpx;
  844. text-align: center;
  845. }
  846. }
  847. }
  848. .lab-info-c-b {
  849. margin-top: 16rpx;
  850. display: flex;
  851. justify-content: space-between;
  852. >text:nth-of-type(1) {
  853. font-size: 30rpx;
  854. color: #666666;
  855. line-height: 30rpx;
  856. text-align: left;
  857. }
  858. >text:nth-of-type(2) {
  859. font-size: 30rpx;
  860. color: #666666;
  861. line-height: 30rpx;
  862. text-align: left;
  863. }
  864. }
  865. }
  866. }
  867. .lab-info:last-of-type {
  868. border: none;
  869. }
  870. .get-data-p {
  871. height: 100rpx;
  872. text-align: center;
  873. .get-data-img {
  874. width: 30rpx;
  875. height: 30rpx;
  876. margin: 0 auto;
  877. margin-top: 15rpx;
  878. }
  879. .get-data-text {
  880. text-align: center;
  881. }
  882. }
  883. .get-data-null-p {
  884. height: 100rpx;
  885. line-height: 100rpx;
  886. text-align: center;
  887. }
  888. }
  889. #color-A {
  890. color: #0183FA;
  891. }
  892. #color-B {
  893. color: #FF8C00;
  894. }
  895. #color-C {
  896. color: #16B531;
  897. }
  898. .saoCode{
  899. position: fixed;
  900. left: 288rpx;
  901. bottom: 20rpx;
  902. width: 130rpx;
  903. height: 130rpx;
  904. }
  905. }
  906. </style>