| | |
| | | </div> |
| | | |
| | | <div v-show="zydksb =='sb'" class="lists-box sb"> |
| | | <div> |
| | | <div v-for="(item, index) in equipmentList" :key="index"> |
| | | <div class="title"> |
| | | <img src="/img/icon/jk.png" alt />监控设备 |
| | | <img src="/img/icon/jk.png" alt />{{item.name}} |
| | | </div> |
| | | <div class="type off">在线</div> |
| | | </div> |
| | |
| | | import { |
| | | getLandList, |
| | | getFarmingRecordList, |
| | | getFarmPlantList |
| | | getFarmPlantList, |
| | | getStationAndVideoList |
| | | } from '@/api/farm/farmingrecord' |
| | | |
| | | export default { |
| | |
| | | plotDetailsPlantList: [], |
| | | // 地块详情中的农事操作 |
| | | plotDetailsRecordList: [], |
| | | currentClickPlot: {} |
| | | currentClickPlot: {}, |
| | | // 物联网设备 |
| | | equipmentList: {}, |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.getFarmingRecordList() |
| | | this.getFarmPlantList() |
| | | this.getLandList() |
| | | this.getStationAndVideo() |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | }) |
| | | this.plotLists = res.data.data |
| | | }) |
| | | }, |
| | | getStationAndVideo () { |
| | | var that = this |
| | | getStationAndVideoList({ type: 'ALL',farmId: this.currentDetails.id }).then((res) => { |
| | | if (JSON.stringify(res.data) != '{}' && res.data.data) { |
| | | that.equipmentList = res.data.data.staList |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |