调整界面布局

This commit is contained in:
lawrencehj
2021-02-03 10:54:41 +08:00
parent a522d09734
commit 693aac283a
2 changed files with 29 additions and 12 deletions

View File

@@ -181,10 +181,17 @@ export default {
self.total = res.data.length;
self.mobilePositionList = res.data;
console.log(self.mobilePositionList);
// 防止出现表格错位
self.$nextTick(() => {
self.showMarkPoints(self);
});
if (self.total == 0) {
self.$message({
showClose: true,
message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => {
self.showMarkPoints(self);
});
}
})
.catch(function (error) {
console.log(error);
@@ -201,10 +208,17 @@ export default {
self.total = res.data.length;
self.mobilePositionList.push(res.data);
console.log(self.mobilePositionList);
// 防止出现表格错位
self.$nextTick(() => {
self.showMarkPoints(self);
});
if (self.total == 0) {
self.$message({
showClose: true,
message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => {
self.showMarkPoints(self);
});
}
})
.catch(function (error) {
console.log(error);