<template>
  <elFrame :src="reportUrl+datas" />
</template>
<script>
import { mapGetters } from 'vuex'
import elFrame from '@/components/Iframe/index'
import { getJiMuReportId, selectData } from '@/api/report'
import {queryAreaList} from "@/api/area";
export default {
  name: 'ExcelDaoChu2',
  components: { elFrame },
  computed: {
    ...mapGetters([
      'reportUrl'
    ])
  },
  created() {
    var name = this.$route.query.tableID
    var parm = this.$route.query.parm
    getJiMuReportId(name).then(res=>{
     this.datas = '/jmreport/view/'+res+"?"+parm;
    })
    console.log(this.excelId)
  },
  data() {
    return {
      excelId: null,
      datas:null,
      code: null,
      permission: {
        add: ['admin', 'agvScene:add'],
        edit: ['admin', 'agvScene:edit'],
        del: ['admin', 'agvScene:del']
      },
    }
  }

}
</script>
