Compare commits
No commits in common. "4fbd77c40ccaeef4c923f88d3ffa994b67a5adbc" and "dfe1a233271f1d2b2e747adf690174f5fcbfa9e7" have entirely different histories.
4fbd77c40c
...
dfe1a23327
|
@ -280,14 +280,14 @@ export default {
|
||||||
cookie,
|
cookie,
|
||||||
fileType: item.fileType
|
fileType: item.fileType
|
||||||
})
|
})
|
||||||
/*ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => {
|
ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => {
|
||||||
items.async = 'on'
|
items.async = 'on'
|
||||||
})
|
})
|
||||||
ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => {
|
ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => {
|
||||||
items.fileSize = data.fileSize
|
items.fileSize = data.fileSize
|
||||||
items.md5 = md5
|
items.md5 = md5
|
||||||
items.async = true
|
items.async = true
|
||||||
})*/
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -357,14 +357,14 @@ export default {
|
||||||
cookie,
|
cookie,
|
||||||
fileType: item.fileType
|
fileType: item.fileType
|
||||||
})
|
})
|
||||||
/*ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => {
|
ipcRenderer.on('listen-file-change-on' + item.fileNewName, () => {
|
||||||
items.async = 'on'
|
items.async = 'on'
|
||||||
})
|
})
|
||||||
ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => {
|
ipcRenderer.on('listen-file-change-success' + item.fileNewName, (e, { data, md5 }) => {
|
||||||
items.fileSize = data.fileSize
|
items.fileSize = data.fileSize
|
||||||
items.md5 = md5
|
items.md5 = md5
|
||||||
items.async = true
|
items.async = true
|
||||||
})*/
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -161,11 +161,7 @@ const delRow = (item) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 加入备课
|
// 加入备课
|
||||||
const addLesson = ({ id, fileSize }) => {
|
const addLesson = ({ id }) => {
|
||||||
if (fileSize>1024*1024*150) {
|
|
||||||
ElMessage.warning('文件超过150M,暂停超过150M资源的下载,请重新选择')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let data = {
|
let data = {
|
||||||
id,
|
id,
|
||||||
fileRoot: '备课',
|
fileRoot: '备课',
|
||||||
|
|
|
@ -125,10 +125,6 @@ const handleRow = (item) => {
|
||||||
thirdPreview.value.init(item.itemId)
|
thirdPreview.value.init(item.itemId)
|
||||||
}
|
}
|
||||||
const openChapter = (item)=>{
|
const openChapter = (item)=>{
|
||||||
if (item.size>1024*1024*150) {
|
|
||||||
ElMessage.warning('文件超过150M,暂停超过150M资源的下载,请重新选择')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
currentItem.value = item
|
currentItem.value = item
|
||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
treelogRef.value.openDialog()
|
treelogRef.value.openDialog()
|
||||||
|
|
Loading…
Reference in New Issue