From 7d1848277e425c0eec54188bddea1203d5f6a31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Mon, 6 Jan 2025 16:18:54 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=A2=98=E7=AD=94?= =?UTF-8?q?=E6=A1=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/hooks/useProcessList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/hooks/useProcessList.js b/src/renderer/src/hooks/useProcessList.js index c9f1e07..a3dcd8b 100644 --- a/src/renderer/src/hooks/useProcessList.js +++ b/src/renderer/src/hooks/useProcessList.js @@ -328,7 +328,7 @@ export const processList = (row, aloneOption=false) => { // 处理[答案显示] - 1-正常 0-错误 const answer = workAnswerArr .map((item) => { - return item === '1' ? '正确' : '错误' + return DICT_TRUE_OR_FALSE.TRUE.includes(item) ? '正确' : DICT_TRUE_OR_FALSE.FALSE.includes(item)?'错误':item; }) .join('、') row[i].workanswerFormat = answer @@ -341,3 +341,8 @@ export const processList = (row, aloneOption=false) => { } } } + +const DICT_TRUE_OR_FALSE = { + TRUE: ['正确', '对', '√', '1'], + FALSE: ['错误', '错', '×', '0'], +}; \ No newline at end of file From fb428ba5cae411026d617b1325401674096452ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Tue, 7 Jan 2025 10:52:36 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8D=95=E5=85=83?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=BC=A0=E6=A0=87=E7=A7=BB=E5=85=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=B8=8E=E8=B6=85=E9=95=BF=E2=80=A6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/choose-textbook/index.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index 50526fb..811c1cc 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -11,15 +11,21 @@ :default-expanded-keys="defaultExpandedKeys" :current-node-key="curNode.data.id" highlight-current @node-click="handleNodeClick"> @@ -334,7 +340,7 @@ onMounted( async () => { } } -.tree-label { +.tree-label-wrap, .tree-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; From 57caed47dd33721931fd76a40549696f6dc1442a Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Tue, 7 Jan 2025 11:03:05 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=94=9F=E6=88=90ppt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/model/index.vue | 1 + .../views/prepare/container/pptist-dialog.vue | 156 +++++++++- .../views/teachingDesign/container/center.vue | 12 +- .../container/progress-dialog.vue | 11 +- .../views/teachingDesign/container/right2.vue | 293 +++++++++++++++++- .../src/views/teachingDesign/index.vue | 12 +- 6 files changed, 455 insertions(+), 30 deletions(-) diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index f869bee..8e2049a 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -680,6 +680,7 @@ onMounted(async () => { display: flex; flex-wrap: wrap; gap: 15px; + padding: 10px; .content-body-right-item{ &:hover{ cursor: pointer; diff --git a/src/renderer/src/views/prepare/container/pptist-dialog.vue b/src/renderer/src/views/prepare/container/pptist-dialog.vue index 22b2155..0d907b4 100644 --- a/src/renderer/src/views/prepare/container/pptist-dialog.vue +++ b/src/renderer/src/views/prepare/container/pptist-dialog.vue @@ -1,30 +1,120 @@ diff --git a/src/renderer/src/views/teachingDesign/container/center.vue b/src/renderer/src/views/teachingDesign/container/center.vue index ae9fa30..ed59b32 100644 --- a/src/renderer/src/views/teachingDesign/container/center.vue +++ b/src/renderer/src/views/teachingDesign/container/center.vue @@ -9,11 +9,11 @@ 生成教学大纲 - + 删除大纲 - + 编辑大纲 @@ -96,7 +96,7 @@ const createAi = async ()=>{ ElMessage.warning('请先选择教学环节后再生成教学大纲') return } - + let str = selectedData.value.map( item => item.name).join('、') let bookV = curNode.roottitle.split('-')[1] + '版' loading.value = true @@ -167,7 +167,7 @@ const delAnswer = () =>{ emitter.emit('resetSelect') }) .catch(() => {}) - + } // 去掉字符串中的 ### ** @@ -188,7 +188,7 @@ const getChartId = () => { onUnmounted(()=>{ emitter.off('selected') emitter.off('onShow') - + }) const curNode = reactive({}) @@ -230,4 +230,4 @@ onMounted(() => { } } - \ No newline at end of file + diff --git a/src/renderer/src/views/teachingDesign/container/progress-dialog.vue b/src/renderer/src/views/teachingDesign/container/progress-dialog.vue index 5bfe036..7f01c73 100644 --- a/src/renderer/src/views/teachingDesign/container/progress-dialog.vue +++ b/src/renderer/src/views/teachingDesign/container/progress-dialog.vue @@ -1,6 +1,6 @@ @@ -29,5 +29,10 @@ const dAttrs = computed(() => { }) \ No newline at end of file + + diff --git a/src/renderer/src/views/teachingDesign/container/right2.vue b/src/renderer/src/views/teachingDesign/container/right2.vue index 03ce212..e3e5d72 100644 --- a/src/renderer/src/views/teachingDesign/container/right2.vue +++ b/src/renderer/src/views/teachingDesign/container/right2.vue @@ -4,22 +4,73 @@ 课件预览
一键生成 - 编辑课件 + 编辑课件
- + +
+
{{index+1}}
+
+ +