This commit is contained in:
lyc 2024-10-10 16:00:13 +08:00
parent 05286236b7
commit 7d457782cc
1 changed files with 19 additions and 13 deletions

View File

@ -14,19 +14,26 @@
<el-scrollbar height="360px"> <el-scrollbar height="360px">
<ul> <ul>
<!--资源--> <!--资源-->
<li class="item flex" v-for="item in resourceList" :key="item.id">
<div class="item-left flex"> <template v-for="item in resourceList" :key="item.id">
<FileImage :size="50" :file-name="item.fileShowName" /> <!--
<div class="item-info flex"> apt pptx 暂时不显示
<span class="item-name">{{ item.fileShowName }}</span> 2024-10-10
<div class="item-student"> -->
<span class="item-option">{{ item.fileFlag }}</span> <li class="item flex" v-if="item.fileFlag != 'apt' && item.fileSuffix != 'pptx' && item.fileSuffix != 'ppt'">
<span>{{ item.fileSuffix }}</span> <div class="item-left flex" >
<FileImage :size="50" :file-name="item.fileShowName" />
<div class="item-info flex">
<span class="item-name">{{ item.fileShowName }}</span>
<div class="item-student">
<span class="item-option">{{ item.fileFlag }}</span>
<span>{{ item.fileSuffix }}</span>
</div>
</div> </div>
</div> </div>
</div> <el-button color="#349d44" @click="openFileLink(item)">推送</el-button>
<el-button color="#349d44" @click="openFileLink(item)">推送</el-button> </li>
</li> </template>
<!--作业--> <!--作业-->
<li class="item flex" v-for="item in dataList" :key="item.id"> <li class="item flex" v-for="item in dataList" :key="item.id">
<div class="item-left flex"> <div class="item-left flex">
@ -176,6 +183,7 @@ const getResource = () => {
querySearch.pageSize = 500 querySearch.pageSize = 500
getSmarttalkPage(querySearch).then(res => { getSmarttalkPage(querySearch).then(res => {
console.log('资源=====》',res.rows)
resourceList.value = res.rows resourceList.value = res.rows
}) })
@ -217,8 +225,6 @@ onMounted(async () => {
curNode.data = sessionStore.get('subject.curNode') curNode.data = sessionStore.get('subject.curNode')
getHomework() getHomework()
getResource() getResource()
}) })
</script> </script>