| | |
| | | >删 除</el-button> |
| | | </template> |
| | | <!-- 地图插入 --> |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <!-- <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <getMapDataInThere ref="getMapData" id="getMapData" @setMapData="setMapData"></getMapDataInThere> |
| | | </template> |
| | | </template> --> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-view" |
| | |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-files" |
| | | }, |
| | | { |
| | | label: "路线展示", |
| | | labelWidth: 145, |
| | | prop: "line", |
| | | className: "mapClass", |
| | | hide: true, |
| | | display: true, |
| | | span: 24, |
| | | formslot: true, |
| | | addDisplay: true |
| | | } |
| | | // { |
| | | // label: "路线展示", |
| | | // labelWidth: 145, |
| | | // prop: "line", |
| | | // className: "mapClass", |
| | | // hide: true, |
| | | // display: true, |
| | | // span: 24, |
| | | // formslot: true, |
| | | // addDisplay: true |
| | | // } |
| | | ], |
| | | } |
| | | } |
| | |
| | | <basic-container> |
| | | <avue-form ref="form" v-model="objBase" :option="optionBase" @submit="submitBase"> |
| | | <!-- 地图插入 --> |
| | | <template slot-scope="{}" slot="position"> |
| | | <!-- <template slot-scope="{}" slot="position"> |
| | | <getMapDataInThere |
| | | ref="getMapData" |
| | | id="getMapData" |
| | | @setMapData="setMapData" |
| | | ></getMapDataInThere> |
| | | </template> |
| | | </template> --> |
| | | </avue-form> |
| | | </basic-container> |
| | | </el-tab-pane> |
| | |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-files" |
| | | }, |
| | | { |
| | | label: "农场位置", |
| | | prop: "position", |
| | | className: "mapClass", |
| | | span: 24, |
| | | formslot: true, |
| | | labelWidth: 145, |
| | | }, |
| | | // { |
| | | // label: "农场位置", |
| | | // prop: "position", |
| | | // className: "mapClass", |
| | | // span: 24, |
| | | // formslot: true, |
| | | // labelWidth: 145, |
| | | // }, |
| | | ], |
| | | }, |
| | | ], |
| | |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { getFarmList } from "@/api/farm/farm"; |
| | | import { getFarmList,getDetail } from "@/api/farm/farm"; |
| | | import { getDeptTree } from "@/api/system/dept"; |
| | | import { add } from "@/api/land/land"; |
| | | import website from "@/config/website"; |
| | |
| | | landUrl: "", |
| | | polygon: [], |
| | | area: "", |
| | | farmInfo:{}, |
| | | visible: false, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.url = |
| | | this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage"; |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | 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) { |
| | |
| | | <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"; |
| | |
| | | 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) { |