|
@@ -0,0 +1,173 @@
|
|
|
+<template>
|
|
|
+ <div class="pt30 pb30 pr30 pl30 w100vw h100vh">
|
|
|
+ <div class="w-full h-full flex">
|
|
|
+ <div class="w-full flex h450">
|
|
|
+ <div class="w215">
|
|
|
+ <div class="w-full h50 lh50 font-semibold">视频输入设备</div>
|
|
|
+ <div
|
|
|
+ class="w-full h50 lh50 font-semibold"
|
|
|
+ style="background-color: #fff5cc"
|
|
|
+ >
|
|
|
+ 第1考台
|
|
|
+ </div>
|
|
|
+ <div class="pt30 pb30 pr45 pl45">
|
|
|
+ <img src="@/assets/img/driverExam/user_img.png" />
|
|
|
+ </div>
|
|
|
+ <div class="pt20 pb20 text-left pl30">
|
|
|
+ <div class="font20 font-bold">姓名 中国驾考网</div>
|
|
|
+ <div class="font20 font-bold">性别 男</div>
|
|
|
+ <div class="font20 font-bold">车型 C1</div>
|
|
|
+ <div class="font20 font-bold">科目一理论考试</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="w1196">
|
|
|
+ <div style="background-color: #fff5cc" class="lh50 font-bold">
|
|
|
+ 考试题目
|
|
|
+ </div>
|
|
|
+ <div class="text-left pr20 pl20 pt20">
|
|
|
+ <span class="font-bold">1、在这个路口可以掉头。</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="w450 h450">
|
|
|
+ <div class="w-full flex flex-wrap">
|
|
|
+ <div class="w40 lh40 bg-primary-yellow">题号</div>
|
|
|
+ <div class="w40 lh40 bg-primary-yellow" v-for="(item,index) in 10" :key="index">{{index+1}}列</div>
|
|
|
+ <div class="coll">
|
|
|
+ <table border="0" class="coll-table-topic">
|
|
|
+ <tr :key="index" v-for="(item, index) in list.length / 10">
|
|
|
+ <td
|
|
|
+ v-for="(_item, _index) in 10"
|
|
|
+ :class="{
|
|
|
+ collselected: index * 10 + _index == listIndex,
|
|
|
+ }"
|
|
|
+ :data-key="index * 10 + _index + 1"
|
|
|
+ :key="_index"
|
|
|
+ @click="
|
|
|
+ () => {
|
|
|
+ listIndex = index * 10 + _index;
|
|
|
+ }
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ style="white-space: nowrap"
|
|
|
+ :data-key="index * 10 + _index + 1"
|
|
|
+ class="coll-table-topic-item"
|
|
|
+ :class="{
|
|
|
+ 'text-red': list[index * 10 + _index].isError,
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ {{ list[index * 10 + _index].userAnswerLetter || "" }}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { defineComponent, ref } from "vue";
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ setup() {
|
|
|
+ return {
|
|
|
+ list: ref([{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]),
|
|
|
+ listIndex: ref(0),
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.h100vh {
|
|
|
+ height: 100vh;
|
|
|
+}
|
|
|
+.w1196 {
|
|
|
+ width: 1196px;
|
|
|
+}
|
|
|
+.bg-primary-yellow {
|
|
|
+ background-color: #f9de5b;
|
|
|
+}
|
|
|
+
|
|
|
+.coll {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .coll-header1 {
|
|
|
+ width: 231px;
|
|
|
+ height: 21px;
|
|
|
+ border-spacing: 0;
|
|
|
+ border-right: 1px solid #b8c0cc;
|
|
|
+ div {
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .coll-header1-row {
|
|
|
+ width: 21px;
|
|
|
+ height: 21px;
|
|
|
+ line-height: 21px;
|
|
|
+ background: #498ef5;
|
|
|
+ border-right: 1px solid #b8c0cc;
|
|
|
+ font-size: 10px;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ // .coll-header1-row_border{
|
|
|
+ // border-bottom: 1px solid #fff;
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ .coll-header2 {
|
|
|
+ // position: absolute;
|
|
|
+ // top: 0px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ border-spacing: 0;
|
|
|
+ height: 237px;
|
|
|
+ width: 21px;
|
|
|
+
|
|
|
+ .coll-header2-col {
|
|
|
+ width: 23px;
|
|
|
+ height: 25px;
|
|
|
+ border-top: 1px solid #b8c0cc;
|
|
|
+ font-size: 10px;
|
|
|
+ line-height: 21px;
|
|
|
+ background: #498ef5;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .coll-table-topic {
|
|
|
+ background: #f2f3f5;
|
|
|
+ border-spacing: 0;
|
|
|
+ border-left: 1px solid #d2d1cf;
|
|
|
+ border-top: 1px solid #d2d1cf;
|
|
|
+ td {
|
|
|
+ border-bottom: 1px solid #d2d1cf;
|
|
|
+ border-right: 1px solid #d2d1cf;
|
|
|
+
|
|
|
+ div {
|
|
|
+ font-size: 8px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ }
|
|
|
+ // font-size: 12px;
|
|
|
+ .coll-table-topic-item {
|
|
|
+ border: none;
|
|
|
+
|
|
|
+ white-space: nowrap;
|
|
|
+ div {
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .collselected {
|
|
|
+ background: #498ef5;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|