From a3e6aca89012e039ac5c7f1f2edf1b22ce4f3c83 Mon Sep 17 00:00:00 2001 From: qinqing <775435633@qq.com> Date: Wed, 25 Sep 2024 10:05:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?PDF=E9=98=85=E8=AF=BB=E5=99=A8=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=B1=82=E7=BA=A7=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/public/pdfjs-dist/web/viewer.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/public/pdfjs-dist/web/viewer.css b/src/renderer/public/pdfjs-dist/web/viewer.css index edd6bf0..19bb070 100644 --- a/src/renderer/public/pdfjs-dist/web/viewer.css +++ b/src/renderer/public/pdfjs-dist/web/viewer.css @@ -3144,7 +3144,7 @@ body{ background-color:var(--toolbar-bg-color); box-shadow:var(--toolbar-box-shadow); border-bottom:var(--toolbar-border-bottom); - z-index: 9; + z-index: 99999; } #toolbarViewer{ -- 2.44.0.windows.1 From c517fa14afb92def3b32c02cab6afec36540d333 Mon Sep 17 00:00:00 2001 From: qinqing <775435633@qq.com> Date: Wed, 25 Sep 2024 13:44:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=BE=E6=A0=87=E5=88=86=E6=9E=90?= =?UTF-8?q?=EF=BC=8C=E6=95=99=E6=9D=90=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/AppMain.vue | 2 +- src/renderer/src/router/index.js | 8 +- src/renderer/src/views/desktop/index.vue | 3 +- .../views/teach/standardAnalysis/index.vue | 36 +- .../src/views/textbookAnalysis/index.vue | 555 ++++++++++++++++++ 5 files changed, 587 insertions(+), 17 deletions(-) create mode 100644 src/renderer/src/views/textbookAnalysis/index.vue diff --git a/src/renderer/src/layout/components/AppMain.vue b/src/renderer/src/layout/components/AppMain.vue index 67c3d6b..22cc830 100644 --- a/src/renderer/src/layout/components/AppMain.vue +++ b/src/renderer/src/layout/components/AppMain.vue @@ -67,7 +67,7 @@ const title = reactive([ }, { name: '教材分析', - url: '/teaching/chatwithtextbook', + url: '/textbookAnalysis', img: 'iconfont icon-yanjiushi', child1: [] }, diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js index 2fa6890..8796063 100644 --- a/src/renderer/src/router/index.js +++ b/src/renderer/src/router/index.js @@ -54,7 +54,13 @@ export const constantRoutes = [ path: '/standardanalysis', component: () => import('@/views/teach/standardAnalysis/index.vue'), name: 'standardanalysis', - meta: {title: '课标分析'}, + meta: {title: '课标分析'} + }, + { + path: '/textbookAnalysis', + component: () => import('@/views/textbookAnalysis/index.vue'), + name: 'textbookAnalysis', + meta: {title: '教材分析'} }, { path: '/profile', diff --git a/src/renderer/src/views/desktop/index.vue b/src/renderer/src/views/desktop/index.vue index 493cf57..c14411a 100644 --- a/src/renderer/src/views/desktop/index.vue +++ b/src/renderer/src/views/desktop/index.vue @@ -66,8 +66,7 @@ const menuList = [{ { name: '教材分析', icon: 'icon-jiaocaixuanze', - isOuter: true, - path: '/teaching/chatwithtextbook', + path: '/textbookAnalysis', id: '1-2' }, { diff --git a/src/renderer/src/views/teach/standardAnalysis/index.vue b/src/renderer/src/views/teach/standardAnalysis/index.vue index e2e2cbe..cc465a1 100644 --- a/src/renderer/src/views/teach/standardAnalysis/index.vue +++ b/src/renderer/src/views/teach/standardAnalysis/index.vue @@ -70,7 +70,10 @@
-
{{item.edustage + item.edusubject}}
+
+ +
{{item.fileurl.replace('.txt', '')}}
+
@@ -237,8 +240,6 @@ const getData = (data) => { } sourceStore.handleQuery() getlistEvaluationclue(levelFirstId, levelSecondId) - // 头部 教材分析打开外部链接需要当前章节ID - localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId})) } // 获取学科 const getAllSubject = async () => { @@ -252,12 +253,16 @@ const getAllSubject = async () => { bookList.value.push({...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar}) } }) - booksel.value = bookList.value.findIndex(item => item.edustage === edustage && item.edusubject === edusubject) + const textselidx = bookList.value.findIndex(item => item.edustage === edustage && item.edusubject === edusubject) + booksel.value = textselidx + booktitle.value = bookList.value[textselidx].fileurl.replace('.txt','') + const filePath = import.meta.env.VITE_APP_RES_FILE_PATH + bookList.value[textselidx].fileurl.replace('.txt','.pdf') + await loadPdfAnimation(filePath) } const bookChange = async (item, idx) => { booksel.value = idx bookInfo.value = {...item} - booktitle.value = `${item.edustage + item.edusubject}课程标准` + booktitle.value = item.fileurl.replace('.txt','') pdfUrl.value = ''; const filepath = import.meta.env.VITE_APP_RES_FILE_PATH + item.fileurl.replace('.txt','.pdf') await loadPdfAnimation(filepath) @@ -271,10 +276,6 @@ const loadPdfAnimation = (path) => { } onMounted(async () => { await getAllSubject(); - const { edustage, edusubject } = userStore.user; - booktitle.value = `${edustage + edusubject}课程标准` - const filePath = `${import.meta.env.VITE_APP_RES_FILE_PATH}${edustage}-${edusubject}-课标.pdf` - await loadPdfAnimation(filePath) if(cardref.value && headref.value){ const cardH = cardref.value.offsetHeight; const headh = headref.value.offsetHeight; @@ -529,13 +530,22 @@ onMounted(async () => { padding-top: 1px; overflow: auto; .item{ - width: 100%; + width: 162px; height: auto; padding: 8px 16px; background-color: #ffffff; - border-top: 1px solid #f1f1f1; - font-size: 14px; - color: #3b3b3b; + float: left; + .bookimg{ + width: 130px; + height: 180px; + } + .name{ + font-size: 14px; + color: #3b3b3b; + } + } + .item:hover{ + cursor: pointer; } .active{ background-color: #409eff; diff --git a/src/renderer/src/views/textbookAnalysis/index.vue b/src/renderer/src/views/textbookAnalysis/index.vue new file mode 100644 index 0000000..0fbad07 --- /dev/null +++ b/src/renderer/src/views/textbookAnalysis/index.vue @@ -0,0 +1,555 @@ + + + \ No newline at end of file -- 2.44.0.windows.1