| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | import Vue from 'vue'import Cookies from 'js-cookie'import 'normalize.css/normalize.css' // a modern alternative to CSS resetsimport Element from 'element-ui'import './assets/styles/element-variables.scss'import '@/assets/styles/index.scss' // global cssimport '@/assets/styles/ruoyi.scss' // ruoyi cssimport App from './App'import store from './store'import router from './router'import permission from './directive/permission'import './assets/icons' // iconimport './permission' // permission controlimport { getDicts } from "@/api/system/dict/data";import { getConfigKey } from "@/api/system/config";import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";import Pagination from "@/components/Pagination";//自定义表格工具扩展import RightToolbar from "@/components/RightToolbar"// 全局方法挂载Vue.prototype.getDicts = getDictsVue.prototype.getConfigKey = getConfigKeyVue.prototype.parseTime = parseTimeVue.prototype.resetForm = resetFormVue.prototype.addDateRange = addDateRangeVue.prototype.selectDictLabel = selectDictLabelVue.prototype.selectDictLabels = selectDictLabelsVue.prototype.download = downloadVue.prototype.handleTree = handleTreeVue.prototype.msgSuccess = function (msg) {  this.$message({ showClose: true, message: msg, type: "success" });}Vue.prototype.msgError = function (msg) {  this.$message({ showClose: true, message: msg, type: "error" });}Vue.prototype.msgInfo = function (msg) {  this.$message.info(msg);}// 全局组件挂载Vue.component('Pagination', Pagination)Vue.component('RightToolbar', RightToolbar)Vue.use(permission)/** * If you don't want to use mock-server * you want to use MockJs for mock api * you can execute: mockXHR() * * Currently MockJs will be used in the production environment, * please remove it before going online! ! ! */Vue.use(Element, {  size: Cookies.get('size') || 'medium' // set element-ui default size})Vue.config.productionTip = falsenew Vue({  el: '#app',  router,  store,  render: h => h(App)})
 |