index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. <route lang="json">
  2. {
  3. "meta":{
  4. "title":"阅卷流程",
  5. "breadcrumb": true
  6. }
  7. }
  8. </route>
  9. <script setup>
  10. // import {process_list} from "~/pages/index/api";
  11. import { useRouter } from "vue-router";
  12. const router = useRouter();
  13. const linkTo = (name) => {
  14. router.push({ name });
  15. };
  16. let exam_time = $ref('')
  17. let exam_form = $ref('')
  18. let exam_type = $ref('')
  19. let keyword = $ref('')
  20. let form_list = [{
  21. value: '1',
  22. label: '线上考试'
  23. }, {
  24. value: '2',
  25. label: '线下考试'
  26. }]
  27. let type_list = [{
  28. value: '1',
  29. label: '联考'
  30. }, {
  31. value: '2',
  32. label: '月考'
  33. }, {
  34. value: '3',
  35. label: '周考'
  36. }]
  37. let chooseCheck = $ref([]);
  38. let checked = $ref(false);
  39. let checkedIds = $ref([]);
  40. let noData = $ref(null);
  41. let limit = $ref(10);
  42. let total = $ref(0);
  43. let cur_page = $ref(1);
  44. let listData = $ref([]);
  45. function chooseAll() {
  46. }
  47. // function getListData() {
  48. // let data = {
  49. // page:cur_page,
  50. // limit:limit,
  51. // };
  52. // process_list(data).then(res=>{
  53. // if(res.code === '1') {
  54. // listData = res.data.page_data;
  55. // total = Number(res.data.total_rows);
  56. // cur_page = Number(res.data.page_now);
  57. // }
  58. // })
  59. // }
  60. </script>
  61. <template>
  62. <NavHeader/>
  63. <bread-crumb/>
  64. <div class="w-1200px m-auto">
  65. <div class="flex items-center">
  66. <el-date-picker
  67. v-model="exam_time"
  68. value-format="YYYY-MM-DD"
  69. type="date"
  70. style="width: 198px"
  71. placeholder="考试时间"
  72. size="large"
  73. />
  74. <el-select class="ml-20px" v-model="exam_form" placeholder="考试形式" size="large">
  75. <el-option label="全部" value="0"
  76. />
  77. <el-option
  78. v-for="item in form_list"
  79. :key="item.value"
  80. :label="item.label"
  81. :value="item.value"
  82. />
  83. </el-select>
  84. <el-select class="ml-20px" v-model="exam_form" placeholder="考试类型" size="large">
  85. <el-option label="全部" value="0"
  86. />
  87. <el-option
  88. v-for="item in type_list"
  89. :key="item.value"
  90. :label="item.label"
  91. :value="item.value"
  92. />
  93. </el-select>
  94. <el-input
  95. v-model="keyword"
  96. class="ml-20px w-198px"
  97. size="large"
  98. clearable
  99. placeholder="请输入关键字"
  100. />
  101. <el-button class="ml-20px" type="primary" size="large">搜索</el-button>
  102. </div>
  103. <div class="flex mt-20px justify-between">
  104. <button type="button" class="add-btn">
  105. <el-icon class="inline-block align-middle">
  106. <Plus/>
  107. </el-icon>
  108. <span class="ml-5px inline-block align-middle">新建考试计划</span>
  109. </button>
  110. <button type="button" class="del-btn">批量删除</button>
  111. </div>
  112. <div class="mt-20px process-list-table">
  113. <div class="head">
  114. <div class="w-60px">
  115. <p class="set-check all">
  116. <input type="checkbox" id="chooseAll" @change="chooseAll" v-model="checked">
  117. <label for="chooseAll"></label>
  118. </p>
  119. </div>
  120. <div class="w-150px text-left">考试计划名称</div>
  121. <div class="w-250px">状态</div>
  122. <div class="w-130px">考试形式</div>
  123. <div class="w-130px">考试类型</div>
  124. <div class="w-180px">考试时间</div>
  125. <div class="w-300px">操作</div>
  126. </div>
  127. <div>
  128. <div class="line">
  129. <div class="up">
  130. <div class="w-60px">
  131. <p class="set-check single">
  132. <input type="checkbox" id="1" :value="1" v-model="chooseCheck">
  133. <label :for="1"></label>
  134. </p>
  135. </div>
  136. <div class="w-150px text-left">考试计划名称</div>
  137. <div class="w-250px">
  138. <span class="inline-block align-middle">进行中</span>
  139. <div class="inline-block align-middle ml-10px process-state">
  140. <h3 class="state-line">
  141. <span style="width: 11%;"></span>
  142. </h3>
  143. </div>
  144. <span class="ml-10px inline-block align-middle">11%</span>
  145. </div>
  146. <div class="w-130px text-left">线下考试</div>
  147. <div class="w-130px text-left">联考</div>
  148. <div class="w-180px text-left">2023.2.4~2023.2.17</div>
  149. <div class="w-300px">
  150. <button type="button" class="op-btn">编辑</button>
  151. <button type="button" class="op-btn ml-10px">详情</button>
  152. <div class="ml-10px relative op-btn cursor-pointer">
  153. <span class="inline-block align-middle leading-28px">更多</span>
  154. <div class="more-list">
  155. <ul>
  156. <li>阅卷任务</li>
  157. <li>扫描批阅进度</li>
  158. <li>考试分析</li>
  159. <li>删除</li>
  160. </ul>
  161. </div>
  162. </div>
  163. <button type="button" class="ml-10px inline-block align-middle arrow-btn up"></button>
  164. </div>
  165. </div>
  166. <div class="down pt-15px pl-35px">
  167. <ul class="subject-list">
  168. <li>
  169. <div>
  170. <div class="w-140px h-195px m-auto">
  171. <img src="/images/yuwen.png" class="w-full" alt="">
  172. </div>
  173. <div class="mt-5px">
  174. <div class="inline-block align-middle process-state">
  175. <h3 class="state-line">
  176. <span style="width: 11%;"></span>
  177. </h3>
  178. </div>
  179. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  180. </div>
  181. <div class="mt-5px text-center">
  182. <button type="button" class="op-btn">查看</button>
  183. </div>
  184. </div>
  185. </li>
  186. <li>
  187. <div>
  188. <div class="w-140px h-195px m-auto">
  189. <img src="/images/shuxue.png" class="w-full" alt="">
  190. </div>
  191. <div class="mt-5px">
  192. <div class="inline-block align-middle process-state">
  193. <h3 class="state-line">
  194. <span style="width: 11%;"></span>
  195. </h3>
  196. </div>
  197. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  198. </div>
  199. <div class="mt-5px text-center">
  200. <button type="button" class="op-btn">查看</button>
  201. </div>
  202. </div>
  203. </li>
  204. <li>
  205. <div>
  206. <div class="w-140px h-195px m-auto">
  207. <img src="/images/yingyu.png" class="w-full" alt="">
  208. </div>
  209. <div class="mt-5px">
  210. <div class="inline-block align-middle process-state">
  211. <h3 class="state-line">
  212. <span style="width: 11%;"></span>
  213. </h3>
  214. </div>
  215. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  216. </div>
  217. <div class="mt-5px text-center">
  218. <button type="button" class="op-btn">查看</button>
  219. </div>
  220. </div>
  221. </li>
  222. <li>
  223. <div>
  224. <div class="w-140px h-195px m-auto">
  225. <img src="/images/wuli.png" class="w-full" alt="">
  226. </div>
  227. <div class="mt-5px">
  228. <div class="inline-block align-middle process-state">
  229. <h3 class="state-line">
  230. <span style="width: 11%;"></span>
  231. </h3>
  232. </div>
  233. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  234. </div>
  235. <div class="mt-5px text-center">
  236. <button type="button" class="op-btn">查看</button>
  237. </div>
  238. </div>
  239. </li>
  240. <li>
  241. <div>
  242. <div class="w-140px h-195px m-auto">
  243. <img src="/images/huaxue.png" class="w-full" alt="">
  244. </div>
  245. <div class="mt-5px">
  246. <div class="inline-block align-middle process-state">
  247. <h3 class="state-line">
  248. <span style="width: 11%;"></span>
  249. </h3>
  250. </div>
  251. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  252. </div>
  253. <div class="mt-5px text-center">
  254. <button type="button" class="op-btn">查看</button>
  255. </div>
  256. </div>
  257. </li>
  258. <li>
  259. <div>
  260. <div class="w-140px h-195px m-auto">
  261. <img src="/images/shengwu.png" class="w-full" alt="">
  262. </div>
  263. <div class="mt-5px">
  264. <div class="inline-block align-middle process-state">
  265. <h3 class="state-line">
  266. <span style="width: 11%;"></span>
  267. </h3>
  268. </div>
  269. <span class="ml-10px text-14px inline-block align-middle">11%</span>
  270. </div>
  271. <div class="mt-5px text-center">
  272. <button type="button" class="op-btn">查看</button>
  273. </div>
  274. </div>
  275. </li>
  276. <li class="cursor-pointer">
  277. <div class="subject-add-btn"></div>
  278. </li>
  279. </ul>
  280. </div>
  281. </div>
  282. <div class="line">
  283. <div class="up">
  284. <div class="w-60px">
  285. <p class="set-check single">
  286. <input type="checkbox" id="1" :value="1" v-model="chooseCheck">
  287. <label :for="1"></label>
  288. </p>
  289. </div>
  290. <div class="w-150px text-left">考试计划名称</div>
  291. <div class="w-250px">
  292. <span class="inline-block align-middle">进行中</span>
  293. <div class="inline-block align-middle ml-10px process-state">
  294. <h3 class="state-line">
  295. <span style="width: 11%;"></span>
  296. </h3>
  297. </div>
  298. <span class="ml-10px inline-block align-middle">11%</span>
  299. </div>
  300. <div class="w-130px text-left">线下考试</div>
  301. <div class="w-130px text-left">联考</div>
  302. <div class="w-180px text-left">2023.2.4~2023.2.17</div>
  303. <div class="w-300px">
  304. <button type="button" class="op-btn">编辑</button>
  305. <button type="button" class="op-btn ml-10px">详情</button>
  306. <div class="ml-10px relative op-btn cursor-pointer">
  307. <span class="inline-block align-middle leading-28px">更多</span>
  308. <div class="more-list">
  309. <ul>
  310. <li>阅卷任务</li>
  311. <li>扫描批阅进度</li>
  312. <li>考试分析</li>
  313. <li>删除</li>
  314. </ul>
  315. </div>
  316. </div>
  317. <button type="button" class="ml-10px inline-block align-middle arrow-btn down"></button>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <div class="mt-20px page-new flex justify-end">
  324. <el-pagination v-model:current-page="cur_page" v-model:page-size="limit" layout="prev, pager, next" :total="total" :background="true" @current-change="handleSelectionChange"></el-pagination>
  325. </div>
  326. </div>
  327. </template>
  328. <style lang="scss" scoped>
  329. $color: #003eee;
  330. ::v-deep .el-pagination.is-background .btn-next.is-active,
  331. ::v-deep .el-pagination.is-background .btn-prev.is-active,
  332. ::v-deep .el-pagination.is-background .el-pager li.is-active{
  333. background-color: $color;
  334. }
  335. .add-btn {
  336. width: 129px;
  337. height: 36px;
  338. background: #ffffff;
  339. border: 1px solid $color;
  340. border-radius: 4px;
  341. font-size: 14px;
  342. color: $color;
  343. text-align: center;
  344. }
  345. .del-btn {
  346. width: 92px;
  347. height: 36px;
  348. background: #ff0000;
  349. border-radius: 4px;
  350. font-size: 14px;
  351. color: #fff;
  352. text-align: center;
  353. }
  354. .process-list-table {
  355. width: 100%;
  356. min-height: 600px;
  357. .head {
  358. height: 50px;
  359. display: flex;
  360. background: $color;
  361. border-radius: 6px 6px 0 0;
  362. font-size: 16px;
  363. line-height: 50px;
  364. color: #fff;
  365. }
  366. .line {
  367. width: 100%;
  368. &:nth-child(odd) {
  369. >.up {
  370. border-radius: 4px;
  371. background: rgba(112, 175, 253, 0.1);
  372. }
  373. }
  374. >.up {
  375. display: flex;
  376. align-items: center;
  377. padding: 15px 0;
  378. font-size: 15px;
  379. color: #404040;
  380. }
  381. }
  382. }
  383. .set-check {
  384. position: relative;
  385. z-index: 40;
  386. width: 20px;
  387. height: 20px;
  388. margin: 15px auto 0;
  389. label {
  390. position: absolute;
  391. left: 0;
  392. width: 20px;
  393. height: 20px;
  394. cursor: pointer;
  395. border-radius: 3px;
  396. }
  397. input[type=checkbox] {
  398. width: 20px;
  399. height: 20px;
  400. opacity: 0;
  401. &:checked + label:after {
  402. }
  403. }
  404. &.all {
  405. label {
  406. border: 1px solid #fff;
  407. }
  408. input[type=checkbox] {
  409. &:checked + label {
  410. border-color: #fff;
  411. }
  412. &:checked + label:after {
  413. content: '';
  414. width: 14px;
  415. height: 8px;
  416. position: absolute;
  417. top: 3px;
  418. left: 2px;
  419. border: 2px solid #fff;
  420. border-top: none;
  421. border-right: none;
  422. -moz-transform: rotate(-45deg);
  423. -ms-transform: rotate(-45deg);
  424. -webkit-transform: rotate(-45deg);
  425. transform: rotate(-45deg);
  426. }
  427. }
  428. }
  429. &.single {
  430. margin: 0 auto;
  431. label {
  432. border: 1px solid #aaa;
  433. }
  434. input[type=checkbox] {
  435. &:checked + label {
  436. border-color: #003eee;
  437. }
  438. &:checked + label:after {
  439. content: '';
  440. width: 14px;
  441. height: 8px;
  442. position: absolute;
  443. top: 3px;
  444. left: 2px;
  445. border: 2px solid #003eee;
  446. border-top: none;
  447. border-right: none;
  448. -moz-transform: rotate(-45deg);
  449. -ms-transform: rotate(-45deg);
  450. -webkit-transform: rotate(-45deg);
  451. transform: rotate(-45deg);
  452. }
  453. }
  454. }
  455. }
  456. .process-state {
  457. width: 140px;
  458. .state-line {
  459. width: 100%;
  460. height: 5px;
  461. background: #e2e2e2;
  462. border-radius: 3px;
  463. span {
  464. display: block;
  465. height: 5px;
  466. background: #003eee;
  467. border-radius: 3px;
  468. }
  469. }
  470. .state-info {
  471. position: absolute;
  472. top: 8px;
  473. left: 0;
  474. width: 100%;
  475. font-size: 13px;
  476. color: #003eee;
  477. text-align: center;
  478. }
  479. }
  480. .op-btn {
  481. display: inline-block;
  482. vertical-align: middle;
  483. padding: 0 15px;
  484. height: 30px;
  485. background: #fff;
  486. border: 1px solid #003eee;
  487. border-radius: 4px;
  488. font-size: 14px;
  489. color: #003eee;
  490. text-align: center;
  491. &:disabled {
  492. background: #ccc;
  493. border-color: #ccc;
  494. color: #fff;
  495. cursor: default;
  496. }
  497. .more-list {
  498. display: none;
  499. position: absolute;
  500. left: 50%;
  501. top: 30px;
  502. margin-left: -50px;
  503. z-index: 50;
  504. width: 100px;
  505. padding-top: 5px;
  506. ul {
  507. width: 100%;
  508. background: #fff;
  509. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  510. li {
  511. width: 100%;
  512. height: 30px;
  513. font-size: 14px;
  514. color: #003eee;
  515. text-align: center;
  516. line-height: 30px;
  517. cursor: pointer;
  518. &.disabled {
  519. background: #fff !important;
  520. color: #ccc !important;
  521. cursor: default !important;
  522. pointer-events: none;
  523. }
  524. &:hover {
  525. background: #F0F7FF;
  526. }
  527. }
  528. }
  529. }
  530. &:hover {
  531. .more-list {
  532. display: block;
  533. }
  534. }
  535. }
  536. .arrow-btn{
  537. width: 21px;
  538. height: 13px;
  539. &.up{
  540. background: url("/images/arrow-up.png") center no-repeat;
  541. }
  542. &.down{
  543. background: url("/images/arrow-down.png") center no-repeat;
  544. }
  545. }
  546. .subject-list{
  547. display: flex;
  548. flex-wrap: wrap;
  549. li{
  550. width: 205px;
  551. height: 280px;
  552. margin: 0 28px 23px 0;
  553. border: 2px solid $color;
  554. border-radius: 10px;
  555. display: flex;
  556. justify-content: center;
  557. align-items: center;
  558. }
  559. }
  560. .subject-add-btn{
  561. width: 57px;
  562. height: 57px;
  563. background: url("/images/icon-add.png") center no-repeat;
  564. }
  565. </style>