inspectList.vue 27 KB

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