From 2a670c14476742e345c694b2a35c8183e040e4ce Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Tue, 6 Aug 2024 14:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=BB=E5=B8=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/api/eTextbook/index.js | 35 ++++ src/renderer/src/components/pdf/index.vue | 169 ++++++++++++------- src/renderer/src/plugins/fabric/index.js | 1 + src/renderer/src/utils/pdfAndFabric.js | 113 +++++++++++-- src/renderer/src/views/classBegins/index.vue | 40 ++++- src/renderer/src/views/prepare/index.vue | 3 +- 6 files changed, 279 insertions(+), 82 deletions(-) create mode 100644 src/renderer/src/api/eTextbook/index.js diff --git a/src/renderer/src/api/eTextbook/index.js b/src/renderer/src/api/eTextbook/index.js new file mode 100644 index 0000000..c84df47 --- /dev/null +++ b/src/renderer/src/api/eTextbook/index.js @@ -0,0 +1,35 @@ +import request from '@/utils/request' + +// 新增pdf圈点勾画 +export const addsmartBookMark = (params) => { + return request({ + url: '/smarttalk/bookMark/addSmartBookMark', + method: 'post', + data:params + }) +} + +// 修改pdf圈点勾画 +export const updateSmartBookMarkContent = (params) => { + return request({ + url: '/smarttalk/bookMark/updateSmartBookMarkContent', + method: 'post', + data:params + }) +} + +// 根据书id获取pdf圈点勾画 +export const getBookMarkById = (bookId) => { + return request({ + url: '/smarttalk/bookMark/' + bookId, + method: 'get' + }) +} + +//根据id删除对应页数 +export function deleteBookMark(ids) { + return request({ + url: '/smarttalk/bookMark/' + ids, + method: 'delete' + }) +} diff --git a/src/renderer/src/components/pdf/index.vue b/src/renderer/src/components/pdf/index.vue index 75a3bda..63bd932 100644 --- a/src/renderer/src/components/pdf/index.vue +++ b/src/renderer/src/components/pdf/index.vue @@ -1,16 +1,17 @@ -