| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import store from './store'
- import Element from 'element-ui'
- import GlobalPlugin from './common/plugins'
- import { download } from '@/utils/request'
- import '@/assets/style/index.scss'
- import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from '@/utils/ruoyi'
- import './router/permission'
- // 自定义表格工具组件
- import RightToolbar from '@/components/RightToolbar'
- // 字典标签组件
- // 字典标签组件
- import DictTag from '@/components/DictTag'
- import Pagination from '@/components/Pagination/index'
- import { getDicts } from '@/network/api/system/dict/data'
- import has from '@/common/directive/permission/'
- import { hasPerm } from '@/common/utils/has-permission'
- // 全局方法挂载
- Vue.prototype.getDicts = getDicts
- Vue.prototype.parseTime = parseTime
- Vue.prototype.resetForm = resetForm
- Vue.prototype.addDateRange = addDateRange
- Vue.prototype.selectDictLabel = selectDictLabel
- Vue.prototype.selectDictLabels = selectDictLabels
- Vue.prototype.handleTree = handleTree
- Vue.config.productionTip = false
- Vue.prototype.download = download
- Vue.component('Paginations', Pagination)
- Vue.component('RightToolbar', RightToolbar)
- Vue.component('DictTag', DictTag)
- Vue.directive('has', has)
- Vue.prototype.hasPerm = hasPerm
- Vue.use(Element, { size: 'medium' })
- // 全局方法挂载
- Vue.use(GlobalPlugin)
- new Vue({
- router,
- store,
- render: h => h(App)
- }).$mount('#app')
|