二期:切换备课时,从新获取列表

This commit is contained in:
朱浩 2024-07-25 09:35:01 +08:00
parent 88e306e8a2
commit e032d8514e
3 changed files with 21 additions and 13 deletions

View File

@ -25,15 +25,6 @@
<div class="prepare-uploader-progress" :style="{ width: item.percentage + '%' }"></div> <div class="prepare-uploader-progress" :style="{ width: item.percentage + '%' }"></div>
<div class="prepare-body-main-item-icon"> <div class="prepare-body-main-item-icon">
<FileImage :size="50" :file-name="item.raw.name" /> <FileImage :size="50" :file-name="item.raw.name" />
<!-- <svg
class="icon"
aria-hidden="true"
font-size="50px"
color="red"
style="margin: auto"
>
<use xlink:href="#icon-ppt"></use>
</svg>-->
</div> </div>
<div class="prepare-body-main-item-info"> <div class="prepare-body-main-item-info">
<div class="prepare-item-info-title">{{ item.raw.name }}</div> <div class="prepare-item-info-title">{{ item.raw.name }}</div>

View File

@ -117,10 +117,28 @@ export default {
this.callback(param) this.callback(param)
}) })
this.lastAsyncAllTime = localStorage.getItem('lastAsyncAllTime') this.lastAsyncAllTime = localStorage.getItem('lastAsyncAllTime')
}, },
mounted() { mounted() {
}, },
activated() {
if (this.uploadData.textbookId !== null) {
this.isLoading = true
getSmarttalkPage({
...this.uploadData,
orderByColumn: 'uploadTime',
isAsc: 'desc',
pageSize: 500
})
.then(async (res) => {
this.currentFileList = [...res.rows]
this.isLoading = false
})
.catch(() => {
this.isLoading = false
})
}
},
methods: { methods: {
createFile() { createFile() {
creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => { creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => {
@ -252,9 +270,9 @@ export default {
}, },
// //
handleOutLink(key){ handleOutLink(key){
// key linkConfig.js // key linkConfig.js
let configObj = outLink[key] let configObj = outLink[key]
// //
ipcRenderer.send('openWindow', { ipcRenderer.send('openWindow', {
fullPath: configObj.fullPath, fullPath: configObj.fullPath,
cookieData: {...(configObj.data)} cookieData: {...(configObj.data)}

View File

@ -76,7 +76,6 @@ export default defineStore('resource', {
if (data.fileSuffix == -1) { if (data.fileSuffix == -1) {
data.fileSuffix = '' data.fileSuffix = ''
} }
console.log(data, 200)
getSmarttalkPage(data).then((res) => { getSmarttalkPage(data).then((res) => {
this.result.total = res.total this.result.total = res.total
this.result.list = res.rows this.result.list = res.rows