From 630a7b4c5089a4ed2e254a07fe8863ec99b80e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Fri, 22 Nov 2024 16:57:19 +0800 Subject: [PATCH] 1 --- .../exam-question/examDetailsDrawer.vue | 5 +++ src/renderer/src/hooks/useProcessList.js | 12 +++---- .../newClassTaskAssign/myQuestion/index.vue | 4 +++ .../questionUpload/quesItem/index.vue | 36 +++++++++++++++++-- 4 files changed, 48 insertions(+), 9 deletions(-) diff --git a/src/renderer/src/components/exam-question/examDetailsDrawer.vue b/src/renderer/src/components/exam-question/examDetailsDrawer.vue index 12de43c..28ea8d8 100644 --- a/src/renderer/src/components/exam-question/examDetailsDrawer.vue +++ b/src/renderer/src/components/exam-question/examDetailsDrawer.vue @@ -71,4 +71,9 @@ defineExpose({ justify-content: flex-end; box-sizing: border-box; } + + :deep(.format-work-desc > :is(div):first-child){ + display: inline-block; + } + \ No newline at end of file diff --git a/src/renderer/src/hooks/useProcessList.js b/src/renderer/src/hooks/useProcessList.js index e7329eb..8cd80ad 100644 --- a/src/renderer/src/hooks/useProcessList.js +++ b/src/renderer/src/hooks/useProcessList.js @@ -59,14 +59,14 @@ export const processList = (row, aloneOption=false) => { for(; j${char}.${workDescArr[j]}`; + tmp += `
${char}.${workDescArr[j]}
`; } else { if(j%2 == 0){ tmp += `
`; } - tmp += `
${char}.${workDescArr[j]}
`; + tmp += `
${char}.${workDescArr[j]}
`; if(j%2 == 1){ tmp += '
'; } @@ -153,14 +153,14 @@ export const processList = (row, aloneOption=false) => { for(; j${char}.${optionsArr[j]}`; + tmp += `
${char}.${optionsArr[j]}
`; } else { if(j%2 == 0){ tmp += `
`; } - tmp += `
${char}.${optionsArr[j]}
`; + tmp += `
${char}.${optionsArr[j]}
`; if(j%2 == 1){ tmp += '
'; } @@ -280,14 +280,14 @@ export const processList = (row, aloneOption=false) => { for(; j${char}.${workDescArr[j]}`; + tmp += `
${char}.${workDescArr[j]}
`; } else { if(j%2 == 0){ tmp += `
`; } - tmp += `
${char}.${workDescArr[j]}
`; + tmp += `
${char}.${workDescArr[j]}
`; if(j%2 == 1){ tmp += '
'; } diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue index 234693f..27be20e 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue @@ -488,6 +488,10 @@ watch(() => props.bookobj.levelSecondId, (newVal, oldVal) => { width: 100%; height: calc(100% - 100px); } + + :deep(.format-work-desc > :is(div):first-child){ + display: inline-block; + } // :deep(.el-dialog .question-dialog){ // height: 80vh !important; diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue index 52d87fc..88147d1 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue @@ -405,9 +405,10 @@