| | |
| | | <div class="wraaper-box farming-detail-box"> |
| | | <div class="dd"> |
| | | <div class="da"> |
| | | <div class="land-img" @click="mod(usePolygons)"> |
| | | <!-- <div class="land-img" @click="mod(usePolygons)">--> |
| | | <div class="land-img"> |
| | | <img :src="url" class="landimg" /> |
| | | </div> |
| | | <div class="cent"> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | title="地块位置" |
| | | class="current-map-box" |
| | | :visible.sync="gradeBoxVisible1" |
| | | :modal="true" |
| | | :modal-append-to-body="true" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | :before-close="dialogBeforeClose" |
| | | > |
| | | <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> |
| | | <!-- <el-dialog--> |
| | | <!-- title="地块位置"--> |
| | | <!-- class="current-map-box"--> |
| | | <!-- :visible.sync="gradeBoxVisible1"--> |
| | | <!-- :modal="true"--> |
| | | <!-- :modal-append-to-body="true"--> |
| | | <!-- :append-to-body="true"--> |
| | | <!-- :close-on-click-modal="false"--> |
| | | <!-- :close-on-press-escape="false"--> |
| | | <!-- :before-close="dialogBeforeClose"--> |
| | | <!-- >--> |
| | | <!-- <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"></landUpdate> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | ...mapGetters(["userInfo", "permission", "polygons"]), |
| | | }, |
| | | created () { |
| | | this.url = this.$route.query.url |
| | | this.landName = this.$route.query.landName |
| | | this.dic = this.$route.query.dic |
| | | this.landArea = this.$route.query.landArea |
| | | this.dica = this.$route.query.dica |
| | | this.deptname = this.$route.query.deptname |
| | | this.delId = this.$route.query.id |
| | | this.landUnit = this.$route.query.landUnit |
| | | // this.form = res.data.data; |
| | | this.usePolygons = this.$route.query.landRange |
| | | .split("POLYGON((")[1] |
| | | .split("))")[0] |
| | | .split(",") |
| | | |
| | | }, |
| | | methods: { |
| | | //圈地 |
| | |
| | | // }); |
| | | } |
| | | }, |
| | | watch: {}, |
| | | watch: { |
| | | '$route.query': { |
| | | immediate: true, |
| | | handler(newData, oldData) { |
| | | this.url = this.$route.query.url |
| | | this.landName = this.$route.query.landName |
| | | this.dic = this.$route.query.dic |
| | | this.landArea = this.$route.query.landArea |
| | | this.dica = this.$route.query.dica |
| | | this.deptname = this.$route.query.deptname |
| | | this.delId = this.$route.query.id |
| | | this.landUnit = this.$route.query.landUnit |
| | | // this.form = res.data.data; |
| | | this.usePolygons = this.$route.query.landRange |
| | | .split("POLYGON((")[1] |
| | | .split("))")[0] |
| | | .split(",") |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |