heyujie
2021-07-02 79adf658d8ad7d06ff0de4c03279fd978f20fe91
按设备状态筛选
3个文件已修改
24 ■■■■■ 已修改文件
src/api/shuohuang.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/shuohuangMonitorAnalyze/components/memberManage.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/shuohuangMonitorAnalyze/components/transferDeviceManage.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) =>
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"
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;
        //统计当前插槽状态