|
@@ -3,7 +3,7 @@ import {ref} from 'vue'
|
|
import {useClassify} from '../hooks/useClassify'
|
|
import {useClassify} from '../hooks/useClassify'
|
|
import openShareIcon from '@/assets/imgs/ppt/ppt_icon_user1.png'
|
|
import openShareIcon from '@/assets/imgs/ppt/ppt_icon_user1.png'
|
|
import closeShareIcon from '@/assets/imgs/ppt/ppt_icon_user2.png'
|
|
import closeShareIcon from '@/assets/imgs/ppt/ppt_icon_user2.png'
|
|
-import {apiPPTList} from '@/api/ppt'
|
|
|
|
|
|
+import {apiPPTList,apiPPTPubList} from '@/api/ppt'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
|
const router=useRouter()
|
|
const router=useRouter()
|
|
@@ -35,13 +35,24 @@ const activeType=ref('myPPT')
|
|
let activeGroupId=ref('')
|
|
let activeGroupId=ref('')
|
|
let pptList=ref([])
|
|
let pptList=ref([])
|
|
async function getPPTList(){
|
|
async function getPPTList(){
|
|
- const res=await apiPPTList({GroupId:activeGroupId.value})
|
|
|
|
|
|
+ let res
|
|
|
|
+ if(activeType.value=='myPPT'){
|
|
|
|
+ res=await apiPPTList({GroupId:activeGroupId.value})
|
|
|
|
+ }else{
|
|
|
|
+ res=await apiPPTPubList({AdminId:activeGroupId.value})
|
|
|
|
+ }
|
|
|
|
+
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
pptList.value=res.Data.List||[]
|
|
pptList.value=res.Data.List||[]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getPPTList()
|
|
getPPTList()
|
|
|
|
|
|
|
|
+function handleClickCatalogue(item){
|
|
|
|
+ activeGroupId.value=item.GroupId
|
|
|
|
+ getPPTList()
|
|
|
|
+}
|
|
|
|
+
|
|
// 跳转搜索
|
|
// 跳转搜索
|
|
function goMobileSearch(){
|
|
function goMobileSearch(){
|
|
router.push('/ppt/search')
|
|
router.push('/ppt/search')
|
|
@@ -73,7 +84,7 @@ function goMobileSearch(){
|
|
:is-link="false"
|
|
:is-link="false"
|
|
>
|
|
>
|
|
<template #title>
|
|
<template #title>
|
|
- <div class="title-second" @click="activeGroupId=item.GroupId">
|
|
|
|
|
|
+ <div class="title-second" @click="handleClickCatalogue(item)">
|
|
<img src="@/assets/imgs/ppt/ppt_icon_file.png" alt="">
|
|
<img src="@/assets/imgs/ppt/ppt_icon_file.png" alt="">
|
|
<span class="van-ellipsis">{{item.GroupName}}</span>
|
|
<span class="van-ellipsis">{{item.GroupName}}</span>
|
|
<div @click.stop="handleShowFileOpt(item)">
|
|
<div @click.stop="handleShowFileOpt(item)">
|
|
@@ -154,7 +165,7 @@ function goMobileSearch(){
|
|
:is-link="false"
|
|
:is-link="false"
|
|
>
|
|
>
|
|
<template #title>
|
|
<template #title>
|
|
- <div class="title-second">
|
|
|
|
|
|
+ <div class="title-second" @click="handleClickCatalogue(item)">
|
|
<img src="@/assets/imgs/ppt/ppt_icon_file.png" alt="">
|
|
<img src="@/assets/imgs/ppt/ppt_icon_file.png" alt="">
|
|
<span class="van-ellipsis">{{item.GroupName}}</span>
|
|
<span class="van-ellipsis">{{item.GroupName}}</span>
|
|
</div>
|
|
</div>
|
|
@@ -392,7 +403,12 @@ function goMobileSearch(){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.empty-item{
|
|
.empty-item{
|
|
|
|
+ display: block;
|
|
|
|
+ box-sizing: border-box;
|
|
width: 260px;
|
|
width: 260px;
|
|
|
|
+ padding: 10px 14px;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|