From 39aa3b157ddaaca35e4138d7b9eacac5e8e0bd59 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Thu, 17 Oct 2024 10:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=95=99=E6=9D=90=E8=AF=BE?= =?UTF-8?q?=E6=A0=87=E5=88=87=E6=8D=A2=E5=90=8D=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/teach/standardAnalysis/index.vue | 19 +++++++++------- .../src/views/textbookAnalysis/index.vue | 22 +++++++++++-------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/renderer/src/views/teach/standardAnalysis/index.vue b/src/renderer/src/views/teach/standardAnalysis/index.vue index d153e26..1a63e8c 100644 --- a/src/renderer/src/views/teach/standardAnalysis/index.vue +++ b/src/renderer/src/views/teach/standardAnalysis/index.vue @@ -7,7 +7,7 @@
-
{{bookInfo ? bookInfo.bookName : ''}}
+
{{bookInfo ? bookInfo.itemtitle : ''}}
更新2024.9.10
@@ -72,7 +72,7 @@
-
{{item.bookName}}
+
{{item.itemtitle}}
@@ -173,7 +173,7 @@ const selectHandel = (value) => { } //保存json文件 const saveJSON = (data) => { - + let filename = '' // const data = { // name: 'txt', @@ -247,9 +247,12 @@ const getAllSubject = async () => { rows && rows.map(item => { if(edustage === item.edustage && item.edusubject === edusubject){ bookInfo.value = {...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar,bookName: bookNameFormat(item.edustage,item.edusubject)} + if(item.itemgroup==="校本课程") { + bookInfo.value.avartar = item.avartar + } } if(item.fileurl !== ''){ - bookList.value.push({...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar,bookName: bookNameFormat(item.edustage,item.edusubject)}) + bookList.value.push(bookInfo.value) } }) const textselidx = bookList.value.findIndex(item => item.edustage === edustage && item.edusubject === edusubject) @@ -282,7 +285,7 @@ onMounted(async () => { const searchh = searchref.value.offsetHeight; listHeight.value = Math.floor(cardH) - Math.floor(headh) - Math.floor(searchh) - 60; } - + window.addEventListener('resize', () => { if(cardref.value && headref.value){ const cardH = cardref.value.offsetHeight; @@ -333,9 +336,9 @@ onMounted(async () => { console.log('转换后整体文字------',StartStr + midStr + EndStr); } }) - + // const isDev = process.env.NODE_ENV == 'development' - // if (isDev) + // if (isDev) // pdfUrl.value = '/'+getStaticUrl('aaa.pdf', 'user', 'selfFile', true) // else // pdfUrl.value = getStaticUrl(route.query.path, 'user', 'selfFile', true) @@ -552,4 +555,4 @@ onMounted(async () => { color: #ffffff; } } - \ No newline at end of file + diff --git a/src/renderer/src/views/textbookAnalysis/index.vue b/src/renderer/src/views/textbookAnalysis/index.vue index e93ab0e..f48a21c 100644 --- a/src/renderer/src/views/textbookAnalysis/index.vue +++ b/src/renderer/src/views/textbookAnalysis/index.vue @@ -7,7 +7,7 @@
-
{{bookInfo ? bookInfo.bookName: ''}}
+
{{bookInfo ? bookInfo.itemtitle: ''}}
更新2024.9.10
@@ -72,7 +72,7 @@
-
{{item.bookName}}
+
{{item.itemtitle}}
@@ -175,7 +175,7 @@ const selectHandel = (value) => { } //保存json文件 const saveJSON = (data) => { - + let filename = '' // const data = { // name: 'txt', @@ -249,7 +249,11 @@ const getAllSubject = async () => { const dataList = []; rows && rows.map((item,idx) => { if(item.fileurl !== ''){ - dataList.push({...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar,bookName: item.fileurl.replace('.txt','')}) + let infos = {...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar,bookName: item.fileurl.replace('.txt','')} + if(infos.itemgroup==="校本课程") { + infos.avartar = item.avartar + } + dataList.push(infos) } }) bookList.value = dataList @@ -265,7 +269,7 @@ const getAllSubject = async () => { bookInfo.value = {...dataList[0]} filePath += dataList[0].fileurl.replace('.txt','.pdf') } - await loadPdfAnimation(filePath) + await loadPdfAnimation(filePath) }else{ bookInfo.value = {...dataList[0]} filePath += dataList[0].fileurl.replace('.txt','.pdf') @@ -295,7 +299,7 @@ onMounted(async () => { const searchh = searchref.value.offsetHeight; listHeight.value = Math.floor(cardH) - Math.floor(headh) - Math.floor(searchh) - 60; } - + window.addEventListener('resize', () => { if(cardref.value && headref.value){ const cardH = cardref.value.offsetHeight; @@ -346,9 +350,9 @@ onMounted(async () => { console.log('转换后整体文字------',StartStr + midStr + EndStr); } }) - + // const isDev = process.env.NODE_ENV == 'development' - // if (isDev) + // if (isDev) // pdfUrl.value = '/'+getStaticUrl('aaa.pdf', 'user', 'selfFile', true) // else // pdfUrl.value = getStaticUrl(route.query.path, 'user', 'selfFile', true) @@ -570,4 +574,4 @@ onMounted(async () => { color: #ffffff; } } - \ No newline at end of file +