inspectList.vue 24 KB

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