| | |
| | | }) |
| | | } |
| | | |
| | | export const selectRecoveryLandList = (farmId) => { |
| | | return request({ |
| | | url: '/api/land/land/selectRecoveryLandList', |
| | | method: 'get', |
| | | params: { |
| | | farmId |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const selectCount = (farmId) => { |
| | | return request({ |
| | | url: '/api/land/land/selectCount', |
| | |
| | | token: getStore({name: 'token'}) || '', |
| | | refreshToken: getStore({name: 'refreshToken'}) || '', |
| | | $farmId: 0, |
| | | drawMapUrlBase: 'http://182.106.212.58:8013' |
| | | drawMapUrlBase: 'https://dev.jxpskj.com:8013' |
| | | }, |
| | | actions: { |
| | | loginInfoByToken({commit}) { |
| | |
| | | import { save } from "@/api/traceability/traceability"; |
| | | import { getList } from "@/api/farmplant/recovery"; |
| | | import { getStrainList } from "@/api/farmplant/strain"; |
| | | import { getLandList } from "@/api/land/land"; |
| | | import { getLandList,selectRecoveryLandList } from "@/api/land/land"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | column: [ |
| | | { |
| | | label: "采收品种", |
| | | prop: "strainName", |
| | | }, |
| | | { |
| | | label: "采收品种", |
| | | prop: "strainId", |
| | | search: true, |
| | | searchSpan: 4, |
| | | span: 12, |
| | | type: "tree", |
| | | hide:true, |
| | | dicData: [], |
| | | props: { |
| | | label: "strainName", |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label:"操作人", |
| | | prop:"realName" |
| | | }, |
| | | { |
| | | label: "操作人", |
| | | prop: "operator", |
| | | type: "tree", |
| | | dicData: [], |
| | | hide:true, |
| | | props: { |
| | | label: "realName", |
| | | value: "id", |
| | |
| | | // } |
| | | // }) |
| | | //获取农地数据 |
| | | getLandList(this.$farmId).then((res)=>{ |
| | | selectRecoveryLandList(this.$farmId).then((res)=>{ |
| | | if(res.data.code==200){ |
| | | var landIdcolumn = that.findObject(that.option.column,"landId"); |
| | | that.landList = res.data.data; |
| | |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | console.log(res) |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |