Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
aee1e531
Commit
aee1e531
authored
Jun 22, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全局挂载字典标签组件
parent
253e2b2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
ruoyi-ui/src/main.js
ruoyi-ui/src/main.js
+5
-2
ruoyi-ui/src/views/system/dict/data.vue
ruoyi-ui/src/views/system/dict/data.vue
+0
-5
ruoyi-ui/src/views/system/dict/index.vue
ruoyi-ui/src/views/system/dict/index.vue
+0
-5
No files found.
ruoyi-ui/src/main.js
View file @
aee1e531
...
...
@@ -18,9 +18,11 @@ import { 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
"
// 头部标签插件
// 字典标签组件
import
DictTag
from
'
@/components/DictTag
'
// 头部标签组件
import
VueMeta
from
'
vue-meta
'
// 全局方法挂载
...
...
@@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) {
}
// 全局组件挂载
Vue
.
component
(
'
DictTag
'
,
DictTag
)
Vue
.
component
(
'
Pagination
'
,
Pagination
)
Vue
.
component
(
'
RightToolbar
'
,
RightToolbar
)
...
...
ruoyi-ui/src/views/system/dict/data.vue
View file @
aee1e531
...
...
@@ -185,14 +185,9 @@
<
script
>
import
{
listData
,
getData
,
delData
,
addData
,
updateData
,
exportData
}
from
"
@/api/system/dict/data
"
;
import
{
listType
,
getType
}
from
"
@/api/system/dict/type
"
;
// 字典标签组件(使用频繁可在全局挂载)
import
DictTag
from
'
@/components/DictTag
'
export
default
{
name
:
"
Data
"
,
components
:
{
DictTag
},
data
()
{
return
{
// 遮罩层
...
...
ruoyi-ui/src/views/system/dict/index.vue
View file @
aee1e531
...
...
@@ -194,14 +194,9 @@
<
script
>
import
{
listType
,
getType
,
delType
,
addType
,
updateType
,
exportType
,
refreshCache
}
from
"
@/api/system/dict/type
"
;
// 字典标签组件(使用频繁可在全局挂载)
import
DictTag
from
'
@/components/DictTag
'
export
default
{
name
:
"
Dict
"
,
components
:
{
DictTag
},
data
()
{
return
{
// 遮罩层
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment