diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index 202a504..8c73356 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -110,8 +110,10 @@ /** 表格布局 **/ .pagination-container { - // position: relative; - height: 25px; + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + height: auto; margin-bottom: 10px; margin-top: 15px; padding: 10px 20px !important; @@ -127,8 +129,7 @@ } .pagination-container .el-pagination { - // right: 0; - position: absolute; + position: static; } @media ( max-width : 768px) { diff --git a/src/views/exam/index.vue b/src/views/exam/index.vue index 133b68d..0b7a967 100644 --- a/src/views/exam/index.vue +++ b/src/views/exam/index.vue @@ -31,8 +31,8 @@ function count(value){return value==="ALL"?exams.value.length:exams.value.filter --exam-muted: #8eafc2; --exam-line: rgba(127, 186, 215, 0.22); box-sizing: border-box; - width: calc(100% - 24px); - max-width: 1560px; + width: 100%; + max-width: none; min-height: calc(100vh - 104px); margin: 10px auto; padding: 28px 32px 34px; diff --git a/src/views/exam/result.vue b/src/views/exam/result.vue index 4cd47ce..26df459 100644 --- a/src/views/exam/result.vue +++ b/src/views/exam/result.vue @@ -10,7 +10,7 @@ import{computed,onMounted,ref}from"vue";import{useRoute}from"vue-router";import{ArrowLeft}from"@element-plus/icons-vue";import{getExamResult}from"@/api/exam";const route=useRoute(),loading=ref(false),result=ref({questions:[]}),currentId=ref(null);const current=computed(()=>result.value.questions?.find(q=>q.id===currentId.value));onMounted(async()=>{loading.value=true;try{result.value=(await getExamResult(route.params.id)).data;currentId.value=result.value.questions?.[0]?.id}finally{loading.value=false}});function display(v){if(Array.isArray(v))return v.join("、");if(v===true)return"正确";if(v===false)return"错误";return v||"未作答"}function answerClass(q){return{current:q.id===currentId.value,wrong:q.correct===false,right:q.correct===true,subjective:q.type==="SHORT_ANSWER"}} diff --git a/src/views/teacherEnd/exam/editor.vue b/src/views/teacherEnd/exam/editor.vue index 8e2c9ce..80c66e5 100644 --- a/src/views/teacherEnd/exam/editor.vue +++ b/src/views/teacherEnd/exam/editor.vue @@ -109,7 +109,7 @@ function formatValue(value) { const date = value instanceof Date ? value : new D .editor-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 14px; > :last-child { justify-self: end; } } .title-block { display: flex; align-items: center; gap: 10px; h1 { margin: 0; font-size: 23px; letter-spacing: 0; } } .steps { max-width: 760px; margin: 28px auto; } -.editor-panel { max-width: 1120px; margin: auto; h2 { font-size: 19px; margin: 0 0 22px; } } +.editor-panel { width: 100%; max-width: none; margin: auto; h2 { font-size: 19px; margin: 0 0 22px; } } .base-form { max-width: 650px; .el-input, .el-select { width: 100%; } .el-date-editor { width: 100%; } } .unit { margin-left: 8px; color: #6b7280; } .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; h2 { margin: 0; } p { margin: 6px 0 0; color: #6b7280; } } @@ -127,3 +127,9 @@ function formatValue(value) { const date = value instanceof Date ? value : new D .editor-footer { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; display: flex; justify-content: center; align-items: center; gap: 12px; background: rgba(255,255,255,.96); border-top: 1px solid #e5e7eb; z-index: 10; } @media (max-width: 760px) { .editor-head { grid-template-columns: 1fr; gap: 12px; .title-block { grid-row: 1; } > :last-child { justify-self: start; } } .question-layout { grid-template-columns: 1fr; } .type-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e5e7eb; } .score-summary { grid-template-columns: 1fr 1fr; } .section-head { align-items: flex-start; flex-direction: column; gap: 12px; } } + + diff --git a/src/views/teacherEnd/index.vue b/src/views/teacherEnd/index.vue index 0b9ed23..7320b98 100644 --- a/src/views/teacherEnd/index.vue +++ b/src/views/teacherEnd/index.vue @@ -18,10 +18,10 @@