| | |
| | | } |
| | | }) |
| | | } |
| | | export const getStrainCount = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/farmPlant/strainCount', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/farmPlant/remove', |
| | |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex" |
| | | import { getList, update } from "@/api/farmplant/farmplant" |
| | | import { getList, update,getStrainCount } from "@/api/farmplant/farmplant" |
| | | import { getFarmingCount, getFarmingStatis } from "@/api/farm/farmingrecord" |
| | | import { selectCount } from "@/api/land/land" |
| | | import { StockCount } from "@/api/stock/stock" |
| | |
| | | } |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | params['farmId'] = this.farm.id |
| | | getList(1, 10, Object.assign(params)).then((res) => { |
| | | getStrainCount(1, 10, Object.assign(params)).then((res) => { |
| | | const data = res.data.data |
| | | this.farmPlanList = data.records |
| | | }) |