提交 | 用户 | age
|
2a61f6
|
1 |
import Vue from 'vue' |
L |
2 |
import Element from 'element-ui' |
|
3 |
import App from './App' |
|
4 |
import store from './store' |
|
5 |
import router from './router' |
|
6 |
import filter from './filter' |
|
7 |
import g_fn_install from './utils/g_fn_install' // 挂载全局方法 |
|
8 |
import http_install from './utils/http_install' // 引入全局http请求 安装文件 |
|
9 |
|
|
10 |
import 'normalize.css/normalize.css' // A modern alternative to CSS resets |
|
11 |
import './styles/element-variables.scss' |
|
12 |
import 'element-ui/lib/theme-chalk/index.css' |
|
13 |
import '@/styles/index.scss' // global css |
|
14 |
import '@/styles/ry.scss' // ruoyi css |
|
15 |
import '@/styles/style.css' // global css |
|
16 |
import '@/styles/common.scss' // global common css |
|
17 |
import '@/icons' // icon |
|
18 |
import '@/permission' // permission control |
|
19 |
// 分页 |
|
20 |
import Pagination from '@/components/Pagination' |
|
21 |
// 自定义表格工具扩展 |
|
22 |
import RightToolbar from '@/components/RightToolbar' |
36b711
|
23 |
// 拖拽弹窗 |
L |
24 |
import drag from './directive/el-drag-dialog/drag' |
2a61f6
|
25 |
|
L |
26 |
// 过滤器统一处理加载 |
|
27 |
Object.keys(filter).forEach(key => { |
|
28 |
Vue.filter(key, filter[key]) |
|
29 |
}) |
|
30 |
|
|
31 |
Vue.use(Element) |
|
32 |
Vue.use(g_fn_install)// 安装全局方法 |
|
33 |
Vue.use(http_install) // 安装全局请求文件 |
|
34 |
|
|
35 |
// 全局组件挂载 |
|
36 |
Vue.component('Pagination', Pagination) |
|
37 |
Vue.component('RightToolbar', RightToolbar) |
|
38 |
|
|
39 |
Vue.prototype.$messageSuc = function(msg) { |
|
40 |
this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'success' }) |
|
41 |
} |
|
42 |
Vue.prototype.$messagewarn = function(msg) { |
|
43 |
this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'warning' }) |
|
44 |
} |
|
45 |
Vue.prototype.$messageError = function(msg) { |
|
46 |
this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'error' }) |
|
47 |
} |
|
48 |
|
36b711
|
49 |
Vue.directive('el-drag-dialog', drag) |
L |
50 |
|
2a61f6
|
51 |
Vue.config.productionTip = false |
L |
52 |
|
|
53 |
new Vue({ |
|
54 |
el: '#app', |
|
55 |
router, |
|
56 |
store, |
|
57 |
render: h => h(App) |
|
58 |
}) |