|
@@ -5,6 +5,7 @@ import openShareIcon from '@/assets/imgs/ppt/ppt_icon_user1.png'
|
|
|
import closeShareIcon from '@/assets/imgs/ppt/ppt_icon_user2.png'
|
|
|
import {apiPPTList,apiPPTPubList} from '@/api/ppt'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
+import moment from 'moment'
|
|
|
|
|
|
const router=useRouter()
|
|
|
|
|
@@ -54,6 +55,13 @@ function handleClickCatalogue(item){
|
|
|
getPPTList()
|
|
|
}
|
|
|
|
|
|
+// 设置共享
|
|
|
+function handleChangePPTShare(type,item){
|
|
|
+ if(type==1&&!item.IsSingleShareBoolean) return
|
|
|
+ if(type==2&&item.IsSingleShareBoolean) return
|
|
|
+ handlePPTShare()
|
|
|
+}
|
|
|
+
|
|
|
// 跳转搜索
|
|
|
function goMobileSearch(){
|
|
|
router.push('/ppt/search')
|
|
@@ -126,11 +134,11 @@ function goMobileSearch(){
|
|
|
<img class="share-icon" :src="_item.IsSingleShareBoolean?openShareIcon:closeShareIcon" alt="">
|
|
|
</template>
|
|
|
<div class="pad-classify-file-opt-box">
|
|
|
- <div class="item" @click="handlePPTShare">
|
|
|
+ <div class="item" @click="handleChangePPTShare(1,_item)">
|
|
|
<img :src="closeShareIcon" alt="">
|
|
|
<span>仅自己可见</span>
|
|
|
</div>
|
|
|
- <div class="item" @click="handlePPTShare">
|
|
|
+ <div class="item" @click="handleChangePPTShare(2,_item)">
|
|
|
<img :src="openShareIcon" alt="">
|
|
|
<span>所有人可见</span>
|
|
|
</div>
|
|
@@ -221,7 +229,7 @@ function goMobileSearch(){
|
|
|
>
|
|
|
<div class="van-ellipsis title">{{item.Title}}</div>
|
|
|
<img class="bg-img" src="/pptImg/pptcover_bg1.jpg" alt="">
|
|
|
- <div class="time">创建时间:{{item.PptCreateTime}}</div>
|
|
|
+ <div class="time">创建时间:{{moment(item.PptCreateTime).format('YYYY-MM-DD')}}</div>
|
|
|
</li>
|
|
|
<li class="empty-item"></li>
|
|
|
<li class="empty-item"></li>
|