From 79adf658d8ad7d06ff0de4c03279fd978f20fe91 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 02 七月 2021 16:53:25 +0800
Subject: [PATCH] 按设备状态筛选

---
 src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue b/src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue
index 9ad68c8..67917d6 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue
@@ -55,12 +55,15 @@
           <label>璁惧鐘舵��:</label>
           <div>
             <el-select v-model="deviceState" size="small">
-              <el-option value="work" label="宸ヤ綔"></el-option>
+              <el-option value="" label="鍏ㄩ儴"></el-option>
+              <el-option value="1" label="璇诲啓涓�"></el-option>
+              <el-option value="0" label="绌洪棽涓�"></el-option>
+              <el-option value="2" label="鎻掓Ы鏁呴殰"></el-option>
             </el-select>
           </div>
         </div>
         <div class="btns">
-          <el-button type="primary" size="small">鏌ヨ</el-button>
+          <el-button @click="findDeviceIfo" type="primary" size="small">鏌ヨ</el-button>
         </div>
       </div>
       <el-table class="thbg" :data="tableData" fit>
@@ -112,7 +115,7 @@
   </div>
 </template>
 <script>
-import { addDevice, getDeviceList, getDeviceInfoById } from '@/api/shuohuang';
+import { addDevice, getDeviceList, getDeviceInfo } from '@/api/shuohuang';
 export default {
   data() {
     return {
@@ -141,7 +144,10 @@
     },
     findDeviceIfo() {
       let _this = this;
-      getDeviceInfoById({ DeviceID: this.actTab }).then(res => {
+      getDeviceInfo({ 
+        DeviceID: this.actTab,
+        Status:this.deviceState
+        }).then(res => {
         // debugger
         _this.tableData = res.data;
         //缁熻褰撳墠鎻掓Ы鐘舵��

--
Gitblit v1.8.0