71 lines
1.7 KiB
Vue
71 lines
1.7 KiB
Vue
<template>
|
|
<view class="zd_container">
|
|
<nav-bar :title="$t('menu.rgv-status-query')"></nav-bar>
|
|
<view class="zd_content">
|
|
<view class="zd_wrapper grid-wraper">
|
|
<view class="slide_new">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{{$t('grid.device-code')}}</th>
|
|
<th>{{$t('grid.device-name')}}</th>
|
|
<th>X{{$t('grid.coordinate')}}</th>
|
|
<th>Y{{$t('grid.coordinate')}}</th>
|
|
<th>{{$t('grid.quantity-of-electricity')}}</th>
|
|
<th>{{$t('grid.fault-name')}}</th>
|
|
<th>{{$t('grid.floor')}}</th>
|
|
<th>{{$t('filter.wooden-box-code')}}</th>
|
|
<th>{{$t('grid.is-stock')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(e, i) in dataList" :key="i">
|
|
<td>{{e.device_code}}</td>
|
|
<td>{{e.device_name}}</td>
|
|
<td>{{e.x}}</td>
|
|
<td>{{e.y}}</td>
|
|
<td>{{e.power}}</td>
|
|
<td>{{e.error_name}}</td>
|
|
<td>{{e.map_id}}</td>
|
|
<td>{{e.pallet}}</td>
|
|
<td>{{['无货', '有货'][Number(e.move)]}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="submit-bar">
|
|
<button class="submit-button" @tap="_rgvStatusQuery">{{$t('button.search')}}</button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import NavBar from '@/components/NavBar.vue'
|
|
import {rgvStatusQuery} from '@/utils/getData2.js'
|
|
export default {
|
|
components: {
|
|
NavBar
|
|
},
|
|
data() {
|
|
return {
|
|
dataList: []
|
|
};
|
|
},
|
|
created () {
|
|
this._rgvStatusQuery()
|
|
},
|
|
methods: {
|
|
/** 初始化查询 */
|
|
async _rgvStatusQuery () {
|
|
let res = await rgvStatusQuery()
|
|
this.dataList = [...res.data]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
</style>
|