| | |
| | | size="small" |
| | | @change="stypeChange" |
| | | > |
| | | <el-option label="全部分类" value></el-option> |
| | | <el-option label="全部分类" value=""></el-option> |
| | | <el-option label="大田" value="0"></el-option> |
| | | <el-option label="大棚" value="1"></el-option> |
| | | <el-option label="果园" value="2"></el-option> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="edit"> |
| | | <el-button size="small"> |
| | | <span style="color: #5abf78" @click="goToMapModel(row)">进入地图模式</span> |
| | | <el-button size="small" |
| | | @click="goToMapModel(row)"> |
| | | <span style="color: #5abf78">进入地图模式</span> |
| | | </el-button> |
| | | <el-button |
| | | type="success" |
| | |
| | | <div class="text"> |
| | | <div class="land-name">{{ item.landName }}</div> |
| | | <div class="land-area"> |
| | | <div class="box">{{ item.landArea }} {{ item.dica }}</div> |
| | | <div class="box">{{ item.landArea}} {{ item.dica }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import { mapGetters } from "vuex" |
| | | import { getList } from "@/api/land/land" |
| | | import landAdd from "./landAdd" |
| | | import fixed from "@/util/mathHandler" |
| | | export default { |
| | | components: { |
| | | landAdd, |
| | |
| | | data () { |
| | | return { |
| | | formInline: { |
| | | stype: "0", |
| | | stype: "", |
| | | state: "0", |
| | | keyword: "", |
| | | }, |
| | | query: {}, |
| | | farm:{}, |
| | | value: true, |
| | | farmingCount: 0, |
| | | landVisible: false, |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo","$farmId"]), |
| | | }, |
| | | watch: { |
| | | '$farmId':{ |
| | | handler (newName, oldName) { |
| | | this.farm.id = newName |
| | | //地块页面 |
| | | this.onLoad() |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.farm.id = this.$farmId |
| | | this.onLoad(this.page) |
| | | }, |
| | | methods: { |
| | |
| | | if(typeof(page) == "undefined" ){ |
| | | page = this.page |
| | | } |
| | | Object.assign(params,{farmId:this.farm.id}) |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.farmPlanList = data.records |
| | | this.farmPlanList.forEach((e)=>{ |
| | | e.landArea = fixed.fixedNum(e.landArea) |
| | | }) |
| | | }) |
| | | }, |
| | | //进入地图模式 |