Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
Project
Project
Details
Activity
Releases
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
张伯涛
NLT-e-cigarette
Commits
a8033d72
Commit
a8033d72
authored
Sep 09, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字典参数点击跳转权限
parent
25a03096
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
index.js
src/router/index.js
+1
-1
index.vue
src/views/system/dict/index.vue
+13
-6
No files found.
src/router/index.js
View file @
a8033d72
...
...
@@ -92,7 +92,7 @@ export const constantRoutes = [
name
:
'welcome'
,
hidden
:
true
,
meta
:
{
title
:
'欢迎'
,
icon
:
'dashboard'
}
}
,
}
// {
// path: '/dict',
// component: Layout,
...
...
src/views/system/dict/index.vue
View file @
a8033d72
...
...
@@ -474,12 +474,19 @@ export default {
}
},
handleClickType
(
row
)
{
if
(
this
.
$store
.
getters
.
permissions
.
includes
(
'sys:dict:data'
)
||
(
this
.
$store
.
getters
.
permissions
.
includes
(
'*:*:*'
)))
{
this
.
$router
.
push
({
path
:
'/type/data'
,
query
:
{
id
:
row
.
businessId
}
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
'当前用户没有该权限'
})
}
},
handleStatusChange
(
row
)
{
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
...
...
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