调整界面布局

This commit is contained in:
lawrencehj 2021-02-03 10:54:41 +08:00
parent 40020cc5a9
commit e15842c53c
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.$nextTick(() => { self.$message({
self.showMarkPoints(self); showClose: true,
}); message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => {
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.$nextTick(() => { self.$message({
self.showMarkPoints(self); showClose: true,
}); message: '未找到符合条件的移动位置信息',
type: 'error'
});
} else {
self.$nextTick(() => {
self.showMarkPoints(self);
});
}
}) })
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);

View File

@ -51,10 +51,13 @@
<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>
</template> <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>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination