浏览代码

查看在线设备

chrislee 4 周之前
父节点
当前提交
e399352323
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/modules/device/device-list.vue

+ 5 - 1
src/views/modules/device/device-list.vue

@@ -23,6 +23,9 @@
           <el-button @click="search()">查询</el-button>
           <el-button v-if="isAuth('prod:equipment:save')" type="primary" @click="addOrUpdateHandle(0)">新增</el-button>
         </el-form-item>
+        <el-form-item>
+          <el-checkbox v-model="dataForm.onlineState" :true-label="'1'" :false-label="'0'" @change="search()">只看在线</el-checkbox>
+        </el-form-item>
       </el-form>
       <!-- 数据表格 -->
       <el-table
@@ -350,7 +353,8 @@ export default {
           'current': this.pageIndex,
           'size': this.pageSize,
           'name': this.dataForm.name ? this.dataForm.name : null,
-          'state': this.dataForm.state ? this.dataForm.state : null
+          'state': this.dataForm.state ? this.dataForm.state : null,
+          'onlineState': this.dataForm.onlineState != undefined ? this.dataForm.onlineState : null
         })
       }).then(({data}) => {
         if (data && data.code === '200') {