| | |
| | | ></statistics-num> |
| | | <statistics-num |
| | | :className="'lt'" |
| | | :totalRegion="2678" |
| | | :totalRegion="salaNumBN" |
| | | :imgUrl="'/img/icon/lt.png'" |
| | | :unit="'公斤'" |
| | | :title="'市场流通量'" |
| | | :subOneTitle="'去年流通量'" |
| | | :subOneNum="5280" |
| | | :subOneNum="salaNumQN" |
| | | :subTwoTitle="'本月流通量'" |
| | | :subTwoNum="0" |
| | | :subTwoNum="salaNumBY" |
| | | ></statistics-num> |
| | | </div> |
| | | <div class="c"> |
| | |
| | | <script> |
| | | import { selectXCount } from '@/api/land/land' |
| | | // eslint-disable-next-line no-unused-vars |
| | | import { page, getStockCount, pagePalnt, statisticsStockAndYield, pageCount,pageCountNz } from '@/api/farm/farmingrecord' |
| | | import { page, getStockCount, pagePalnt, statisticsStockAndYield, pageCount, pageCountNz, selectMarketCirculate} from '@/api/farm/farmingrecord' |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | // 农产品投入 |
| | | ncptr: [], |
| | | nztr: [], |
| | | // 统计市场流通/去年流通量/本月流通量 |
| | | salaNumBN: [], |
| | | salaNumBY: [], |
| | | salaNumQN: [], |
| | | nzOrNcp: 'ncp', |
| | | trpOrNcp: 'trp' |
| | | } |
| | |
| | | this.pageCount() |
| | | // 农资投入 |
| | | this.pageCountNz() |
| | | // 统计市场流通/去年流通量/本月流通量 |
| | | this.selectMarketCirculate() |
| | | }, |
| | | mounted () { |
| | | this.initBar('TaskNumEcharts') |
| | |
| | | // 投入品监管图表 |
| | | this.initTrpBar('TrpEcharts') |
| | | }) |
| | | }, |
| | | // 统计市场流通/去年流通量/本月流通量 |
| | | selectMarketCirculate () { |
| | | var params = {} |
| | | params.codes = '000000' |
| | | params.deptId = '1123598813738675201' |
| | | params.year = '2022' |
| | | selectMarketCirculate(Object.assign(params)).then((res) => { |
| | | this.salaNumBN = res.data.data[0].num |
| | | this.salaNumQN = res.data.data[1].num |
| | | this.salaNumBY = res.data.data[2].num |
| | | }) |
| | | } |
| | | } |
| | | } |