mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +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>
|
</div>
|
||||||
<div style="background-color: #FFFFFF;min-height: 600px;">
|
<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: '',
|
totalPages: '',
|
||||||
checkedIds:[],
|
checkedIds:[],
|
||||||
isIndeterminate: false,
|
isIndeterminate: false,
|
||||||
url: ''
|
url: '',
|
||||||
|
showMessage:'暂无消息'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -137,6 +138,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
queryMessage(flag) {
|
queryMessage(flag) {
|
||||||
|
this.showMessage = '加载中...';
|
||||||
if (flag) {
|
if (flag) {
|
||||||
this.data = [];
|
this.data = [];
|
||||||
this.checkAll = false;
|
this.checkAll = false;
|
||||||
@@ -154,6 +156,8 @@ export default {
|
|||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.data.push(item);
|
this.data.push(item);
|
||||||
});
|
});
|
||||||
|
if(this.total == 0){this.showMessage = '暂无消息';}
|
||||||
|
this.showMessage = this.total <= 0 ? '暂无消息' : '';
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('获取数据失败');
|
this.$message.error('获取数据失败');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user