智慧农业大数据平台
guoshilong
2022-09-01 20825b86d339242b8f9d2f6b80805e6ae63f0c68
首页跳转农场数据不变,溯源码折线图鼠标移上显示数据
2 files modified
15 ■■■■ changed files
src/views/home/index.vue 9 ●●●● patch | view | raw | blame | history
src/views/manage/index.vue 6 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue
@@ -951,7 +951,7 @@
        setCenter (item) {
            this.ncListShow = false
            this.farmId = item.id
            // this.farmId = item.id
            this.AllDataUpdate()
            this.$refs.modalForm.setCenter(item.farmName)
        },
@@ -974,7 +974,12 @@
                    })
                    this.$refs.modalForm.addPolygon(brr, item)
                })
                this.farmNumArray = res.data.data
                // this.farmNumArray.unshift({
                //     id:"",
                //     farmName:"全农场"
                // })
            })
        },
@@ -1329,7 +1334,7 @@
            }
            params.tenantId = '000000'
            params.farmId = this.farmId
            pagePalnt(1, 10, Object.assign(params)).then((res) => {
            pagePalnt(1, 10000, Object.assign(params)).then((res) => {
                const data = res.data.data
                that.num = data.num
                this.farmPlanList = data.page
src/views/manage/index.vue
@@ -1352,6 +1352,12 @@
                    bottom: "0%",
                    containLabel: true,
                },
                tooltip: {
                    trigger: "axis",
                    axisPointer: {
                        type: "shadow",
                    },
                },
                xAxis: {
                    type: "category",
                    boundaryGap: false,