存储部分使用sqlite代替redis-3
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
</el-select>
|
||||
在线状态: <el-select size="mini" @change="search" v-model="online" placeholder="请选择" default-first-option>
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option label="在线" value="on"></el-option>
|
||||
<el-option label="离线" value="off"></el-option>
|
||||
<el-option label="在线" value="true"></el-option>
|
||||
<el-option label="离线" value="false"></el-option>
|
||||
</el-select>
|
||||
|
||||
</div>
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
.then(function (res) {
|
||||
console.log(res);
|
||||
that.total = res.data.total;
|
||||
that.deviceChannelList = res.data.data;
|
||||
that.deviceChannelList = res.data.list;
|
||||
// 防止出现表格错位
|
||||
that.$nextTick(() => {
|
||||
that.$refs.channelListTable.doLayout();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<el-table-column label="地址" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<el-tag size="medium">{{ scope.row.host.address }}</el-tag>
|
||||
<el-tag size="medium">{{ scope.row.hostAddress }}</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -140,8 +140,9 @@
|
||||
} )
|
||||
.then(function (res) {
|
||||
console.log(res);
|
||||
console.log(res.data.list);
|
||||
that.total = res.data.total;
|
||||
that.deviceList = res.data.data;
|
||||
that.deviceList = res.data.list;
|
||||
that.getDeviceListLoading = false;
|
||||
})
|
||||
.catch(function (error) {
|
||||
|
||||
Reference in New Issue
Block a user