mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div style="background-color: #FFFFFF;min-height: 600px;">
|
||||
<p v-if="data.length == 0" style="line-height:30px;text-align: center;">暂无消息</p>
|
||||
<p style="line-height:30px;text-align: center;">{{showMessage}}</p>
|
||||
|
||||
|
||||
<!-- 临时增加,上线一段时间后删除 开始 -->
|
||||
@@ -115,7 +115,8 @@ export default {
|
||||
totalPages: '',
|
||||
checkedIds:[],
|
||||
isIndeterminate: false,
|
||||
url: ''
|
||||
url: '',
|
||||
showMessage:'暂无消息'
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -137,6 +138,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
queryMessage(flag) {
|
||||
this.showMessage = '加载中...';
|
||||
if (flag) {
|
||||
this.data = [];
|
||||
this.checkAll = false;
|
||||
@@ -154,6 +156,8 @@ export default {
|
||||
item.checked = false;
|
||||
this.data.push(item);
|
||||
});
|
||||
if(this.total == 0){this.showMessage = '暂无消息';}
|
||||
this.showMessage = this.total <= 0 ? '暂无消息' : '';
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user