智慧农业后台管理页面
guoshilong
2022-09-03 2c7eff567461cbbc95179e0bb86254e576dc7698
src/views/wel/land.vue
@@ -28,6 +28,7 @@
<script>
import { mapGetters } from "vuex";
import { getLandList } from "@/api/land/land";
import { getDetail } from "@/api/farm/farm";
import { getStrainList } from "@/api/farmplant/strain";
import { add } from "@/api/land/land";
import getMapDataInThere from "./getMapDataInThere.vue";
@@ -211,6 +212,11 @@
      this.form.landArea = 0
      this.visible = true;
      this.form.farmId = this.$farmId;
      getDetail(this.form.farmId).then(res=>{
        this.farmInfo = res.data.data
        this.url = this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage&longitude="+this.farmInfo.longitude+"&latitude="+this.farmInfo.latitude;
      })
    },
    // 表单提交
    submit(row, done) {