| | |
| | | v-for="(item, index) in equipmentList" |
| | | :key="'equipmentList' + index" |
| | | class="lists-item" |
| | | @click="item.dictTypeNum == 0?goToJkDetail(item |
| | | ):goToDetail(item)" |
| | | @click="setSiteCenter(item)" |
| | | > |
| | | <div class="title"> |
| | | <img v-if="item.dictTypeNum == 0" src="/img/icon/jk.png" alt /> |
| | |
| | | getFarmingRecordList({ farmId: this.currentDetails.id, landId: params.id }).then(res => { |
| | | this.plotDetailsRecordList = res.data.data |
| | | }) |
| | | |
| | | this.napePlotPopupFlag = true |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | getFarmPlantList () { |
| | | getFarmPlantList({ farmId: this.currentDetails.id }).then(res => { |
| | | getFarmPlantList({ farmId: this.currentDetails.id, status: 1 }).then(res => { |
| | | this.farmPlantList = res.data.data |
| | | }) |
| | | }, |
| | |
| | | queryEquipmentList({ type: 'ALL', farmId: this.currentDetails.id }).then((res) => { |
| | | if (JSON.stringify(res.data) != '{}' && res.data.data) { |
| | | that.equipmentList = res.data.data.equipmentList |
| | | that.equipmentList.forEach(item => { |
| | | // 气象 |
| | | if (item.dictTypeNum == 1) { |
| | | that.$refs.modalForm.addSiteEntity(item, '/img/icon/map-qx.png') |
| | | } else if (item.dictTypeNum == 2) { |
| | | // 空气 |
| | | that.$refs.modalForm.addSiteEntity(item, '/img/icon/map-qx.png') |
| | | } else if (item.dictTypeNum == 3) { |
| | | // 水质 |
| | | that.$refs.modalForm.addSiteEntity(item, '/img/icon/map-sz.png') |
| | | } else if (item.dictTypeNum == 4) { |
| | | // 土壤 |
| | | that.$refs.modalForm.addSiteEntity(item, '/img/icon/map-tr.png') |
| | | } else if (item.dictTypeNum == 0) { |
| | | that.$refs.modalForm.addSiteEntity(item, '/img/icon/map-jk.png') |
| | | } |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | }, |
| | |
| | | |
| | | this.stationData = res.data.data |
| | | }) |
| | | }, |
| | | setSiteCenter (item) { |
| | | this.$refs.modalForm.setSiteCenter(item.name) |
| | | } |
| | | } |
| | | } |