|  |  | 
 |  |  |                <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> | 
 |  |  | 
 |  |  |                <el-table-column label="操作" width="240" align="center" fixed="right"> | 
 |  |  |                   <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" icon="el-icon-s-open"  type="primary" @click="showChannelList(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> | 
 |  |  |                   </template> | 
 |  |  |                </el-table-column> | 
 |  |  |             </el-table> | 
 |  |  | 
 |  |  |             this.getDeviceListLoading = true; | 
 |  |  |             this.$axios.get(`/api/devices`,{ | 
 |  |  |                params: { | 
 |  |  |                   page: that.currentPage - 1, | 
 |  |  |                   page: that.currentPage, | 
 |  |  |                   count: that.count | 
 |  |  |                } | 
 |  |  |             } ) | 
 |  |  |             .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) { | 
 |  |  | 
 |  |  |                      type: 'success' | 
 |  |  |                   }); | 
 |  |  |                } | 
 |  |  |                that.initData() | 
 |  |  |                that.$refs[itemData.deviceId + 'refbtn' ].loading = false; | 
 |  |  |             }).catch(function(e) { | 
 |  |  |                console.error(e) |