综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * @Author: ysh
  3. * @Date: 2024-01-03 09:23:11
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2024-06-05 09:39:10
  6. */
  7. import Vue from 'vue'
  8. import Cookies from 'js-cookie'
  9. import Element from 'element-ui'
  10. import './assets/styles/element-variables.scss'
  11. import '@/assets/styles/index.scss' // global css
  12. import '@/assets/styles/ruoyi.scss' // ruoyi css
  13. import App from './App'
  14. import store from './store'
  15. import router from './router'
  16. import directive from './directive' // directive
  17. import plugins from './plugins' // plugins
  18. import { download } from '@/utils/request'
  19. import './assets/icons' // icon
  20. import './permission' // permission control
  21. import { getDicts } from "@/api/system/dict/data";
  22. import { getConfigKey } from "@/api/system/config";
  23. import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels,
  24. handleTree, getUserName, getFileName, reviewWord,getDeptName } from "@/utils/ruoyi";
  25. // 标题组件
  26. import RowTitle from '@/components/RowTitle'
  27. // 分页组件
  28. import Pagination from "@/components/Pagination";
  29. // 自定义表格工具组件
  30. import RightToolbar from "@/components/RightToolbar"
  31. // 富文本组件
  32. import Editor from "@/components/Editor"
  33. // 文件上传组件
  34. import FileUpload from "@/components/FileUpload"
  35. // 图片上传组件
  36. import ImageUpload from "@/components/ImageUpload"
  37. // 图片预览组件
  38. import ImagePreview from "@/components/ImagePreview"
  39. // 字典标签组件
  40. import DictTag from '@/components/DictTag'
  41. // 头部标签组件
  42. import VueMeta from 'vue-meta'
  43. // 字典数据组件
  44. import DictData from '@/components/DictData'
  45. import Tinymce from '@/components/tinymce/index.vue'
  46. import publicData from '@/assets/datas/publicData'
  47. import Print from 'vue-print-nb'
  48. // 全局方法挂载
  49. Vue.prototype.getDicts = getDicts
  50. Vue.prototype.getConfigKey = getConfigKey
  51. Vue.prototype.parseTime = parseTime
  52. Vue.prototype.resetForm = resetForm
  53. Vue.prototype.addDateRange = addDateRange
  54. Vue.prototype.selectDictLabel = selectDictLabel
  55. Vue.prototype.selectDictLabels = selectDictLabels
  56. Vue.prototype.download = download
  57. Vue.prototype.handleTree = handleTree
  58. Vue.prototype.publicData = publicData
  59. Vue.prototype.getUserName = getUserName
  60. Vue.prototype.getDeptName = getDeptName
  61. Vue.prototype.getFileName = getFileName
  62. Vue.prototype.reviewWord = reviewWord
  63. // 全局组件挂载
  64. Vue.component('DictTag', DictTag)
  65. Vue.component('Pagination', Pagination)
  66. Vue.component('RightToolbar', RightToolbar)
  67. Vue.component('Editor', Editor)
  68. Vue.component('FileUpload', FileUpload)
  69. Vue.component('ImageUpload', ImageUpload)
  70. Vue.component('ImagePreview', ImagePreview)
  71. Vue.component('tinymce', Tinymce)
  72. Vue.component('RowTitle', RowTitle)
  73. Vue.use(directive)
  74. Vue.use(plugins)
  75. Vue.use(VueMeta)
  76. Vue.use(Print)
  77. DictData.install()
  78. /**
  79. * If you don't want to use mock-server
  80. * you want to use MockJs for mock api
  81. * you can execute: mockXHR()
  82. *
  83. * Currently MockJs will be used in the production environment,
  84. * please remove it before going online! ! !
  85. */
  86. Vue.use(Element, {
  87. size: Cookies.get('size') || 'medium' // set element-ui default size
  88. })
  89. Vue.config.productionTip = false
  90. new Vue({
  91. el: '#app',
  92. router,
  93. store,
  94. render: h => h(App)
  95. })