| | |
| | | <div class="edit"> |
| | | <el-button @click="btnGrounpShow = !btnGrounpShow" icon="el-icon-menu"></el-button> |
| | | |
| | | <div v-show="btnGrounpShow" class="btn-grounp" @click="DelLand(delId)"> |
| | | <el-button>删除地块</el-button> |
| | | <div v-show="btnGrounpShow" class="btn-grounp"> |
| | | <el-button @click="DelLand(delId)">删除地块</el-button> |
| | | <el-button size="small" @click="land">编辑地块</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <getMapDataInThere ref="getMapData" id="getMapData" @setMapData="setMapData"></getMapDataInThere> |
| | | <el-button class="save" type="success" @click="upLand()">保存</el-button> |
| | | </el-dialog> |
| | | <landUpdate v-if="landVisible" ref="landUpdate" id="landUpdate" @refreshOnLoad="openLandUpdate"></landUpdate> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import recovery from "@/views/recovery/recovery.vue" |
| | | import stockUseInfo from "@/views/farm/stockUseInfo.vue" |
| | | import getMapDataInThere from "./getMapDataInThere.vue" |
| | | import { remove, update } from "@/api/land/land" |
| | | import {getList, remove, update} from "@/api/land/land" |
| | | import landUpdate from "./landUpdate" |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | farming, |
| | | recovery, |
| | | stockUseInfo, |
| | | landUpdate, |
| | | getMapDataInThere |
| | | }, |
| | | data () { |
| | |
| | | dic: "", |
| | | formC: {}, |
| | | gradeBoxVisible1: false, |
| | | landVisible: false, |
| | | option2: { |
| | | index: true, |
| | | tip: false, |
| | |
| | | .split(",") |
| | | }, |
| | | methods: { |
| | | //圈地 |
| | | land () { |
| | | this.landVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.landUpdate.init() |
| | | }) |
| | | }, |
| | | openLandUpdate (page, params = {}) { |
| | | console.log('11111111111refreshOnLoad') |
| | | // getList(1, 10, Object.assign(params, this.query)).then(res => { |
| | | // const data = res.data.data |
| | | // |
| | | // this.farmPlanList = data.records |
| | | // }) |
| | | }, |
| | | mod (usePolygons) { |
| | | this.gradeBoxVisible1 = true |
| | | this.$refs.getMapData.draw(usePolygons) |