46444bd0
RuoYi
RuoYi-Vue 1.0
|
1
2
3
4
|
import Vue from 'vue'
import Cookies from 'js-cookie'
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import Element from 'element-ui'
import './assets/styles/element-variables.scss'
import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css
import App from './App'
import store from './store'
import router from './router'
import permission from './directive/permission'
import './assets/icons' // icon
import './permission' // permission control
import { getDicts } from "@/api/system/dict/data";
|
092ec983
YunaiV
将前端 config 从 syst...
|
18
|
import { getConfigKey } from "@/api/infra/config";
|
8cfb8265
YunaiV
代码预览的功能,完成
|
19
20
21
22
|
import {
parseTime,
resetForm,
addDateRange,
|
b8351f50
YunaiV
基本完成 index.vue.vm 模板
|
23
|
addBeginAndEndTime,
|
8cfb8265
YunaiV
代码预览的功能,完成
|
24
|
selectDictLabel,
|
8cfb8265
YunaiV
代码预览的功能,完成
|
25
26
27
|
download,
handleTree,
downloadExcel,
|
2fcb54b5
YunaiV
增加数据库文档的 html、wor...
|
28
29
30
31
|
downloadWord,
downloadZip,
downloadHtml,
downloadMarkdown,
|
8cfb8265
YunaiV
代码预览的功能,完成
|
32
|
} from "@/utils/ruoyi";
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
33
|
import Pagination from "@/components/Pagination";
|
ecfe7006
RuoYi
代码生成预览支持高亮显示
|
34
|
// 自定义表格工具扩展
|
74f52677
RuoYi
表格右侧工具栏组件
|
35
|
import RightToolbar from "@/components/RightToolbar"
|
ecfe7006
RuoYi
代码生成预览支持高亮显示
|
36
|
// 代码高亮插件
|
b04db3d6
YunaiV
升级 highlight 插件的版本
|
37
38
|
// import hljs from 'highlight.js'
// import 'highlight.js/styles/github-gist.css'
|
1768d27e
YunaiV
完善新操作日志的页面修改
|
39
|
import {DICT_TYPE, getDictDataLabel, getDictDatas} from "@/utils/dict";
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
40
41
42
43
|
// 全局方法挂载
Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
|
319dfc2d
RuoYi
修改函数命名防止冲突
|
44
|
Vue.prototype.parseTime = parseTime
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
45
46
|
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
|
b8351f50
YunaiV
基本完成 index.vue.vm 模板
|
47
|
Vue.prototype.addBeginAndEndTime = addBeginAndEndTime
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
48
|
Vue.prototype.selectDictLabel = selectDictLabel
|
1768d27e
YunaiV
完善新操作日志的页面修改
|
49
50
51
|
Vue.prototype.getDictDatas = getDictDatas
Vue.prototype.getDictDataLabel = getDictDataLabel
Vue.prototype.DICT_TYPE = DICT_TYPE
|
bcee37b8
RuoYi
若依 1.1
|
52
|
Vue.prototype.download = download
|
f942b34d
YunaiV
1. 完成用户导出的功能
|
53
|
Vue.prototype.downloadExcel = downloadExcel
|
2fcb54b5
YunaiV
增加数据库文档的 html、wor...
|
54
55
56
|
Vue.prototype.downloadWord = downloadWord
Vue.prototype.downloadHtml = downloadHtml
Vue.prototype.downloadMarkdown = downloadMarkdown
|
8cfb8265
YunaiV
代码预览的功能,完成
|
57
|
Vue.prototype.downloadZip = downloadZip
|
cb0a4b78
RuoYi
若依 2.1
|
58
|
Vue.prototype.handleTree = handleTree
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
Vue.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)
|
74f52677
RuoYi
表格右侧工具栏组件
|
74
|
Vue.component('RightToolbar', RightToolbar)
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
75
76
|
Vue.use(permission)
|
b04db3d6
YunaiV
升级 highlight 插件的版本
|
77
|
// Vue.use(hljs.vuePlugin);
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/**
* 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 = false
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
|