|  | @@ -3,23 +3,22 @@
 | 
	
		
			
				|  |  |      <histogram
 | 
	
		
			
				|  |  |          style="position: absolute; left: 20px; top: 98px"
 | 
	
		
			
				|  |  |          class="animated fadeInLeft"
 | 
	
		
			
				|  |  | -        total='1700'
 | 
	
		
			
				|  |  | +        :total=goodsStatisticsTotal
 | 
	
		
			
				|  |  |          :barHeight="'234px'"
 | 
	
		
			
				|  |  | -        title="各区域移栽产量分析"
 | 
	
		
			
				|  |  | -        :area="Transplantarea"
 | 
	
		
			
				|  |  | -        :dataArray="TransplantdataArray"
 | 
	
		
			
				|  |  | +        :area="goodsStatisticsArea"
 | 
	
		
			
				|  |  | +        :dataArray="goodsStatisticsArray"
 | 
	
		
			
				|  |  |      />
 | 
	
		
			
				|  |  |      <cake
 | 
	
		
			
				|  |  | -        id="`订单统计分析`"
 | 
	
		
			
				|  |  | +        id="历史平台交易类型分布"
 | 
	
		
			
				|  |  |          style="position: absolute; top: 344px; left: 20px"
 | 
	
		
			
				|  |  | -        title="订单统计分析"
 | 
	
		
			
				|  |  | -        :data="statisticsData"
 | 
	
		
			
				|  |  | +        title="历史平台交易类型分布"
 | 
	
		
			
				|  |  | +        :data="tradeTypeDateList"
 | 
	
		
			
				|  |  |          class="animated fadeInLeft"
 | 
	
		
			
				|  |  |      />
 | 
	
		
			
				|  |  |      <slotCake
 | 
	
		
			
				|  |  | -        id="`历史平台交易统计分析`"
 | 
	
		
			
				|  |  | +        id="历史平台交易金额类型分布"
 | 
	
		
			
				|  |  |          style="position: absolute; top: 608px; left: 20px"
 | 
	
		
			
				|  |  | -        title="历史平台交易统计分析"
 | 
	
		
			
				|  |  | +        title="历史平台交易金额类型分布"
 | 
	
		
			
				|  |  |          :data="statisticsData"
 | 
	
		
			
				|  |  |          class="animated fadeInLeft"
 | 
	
		
			
				|  |  |      />
 | 
	
	
		
			
				|  | @@ -28,8 +27,7 @@
 | 
	
		
			
				|  |  |          class="animated fadeInLeft"
 | 
	
		
			
				|  |  |          id="订单商品类型排名"
 | 
	
		
			
				|  |  |          title="订单商品类型排名"
 | 
	
		
			
				|  |  | -        :area="HorizontalArea"
 | 
	
		
			
				|  |  | -        :dataArray="HorizontalArray"
 | 
	
		
			
				|  |  | +        :data="tradeTypeRankData"
 | 
	
		
			
				|  |  |      />
 | 
	
		
			
				|  |  |      <statisticsPanel
 | 
	
		
			
				|  |  |          class="animated zoomIn"
 | 
	
	
		
			
				|  | @@ -40,7 +38,6 @@
 | 
	
		
			
				|  |  |          transform: translate(-50%, 150%);
 | 
	
		
			
				|  |  |        "/>
 | 
	
		
			
				|  |  |      <threeMap
 | 
	
		
			
				|  |  | -        @toView="toView"
 | 
	
		
			
				|  |  |          class="animated zoomIn"
 | 
	
		
			
				|  |  |          style="
 | 
	
		
			
				|  |  |          position: absolute;
 | 
	
	
		
			
				|  | @@ -132,24 +129,15 @@ export default {
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        max: 100,
 | 
	
		
			
				|  |  |        autoVueFnInit: false,
 | 
	
		
			
				|  |  | -      statisticsData: {
 | 
	
		
			
				|  |  | -        title: `目标完成率`,
 | 
	
		
			
				|  |  | -        value: 0,
 | 
	
		
			
				|  |  | -        acrossList: [
 | 
	
		
			
				|  |  | -          {name: `年移栽数量`, value: undefined},
 | 
	
		
			
				|  |  | -          {name: `年移栽面积`, value: undefined},
 | 
	
		
			
				|  |  | -        ],
 | 
	
		
			
				|  |  | -        verticalList: [
 | 
	
		
			
				|  |  | -          {name: `移栽区域数`, value: undefined},
 | 
	
		
			
				|  |  | -          {name: `烟农数量`, value: undefined},
 | 
	
		
			
				|  |  | -        ],
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | +      statisticsData: [],
 | 
	
		
			
				|  |  | +      tradeTypeDateList: [],
 | 
	
		
			
				|  |  |        yearName: {
 | 
	
		
			
				|  |  |          lastName: `去年`,
 | 
	
		
			
				|  |  |          thisName: `今年`,
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      TransplantdataArray: [],
 | 
	
		
			
				|  |  | -      Transplantarea: [],
 | 
	
		
			
				|  |  | +      goodsStatisticsArray: [],
 | 
	
		
			
				|  |  | +      goodsStatisticsArea: [],
 | 
	
		
			
				|  |  | +      goodsStatisticsTotal: null,
 | 
	
		
			
				|  |  |        Weatherarea: [],
 | 
	
		
			
				|  |  |        WeatherdataArray: {
 | 
	
		
			
				|  |  |          temperature: [],
 | 
	
	
		
			
				|  | @@ -165,11 +153,7 @@ export default {
 | 
	
		
			
				|  |  |          LastYear: [],
 | 
	
		
			
				|  |  |          thisYear: [],
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      HorizontalArea: [],
 | 
	
		
			
				|  |  | -      HorizontalArray: {
 | 
	
		
			
				|  |  | -        Done: [],
 | 
	
		
			
				|  |  | -        Percentage: [],
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | +      tradeTypeRankData: [],
 | 
	
		
			
				|  |  |        getJson: {},
 | 
	
		
			
				|  |  |        isGetData: false,
 | 
	
		
			
				|  |  |        isWeather: false,
 | 
	
	
		
			
				|  | @@ -183,81 +167,82 @@ export default {
 | 
	
		
			
				|  |  |    computed: {},
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  |      this.getJSON()
 | 
	
		
			
				|  |  | -    // this.$util.autoVueFn(
 | 
	
		
			
				|  |  | -    //   [
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getWeatherForecast,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getAnalysisOfTransplantYieldInVariousRegions,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getTransplantAreaInEachRegion,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getAnalysisOfTransplantingSituation,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getStatistics,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     {
 | 
	
		
			
				|  |  | -    //       time: 1000 * 60,
 | 
	
		
			
				|  |  | -    //       fn: this.getTrendAnalysis,
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //   ],
 | 
	
		
			
				|  |  | -    //   {
 | 
	
		
			
				|  |  | -    //     vm: this,
 | 
	
		
			
				|  |  | -    //     batEnd() {
 | 
	
		
			
				|  |  | -    //       this.autoVueFnInit = true
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //   }
 | 
	
		
			
				|  |  | -    // )
 | 
	
		
			
				|  |  | +    this.$util.autoVueFn(
 | 
	
		
			
				|  |  | +        [
 | 
	
		
			
				|  |  | +          //   {
 | 
	
		
			
				|  |  | +          //     time: 1000 * 60,
 | 
	
		
			
				|  |  | +          //     fn: this.getWeatherForecast,
 | 
	
		
			
				|  |  | +          //   },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            time: 1000 * 300,
 | 
	
		
			
				|  |  | +            fn: this.getGoodsStatistics,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            time: 1000 * 300,
 | 
	
		
			
				|  |  | +            fn: this.getTradeTypeDate,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            time: 1000 * 300,
 | 
	
		
			
				|  |  | +            fn: this.getStatistics,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          //   {
 | 
	
		
			
				|  |  | +          //     time: 1000 * 60,
 | 
	
		
			
				|  |  | +          //     fn: this.getTransplantAreaInEachRegion,
 | 
	
		
			
				|  |  | +          //   },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            time: 1000 * 360,
 | 
	
		
			
				|  |  | +            fn: this.getTradeTypeRankData,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          //   {
 | 
	
		
			
				|  |  | +          //     time: 1000 * 60,
 | 
	
		
			
				|  |  | +          //     fn: this.getTrendAnalysis,
 | 
	
		
			
				|  |  | +          //   },
 | 
	
		
			
				|  |  | +        ],
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +          vm: this,
 | 
	
		
			
				|  |  | +          batEnd() {
 | 
	
		
			
				|  |  | +            this.autoVueFnInit = true
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    )
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | -    async toView(code) {
 | 
	
		
			
				|  |  | -      console.log(code)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      const {id, 区域编码} = (await this.$util.code2base(this, code)) || {}
 | 
	
		
			
				|  |  | -      this.$router.push({
 | 
	
		
			
				|  |  | -        path: `/page3`,
 | 
	
		
			
				|  |  | -        query: {
 | 
	
		
			
				|  |  | -          id,
 | 
	
		
			
				|  |  | -          code: 区域编码,
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      tabChange(val) {
 | 
	
		
			
				|  |  |        if (val === 0) {
 | 
	
		
			
				|  |  |          this.$router.push(`/page1`)
 | 
	
		
			
				|  |  |        } else if (val === 1) {
 | 
	
		
			
				|  |  |          this.$router.push(`/page2`)
 | 
	
		
			
				|  |  | -      }else if (val === 2) {
 | 
	
		
			
				|  |  | +      } else if (val === 2) {
 | 
	
		
			
				|  |  |          this.$router.push(`/page3`)
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        console.log(`val`, val)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getAnalysisOfTransplantYieldInVariousRegions() {
 | 
	
		
			
				|  |  | +    getGoodsStatistics() {
 | 
	
		
			
				|  |  |        return this.$http
 | 
	
		
			
				|  |  | -          .get(`/api/analysisOfTransplantYieldInVariousRegions`)
 | 
	
		
			
				|  |  | +          .get(`/api/screen/swpt/goodsStatistics`)
 | 
	
		
			
				|  |  |            .then((res) => {
 | 
	
		
			
				|  |  |              const area = []
 | 
	
		
			
				|  |  |              const dataArray = []
 | 
	
		
			
				|  |  | -            res.forEach((element) => {
 | 
	
		
			
				|  |  | -              area.push(element.名称.slice(0, 2))
 | 
	
		
			
				|  |  | -              dataArray.push(element.值)
 | 
	
		
			
				|  |  | +            res.list.forEach((element) => {
 | 
	
		
			
				|  |  | +              area.push(element.label)
 | 
	
		
			
				|  |  | +              dataArray.push(element.value)
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | -            this.Transplantarea = area
 | 
	
		
			
				|  |  | -            this.TransplantdataArray = dataArray
 | 
	
		
			
				|  |  | +            this.goodsStatisticsArea = area
 | 
	
		
			
				|  |  | +            this.goodsStatisticsTotal = res.total
 | 
	
		
			
				|  |  | +            this.goodsStatisticsArray = dataArray
 | 
	
		
			
				|  |  |              this.isGetData = true
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    getTradeTypeDate() {
 | 
	
		
			
				|  |  | +      return this.$http
 | 
	
		
			
				|  |  | +          .get(`/api/screen/swpt/tradeType`)
 | 
	
		
			
				|  |  | +          .then((res) => {
 | 
	
		
			
				|  |  | +            this.tradeTypeDateList = res.list
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getWeatherForecast() {
 | 
	
		
			
				|  |  |        return this.$http
 | 
	
		
			
				|  |  |            .get(`/api/weatherForecast`, {
 | 
	
	
		
			
				|  | @@ -298,48 +283,15 @@ export default {
 | 
	
		
			
				|  |  |          this.isWavyLine = true
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getAnalysisOfTransplantingSituation() {
 | 
	
		
			
				|  |  | -      this.$http.get(`/api/analysisOfTransplantingSituation`).then((res) => {
 | 
	
		
			
				|  |  | -        const area = []
 | 
	
		
			
				|  |  | -        const dataArray = {
 | 
	
		
			
				|  |  | -          Done: [],
 | 
	
		
			
				|  |  | -          Percentage: [],
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        const date = res
 | 
	
		
			
				|  |  | -        date.forEach((element) => {
 | 
	
		
			
				|  |  | -          area.push(element.名称.slice(0, 2))
 | 
	
		
			
				|  |  | -          dataArray.Done.push(element.已移载)
 | 
	
		
			
				|  |  | -          dataArray.Percentage.push(element.比率.toFixed(0))
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        this.HorizontalArea = area
 | 
	
		
			
				|  |  | -        this.HorizontalArray = dataArray
 | 
	
		
			
				|  |  | -        this.isHorizontal = true
 | 
	
		
			
				|  |  | +    getTradeTypeRankData() {
 | 
	
		
			
				|  |  | +      this.$http.get(`/api/screen/swpt/tradeTypeRank`).then((res) => {
 | 
	
		
			
				|  |  | +        console.log(res)
 | 
	
		
			
				|  |  | +        this.tradeTypeRankData = res
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getStatistics() {
 | 
	
		
			
				|  |  | -      return this.$http.get(`/api/realTimeStatistics`).then((res) => {
 | 
	
		
			
				|  |  | -        const obj = this.statisticsData
 | 
	
		
			
				|  |  | -        // eslint-disable-next-line no-prototype-builtins
 | 
	
		
			
				|  |  | -        if (res.hasOwnProperty(obj.title)) {
 | 
	
		
			
				|  |  | -          obj.value = res[obj.title]
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        const list1 = this.statisticsData.acrossList
 | 
	
		
			
				|  |  | -        this.statisticsData.acrossList = list1.map((item) => {
 | 
	
		
			
				|  |  | -          // eslint-disable-next-line no-prototype-builtins
 | 
	
		
			
				|  |  | -          if (res.hasOwnProperty(item.name)) {
 | 
	
		
			
				|  |  | -            return {...item, value: res[item.name]}
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          return item
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        const list2 = this.statisticsData.verticalList
 | 
	
		
			
				|  |  | -        this.statisticsData.verticalList = list2.map((item) => {
 | 
	
		
			
				|  |  | -          // eslint-disable-next-line no-prototype-builtins
 | 
	
		
			
				|  |  | -          if (res.hasOwnProperty(item.name)) {
 | 
	
		
			
				|  |  | -            return {...item, value: res[item.name]}
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          return item
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        this.isCake = true
 | 
	
		
			
				|  |  | +      return this.$http.get(`/api/screen/swpt/tradeTypeAmount`).then((res) => {
 | 
	
		
			
				|  |  | +        this.statisticsData = res.list
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getTrendAnalysis() {
 |