| | |
| | | :key="indicator.id" |
| | | > |
| | | <div class="title"> |
| | | <span class="dot" :class="{'kx':indicator.id=='kx','dx':indicator.id=='dx','ccgz':indicator.id=='ccgz'}"></span> |
| | | <span |
| | | class="dot" |
| | | :class="{'kx':indicator.id=='kx','dx':indicator.id=='dx','ccgz':indicator.id=='ccgz'}" |
| | | ></span> |
| | | <span class="word">{{indicator.title}}</span> |
| | | </div> |
| | | <div class="indicator-val">{{indicator.slots.length}}</div> |
| | |
| | | <label>设备状态:</label> |
| | | <div> |
| | | <el-select v-model="deviceState" size="small"> |
| | | <el-option></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> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { addDevice, getDeviceList, getDeviceInfoById } from '@/api/shuohuang'; |
| | | import { addDevice, getDeviceList, getDeviceInfo } from '@/api/shuohuang'; |
| | | export default { |
| | | data () { |
| | | return { |
| | |
| | | }, |
| | | findDeviceIfo () { |
| | | let _this = this; |
| | | getDeviceInfoById({ DeviceID: this.actTab }).then(res => { |
| | | getDeviceInfo({ |
| | | DeviceID: this.actTab, |
| | | Status:this.deviceState |
| | | }).then(res => { |
| | | // debugger |
| | | _this.tableData = res.data; |
| | | //统计当前插槽状态 |
| | |
| | | flex: 1; |
| | | position: relative; |
| | | &:not(.lastOne):after { |
| | | content: ''; |
| | | content: ""; |
| | | width: 1px; |
| | | height: 57px; |
| | | background: #e9e9e9; |