Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
aee1e531
Commit
aee1e531
authored
Jun 22, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全局挂载字典标签组件
parent
253e2b2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
main.js
ruoyi-ui/src/main.js
+5
-2
data.vue
ruoyi-ui/src/views/system/dict/data.vue
+0
-5
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";
...
@@ -18,9 +18,11 @@ import { getDicts } from "@/api/system/dict/data";
import
{
getConfigKey
}
from
"@/api/system/config"
;
import
{
getConfigKey
}
from
"@/api/system/config"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/ruoyi"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/ruoyi"
;
import
Pagination
from
"@/components/Pagination"
;
import
Pagination
from
"@/components/Pagination"
;
// 自定义表格工具
扩展
// 自定义表格工具
组件
import
RightToolbar
from
"@/components/RightToolbar"
import
RightToolbar
from
"@/components/RightToolbar"
// 头部标签插件
// 字典标签组件
import
DictTag
from
'@/components/DictTag'
// 头部标签组件
import
VueMeta
from
'vue-meta'
import
VueMeta
from
'vue-meta'
// 全局方法挂载
// 全局方法挂载
...
@@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) {
...
@@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) {
}
}
// 全局组件挂载
// 全局组件挂载
Vue
.
component
(
'DictTag'
,
DictTag
)
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
...
...
ruoyi-ui/src/views/system/dict/data.vue
View file @
aee1e531
...
@@ -185,14 +185,9 @@
...
@@ -185,14 +185,9 @@
<
script
>
<
script
>
import
{
listData
,
getData
,
delData
,
addData
,
updateData
,
exportData
}
from
"@/api/system/dict/data"
;
import
{
listData
,
getData
,
delData
,
addData
,
updateData
,
exportData
}
from
"@/api/system/dict/data"
;
import
{
listType
,
getType
}
from
"@/api/system/dict/type"
;
import
{
listType
,
getType
}
from
"@/api/system/dict/type"
;
// 字典标签组件(使用频繁可在全局挂载)
import
DictTag
from
'@/components/DictTag'
export
default
{
export
default
{
name
:
"Data"
,
name
:
"Data"
,
components
:
{
DictTag
},
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
ruoyi-ui/src/views/system/dict/index.vue
View file @
aee1e531
...
@@ -194,14 +194,9 @@
...
@@ -194,14 +194,9 @@
<
script
>
<
script
>
import
{
listType
,
getType
,
delType
,
addType
,
updateType
,
exportType
,
refreshCache
}
from
"@/api/system/dict/type"
;
import
{
listType
,
getType
,
delType
,
addType
,
updateType
,
exportType
,
refreshCache
}
from
"@/api/system/dict/type"
;
// 字典标签组件(使用频繁可在全局挂载)
import
DictTag
from
'@/components/DictTag'
export
default
{
export
default
{
name
:
"Dict"
,
name
:
"Dict"
,
components
:
{
DictTag
},
data
()
{
data
()
{
return
{
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