| | |
| | | //表单验证 |
| | | import { rules } from '@/utils/rules' |
| | | import * as echarts from 'echarts' |
| | | import qs from 'qs' |
| | | import VCalendar from 'v-calendar'; // 引入日历插件 |
| | | import ElementUI from 'element-ui'; |
| | | import 'element-ui/lib/theme-chalk/index.css'; |
| | | // 将自动注册所有组件为全局组件 |
| | | import dataV from '@jiaminghi/data-view' |
| | | Vue.use(dataV) |
| | | |
| | | Vue.use(VCalendar, { |
| | | componentPrefix: 'vc', |
| | | }); |
| | | import VueDragResize from "vue-drag-resize" |
| | | Vue.component('vue-drag-resize', VueDragResize) |
| | | |
| | | // import 'echarts-liquidfill' |
| | | Vue.prototype.$echarts = echarts |
| | | Vue.prototype.$qs = qs |
| | | Vue.prototype.rules = rules |
| | | Vue.config.productionTip = false |
| | | Vue.use(Storage, config.storageOptions) |
| | | Vue.use(Antd) |
| | | Vue.use(VueAxios, router) |
| | | Vue.use(Viser) |
| | | Vue.use(hasPermission) |
| | | Vue.use(JDictSelectTag) |
| | | Vue.use(Print) |
| | | Vue.use(ElementUI); |
| | | Vue.use(Antd) |
| | | Vue.use(preview) |
| | | Vue.use(vueBus); |
| | | Vue.use(JeecgComponents); |
| | |
| | | new Vue({ |
| | | router, |
| | | store, |
| | | beforeCreate() { |
| | | Vue.prototype.$bus = new Vue() |
| | | }, |
| | | mounted () { |
| | | store.commit('SET_SIDEBAR_TYPE', Vue.ls.get(SIDEBAR_TYPE, true)) |
| | | store.commit('TOGGLE_THEME', Vue.ls.get(DEFAULT_THEME, config.navTheme)) |