mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 00:36:44 +08:00
我的问答样式修改
This commit is contained in:
@@ -46,11 +46,12 @@
|
||||
:total="total"
|
||||
></el-pagination></div>
|
||||
<div v-else>
|
||||
<div v-if="pageData.list.length == 0">
|
||||
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||
<div v-else class="zan-wu">暂无数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="pageData.list.length == 0" class="home-no-list">
|
||||
<img class="img" style="width:360px;height:226px" :src="`${webBaseUrl}/images/homeWu/no-madel.png`" alt="" srcset=""/>
|
||||
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||
<div v-else class="zan-wu">你还没有发布文章~</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<el-dialog title="创建文章" :visible.sync="diagSync" :close-on-click-modal="false" width="900px" custom-class="g-dialog">
|
||||
|
||||
@@ -36,9 +36,10 @@
|
||||
></el-pagination>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-if="qaList.length == 0">
|
||||
<div v-if="qaList.length == 0" class="home-no-list">
|
||||
<img class="img" style="width:360px;height:226px" :src="`${webBaseUrl}/images/homeWu/no-madel.png`" alt="" srcset=""/>
|
||||
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||
<div v-else class="zan-wu">暂无数据</div>
|
||||
<div v-else class="zan-wu">你还没有回答问题哦~</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,6 +79,7 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
getList() {
|
||||
this.queryObj.pageIndex = 1;
|
||||
this.isSearh = true;
|
||||
@@ -90,8 +92,10 @@ export default {
|
||||
.then(res => {
|
||||
if (res.status == 200) {
|
||||
this.total = res.result.count;
|
||||
res = res.result.list;
|
||||
this.qaList = res;
|
||||
res.result.list.forEach(item => {
|
||||
item.isAll = false;
|
||||
});
|
||||
this.qaList = res.result.list;
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user