test.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  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[z];
  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. console.log(k2);
  216. if (item.ttype == 2 && item.array.length > 0) {
  217. for (var z = 0; z < item.array.length; z++) {
  218. let item2 = item.array[z];
  219. if (
  220. item2.ttype == 1 &&
  221. item2.type == 5 &&
  222. item2.json &&
  223. item2.json.file &&
  224. item2.json.file.length > 0
  225. ) {
  226. for (var k4 = 0; k4 < item2.json.file.length; k4++) {
  227. let ik = item2.json.file[k4];
  228. if (ik.type == 3) {
  229. _img = ik.url;
  230. break s;
  231. }
  232. }
  233. }
  234. }
  235. } else if (
  236. item.ttype == 1 &&
  237. item.type == 5 &&
  238. item.json &&
  239. item.json.file &&
  240. item.json.file.length > 0
  241. ) {
  242. for (var k3 = 0; k3 < item.json.file.length; k3++) {
  243. let ik = item.json.file[k3];
  244. if (ik.type == 3) {
  245. _img = ik.url;
  246. break s;
  247. }
  248. }
  249. }
  250. }
  251. } else if (
  252. el.ttype == 1 &&
  253. el.type == 5 &&
  254. el.json &&
  255. el.json.file &&
  256. el.json.file.length > 0
  257. ) {
  258. for (var k = 0; k < el.json.file.length; k++) {
  259. let ik = el.json.file[k];
  260. if (ik.type == 3) {
  261. _img = ik.url;
  262. break s;
  263. }
  264. }
  265. }
  266. }
  267. return _img;
  268. };
  269. }
  270. },
  271. methods: {
  272. checkType(type) {
  273. this.type = type;
  274. this.getWorks();
  275. },
  276. selectTestType() {
  277. let params = {
  278. oid: this.oid
  279. };
  280. this.ajax
  281. .get(this.$store.state.api + "selectTestType", params)
  282. .then(res => {
  283. this.typeArray = res.data[0];
  284. if(this.typeArray.length){
  285. this.type = this.typeArray[0].id;
  286. }else{
  287. this.type = '0';
  288. }
  289. })
  290. .catch(err => {
  291. console.error(err);
  292. });
  293. },
  294. getWorks() {
  295. this.loading = true;
  296. let params = {
  297. uid: this.userid,
  298. typeid: this.type
  299. };
  300. this.ajax
  301. .get(this.$store.state.api + "getTestWorksPerson", params)
  302. .then(res => {
  303. this.loading = false;
  304. let array = res.data[0];
  305. let array2 = res.data[1];
  306. // 用于存储归类后的数据的对象
  307. let worksArray = {};
  308. // 遍历原始数据,根据 parentId 进行分组
  309. array2.forEach(item => {
  310. // console.log(item.chapters);
  311. worksArray[item.courseId] = {
  312. id: item.id,
  313. courseid: item.courseId,
  314. title: item.title,
  315. time: item.time,
  316. utime: item.utime,
  317. chapters: item.chapters,
  318. brief: item.brief,
  319. array: []
  320. };
  321. });
  322. worksArray = Object.values(worksArray);
  323. worksArray.forEach(el => {
  324. array.forEach(el2 => {
  325. if (el.courseid == el2.courseid) {
  326. el.array.push(el2);
  327. }
  328. });
  329. });
  330. // worksArray[item.courseid].array.push(item);
  331. this.worksArray = worksArray;
  332. this.$forceUpdate();
  333. })
  334. .catch(err => {
  335. this.loading = false;
  336. console.error(err);
  337. });
  338. },
  339. returnA() {
  340. this.$router.push(
  341. "/testStudent?userid=" +
  342. this.userid +
  343. "&oid=" +
  344. this.oid +
  345. "&org=" +
  346. this.org +
  347. "&role=" +
  348. this.role
  349. );
  350. },
  351. checkTest(cid, tid) {
  352. this.$router.push(
  353. "/checkTest?cid=" +
  354. cid +
  355. "&tid=" +
  356. tid +
  357. "&userid=" +
  358. this.userid +
  359. "&oid=" +
  360. this.oid +
  361. "&org=" +
  362. this.org +
  363. "&type=3" +
  364. "&role=" +
  365. this.role
  366. );
  367. },
  368. doTest(cid, tid) {
  369. this.$router.push(
  370. "/doTest?cid=" +
  371. cid +
  372. "&tid=" +
  373. tid +
  374. "&userid=" +
  375. this.userid +
  376. "&oid=" +
  377. this.oid +
  378. "&org=" +
  379. this.org +
  380. "&type=3" +
  381. "&role=" +
  382. this.role
  383. );
  384. },
  385. doTest2(cid) {
  386. this.$router.push(
  387. "/doTest?cid=" +
  388. cid +
  389. "&userid=" +
  390. this.userid +
  391. "&oid=" +
  392. this.oid +
  393. "&org=" +
  394. this.org +
  395. "&type=3" +
  396. "&role=" +
  397. this.role
  398. );
  399. },
  400. copyTest(tid) {
  401. let params = [
  402. {
  403. tid: tid,
  404. uid: this.userid
  405. }
  406. ];
  407. this.ajax
  408. .post(this.$store.state.api + "copyTestWorks", params)
  409. .then(res => {
  410. this.$message.success("复制成功");
  411. this.getWorks();
  412. })
  413. .catch(err => {
  414. console.error(err);
  415. });
  416. },
  417. deleteTest(tid) {
  418. let _this = this;
  419. _this
  420. .$confirm("确定删除此提交的评测么?", "提示", {
  421. confirmButtonText: "确定",
  422. cancelButtonText: "取消",
  423. type: "warning"
  424. })
  425. .then(() => {
  426. let params = [
  427. {
  428. tid: tid
  429. }
  430. ];
  431. _this.ajax
  432. .post(_this.$store.state.api + "deleteTestCourseWorks", params)
  433. .then(res => {
  434. _this.$message.success("删除成功");
  435. _this.getWorks();
  436. })
  437. .catch(err => {
  438. console.error(err);
  439. });
  440. })
  441. .catch(() => {
  442. return;
  443. });
  444. }
  445. },
  446. mounted() {
  447. this.selectTestType();
  448. this.getWorks();
  449. }
  450. };
  451. </script>
  452. <style scoped>
  453. .i_body_box {
  454. height: calc(100% - 30px);
  455. padding: 30px 0 0;
  456. box-sizing: border-box;
  457. }
  458. .check_nav {
  459. display: flex;
  460. height: 50px;
  461. align-items: center;
  462. padding: 0;
  463. box-sizing: border-box;
  464. width: 100%;
  465. }
  466. .check_nav>.nav {
  467. width: 120px;
  468. height: 100%;
  469. display: flex;
  470. align-items: center;
  471. justify-content: center;
  472. color: rgb(167, 167, 167);
  473. /* background: #000000; */
  474. cursor: pointer;
  475. }
  476. .check_nav>.active {
  477. color: #3681fc;
  478. background: rgb(248, 250, 254);
  479. border-radius: 10px 10px 0 0;
  480. }
  481. .check_nav>.all::before,
  482. .check_nav>.gr::before,
  483. .check_nav>.md::before,
  484. .check_nav>.jy::before,
  485. .check_nav>.bj::before,
  486. .check_nav>.yy::before {
  487. content: "";
  488. display: block;
  489. width: 18px;
  490. height: 18px;
  491. background-size: 100% 100%;
  492. margin-right: 5px;
  493. }
  494. .check_nav>.all::before {
  495. background-image: url('../../../../assets/icon/test/all_icon.png');
  496. }
  497. .check_nav>.active.all::before {
  498. background-image: url('../../../../assets/icon/test/all_icon_active.png');
  499. }
  500. .check_nav>.gr::before {
  501. background-image: url('../../../../assets/icon/test/gr_icon.png');
  502. }
  503. .check_nav>.active.gr::before {
  504. background-image: url('../../../../assets/icon/test/gr_icon_active.png');
  505. }
  506. .check_nav>.md::before {
  507. background-image: url('../../../../assets/icon/test/md_icon.png');
  508. }
  509. .check_nav>.active.md::before {
  510. background-image: url('../../../../assets/icon/test/md_icon_active.png');
  511. }
  512. .check_nav>.jy::before {
  513. background-image: url('../../../../assets/icon/test/jy_icon.png');
  514. }
  515. .check_nav>.active.jy::before {
  516. background-image: url('../../../../assets/icon/test/jy_icon_active.png');
  517. }
  518. .check_nav>.yy::before {
  519. background-image: url('../../../../assets/icon/test/yy_icon.png');
  520. }
  521. .check_nav>.active.yy::before {
  522. background-image: url('../../../../assets/icon/test/yy_icon_active.png');
  523. }
  524. .check_nav>.bj::before {
  525. background-image: url('../../../../assets/icon/test/bj_icon.png');
  526. }
  527. .check_nav>.active.bj::before {
  528. background-image: url('../../../../assets/icon/test/bj_icon_active.png');
  529. }
  530. .check_box {
  531. height: calc(100% - 50px);
  532. overflow: auto;
  533. padding: 20px 0;
  534. box-sizing: border-box;
  535. background: rgb(248, 250, 254);
  536. }
  537. .test_panel {
  538. width: calc(100% - 40px);
  539. margin: 0 auto;
  540. background: #fff;
  541. border-radius: 10px;
  542. /* height: 300px; */
  543. overflow: hidden;
  544. }
  545. .test_panel+.test_panel {
  546. margin-top: 20px;
  547. }
  548. .test_panel_title {
  549. height: 60px;
  550. display: flex;
  551. align-items: center;
  552. width: 100%;
  553. justify-content: space-between;
  554. padding: 0 20px;
  555. box-sizing: border-box;
  556. border-bottom: 2px solid #f0f0f0;
  557. }
  558. .test_panel_title>.title {
  559. display: flex;
  560. align-items: center;
  561. }
  562. .test_panel_title>.title>span:nth-child(1) {
  563. font-size: 12px;
  564. padding: 3px 5px;
  565. border-radius: 5px;
  566. margin-right: 10px;
  567. }
  568. .test_panel_title>.title>.is:nth-child(1) {
  569. color: rgb(100, 215, 155);
  570. background: rgb(241, 255, 248);
  571. border: 1px solid rgb(100, 215, 155);
  572. }
  573. .test_panel_title>.title>.no:nth-child(1) {
  574. color: rgb(240, 66, 66);
  575. background: rgb(255, 241, 241);
  576. border: 1px solid rgb(240, 66, 66);
  577. }
  578. .test_panel_title>.title>span:nth-child(2) {
  579. font-size: 18px;
  580. font-weight: 600;
  581. }
  582. .test_panel_title>.time {
  583. font-size: 14px;
  584. color: #a1a1a1;
  585. }
  586. .test_panel_title>.time>span+span {
  587. margin-left: 10px;
  588. }
  589. .test_panel_box {
  590. width: 100%;
  591. display: flex;
  592. align-items: center;
  593. padding: 20px 20px;
  594. box-sizing: border-box;
  595. }
  596. .test_panel_box>.detail {
  597. width: calc(100% - 350px - 20px);
  598. margin-right: 20px;
  599. color: #a1a1a1;
  600. font-size: 14px;
  601. line-height: 24px;
  602. word-break: break-all;
  603. display: -webkit-box;
  604. -webkit-line-clamp: 4;
  605. -webkit-box-orient: vertical;
  606. overflow: hidden;
  607. }
  608. .test_panel_box>.panel {
  609. display: flex;
  610. align-items: center;
  611. justify-content: space-between;
  612. width: 350px;
  613. min-width: 350px;
  614. }
  615. .test_panel_box>.panel>.score {
  616. height: 110px;
  617. display: flex;
  618. align-items: center;
  619. justify-content: center;
  620. flex-direction: column;
  621. border: 1px solid #dbdbdb;
  622. background: rgb(252, 252, 252);
  623. width: 120px;
  624. border-radius: 5px;
  625. }
  626. .test_panel_box>.panel>.score:nth-child(1) {
  627. display: flex;
  628. }
  629. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(1) {
  630. font-size: 30px;
  631. font-weight: 700;
  632. }
  633. .test_panel_box>.panel>.score>div:nth-child(1)>span:nth-child(2) {
  634. margin-left: 5px;
  635. }
  636. .test_panel_box>.panel>.score>div:nth-child(2) {
  637. font-size: 14px;
  638. margin-top: 10px;
  639. color: #a1a1a1;
  640. }
  641. .test_panel_box>.panel>.btn {
  642. height: 100px;
  643. display: flex;
  644. flex-direction: column;
  645. justify-content: space-between;
  646. }
  647. .test_panel_box>.panel>.btn>div {
  648. display: flex;
  649. color: rgb(69, 141, 255);
  650. align-items: center;
  651. cursor: pointer;
  652. font-size: 14px;
  653. }
  654. /* .test_panel_box > .panel >.btn > div + div{
  655. margin: 15px 0 0 0;
  656. } */
  657. .test_panel_box>.panel>.btn>div>span:nth-child(1) {
  658. display: block;
  659. width: 13px;
  660. height: 13px;
  661. background-size: 100% 100%;
  662. margin-right: 7px;
  663. }
  664. .test_panel_box>.panel>.btn>div:nth-child(1)>span:nth-child(1) {
  665. background-image: url('../../../../assets/icon/test/edit_icon.png');
  666. }
  667. .test_panel_box>.panel>.btn>div:nth-child(2)>span:nth-child(1) {
  668. background-image: url('../../../../assets/icon/test/check_icon.png');
  669. }
  670. .test_panel_box>.panel>.btn>div:nth-child(3)>span:nth-child(1) {
  671. background-image: url('../../../../assets/icon/test/paste_icon.png');
  672. }
  673. .test_add_box {
  674. height: 160px;
  675. width: 100%;
  676. padding: 0 20px;
  677. border-top: 2px solid #f0f0f0;
  678. box-sizing: border-box;
  679. display: flex;
  680. align-items: center;
  681. overflow: auto;
  682. }
  683. .test_add_box>.test {
  684. width: 120px;
  685. min-width: 120px;
  686. height: 120px;
  687. border-radius: 5px;
  688. /* overflow: hidden; */
  689. position: relative;
  690. }
  691. .test_add_box>.test:hover .mask {
  692. display: flex;
  693. }
  694. .test_add_box>.test:hover .delete {
  695. display: block;
  696. }
  697. .test_add_box>.test>img {
  698. width: 100%;
  699. height: 100%;
  700. object-fit: cover;
  701. border-radius: 5px;
  702. }
  703. .test_add_box>.test+.test {
  704. margin-left: 10px;
  705. }
  706. .test_add_box>.test>.time {
  707. position: absolute;
  708. width: 100%;
  709. height: 100%;
  710. flex-direction: column;
  711. display: flex;
  712. justify-content: center;
  713. align-items: center;
  714. top: 0;
  715. left: 0;
  716. color: #fff;
  717. background: rgba(0, 0, 0, 0.5);
  718. font-size: 14px;
  719. text-align: center;
  720. border-radius: 5px;
  721. }
  722. .test_add_box>.test>.time>span {
  723. margin-top: 5px;
  724. }
  725. .test_add_box>.test>.mask {
  726. position: absolute;
  727. width: 100%;
  728. height: 100%;
  729. background: rgba(0, 0, 0, 0.5);
  730. /* display: flex; */
  731. flex-direction: column;
  732. justify-content: center;
  733. align-items: center;
  734. top: 0;
  735. left: 0;
  736. color: rgb(69, 141, 255);
  737. display: none;
  738. border-radius: 5px;
  739. }
  740. .test_add_box>.test>.delete {
  741. position: absolute;
  742. width: 20px;
  743. height: 20px;
  744. right: -5px;
  745. top: -5px;
  746. cursor: pointer;
  747. z-index: 2;
  748. display: none;
  749. }
  750. .test_add_box>.test>.mask>div {
  751. display: flex;
  752. color: #fff;
  753. align-items: center;
  754. cursor: pointer;
  755. font-size: 14px;
  756. }
  757. .test_add_box>.test>.mask>div+div {
  758. margin: 10px 0 0 0;
  759. }
  760. /*
  761. .test_add_box>.test>.mask>div>span:nth-child(1) {
  762. display: block;
  763. width: 13px;
  764. height: 13px;
  765. background-size: 100% 100%;
  766. margin-right: 7px;
  767. }
  768. .test_add_box>.test>.mask>div:nth-child(1)>span:nth-child(1) {
  769. background-image: url('../../../../assets/icon/test/edit_icon.png');
  770. }
  771. .test_add_box>.test>.mask>div:nth-child(2)>span:nth-child(1) {
  772. background-image: url('../../../../assets/icon/test/check_icon.png');
  773. }
  774. .test_add_box>.test>.mask>div:nth-child(3)>span:nth-child(1) {
  775. background-image: url('../../../../assets/icon/test/paste_icon.png');
  776. } */
  777. .bgColor {
  778. background: #466b99;
  779. }</style>