智慧农业后台管理页面
guoshilong
2022-08-03 03d742bc80f16315eb11d2215bd9253129449917
首页调用接口替换
2 files modified
15 ■■■■ changed files
src/api/farmplant/farmplant.js 11 ●●●●● patch | view | raw | blame | history
src/views/wel/index.vue 4 ●●●● patch | view | raw | blame | history
src/api/farmplant/farmplant.js
@@ -11,6 +11,17 @@
        }
    })
}
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',
src/views/wel/index.vue
@@ -181,7 +181,7 @@
<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"
@@ -309,7 +309,7 @@
            }
            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
            })