From 2c8f7d06ec1694667e0d03a76b36eceed5f3bdbb Mon Sep 17 00:00:00 2001
From: xiebin <123456>
Date: Tue, 02 Aug 2022 08:33:06 +0800
Subject: [PATCH] 地块编辑
---
src/views/land/LandDetail.vue | 26 +++++++++++++++++++++++---
1 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/views/land/LandDetail.vue b/src/views/land/LandDetail.vue
index 13ce2df..eb7f709 100644
--- a/src/views/land/LandDetail.vue
+++ b/src/views/land/LandDetail.vue
@@ -15,8 +15,9 @@
<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>
@@ -56,6 +57,7 @@
<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>
@@ -66,7 +68,8 @@
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: {
@@ -74,6 +77,7 @@
farming,
recovery,
stockUseInfo,
+ landUpdate,
getMapDataInThere
},
data () {
@@ -90,6 +94,7 @@
dic: "",
formC: {},
gradeBoxVisible1: false,
+ landVisible: false,
option2: {
index: true,
tip: false,
@@ -135,6 +140,21 @@
.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)
--
Gitblit v1.9.3