main.js 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import Vue from 'vue'
  2. import 'normalize.css/normalize.css'// A modern alternative to CSS resets
  3. import ElementUI from 'element-ui'
  4. import 'element-ui/lib/theme-chalk/index.css'
  5. import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
  6. import VCharts from 'v-charts'
  7. import '@/styles/index.scss' // global css
  8. import App from './App'
  9. import router from './router'
  10. import store from './store'
  11. import '@/icons' // icon
  12. import '@/permission' // permission control
  13. import { download } from '@/utils/request'
  14. // 导出Excel函数
  15. import { exportExcel } from "@/utils/exportexcel";
  16. Vue.prototype.exportExcel = exportExcel;
  17. Vue.prototype.download = download
  18. //下载资源文件
  19. import { downloadExcel } from '@/utils/downloadExcel'
  20. Vue.prototype.downloadExcel = downloadExcel
  21. Vue.use(ElementUI, { locale })
  22. Vue.use(VCharts)
  23. Vue.config.productionTip = false
  24. new Vue({
  25. el: '#app',
  26. router,
  27. store,
  28. template: '<App/>',
  29. components: { App }
  30. })