智慧农业后台管理页面
guoshilong
2022-11-08 082613d446e29e4ec1c16bfaa52345106a498b23
农事操作隐藏后四个,地图模式2d改为3d
3 files modified
13 ■■■■ changed files
src/components/map/plotMap.vue 2 ●●● patch | view | raw | blame | history
src/views/mapPattern/index.vue 5 ●●●●● patch | view | raw | blame | history
src/views/wel/farming.vue 6 ●●●●● patch | view | raw | blame | history
src/components/map/plotMap.vue
@@ -51,7 +51,6 @@
                        preserveDrawingBuffer: true
                    }
                },
                sceneMode: 2
            })
            farmRegionLayer = new global.DC.VectorLayer('farmRegionLayer')
@@ -445,6 +444,7 @@
            // 根据坐标画线
            const positions = this.setPositionByLandRange(landObj.landRange)
          console.log(positions,123455555)
            if (positions) {
                this.drawLandPolyLine(positions)
            }
src/views/mapPattern/index.vue
@@ -278,6 +278,7 @@
        },
        //获取地块列表
        getLandList (page, params = {}) {
          const that = this
            params['farmId'] = this.$farmId
            params['tenantId'] = this.userInfo.tenant_id
            this.loading = true
@@ -298,7 +299,7 @@
                        arr.forEach(it => {
                            brr.push(it.split(' '))
                        })
                        this.$refs.plotMap.addPlotPolygon(brr, item)
                      that.$refs.plotMap.addPlotPolygon(brr, item)
                    }
                })
@@ -335,13 +336,13 @@
        // 地块定位
        setCenter (item) {
            console.log(item)
            this.$refs.plotMap.setPlotCenter(item)
        },
        plotDetailsPopupShow (params) {
            this.currentPlotDetails = params
            this.currentPlotName = params.landName
            let arr = []
            this.farmPlantList.forEach((item, index) => {
src/views/wel/farming.vue
@@ -47,6 +47,12 @@
            type: "select",
            labelWidth: 110,
            dicUrl: "/api/blade-system/dict-biz/dictionary?code=farmingType",
            dicFormatter:(res)=>{
              let typeList = res.data.filter(e=>{
                return e.dictKey<10
              })
              return typeList
            },
            props: {
              label: "dictValue",
              value: "dictKey",