teadTest.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  1. <template>
  2. <div class="i_body_box">
  3. <backPage tit="资料搜集"></backPage>
  4. <div class="check_nav">
  5. <div class="nav all" :class="{ active: checkTypeValue == typeListStr }"
  6. @click="changeShowType(typeListStr)">
  7. 全部
  8. </div>
  9. <div class="nav" v-for="item in typeList" :key="item.id" :class="{ active: checkTypeValue == item.id,all:['8bfa67ce-e82a-11ef-b508-005056924926','9d3289d2-e82a-11ef-b508-005056924926','a824c728-e82a-11ef-b508-005056924926','8085418b-e82a-11ef-b508-005056924926'].includes(item.id)}"
  10. @click="changeShowType(item.id,item)">{{ item.name }}</div>
  11. </div>
  12. <div class="check_box" v-loading="loading">
  13. <div class="noneData" v-if="!worksArray.length && type!=1" style="text-align: center; margin-top: 20px;">
  14. 暂无数据
  15. </div>
  16. <template v-if="type!=1">
  17. <div class="test_panel" v-for="(item, index) in worksArray" :key="index">
  18. <div class="test_panel_title">
  19. <div class="title" :style="{paddingLeft: (item.array.length > 0 || item.carray.length > 0) ? '0' : '30px'}" @click="openWork(index)">
  20. <span class="open" :class="{active: item.open}" v-if="item.array.length > 0 || item.carray.length > 0"></span>
  21. <el-tooltip :content="item.title" placement="top" effect="dark">
  22. <span class="titleN">{{ item.title }}</span>
  23. </el-tooltip>
  24. </div>
  25. <div class="state">
  26. <span :class="{ is: item.array.length > 0, no: !item.array.length }">{{ item.array.length > 0 ? "已完成" : "未完成" }}</span>
  27. </div>
  28. <div class="time">
  29. <span v-if="item.overtime" :class="{isDead: isDeadlinePassed(item.overtime)}">截止时间:{{ item.overtime }}</span>
  30. <span v-else></span>
  31. </div>
  32. <div class="creator" :style="{paddingRight:(!item.carray.length > 0) ? '0' : '0px'}">
  33. <el-tooltip :content="item.username" placement="top" effect="dark">
  34. <span>创建者:{{ item.username }}</span>
  35. </el-tooltip>
  36. </div>
  37. <div class="editBtn2" :style="`${item.open?'display:flex':''}`" v-if="!item.carray.length > 0">
  38. <span v-if="item.array.length === 0">去填写</span>
  39. <span v-else>再填一份</span>
  40. </div>
  41. <div @click="doTest2(item.courseid)" class="editBtn" :style="`${item.open?'display:flex':''}`" v-if="!item.carray.length > 0">
  42. <span v-if="item.array.length === 0">去填写</span>
  43. <span v-else>再填一份</span>
  44. </div>
  45. </div>
  46. <div class="test_panel_box" v-if="item.open">
  47. <div class="test_add_box"
  48. v-if="item.array">
  49. <div class="test" v-for="(test, index) in item.array" :key="test.id">
  50. <div class="time">
  51. <span>提交记录{{item.array.length - index}}</span>
  52. </div>
  53. <div class="utime">
  54. <span>{{ test.utime }}</span>
  55. </div>
  56. <div class="mask">
  57. <div @click="doTest(test.courseid, test.id)">
  58. <span>编辑</span>
  59. </div>
  60. <div @click="deleteTest(test.id)" class="delete">
  61. <span>删除</span>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="test_add_box"
  67. v-else-if="item.carray" v-loading="!item.carray.length">
  68. <div class="test courseLength" v-for="(course, index) in item.carray" :key="index">
  69. <div class="time">
  70. <el-tooltip :content="course.title+'-'+course.username" placement="top" effect="dark">
  71. <span>{{ course.title }}-{{ course.username }}</span>
  72. </el-tooltip>
  73. </div>
  74. <div class="finishBox" :class="{is: course.array.length}">
  75. <span class="finish"></span>
  76. <span v-if="course.array.length">已评分</span>
  77. <span v-else>未评分</span>
  78. </div>
  79. <div class="utime" style="margin-left: 30px;">
  80. <span v-if="course.array.length">{{ course.array[0].utime }}</span>
  81. <span v-else></span>
  82. </div>
  83. <div class="mask">
  84. <div @click="doTest3(item, course)">
  85. <span>评分</span>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </template>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. import backPage from '../components/backPage.vue'
  98. export default {
  99. components:{
  100. backPage
  101. },
  102. data() {
  103. return {
  104. userid: this.$route.query.userid,
  105. oid: this.$route.query.oid,
  106. sortId: this.$route.query.sortId,
  107. type: "",
  108. typeList:[],
  109. ExamineBase: [],
  110. typeArray: [],
  111. typeArrayCheck: [],
  112. worksArray: [],
  113. org: this.$route.query.org,
  114. role: this.$route.query.role,
  115. loading: false,
  116. checkTypeValue:""
  117. };
  118. },
  119. computed: {
  120. getNum() {
  121. return function (array) {
  122. let _array = JSON.parse(array);
  123. let num = 0;
  124. _array.forEach(el => {
  125. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  126. el.array.forEach(item => {
  127. if (item.ttype == 2 && item.array.length > 0) {
  128. item.array.forEach(item2 => {
  129. if (item2.ttype == 1 && item2.json) {
  130. num++;
  131. }
  132. });
  133. } else if (item.ttype == 1 && item.json) {
  134. num++;
  135. }
  136. });
  137. } else if (el.ttype == 1 && el.json) {
  138. num++;
  139. }
  140. });
  141. return num;
  142. };
  143. },
  144. getScore() {
  145. return function (array) {
  146. // let _array = JSON.parse(array)
  147. let _score = 0;
  148. let scoreArray = [];
  149. for (var i = 0; i < array.length; i++) {
  150. let _array = JSON.parse(array[i].courseJson);
  151. let score = 0;
  152. for (var j = 0; j < _array.length; j++) {
  153. let el = _array[j];
  154. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  155. for (var k = 0; k < el.array.length; k++) {
  156. let item = el.array[k];
  157. if (item.ttype == 2 && item.array.length > 0) {
  158. for (var z = 0; z < item.array.length; z++) {
  159. let item2 = item.array[z];
  160. if (item2.ttype == 1 && item2.json && item2.json.score2) {
  161. score += parseInt(item2.json.score2);
  162. }
  163. }
  164. } else if (item.ttype == 1 && item.json && item.json.score2) {
  165. score += parseInt(item.json.score2);
  166. }
  167. }
  168. } else if (el.ttype == 1 && el.json && el.json.score2) {
  169. score += parseInt(el.json.score2);
  170. }
  171. }
  172. scoreArray.push(score);
  173. }
  174. scoreArray.forEach(el => {
  175. _score += el;
  176. });
  177. console.log(scoreArray);
  178. return _score ? _score / scoreArray.length : 0;
  179. };
  180. },
  181. getImg() {
  182. return function (array) {
  183. let _array = JSON.parse(array);
  184. let _img = "";
  185. s: for (var j = 0; j < _array.length; j++) {
  186. let el = _array[j];
  187. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  188. for (var k2 = 0; k2 < el.array.length; k2++) {
  189. let item = el.array[k2];
  190. console.log(k2);
  191. if (item.ttype == 2 && item.array.length > 0) {
  192. for (var z = 0; z < item.array.length; z++) {
  193. let item2 = item.array[z];
  194. if (
  195. item2.ttype == 1 &&
  196. item2.type == 5 &&
  197. item2.json &&
  198. item2.json.file &&
  199. item2.json.file.length > 0
  200. ) {
  201. for (var k4 = 0; k4 < item2.json.file.length; k4++) {
  202. let ik = item2.json.file[k4];
  203. if (ik.type == 3) {
  204. _img = ik.url;
  205. break s;
  206. }
  207. }
  208. }
  209. }
  210. } else if (
  211. item.ttype == 1 &&
  212. item.type == 5 &&
  213. item.json &&
  214. item.json.file &&
  215. item.json.file.length > 0
  216. ) {
  217. for (var k3 = 0; k3 < item.json.file.length; k3++) {
  218. let ik = item.json.file[k3];
  219. if (ik.type == 3) {
  220. _img = ik.url;
  221. break s;
  222. }
  223. }
  224. }
  225. }
  226. } else if (
  227. el.ttype == 1 &&
  228. el.type == 5 &&
  229. el.json &&
  230. el.json.file &&
  231. el.json.file.length > 0
  232. ) {
  233. for (var k = 0; k < el.json.file.length; k++) {
  234. let ik = el.json.file[k];
  235. if (ik.type == 3) {
  236. _img = ik.url;
  237. break s;
  238. }
  239. }
  240. }
  241. }
  242. return _img;
  243. };
  244. },
  245. typeListStr(){
  246. let _result = "";
  247. if(this.typeList.length){
  248. _result = this.typeList.map(i=>i.id)
  249. _result.push(this.sortId);
  250. _result = _result.join(',')
  251. }
  252. return _result;
  253. }
  254. },
  255. methods: {
  256. getNavType() {
  257. let _this = this
  258. let params = {
  259. oid: "",//this.oid
  260. };
  261. let inte = (this.sortId == 'eefb7195-8ee7-11f0-9c7b-005056924926') ? 'selectTestType_liYuan' : 'selectTestType'
  262. this.ajax
  263. .get(this.$store.state.api + inte, params)
  264. .then(res => {
  265. let _data = res.data[0];
  266. console.log('_data',_data);
  267. console.log('_this.sortId',_this.sortId);
  268. this.typeList = _data.filter(function(item, index) {
  269. return item.pid == _this.sortId;
  270. });
  271. this.changeShowType(this.typeListStr)
  272. console.log('this.typeList',this.typeList);
  273. })
  274. .catch(err => {
  275. console.log(err);
  276. });
  277. },
  278. getPageBase(type = 1) {
  279. let params = {
  280. typ: type,
  281. org: this.org,
  282. oid: this.oid
  283. };
  284. this.ajax
  285. .get(this.$store.state.api + "selectTestExamineBase", params)
  286. .then(res => {
  287. this.ExamineBase = res.data[0];
  288. if(type == 1 && !res.data[0].length){
  289. this.getPageBase(2)
  290. }
  291. })
  292. .catch(error => {
  293. console.log(error);
  294. });
  295. },
  296. isDeadlinePassed(deadline) {
  297. let _line = new Date(deadline)
  298. const currentDate = new Date();
  299. return currentDate > _line;
  300. },
  301. checkType(type) {
  302. this.type = type;
  303. this.getWorks();
  304. },
  305. selectTestType(type) {
  306. let params = {
  307. oid: this.oid
  308. };
  309. this.ajax
  310. .get(this.$store.state.api + "selectTestType", params)
  311. .then(res => {
  312. this.typeArray = res.data[0];
  313. if(type == 1){
  314. this.type = ''
  315. }
  316. this.getWorks()
  317. })
  318. .catch(err => {
  319. console.error(err);
  320. });
  321. },
  322. getWorks() {
  323. this.loading = true;
  324. let params = {
  325. uid: this.userid,
  326. typeid: this.checkTypeValue
  327. };
  328. this.ajax
  329. .get(this.$store.state.api + "getTestWorksPerson_2type", params)
  330. .then(res => {
  331. let array = res.data[0];
  332. let array2 = res.data[1];
  333. // 用于存储归类后的数据的对象
  334. let worksArray = {};
  335. // 遍历原始数据,根据 parentId 进行分组
  336. array2.forEach(item => {
  337. // console.log(item.chapters);
  338. worksArray[item.courseId] = {
  339. id: item.id,
  340. courseid: item.courseId,
  341. title: item.title,
  342. time: item.time,
  343. utime: item.utime,
  344. overtime: item.overtime,
  345. username: item.username,
  346. chapters: item.chapters,
  347. brief: item.brief,
  348. typeid: item.typeid,
  349. array: item.typeid == 'dda9728e-5f11-469e-89ee-aca518daf123' ? 0 : [],
  350. carray: [],
  351. open: false
  352. };
  353. });
  354. worksArray = Object.values(worksArray);
  355. worksArray.forEach(async el => {
  356. if (el.typeid == 'dda9728e-5f11-469e-89ee-aca518daf123') {
  357. let courseJson = this.returnCourseJSON(el.chapters)
  358. if(courseJson && courseJson.courses.length){
  359. let courses = courseJson.courses.join(',')
  360. let _res = await this.getAllCourse(courses)
  361. console.log(_res);
  362. let _carray = []
  363. for(var i=0;i<_res.length;i++){
  364. _carray.push({
  365. courseid: _res[i].courseId,
  366. title: _res[i].title,
  367. username: _res[i].username,
  368. array: []
  369. })
  370. }
  371. el.carray = _carray
  372. }
  373. }
  374. array.forEach(el2 => {
  375. if (el.courseid == el2.courseid && el.typeid != 'dda9728e-5f11-469e-89ee-aca518daf123') {
  376. el.array.push(el2);
  377. }
  378. if(el.courseid == el2.courseid && el.typeid == 'dda9728e-5f11-469e-89ee-aca518daf123'){
  379. let courseid = this.returnCourseId(el2.courseJson)
  380. for(var c = 0; c<el.carray.length;c++){
  381. if(el.carray[c].courseid == courseid){
  382. el.carray[c].array.push(el2);
  383. break
  384. }
  385. }
  386. }
  387. });
  388. });
  389. // worksArray[item.courseid].array.push(item);
  390. this.worksArray = worksArray;
  391. this.loading = false;
  392. this.$forceUpdate();
  393. })
  394. .catch(err => {
  395. this.loading = false;
  396. console.error(err);
  397. });
  398. },
  399. openWork(index){
  400. if(this.worksArray[index].array.length === 0 && this.worksArray[index].carray.length === 0){
  401. return
  402. }
  403. this.worksArray[index].open = !this.worksArray[index].open
  404. this.$forceUpdate()
  405. },
  406. returnA() {
  407. this.$router.push(
  408. "/testStudent?userid=" +
  409. this.userid +
  410. "&oid=" +
  411. this.oid +
  412. "&org=" +
  413. this.org +
  414. "&role=" +
  415. this.role
  416. );
  417. },
  418. checkTest(cid, tid) {
  419. this.$router.push(
  420. "/checkTest?cid=" +
  421. cid +
  422. "&tid=" +
  423. tid +
  424. "&userid=" +
  425. this.userid +
  426. "&oid=" +
  427. this.oid +
  428. "&org=" +
  429. this.org +
  430. "&type=3" +
  431. "&role=" +
  432. this.role
  433. );
  434. },
  435. doTest(cid, tid) {
  436. this.$router.push(
  437. "/doTest?cid=" +
  438. cid +
  439. "&tid=" +
  440. tid +
  441. "&userid=" +
  442. this.userid +
  443. "&oid=" +
  444. this.oid +
  445. "&org=" +
  446. this.org +
  447. "&type=3" +
  448. "&role=" +
  449. this.role
  450. );
  451. },
  452. doTest2(cid) {
  453. this.$router.push(
  454. "/doTest?cid=" +
  455. cid +
  456. "&userid=" +
  457. this.userid +
  458. "&oid=" +
  459. this.oid +
  460. "&org=" +
  461. this.org +
  462. "&type=3" +
  463. "&role=" +
  464. this.role
  465. );
  466. },
  467. doTest3(item, course){
  468. if(course.array.length){
  469. this.$router.push(
  470. "/doTest?cid=" +
  471. item.courseid +
  472. "&tid=" +
  473. course.array[0].id +
  474. "&userid=" +
  475. this.userid +
  476. "&oid=" +
  477. this.oid +
  478. "&org=" +
  479. this.org +
  480. "&type=3" +
  481. "&role=" +
  482. this.role
  483. );
  484. }else{
  485. this.$router.push(
  486. "/doTest?cid=" +
  487. item.courseid +
  488. "&userid=" +
  489. this.userid +
  490. "&oid=" +
  491. this.oid +
  492. "&org=" +
  493. this.org +
  494. "&type=3" +
  495. "&courseid=" +
  496. course.courseid +
  497. "&role=" +
  498. this.role
  499. );
  500. }
  501. },
  502. copyTest(tid) {
  503. let params = [
  504. {
  505. tid: tid,
  506. uid: this.userid
  507. }
  508. ];
  509. this.ajax
  510. .post(this.$store.state.api + "copyTestWorks", params)
  511. .then(res => {
  512. this.$message.success("复制成功");
  513. this.getWorks();
  514. })
  515. .catch(err => {
  516. console.error(err);
  517. });
  518. },
  519. deleteTest(tid) {
  520. let _this = this;
  521. _this
  522. .$confirm("确定删除此填写的表单么?", "提示", {
  523. confirmButtonText: "确定",
  524. cancelButtonText: "取消",
  525. type: "warning"
  526. })
  527. .then(() => {
  528. let params = [
  529. {
  530. tid: tid
  531. }
  532. ];
  533. _this.ajax
  534. .post(_this.$store.state.api + "deleteTestCourseWorks", params)
  535. .then(res => {
  536. _this.$message.success("删除成功");
  537. _this.getWorks();
  538. })
  539. .catch(err => {
  540. console.error(err);
  541. });
  542. })
  543. .catch(() => {
  544. return;
  545. });
  546. },
  547. returnCourseJSON(array) {
  548. let _array = JSON.parse(array);
  549. let courseJson = '';
  550. s: for (var j = 0; j < _array.length; j++) {
  551. let el = _array[j];
  552. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  553. for (var k2 = 0; k2 < el.array.length; k2++) {
  554. let item = el.array[k2];
  555. console.log(k2);
  556. if (item.ttype == 2 && item.array.length > 0) {
  557. for (var z = 0; z < item.array.length; z++) {
  558. let item2 = item.array[z];
  559. if (
  560. item2.ttype == 1 &&
  561. item2.type == 6 &&
  562. item2.json
  563. ) {
  564. courseJson = item2.json
  565. break s;
  566. }
  567. }
  568. } else if (
  569. item.ttype == 1 &&
  570. item.type == 6 &&
  571. item.json
  572. ) {
  573. courseJson = item.json
  574. break s;
  575. }
  576. }
  577. } else if (
  578. el.ttype == 1 &&
  579. el.type == 6 &&
  580. el.json
  581. ) {
  582. courseJson = el.json
  583. break s;
  584. }
  585. }
  586. return courseJson;
  587. },
  588. returnCourseId(array) {
  589. let _array = JSON.parse(array);
  590. let courseJson = '';
  591. s: for (var j = 0; j < _array.length; j++) {
  592. let el = _array[j];
  593. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  594. for (var k2 = 0; k2 < el.array.length; k2++) {
  595. let item = el.array[k2];
  596. console.log(k2);
  597. if (item.ttype == 2 && item.array.length > 0) {
  598. for (var z = 0; z < item.array.length; z++) {
  599. let item2 = item.array[z];
  600. if (
  601. item2.ttype == 1 &&
  602. item2.type == 6 &&
  603. item2.json && item2.json.answer2
  604. ) {
  605. courseJson = item2.json.answer2
  606. break s;
  607. }
  608. }
  609. } else if (
  610. item.ttype == 1 &&
  611. item.type == 6 &&
  612. item.json && item.json.answer2
  613. ) {
  614. courseJson = item.json.answer2
  615. break s;
  616. }
  617. }
  618. } else if (
  619. el.ttype == 1 &&
  620. el.type == 6 &&
  621. el.json && el.json.answer2
  622. ) {
  623. courseJson = el.json.answer2
  624. break s;
  625. }
  626. }
  627. return courseJson;
  628. },
  629. async getAllCourse(id) {
  630. let params = {
  631. cid: id,
  632. };
  633. let res = await this.ajax.get(this.$store.state.api + "getCourseInfoTestAll", params)
  634. return res.data[0]
  635. },
  636. changeShowType(value){
  637. console.log('changeShowType',value);
  638. this.checkTypeValue = value;
  639. this.getWorks();
  640. }
  641. },
  642. mounted() {
  643. this.getNavType()
  644. },
  645. };
  646. </script>
  647. <style scoped>
  648. .i_body_box {
  649. /* height: calc(100% - 10px); */
  650. height: 100%;
  651. }
  652. .check_nav {
  653. display: flex;
  654. height: 50px;
  655. align-items: center;
  656. box-sizing: border-box;
  657. width: 100%;
  658. padding: 0 90px;
  659. box-sizing: border-box;
  660. overflow: auto;
  661. }
  662. .check_nav>.nav {
  663. width: 120px;
  664. height: 100%;
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. color: rgb(167, 167, 167);
  669. /* background: #000000; */
  670. cursor: pointer;
  671. min-width: fit-content;
  672. margin-right: 10px;
  673. }
  674. .check_nav>.active {
  675. color: #3681fc;
  676. background: rgb(248, 250, 254);
  677. border-radius: 10px 10px 0 0;
  678. }
  679. .check_nav>.all::before,
  680. .check_nav>.gr::before,
  681. .check_nav>.md::before,
  682. .check_nav>.jy::before,
  683. .check_nav>.bj::before,
  684. .check_nav>.yy::before {
  685. content: "";
  686. display: block;
  687. width: 18px;
  688. height: 18px;
  689. background-size: 100% 100%;
  690. margin-right: 5px;
  691. }
  692. .check_nav>.all::before {
  693. background-image: url('../../../../assets/icon/test/all_icon.png');
  694. }
  695. .check_nav>.active.all::before {
  696. background-image: url('../../../../assets/icon/test/all_icon_active.png');
  697. }
  698. .check_nav>.gr::before {
  699. background-image: url('../../../../assets/icon/test/gr_icon.png');
  700. }
  701. .check_nav>.active.gr::before {
  702. background-image: url('../../../../assets/icon/test/gr_icon_active.png');
  703. }
  704. .check_nav>.md::before {
  705. background-image: url('../../../../assets/icon/test/md_icon.png');
  706. }
  707. .check_nav>.active.md::before {
  708. background-image: url('../../../../assets/icon/test/md_icon_active.png');
  709. }
  710. .check_nav>.jy::before {
  711. background-image: url('../../../../assets/icon/test/jy_icon.png');
  712. }
  713. .check_nav>.active.jy::before {
  714. background-image: url('../../../../assets/icon/test/jy_icon_active.png');
  715. }
  716. .check_nav>.yy::before {
  717. background-image: url('../../../../assets/icon/test/yy_icon.png');
  718. }
  719. .check_nav>.active.yy::before {
  720. background-image: url('../../../../assets/icon/test/yy_icon_active.png');
  721. }
  722. .check_nav>.bj::before {
  723. background-image: url('../../../../assets/icon/test/bj_icon.png');
  724. }
  725. .check_nav>.active.bj::before {
  726. background-image: url('../../../../assets/icon/test/bj_icon_active.png');
  727. }
  728. .check_box {
  729. height: calc(100% - 90px);
  730. overflow: auto;
  731. padding: 0 0px 20px;
  732. margin: 0 90px;
  733. box-sizing: border-box;
  734. background: rgb(248, 250, 254);
  735. }
  736. .test_panel {
  737. width: calc(100% - 40px);
  738. margin: 20px auto 0;
  739. background: #fff;
  740. border-radius: 10px;
  741. /* height: 300px; */
  742. overflow: hidden;
  743. box-shadow: 0 2px 5px 1px #0001;
  744. }
  745. .test_panel:hover{
  746. box-shadow: 0 0 2px 1px #3681FC;
  747. }
  748. .test_panel:hover>.test_panel_title>.title{
  749. color:#5996FD
  750. }
  751. .test_panel_title:hover>.editBtn{
  752. display: flex;
  753. }
  754. .test_panel_title:hover>.editBtn2{
  755. display: flex;
  756. }
  757. .test_panel+.test_panel {
  758. margin-top: 15px;
  759. }
  760. .test_panel_title {
  761. height: 50px;
  762. display: flex;
  763. align-items: center;
  764. width: 100%;
  765. position: relative;
  766. /* justify-content: space-between; */
  767. /* padding: 0 20px; */
  768. box-sizing: border-box;
  769. /* border-bottom: 2px solid #f0f0f0; */
  770. }
  771. .test_panel_title>.title {
  772. display: flex;
  773. align-items: center;
  774. width: 300px;
  775. margin-left: 20px;
  776. cursor: pointer;
  777. }
  778. .test_panel_title>.title>.open{
  779. width: 20px;
  780. height:20px;
  781. margin-right: 10px;
  782. background-image: url('../../../../assets/icon/test/chevron-right.png');
  783. background-size: 100% 100%;
  784. cursor:pointer;
  785. transition:all .3s;
  786. opacity: .5;
  787. }
  788. .test_panel_title>.title>.open.active{
  789. transform: rotate(90deg);
  790. opacity: 1;
  791. }
  792. .test_panel_title>.state{
  793. margin-left: auto;
  794. min-width: fit-content;
  795. }
  796. .test_panel_title>.state > span {
  797. font-size: 14px;
  798. padding: 5px 8px;
  799. border-radius: 5px;
  800. margin-right: 0;
  801. }
  802. .test_panel_title>.state>.is:nth-child(1) {
  803. color: #17C469;
  804. background: #EFFCF5;
  805. border: 1px solid #EFFCF5;
  806. }
  807. .test_panel_title>.state>.no:nth-child(1) {
  808. color: #3681FC;
  809. background: #E0EAFB;
  810. border: 1px solid #E0EAFB;
  811. }
  812. .test_panel_title>.title>.titleN {
  813. font-size: 18px;
  814. font-weight: 600;
  815. max-width: calc(100% - 20px - 10px);
  816. overflow: hidden;
  817. text-overflow: ellipsis;
  818. white-space: nowrap;
  819. }
  820. .test_panel_title>.time {
  821. font-size: 16px;
  822. color: #a1a1a1;
  823. min-width: 160px;
  824. margin: 0 30px;
  825. }
  826. .test_panel_title>.creator {
  827. font-size: 16px;
  828. color: #a1a1a1;
  829. max-width: 160px;
  830. min-width: 160px;
  831. overflow: hidden;
  832. text-overflow: ellipsis;
  833. white-space: nowrap;
  834. }
  835. .test_panel_title>.editBtn {
  836. font-size: 16px;
  837. color: #fff;
  838. background: #3681fc;
  839. height: 100%;
  840. display: none;
  841. align-items: center;
  842. padding: 0 15px;
  843. cursor: pointer;
  844. position: absolute;
  845. right: 0;
  846. }
  847. .test_panel_title>.editBtn2 {
  848. font-size: 16px;
  849. color: #fff;
  850. background: #3681fc;
  851. height: 100%;
  852. display: none;
  853. align-items: center;
  854. padding: 0 15px;
  855. cursor: pointer;
  856. }
  857. .test_panel_title>.time>span+span {
  858. margin-left: 10px;
  859. }
  860. .test_panel_box {
  861. border-top: 2px solid #f0f0f0;
  862. width: 100%;
  863. display: flex;
  864. align-items: center;
  865. padding: 5px 20px;
  866. box-sizing: border-box;
  867. }
  868. .test_panel_box>.detail {
  869. width: calc(100% - 350px - 20px);
  870. margin-right: 20px;
  871. color: #a1a1a1;
  872. font-size: 14px;
  873. line-height: 24px;
  874. word-break: break-all;
  875. display: -webkit-box;
  876. -webkit-line-clamp: 4;
  877. -webkit-box-orient: vertical;
  878. overflow: hidden;
  879. }
  880. .test_panel_box>.panel {
  881. display: flex;
  882. align-items: center;
  883. justify-content: space-between;
  884. width: 350px;
  885. min-width: 350px;
  886. }
  887. .test_panel_box>.panel>.score {
  888. height: 110px;
  889. display: flex;
  890. align-items: center;
  891. justify-content: center;
  892. flex-direction: column;
  893. border: 1px solid #dbdbdb;
  894. background: rgb(252, 252, 252);
  895. width: 120px;
  896. border-radius: 5px;
  897. }
  898. .test_panel_box>.panel>.score:nth-child(1) {
  899. display: flex;
  900. }
  901. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(1) {
  902. font-size: 30px;
  903. font-weight: 700;
  904. }
  905. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(2) {
  906. margin-left: 5px;
  907. }
  908. .test_panel_box>.panel>.score>div:nth-child(2) {
  909. font-size: 14px;
  910. margin-top: 10px;
  911. color: #a1a1a1;
  912. }
  913. .test_panel_box>.panel>.btn {
  914. height: 100px;
  915. display: flex;
  916. flex-direction: column;
  917. justify-content: space-between;
  918. }
  919. .test_panel_box>.panel>.btn>div {
  920. display: flex;
  921. color: rgb(69, 141, 255);
  922. align-items: center;
  923. cursor: pointer;
  924. font-size: 14px;
  925. }
  926. /* .test_panel_box > .panel >.btn > div + div{
  927. margin: 15px 0 0 0;
  928. } */
  929. .test_panel_box>.panel>.btn>div>span:nth-child(1) {
  930. display: block;
  931. width: 13px;
  932. height: 13px;
  933. background-size: 100% 100%;
  934. margin-right: 7px;
  935. }
  936. .test_panel_box>.panel>.btn>div:nth-child(1)>span:nth-child(1) {
  937. background-image: url('../../../../assets/icon/test/edit_icon.png');
  938. }
  939. .test_panel_box>.panel>.btn>div:nth-child(2)>span:nth-child(1) {
  940. background-image: url('../../../../assets/icon/test/check_icon.png');
  941. }
  942. .test_panel_box>.panel>.btn>div:nth-child(3)>span:nth-child(1) {
  943. background-image: url('../../../../assets/icon/test/paste_icon.png');
  944. }
  945. .test_add_box {
  946. width: 100%;
  947. box-sizing: border-box;
  948. }
  949. .test_add_box>.test {
  950. width: 100%;
  951. height: 40px;
  952. border-radius: 5px;
  953. display: flex;
  954. align-items: center;
  955. }
  956. .test_add_box>.test>img {
  957. width: 100%;
  958. height: 100%;
  959. object-fit: cover;
  960. border-radius: 5px;
  961. }
  962. .test_add_box>.test+.test {
  963. /* margin-left: 10px; */
  964. }
  965. .test_add_box>.test>.time {
  966. display: flex;
  967. /* justify-content: center; */
  968. align-items: center;
  969. font-size: 14px;
  970. width: 300px;
  971. padding-left: 30px;
  972. box-sizing: border-box;
  973. }
  974. .test_add_box>.test>.time>span {
  975. /* margin-top: 5px; */
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. white-space: nowrap;
  979. }
  980. .test_add_box>.test>.utime {
  981. font-size: 14px;
  982. width: 160px;
  983. min-width: 160px;
  984. margin: 0 30px 0 auto;
  985. }
  986. .test_add_box>.test>.mask {
  987. display: flex;
  988. align-items: center;
  989. padding-right: 58px;
  990. max-width: 160px;
  991. min-width: 160px;
  992. }
  993. .test_add_box>.test>.delete {
  994. position: absolute;
  995. width: 20px;
  996. height: 20px;
  997. right: -5px;
  998. top: -5px;
  999. cursor: pointer;
  1000. z-index: 2;
  1001. display: none;
  1002. }
  1003. .test_add_box>.test>.mask>div {
  1004. display: flex;
  1005. align-items: center;
  1006. cursor: pointer;
  1007. font-size: 14px;
  1008. color: #3681FC;
  1009. }
  1010. .test_add_box>.test>.mask>.delete {
  1011. color: #EE3E3E;
  1012. }
  1013. .test_add_box>.test>.mask>div+div {
  1014. /* margin: 10px 0 0 0; */
  1015. margin-left: 15px;
  1016. }
  1017. /*
  1018. .test_add_box>.test>.mask>div>span:nth-child(1) {
  1019. display: block;
  1020. width: 13px;
  1021. height: 13px;
  1022. background-size: 100% 100%;
  1023. margin-right: 7px;
  1024. }
  1025. .test_add_box>.test>.mask>div:nth-child(1)>span:nth-child(1) {
  1026. background-image: url('../../../../assets/icon/test/edit_icon.png');
  1027. }
  1028. .test_add_box>.test>.mask>div:nth-child(2)>span:nth-child(1) {
  1029. background-image: url('../../../../assets/icon/test/check_icon.png');
  1030. }
  1031. .test_add_box>.test>.mask>div:nth-child(3)>span:nth-child(1) {
  1032. background-image: url('../../../../assets/icon/test/paste_icon.png');
  1033. } */
  1034. .bgColor {
  1035. background: #466b99;
  1036. }
  1037. /* .courseLength{
  1038. width: 100%;
  1039. cursor: pointer;
  1040. margin-bottom: 10px;
  1041. display: flex;
  1042. align-items: center;
  1043. }
  1044. .courseLength > span + span{
  1045. margin-left: 10px;
  1046. } */
  1047. .courseLength > .finishBox {
  1048. display: flex;
  1049. color: #a1a1a1;
  1050. font-size: 14px;
  1051. margin-left: auto;
  1052. align-items: center;
  1053. }
  1054. .courseLength > .finishBox > .finish{
  1055. width: 15px;
  1056. height: 15px;
  1057. background-image: url('../../../../assets/icon/test/icon_course.png');
  1058. background-size: 100% 100%;
  1059. margin-right: 5px;
  1060. }
  1061. .courseLength > .finishBox.is > .finish{
  1062. background-image: url('../../../../assets/icon/test/icon_course_check.png');
  1063. }
  1064. .courseLength > .finishBox.is{
  1065. color: #000
  1066. }
  1067. .isDead{
  1068. color:#EE3E3E;
  1069. }
  1070. </style>