调整界面布局

pull/47/head
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.total = res.data.length;
self.mobilePositionList = res.data; self.mobilePositionList = res.data;
console.log(self.mobilePositionList); console.log(self.mobilePositionList);
// if (self.total == 0) {
self.$message({
showClose: true,
message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => { self.$nextTick(() => {
self.showMarkPoints(self); self.showMarkPoints(self);
}); });
}
}) })
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
@ -201,10 +208,17 @@ export default {
self.total = res.data.length; self.total = res.data.length;
self.mobilePositionList.push(res.data); self.mobilePositionList.push(res.data);
console.log(self.mobilePositionList); console.log(self.mobilePositionList);
// if (self.total == 0) {
self.$message({
showClose: true,
message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => { self.$nextTick(() => {
self.showMarkPoints(self); self.showMarkPoints(self);
}); });
}
}) })
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);

View File

@ -51,9 +51,12 @@
<el-table-column label="操作" width="360" align="center" fixed="right"> <el-table-column label="操作" width="360" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" :ref="scope.row.deviceId + 'refbtn' " icon="el-icon-refresh" @click="refDevice(scope.row)"></el-button> <el-button size="mini" :ref="scope.row.deviceId + 'refbtn' " icon="el-icon-refresh" @click="refDevice(scope.row)"></el-button>
<el-button size="mini" icon="el-icon-s-open" v-bind:disabled="scope.row.online==0" type="primary" @click="showChannelList(scope.row)"></el-button> <el-button-group>
<el-button size="mini" icon="el-icon-s-open" v-bind:disabled="scope.row.online==0" type="primary" @click="showDevicePosition(scope.row)"></el-button> <el-button size="mini" icon="el-icon-video-camera-solid" v-bind:disabled="scope.row.online==0" type="primary" @click="showChannelList(scope.row)"></el-button>
<el-button size="mini" icon="el-icon-location" v-bind:disabled="scope.row.online==0" type="primary" @click="showDevicePosition(scope.row)"></el-button>
<el-button size="mini" icon="el-icon-s-tools" v-bind:disabled="scope.row.online==0" type="primary">控制</el-button>
</el-button-group>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>