| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | import Vue from 'vue'import 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 directive from './directive' // directiveimport plugins from './plugins' // pluginsimport './assets/icons' // iconimport './permission' // permission controlimport './tongji' // 百度统计import { getDicts } from "@/api/system/dict/data";import { getConfigKey } from "@/api/infra/config";import { parseTime, resetForm, handleTree, addBeginAndEndTime, divide} from "@/utils/ruoyi";import Pagination from "@/components/Pagination";// 自定义表格工具扩展import RightToolbar from "@/components/RightToolbar"// 代码高亮插件// import hljs from 'highlight.js'// import 'highlight.js/styles/github-gist.css'import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from "@/utils/dict";// 全局方法挂载Vue.prototype.getDicts = getDictsVue.prototype.getConfigKey = getConfigKeyVue.prototype.parseTime = parseTimeVue.prototype.resetForm = resetFormVue.prototype.getDictDatas = getDictDatasVue.prototype.getDictDatas2 = getDictDatas2Vue.prototype.getDictDataLabel = getDictDataLabelVue.prototype.DICT_TYPE = DICT_TYPEVue.prototype.handleTree = handleTreeVue.prototype.addBeginAndEndTime = addBeginAndEndTimeVue.prototype.divide = divide// 全局组件挂载Vue.component('DictTag', DictTag)Vue.component('DocAlert', DocAlert)Vue.component('Pagination', Pagination)Vue.component('RightToolbar', RightToolbar)// 字典标签组件import DictTag from '@/components/DictTag'import DocAlert from '@/components/DocAlert'// 头部标签插件import VueMeta from 'vue-meta'Vue.use(directive)Vue.use(plugins)Vue.use(VueMeta)// Vue.use(hljs.vuePlugin);// bpmnProcessDesigner 需要引入import MyPD from "@/components/bpmnProcessDesigner/package/index.js";Vue.use(MyPD);import "@/components/bpmnProcessDesigner/package/theme/index.scss";import "bpmn-js/dist/assets/diagram-js.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";// Form Generator 组件需要使用到 tinymceimport Tinymce from '@/components/tinymce/index.vue'Vue.component('tinymce', Tinymce)import '@/assets/icons'import request from "@/utils/request" // 实现 form generator 使用自己定义的 axios request 对象console.log(request)Vue.prototype.$axios = requestimport '@/styles/index.scss'// 默认点击背景不关闭弹窗import ElementUI from 'element-ui'ElementUI.Dialog.props.closeOnClickModal.default = false/** * 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: localStorage.getItem("size") || "medium", // set element-ui default size});Vue.config.productionTip = falsenew Vue({  el: '#app',  router,  store,  render: h => h(App)})
 |