|
|
@ -19,14 +19,15 @@ import './permission' // permission control |
|
|
import echarts from 'echarts' |
|
|
import echarts from 'echarts' |
|
|
import 'echarts/map/js/china.js' |
|
|
import 'echarts/map/js/china.js' |
|
|
import * as filters from './filters' // global filters
|
|
|
import * as filters from './filters' // global filters
|
|
|
|
|
|
import Print from 'vue-print-nb' |
|
|
|
|
|
|
|
|
Vue.prototype.$echarts = echarts |
|
|
Vue.prototype.$echarts = echarts |
|
|
|
|
|
Vue.use(Print); //注册
|
|
|
Vue.use(Element, { |
|
|
Vue.use(Element, { |
|
|
size: 'small', // set element-ui default size
|
|
|
size: 'small', // set element-ui default size
|
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// register global utility filters.
|
|
|
// register global utility filters.
|
|
|
Object.keys(filters).forEach(key => { |
|
|
Object.keys(filters).forEach(key => { |
|
|
Vue.filter(key, filters[key]) |
|
|
Vue.filter(key, filters[key]) |
|
|
|