diff --git a/package.json b/package.json index 4a81cfa..c06e41c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win", - "version": "2.1.30", + "version": "2.1.33", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", 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/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index ebceb1d..f73f8a5 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -537,7 +537,7 @@ export default { } }, clickChoose(value) { - this.checkFileList = value ? this.currentFileList : [] + this.checkFileList = value ? this.currentSCFileList : [] }, deleteTalk(item) { let index = this.currentFileList.indexOf(item) diff --git a/src/renderer/src/views/resource/container/resoure-list.vue b/src/renderer/src/views/resource/container/resoure-list.vue index 46e68d0..5d08082 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: '备课', @@ -191,7 +195,7 @@ const handleRow = (item) => { curRow.value = item isShow.value = true console.log(item,'item'); - + } diff --git a/src/renderer/src/views/resource/container/third-list.vue b/src/renderer/src/views/resource/container/third-list.vue index 29ca7a6..085e2ac 100644 --- a/src/renderer/src/views/resource/container/third-list.vue +++ b/src/renderer/src/views/resource/container/third-list.vue @@ -121,6 +121,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()