test.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <div class="i_body_box">
  3. <div class="check_nav">
  4. <!-- <div class="nav all" :class="{ active: type == '' }" @click="checkType('')">
  5. 所有评测
  6. </div> -->
  7. <div class="nav" :class="{
  8. active: type == item.id,
  9. gr: item.id == 'afc3f97f-2429-408d-8dcd-5e63a44d355a',
  10. md: item.id == '478bcccd-e3a1-472b-aa29-3ed7bc479469',
  11. jy: item.id == '178a377a-b4f1-4a75-b3c3-2787a7c98784',
  12. yy: item.id == 'dda9728e-5f11-469e-89ee-aca518daf223',
  13. bj: item.id == 'afc3f97f-2429-408d-8dcd-5e63a44d355c'
  14. }" @click="checkType(item.id)" v-for="(item, index) in typeArray" :key="index">
  15. {{ item.name }}
  16. </div>
  17. <div class="nav all" :class="{ active: type == '0' }" @click="checkType('0')">
  18. 其他
  19. </div>
  20. </div>
  21. <div class="check_box" v-loading="loading">
  22. <div class="noneData" v-if="!worksArray.length" style="text-align: center;">
  23. 暂无数据
  24. </div>
  25. <div class="test_panel" v-for="(item, index) in worksArray" :key="index">
  26. <div class="test_panel_title">
  27. <div class="title">
  28. <span :class="{ is: item.array.length > 0, no: !item.array.length }">{{ item.array.length > 0 ?
  29. "已完成" : "未完成" }}</span>
  30. <span>{{ item.title }}</span>
  31. </div>
  32. <div class="time">
  33. <span>创建时间: {{ item.time }}</span>
  34. <span>修改时间: {{ item.utime }}</span>
  35. </div>
  36. </div>
  37. <div class="test_panel_box">
  38. <div class="detail" v-if="item.array.length === 0 || item.brief">
  39. <span>{{ item.brief ? item.brief : "暂无描述" }}</span>
  40. </div>
  41. <div class="test_add_box"
  42. style="width: calc(100% - 350px - 20px);border: none;margin-right: 20px;padding: 0;" v-else>
  43. <div class="test" v-for="test in item.array" :key="test.id">
  44. <img :src="getImg(test.courseJson)
  45. ? getImg(test.courseJson)
  46. : require('../../../../assets/icon/test/teacher.jpg')
  47. " />
  48. <div class="time">
  49. <span>提交时间</span>
  50. <span>{{ test.time }}</span>
  51. <span>修改时间</span>
  52. <span>{{ test.utime }}</span>
  53. </div>
  54. <img @click="deleteTest(test.id)" class="delete" src="../../../../assets/icon/test/delete.png"
  55. alt="" />
  56. <div class="mask">
  57. <div @click="doTest(test.courseid, test.id)">
  58. <span></span><span>编辑</span>
  59. </div>
  60. <div @click="checkTest(test.courseid, test.id)">
  61. <span></span><span>查看</span>
  62. </div>
  63. <div @click="copyTest(test.id)">
  64. <span></span><span>复制</span>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="panel">
  70. <div class="score">
  71. <div>
  72. <span>{{ getNum(item.chapters) }}</span><span>题</span>
  73. </div>
  74. <div>题目总数</div>
  75. </div>
  76. <div class="score">
  77. <div>
  78. <span>{{ getScore(item.array) }}</span><span>分</span>
  79. </div>
  80. <div>综合得分</div>
  81. </div>
  82. <div class="btn">
  83. <!-- <div @click="doTest(item.courseid,item.id)"><span></span><span>编辑</span></div> -->
  84. <div @click="doTest2(item.courseid)">
  85. <span></span><span>添加</span>
  86. </div>
  87. <!-- <div @click="checkTest(item.courseid,item.id)"><span></span><span>查看</span></div> -->
  88. <!-- <div @click="copyTest(item.id)"><span></span><span>复制</span></div> -->
  89. </div>
  90. </div>
  91. </div>
  92. <div class="test_add_box" v-if="item.array.length > 0 && item.brief">
  93. <div class="test" v-for="test in item.array" :key="test.id">
  94. <img :src="getImg(test.courseJson)
  95. ? getImg(test.courseJson)
  96. : require('../../../../assets/icon/test/teacher.jpg')
  97. " />
  98. <div class="time">
  99. <span>提交时间</span>
  100. <span>{{ test.time }}</span>
  101. <span>修改时间</span>
  102. <span>{{ test.utime }}</span>
  103. </div>
  104. <img @click="deleteTest(test.id)" class="delete" src="../../../../assets/icon/test/delete.png"
  105. alt="" />
  106. <div class="mask">
  107. <div @click="doTest(test.courseid, test.id)">
  108. <span></span><span>编辑</span>
  109. </div>
  110. <div @click="checkTest(test.courseid, test.id)">
  111. <span></span><span>查看</span>
  112. </div>
  113. <div @click="copyTest(test.id)">
  114. <span></span><span>复制</span>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </template>
  123. <script>
  124. export default {
  125. props: {
  126. userid: {
  127. type: String,
  128. },
  129. oid: {
  130. type: String,
  131. },
  132. },
  133. data() {
  134. return {
  135. type: "",
  136. typeArray: [],
  137. typeArrayCheck: [],
  138. worksArray: [],
  139. org: this.$route.query.org,
  140. role: this.$route.query.role,
  141. loading: false
  142. };
  143. },
  144. computed: {
  145. getNum() {
  146. return function (array) {
  147. let _array = JSON.parse(array);
  148. let num = 0;
  149. _array.forEach(el => {
  150. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  151. el.array.forEach(item => {
  152. if (item.ttype == 2 && item.array.length > 0) {
  153. item.array.forEach(item2 => {
  154. if (item2.ttype == 1 && item2.json) {
  155. num++;
  156. }
  157. });
  158. } else if (item.ttype == 1 && item.json) {
  159. num++;
  160. }
  161. });
  162. } else if (el.ttype == 1 && el.json) {
  163. num++;
  164. }
  165. });
  166. return num;
  167. };
  168. },
  169. getScore() {
  170. return function (array) {
  171. // let _array = JSON.parse(array)
  172. let _score = 0;
  173. let scoreArray = [];
  174. for (var i = 0; i < array.length; i++) {
  175. let _array = JSON.parse(array[i].courseJson);
  176. let score = 0;
  177. for (var j = 0; j < _array.length; j++) {
  178. let el = _array[j];
  179. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  180. for (var k = 0; k < el.array.length; k++) {
  181. let item = el.array[k];
  182. if (item.ttype == 2 && item.array.length > 0) {
  183. for (var z = 0; z < item.array.length; z++) {
  184. let item2 = item.array[k];
  185. if (item2.ttype == 1 && item2.json && item2.json.score2) {
  186. score += parseInt(item2.json.score2);
  187. }
  188. }
  189. } else if (item.ttype == 1 && item.json && item.json.score2) {
  190. score += parseInt(item.json.score2);
  191. }
  192. }
  193. } else if (el.ttype == 1 && el.json && el.json.score2) {
  194. score += parseInt(el.json.score2);
  195. }
  196. }
  197. scoreArray.push(score);
  198. }
  199. scoreArray.forEach(el => {
  200. _score += el;
  201. });
  202. console.log(scoreArray);
  203. return _score ? _score / scoreArray.length : 0;
  204. };
  205. },
  206. getImg() {
  207. return function (array) {
  208. let _array = JSON.parse(array);
  209. let _img = "";
  210. s: for (var j = 0; j < _array.length; j++) {
  211. let el = _array[j];
  212. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  213. for (var k2 = 0; k2 < el.array.length; k2++) {
  214. let item = el.array[k2];
  215. if (item.ttype == 2 && item.array.length > 0) {
  216. for (var z = 0; z < item.array.length; z++) {
  217. let item2 = item.array[k2];
  218. if (
  219. item2.ttype == 1 &&
  220. item2.type == 5 &&
  221. item2.json &&
  222. item2.json.file &&
  223. item2.json.file.length > 0
  224. ) {
  225. for (var k4 = 0; k4 < item2.json.file.length; k4++) {
  226. let ik = item2.json.file[k4];
  227. if (ik.type == 3) {
  228. _img = ik.url;
  229. break s;
  230. }
  231. }
  232. }
  233. }
  234. } else if (
  235. item.ttype == 1 &&
  236. item.type == 5 &&
  237. item.json &&
  238. item.json.file &&
  239. item.json.file.length > 0
  240. ) {
  241. for (var k3 = 0; k3 < item.json.file.length; k3++) {
  242. let ik = item.json.file[k3];
  243. if (ik.type == 3) {
  244. _img = ik.url;
  245. break s;
  246. }
  247. }
  248. }
  249. }
  250. } else if (
  251. el.ttype == 1 &&
  252. el.type == 5 &&
  253. el.json &&
  254. el.json.file &&
  255. el.json.file.length > 0
  256. ) {
  257. for (var k = 0; k < el.json.file.length; k++) {
  258. let ik = el.json.file[k];
  259. if (ik.type == 3) {
  260. _img = ik.url;
  261. break s;
  262. }
  263. }
  264. }
  265. }
  266. return _img;
  267. };
  268. }
  269. },
  270. methods: {
  271. checkType(type) {
  272. this.type = type;
  273. this.getWorks();
  274. },
  275. selectTestType() {
  276. let params = {
  277. oid: this.oid
  278. };
  279. this.ajax
  280. .get(this.$store.state.api + "selectTestType", params)
  281. .then(res => {
  282. this.typeArray = res.data[0];
  283. if(this.typeArray.length){
  284. this.type = this.typeArray[0].id;
  285. }else{
  286. this.type = '0';
  287. }
  288. })
  289. .catch(err => {
  290. console.error(err);
  291. });
  292. },
  293. getWorks() {
  294. this.loading = true;
  295. let params = {
  296. uid: this.userid,
  297. typeid: this.type
  298. };
  299. this.ajax
  300. .get(this.$store.state.api + "getTestWorksPerson", params)
  301. .then(res => {
  302. this.loading = false;
  303. let array = res.data[0];
  304. let array2 = res.data[1];
  305. // 用于存储归类后的数据的对象
  306. let worksArray = {};
  307. // 遍历原始数据,根据 parentId 进行分组
  308. array2.forEach(item => {
  309. // console.log(item.chapters);
  310. worksArray[item.courseId] = {
  311. id: item.id,
  312. courseid: item.courseId,
  313. title: item.title,
  314. time: item.time,
  315. utime: item.utime,
  316. chapters: item.chapters,
  317. brief: item.brief,
  318. array: []
  319. };
  320. });
  321. worksArray = Object.values(worksArray);
  322. worksArray.forEach(el => {
  323. array.forEach(el2 => {
  324. if (el.courseid == el2.courseid) {
  325. el.array.push(el2);
  326. }
  327. });
  328. });
  329. // worksArray[item.courseid].array.push(item);
  330. this.worksArray = worksArray;
  331. this.$forceUpdate();
  332. })
  333. .catch(err => {
  334. this.loading = false;
  335. console.error(err);
  336. });
  337. },
  338. returnA() {
  339. this.$router.push(
  340. "/testStudent?userid=" +
  341. this.userid +
  342. "&oid=" +
  343. this.oid +
  344. "&org=" +
  345. this.org +
  346. "&role=" +
  347. this.role
  348. );
  349. },
  350. checkTest(cid, tid) {
  351. this.$router.push(
  352. "/checkTest?cid=" +
  353. cid +
  354. "&tid=" +
  355. tid +
  356. "&userid=" +
  357. this.userid +
  358. "&oid=" +
  359. this.oid +
  360. "&org=" +
  361. this.org +
  362. "&type=3" +
  363. "&role=" +
  364. this.role
  365. );
  366. },
  367. doTest(cid, tid) {
  368. this.$router.push(
  369. "/doTest?cid=" +
  370. cid +
  371. "&tid=" +
  372. tid +
  373. "&userid=" +
  374. this.userid +
  375. "&oid=" +
  376. this.oid +
  377. "&org=" +
  378. this.org +
  379. "&type=3" +
  380. "&role=" +
  381. this.role
  382. );
  383. },
  384. doTest2(cid) {
  385. this.$router.push(
  386. "/doTest?cid=" +
  387. cid +
  388. "&userid=" +
  389. this.userid +
  390. "&oid=" +
  391. this.oid +
  392. "&org=" +
  393. this.org +
  394. "&type=3" +
  395. "&role=" +
  396. this.role
  397. );
  398. },
  399. copyTest(tid) {
  400. let params = [
  401. {
  402. tid: tid,
  403. uid: this.userid
  404. }
  405. ];
  406. this.ajax
  407. .post(this.$store.state.api + "copyTestWorks", params)
  408. .then(res => {
  409. this.$message.success("复制成功");
  410. this.getWorks();
  411. })
  412. .catch(err => {
  413. console.error(err);
  414. });
  415. },
  416. deleteTest(tid) {
  417. let _this = this;
  418. _this
  419. .$confirm("确定删除此提交的评测么?", "提示", {
  420. confirmButtonText: "确定",
  421. cancelButtonText: "取消",
  422. type: "warning"
  423. })
  424. .then(() => {
  425. let params = [
  426. {
  427. tid: tid
  428. }
  429. ];
  430. _this.ajax
  431. .post(_this.$store.state.api + "deleteTestCourseWorks", params)
  432. .then(res => {
  433. _this.$message.success("删除成功");
  434. _this.getWorks();
  435. })
  436. .catch(err => {
  437. console.error(err);
  438. });
  439. })
  440. .catch(() => {
  441. return;
  442. });
  443. }
  444. },
  445. mounted() {
  446. this.selectTestType();
  447. this.getWorks();
  448. }
  449. };
  450. </script>
  451. <style scoped>
  452. .i_body_box {
  453. height: calc(100% - 30px);
  454. padding: 30px 0 0;
  455. box-sizing: border-box;
  456. }
  457. .check_nav {
  458. display: flex;
  459. height: 50px;
  460. align-items: center;
  461. padding: 0;
  462. box-sizing: border-box;
  463. width: 100%;
  464. }
  465. .check_nav>.nav {
  466. width: 120px;
  467. height: 100%;
  468. display: flex;
  469. align-items: center;
  470. justify-content: center;
  471. color: rgb(167, 167, 167);
  472. /* background: #000000; */
  473. cursor: pointer;
  474. }
  475. .check_nav>.active {
  476. color: #3681fc;
  477. background: rgb(248, 250, 254);
  478. border-radius: 10px 10px 0 0;
  479. }
  480. .check_nav>.all::before,
  481. .check_nav>.gr::before,
  482. .check_nav>.md::before,
  483. .check_nav>.jy::before,
  484. .check_nav>.bj::before,
  485. .check_nav>.yy::before {
  486. content: "";
  487. display: block;
  488. width: 18px;
  489. height: 18px;
  490. background-size: 100% 100%;
  491. margin-right: 5px;
  492. }
  493. .check_nav>.all::before {
  494. background-image: url('../../../../assets/icon/test/all_icon.png');
  495. }
  496. .check_nav>.active.all::before {
  497. background-image: url('../../../../assets/icon/test/all_icon_active.png');
  498. }
  499. .check_nav>.gr::before {
  500. background-image: url('../../../../assets/icon/test/gr_icon.png');
  501. }
  502. .check_nav>.active.gr::before {
  503. background-image: url('../../../../assets/icon/test/gr_icon_active.png');
  504. }
  505. .check_nav>.md::before {
  506. background-image: url('../../../../assets/icon/test/md_icon.png');
  507. }
  508. .check_nav>.active.md::before {
  509. background-image: url('../../../../assets/icon/test/md_icon_active.png');
  510. }
  511. .check_nav>.jy::before {
  512. background-image: url('../../../../assets/icon/test/jy_icon.png');
  513. }
  514. .check_nav>.active.jy::before {
  515. background-image: url('../../../../assets/icon/test/jy_icon_active.png');
  516. }
  517. .check_nav>.yy::before {
  518. background-image: url('../../../../assets/icon/test/yy_icon.png');
  519. }
  520. .check_nav>.active.yy::before {
  521. background-image: url('../../../../assets/icon/test/yy_icon_active.png');
  522. }
  523. .check_nav>.bj::before {
  524. background-image: url('../../../../assets/icon/test/bj_icon.png');
  525. }
  526. .check_nav>.active.bj::before {
  527. background-image: url('../../../../assets/icon/test/bj_icon_active.png');
  528. }
  529. .check_box {
  530. height: calc(100% - 50px);
  531. overflow: auto;
  532. padding: 20px 0;
  533. box-sizing: border-box;
  534. background: rgb(248, 250, 254);
  535. }
  536. .test_panel {
  537. width: calc(100% - 40px);
  538. margin: 0 auto;
  539. background: #fff;
  540. border-radius: 10px;
  541. /* height: 300px; */
  542. overflow: hidden;
  543. }
  544. .test_panel+.test_panel {
  545. margin-top: 20px;
  546. }
  547. .test_panel_title {
  548. height: 60px;
  549. display: flex;
  550. align-items: center;
  551. width: 100%;
  552. justify-content: space-between;
  553. padding: 0 20px;
  554. box-sizing: border-box;
  555. border-bottom: 2px solid #f0f0f0;
  556. }
  557. .test_panel_title>.title {
  558. display: flex;
  559. align-items: center;
  560. }
  561. .test_panel_title>.title>span:nth-child(1) {
  562. font-size: 12px;
  563. padding: 3px 5px;
  564. border-radius: 5px;
  565. margin-right: 10px;
  566. }
  567. .test_panel_title>.title>.is:nth-child(1) {
  568. color: rgb(100, 215, 155);
  569. background: rgb(241, 255, 248);
  570. border: 1px solid rgb(100, 215, 155);
  571. }
  572. .test_panel_title>.title>.no:nth-child(1) {
  573. color: rgb(240, 66, 66);
  574. background: rgb(255, 241, 241);
  575. border: 1px solid rgb(240, 66, 66);
  576. }
  577. .test_panel_title>.title>span:nth-child(2) {
  578. font-size: 18px;
  579. font-weight: 600;
  580. }
  581. .test_panel_title>.time {
  582. font-size: 14px;
  583. color: #a1a1a1;
  584. }
  585. .test_panel_title>.time>span+span {
  586. margin-left: 10px;
  587. }
  588. .test_panel_box {
  589. width: 100%;
  590. display: flex;
  591. align-items: center;
  592. padding: 20px 20px;
  593. box-sizing: border-box;
  594. }
  595. .test_panel_box>.detail {
  596. width: calc(100% - 350px - 20px);
  597. margin-right: 20px;
  598. color: #a1a1a1;
  599. font-size: 14px;
  600. line-height: 24px;
  601. word-break: break-all;
  602. display: -webkit-box;
  603. -webkit-line-clamp: 4;
  604. -webkit-box-orient: vertical;
  605. overflow: hidden;
  606. }
  607. .test_panel_box>.panel {
  608. display: flex;
  609. align-items: center;
  610. justify-content: space-between;
  611. width: 350px;
  612. min-width: 350px;
  613. }
  614. .test_panel_box>.panel>.score {
  615. height: 110px;
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. flex-direction: column;
  620. border: 1px solid #dbdbdb;
  621. background: rgb(252, 252, 252);
  622. width: 120px;
  623. border-radius: 5px;
  624. }
  625. .test_panel_box>.panel>.score:nth-child(1) {
  626. display: flex;
  627. }
  628. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(1) {
  629. font-size: 30px;
  630. font-weight: 700;
  631. }
  632. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(2) {
  633. margin-left: 5px;
  634. }
  635. .test_panel_box>.panel>.score>div:nth-child(2) {
  636. font-size: 14px;
  637. margin-top: 10px;
  638. color: #a1a1a1;
  639. }
  640. .test_panel_box>.panel>.btn {
  641. height: 100px;
  642. display: flex;
  643. flex-direction: column;
  644. justify-content: space-between;
  645. }
  646. .test_panel_box>.panel>.btn>div {
  647. display: flex;
  648. color: rgb(69, 141, 255);
  649. align-items: center;
  650. cursor: pointer;
  651. font-size: 14px;
  652. }
  653. /* .test_panel_box > .panel >.btn > div + div{
  654. margin: 15px 0 0 0;
  655. } */
  656. .test_panel_box>.panel>.btn>div>span:nth-child(1) {
  657. display: block;
  658. width: 13px;
  659. height: 13px;
  660. background-size: 100% 100%;
  661. margin-right: 7px;
  662. }
  663. .test_panel_box>.panel>.btn>div:nth-child(1)>span:nth-child(1) {
  664. background-image: url('../../../../assets/icon/test/edit_icon.png');
  665. }
  666. .test_panel_box>.panel>.btn>div:nth-child(2)>span:nth-child(1) {
  667. background-image: url('../../../../assets/icon/test/check_icon.png');
  668. }
  669. .test_panel_box>.panel>.btn>div:nth-child(3)>span:nth-child(1) {
  670. background-image: url('../../../../assets/icon/test/paste_icon.png');
  671. }
  672. .test_add_box {
  673. height: 160px;
  674. width: 100%;
  675. padding: 0 20px;
  676. border-top: 2px solid #f0f0f0;
  677. box-sizing: border-box;
  678. display: flex;
  679. align-items: center;
  680. overflow: auto;
  681. }
  682. .test_add_box>.test {
  683. width: 120px;
  684. min-width: 120px;
  685. height: 120px;
  686. border-radius: 5px;
  687. /* overflow: hidden; */
  688. position: relative;
  689. }
  690. .test_add_box>.test:hover .mask {
  691. display: flex;
  692. }
  693. .test_add_box>.test:hover .delete {
  694. display: block;
  695. }
  696. .test_add_box>.test>img {
  697. width: 100%;
  698. height: 100%;
  699. object-fit: cover;
  700. border-radius: 5px;
  701. }
  702. .test_add_box>.test+.test {
  703. margin-left: 10px;
  704. }
  705. .test_add_box>.test>.time {
  706. position: absolute;
  707. width: 100%;
  708. height: 100%;
  709. flex-direction: column;
  710. display: flex;
  711. justify-content: center;
  712. align-items: center;
  713. top: 0;
  714. left: 0;
  715. color: #fff;
  716. background: rgba(0, 0, 0, 0.5);
  717. font-size: 14px;
  718. text-align: center;
  719. border-radius: 5px;
  720. }
  721. .test_add_box>.test>.time>span {
  722. margin-top: 5px;
  723. }
  724. .test_add_box>.test>.mask {
  725. position: absolute;
  726. width: 100%;
  727. height: 100%;
  728. background: rgba(0, 0, 0, 0.5);
  729. /* display: flex; */
  730. flex-direction: column;
  731. justify-content: center;
  732. align-items: center;
  733. top: 0;
  734. left: 0;
  735. color: rgb(69, 141, 255);
  736. display: none;
  737. border-radius: 5px;
  738. }
  739. .test_add_box>.test>.delete {
  740. position: absolute;
  741. width: 20px;
  742. height: 20px;
  743. right: -5px;
  744. top: -5px;
  745. cursor: pointer;
  746. z-index: 2;
  747. display: none;
  748. }
  749. .test_add_box>.test>.mask>div {
  750. display: flex;
  751. color: #fff;
  752. align-items: center;
  753. cursor: pointer;
  754. font-size: 14px;
  755. }
  756. .test_add_box>.test>.mask>div+div {
  757. margin: 10px 0 0 0;
  758. }
  759. /*
  760. .test_add_box>.test>.mask>div>span:nth-child(1) {
  761. display: block;
  762. width: 13px;
  763. height: 13px;
  764. background-size: 100% 100%;
  765. margin-right: 7px;
  766. }
  767. .test_add_box>.test>.mask>div:nth-child(1)>span:nth-child(1) {
  768. background-image: url('../../../../assets/icon/test/edit_icon.png');
  769. }
  770. .test_add_box>.test>.mask>div:nth-child(2)>span:nth-child(1) {
  771. background-image: url('../../../../assets/icon/test/check_icon.png');
  772. }
  773. .test_add_box>.test>.mask>div:nth-child(3)>span:nth-child(1) {
  774. background-image: url('../../../../assets/icon/test/paste_icon.png');
  775. } */
  776. .bgColor {
  777. background: #466b99;
  778. }</style>