diff --git a/src/renderer/src/api/mode/index.js b/src/renderer/src/api/mode/index.js index a53a36f..59d0380 100644 --- a/src/renderer/src/api/mode/index.js +++ b/src/renderer/src/api/mode/index.js @@ -15,7 +15,7 @@ export function conversation(data) { }) } -// 进行课标研读对话 +// 进行课标研读对话 质点提取 export function completion(data) { return axios({ url: rootPath + '/api/v1/parse/docs', @@ -100,3 +100,22 @@ export function tempResult(params) { }) } +// 新增 doc +export function addDoc(data) { + return request({ + url: '/education/doc', + method: 'post', + data + }) +} + +// 查询 doc +export function docList(params) { + return request({ + url: '/education/doc/list', + method: 'get', + params + }) +} + + diff --git a/src/renderer/src/components/template-study/container/header.vue b/src/renderer/src/components/template-study/container/header.vue index 219db88..0846bb1 100644 --- a/src/renderer/src/components/template-study/container/header.vue +++ b/src/renderer/src/components/template-study/container/header.vue @@ -2,7 +2,7 @@
- 高中语文课程标准 + {{ curNode.edustage}}{{ curNode.edusubject }}{{ type == 1 ? '课标研读': '教材分析'}}
@@ -26,7 +26,7 @@ 添加提示词 - 保存模板 + 一键研读
@@ -37,14 +37,14 @@ \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/dialog.vue b/src/renderer/src/views/examination-analysis/container/dialog.vue new file mode 100644 index 0000000..5e81e27 --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/dialog.vue @@ -0,0 +1,211 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/edit-dialog.vue b/src/renderer/src/views/examination-analysis/container/edit-dialog.vue new file mode 100644 index 0000000..fa7ff5d --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/edit-dialog.vue @@ -0,0 +1,78 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/header.vue b/src/renderer/src/views/examination-analysis/container/header.vue new file mode 100644 index 0000000..880debf --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/header.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/keyword-dialog.vue b/src/renderer/src/views/examination-analysis/container/keyword-dialog.vue new file mode 100644 index 0000000..4821d6e --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/keyword-dialog.vue @@ -0,0 +1,161 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/pdf-template.vue b/src/renderer/src/views/examination-analysis/container/pdf.vue similarity index 99% rename from src/renderer/src/views/examination-analysis/container/pdf-template.vue rename to src/renderer/src/views/examination-analysis/container/pdf.vue index ceba60f..c83dfd0 100644 --- a/src/renderer/src/views/examination-analysis/container/pdf-template.vue +++ b/src/renderer/src/views/examination-analysis/container/pdf.vue @@ -3,7 +3,6 @@ - - - \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/read-result.vue b/src/renderer/src/views/examination-analysis/container/read-result.vue deleted file mode 100644 index aa3bd2d..0000000 --- a/src/renderer/src/views/examination-analysis/container/read-result.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/read-template.vue b/src/renderer/src/views/examination-analysis/container/read-template.vue deleted file mode 100644 index 0b2c218..0000000 --- a/src/renderer/src/views/examination-analysis/container/read-template.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/result.vue b/src/renderer/src/views/examination-analysis/container/result.vue new file mode 100644 index 0000000..e1cfa1b --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/result.vue @@ -0,0 +1,505 @@ + + + + + + diff --git a/src/renderer/src/views/examination-analysis/index.vue b/src/renderer/src/views/examination-analysis/index.vue index 9d0044d..7461e1c 100644 --- a/src/renderer/src/views/examination-analysis/index.vue +++ b/src/renderer/src/views/examination-analysis/index.vue @@ -1,177 +1,52 @@ \ No newline at end of file diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index 317502e..ea56ad5 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -12,7 +12,7 @@ 教材研读 教学框架设计 打开PPTist - + 考试分析 diff --git a/src/renderer/src/views/prepare/container/file-list-item.vue b/src/renderer/src/views/prepare/container/file-list-item.vue index 8d9bc5f..c2e3e90 100644 --- a/src/renderer/src/views/prepare/container/file-list-item.vue +++ b/src/renderer/src/views/prepare/container/file-list-item.vue @@ -280,14 +280,14 @@ export default { cookie, fileType: item.fileType }) - ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => { + /*ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => { items.async = 'on' }) ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => { items.fileSize = data.fileSize items.md5 = md5 items.async = true - }) + })*/ } }) }) diff --git a/src/renderer/src/views/prepare/container/kj-list-item.vue b/src/renderer/src/views/prepare/container/kj-list-item.vue index 7a9a56a..8936e22 100644 --- a/src/renderer/src/views/prepare/container/kj-list-item.vue +++ b/src/renderer/src/views/prepare/container/kj-list-item.vue @@ -357,14 +357,14 @@ export default { cookie, fileType: item.fileType }) - ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => { + /*ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => { items.async = 'on' }) ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => { items.fileSize = data.fileSize items.md5 = md5 items.async = true - }) + })*/ } }) }) diff --git a/src/renderer/src/views/resource/container/resoure-list.vue b/src/renderer/src/views/resource/container/resoure-list.vue index 517d97f..9b2bf8f 100644 --- a/src/renderer/src/views/resource/container/resoure-list.vue +++ b/src/renderer/src/views/resource/container/resoure-list.vue @@ -161,7 +161,11 @@ const delRow = (item) => { } // 加入备课 -const addLesson = ({ id }) => { +const addLesson = ({ id, fileSize }) => { + if (fileSize>1024*1024*150) { + ElMessage.warning('文件超过150M,暂停超过150M资源的下载,请重新选择') + return + } let data = { id, fileRoot: '备课', diff --git a/src/renderer/src/views/resource/container/third-list.vue b/src/renderer/src/views/resource/container/third-list.vue index 204dc12..3fb5cca 100644 --- a/src/renderer/src/views/resource/container/third-list.vue +++ b/src/renderer/src/views/resource/container/third-list.vue @@ -125,6 +125,10 @@ const handleRow = (item) => { thirdPreview.value.init(item.itemId) } const openChapter = (item)=>{ + if (item.size>1024*1024*150) { + ElMessage.warning('文件超过150M,暂停超过150M资源的下载,请重新选择') + return + } currentItem.value = item // 打开弹窗 treelogRef.value.openDialog() diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index 9e2cd94..48c1ce3 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -61,7 +61,6 @@ import { completion } from '@/api/mode/index.js' const resultList = ref([]) emitter.on('changeMode', (item) => { - console.log(item, 3000) resultList.value = item.child conversation() })