You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. import Vue from 'vue'
  2. import 'normalize.css/normalize.css'// A modern alternative to CSS resets
  3. import Element from 'element-ui'
  4. import 'element-ui/lib/theme-chalk/index.css'
  5. import 'element-ui/lib/theme-chalk/display.css';
  6. import '@/styles/index.scss' // global css
  7. import App from './App'
  8. import router from './router'
  9. import store from './store'
  10. import i18n from './lang' // Internationalization
  11. import './icons' // icon
  12. import './errorLog'// error log
  13. import './permission' // permission control
  14. //import './mock' // simulation data
  15. import * as echarts from 'echarts'
  16. import * as filters from './filters' // global filters
  17. import Print from 'vue-print-nb'
  18. import VueQriously from 'vue-qriously'
  19. Vue.use(VueQriously)
  20. import DateRange from '@/components/dateRange/index'
  21. Vue.prototype.$echarts = echarts
  22. Vue.use(Print); //注册
  23. Vue.component('date-range',DateRange)
  24. Vue.use(Element, {
  25. size: 'small', // set element-ui default size
  26. i18n: (key, value) => i18n.t(key, value)
  27. })
  28. // register global utility filters.
  29. Object.keys(filters).forEach(key => {
  30. Vue.filter(key, filters[key])
  31. })
  32. Vue.config.productionTip = false
  33. new Vue({
  34. el: '#app',
  35. router,
  36. store,
  37. i18n,
  38. template: '<App/>',
  39. components: { App }
  40. })