智慧农业后台管理页面
guoshilong
2022-08-29 28160ea1bbc94bd69b3b07f3abdc5e9950c49c0b
地图模式面积显示保留三位小数
3 files modified
11 ■■■■ changed files
src/views/farm/stockUseInfo.vue 2 ●●●●● patch | view | raw | blame | history
src/views/land/LandDetail.vue 4 ●●●● patch | view | raw | blame | history
src/views/mapPattern/index.vue 5 ●●●● patch | view | raw | blame | history
src/views/farm/stockUseInfo.vue
@@ -211,13 +211,11 @@
            this.onLoad(this.page, this.query)
        },
        onLoad (page, params = {}) {
            console.log(params)
            this.loading = true
            var datas = this.$route.query.id
            params.landId = datas
            params['tenantId'] = this.userInfo.tenant_id
            params['farmId'] = this.$farmId
            console.log(params)
            if (this.landId) {
                params['landId'] = this.landId
            }
src/views/land/LandDetail.vue
@@ -230,8 +230,8 @@
                this.landUnit = this.$route.query.landUnit
                // this.form = res.data.data;
                this.usePolygons = this.$route.query.landRange
                    .split("POLYGON((")[1]
                    .split("))")[0]
                    // .split("POLYGON((")[1]
                    // .split("))")[0]
                    .split(",")
            }
        }
src/views/mapPattern/index.vue
@@ -255,8 +255,11 @@
                    }
                })
                this.plotPlantBreed = arr
                arr.forEach((e)=>{
                    e.area = e.area.toFixed(3)
                })
                this.plotPlantBreed = arr
                this.loading = false