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 ++++++++++----
 src/pages/shuohuangMonitorAnalyze/components/memberManage.vue         |    4 ++--
 src/api/shuohuang.ts                                                  |    6 +++---
 3 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/api/shuohuang.ts b/src/api/shuohuang.ts
index 80244a4..ae2ba4c 100644
--- a/src/api/shuohuang.ts
+++ b/src/api/shuohuang.ts
@@ -153,10 +153,10 @@
   url: '/data/api-c/device/getlst',
   method: 'get'
 })
-export const getDeviceInfoById = (query: any) => request({
+export const getDeviceInfo = (data: any) => request({
   url: '/data/api-c/slot/getlst',
-  method: 'get',
-  params: query
+  method: 'post',
+  data: data
 })
 
 export const uploadLKG = (data: any) =>
diff --git a/src/pages/shuohuangMonitorAnalyze/components/memberManage.vue b/src/pages/shuohuangMonitorAnalyze/components/memberManage.vue
index 99c5e57..4ec3624 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/memberManage.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/memberManage.vue
@@ -2,9 +2,9 @@
   <div class="member-manage">
     <div class="left">
       <div style="margin-bottom: 10px">
-        <el-input placeholder="璇疯緭鍏�" v-model="treeWord" size="small">
+        <!-- <el-input placeholder="璇疯緭鍏�" v-model="treeWord" size="small">
           <el-button slot="append" icon="el-icon-search"></el-button>
-        </el-input>
+        </el-input> -->
       </div>
       <el-tree
         ref="leftTreeNodes"
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