Browse Source

暂无数据

lwx_v1
liwenxuan 2 years ago
parent
commit
16ab0f85ad
  1. 12
      src/views/knowledge/knowledge/components/archivestype.vue
  2. 2
      src/views/knowledge/knowledge/index.vue

12
src/views/knowledge/knowledge/components/archivestype.vue

@ -114,7 +114,10 @@ watch(() => [props.fatherisReady, props.liContent,props.routerUrl], (newVal, old
tuijianPage.value = data.list
pageParamTuijian.page = data.pageNum
pageParamTuijian.total = data.total
// console.log(tuijianPage.value)
if(pageParamTuijian.total>0){
showCards.value = 1;
}
});
})
@ -161,7 +164,7 @@ function handleCurrentChange() {
}
const showCards = ref(0)
@ -174,7 +177,8 @@ function handleCurrentChange() {
<h3>{{ props.liContent?.atTitle }}</h3>
</div>
<div class="grid-tuijian">
<div v-show="!showCards" style="text-align: center;padding-top: 5%;" >暂无数据</div>
<div class="grid-tuijian" v-show="showCards">
<div v-for="(item, index) in tuijianPage" :key="index" class="tuijian-card">
@ -205,7 +209,7 @@ function handleCurrentChange() {
<style>
.models {
width: 100%;
min-height: 500px;
min-height: 200px;
}

2
src/views/knowledge/knowledge/index.vue

@ -208,7 +208,7 @@ function handleCurrentChange() {
.models {
width: 100%;
min-height: 500px;
/* min-height: 500px; */
}

Loading…
Cancel
Save