Commit a8033d72 authored by 张伯涛's avatar 张伯涛

字典参数点击跳转权限

parent 25a03096
...@@ -92,7 +92,7 @@ export const constantRoutes = [ ...@@ -92,7 +92,7 @@ export const constantRoutes = [
name: 'welcome', name: 'welcome',
hidden: true, hidden: true,
meta: { title: '欢迎', icon: 'dashboard' } meta: { title: '欢迎', icon: 'dashboard' }
}, }
// { // {
// path: '/dict', // path: '/dict',
// component: Layout, // component: Layout,
......
...@@ -474,12 +474,19 @@ export default { ...@@ -474,12 +474,19 @@ export default {
} }
}, },
handleClickType(row) { handleClickType(row) {
this.$router.push({ if (this.$store.getters.permissions.includes('sys:dict:data') || (this.$store.getters.permissions.includes('*:*:*'))) {
path: '/type/data', this.$router.push({
query: { path: '/type/data',
id: row.businessId query: {
} id: row.businessId
}) }
})
} else {
this.$message({
type: 'error',
message: '当前用户没有该权限'
})
}
}, },
handleStatusChange(row) { handleStatusChange(row) {
const text = row.flag === '1' ? '启用' : '停用' const text = row.flag === '1' ? '启用' : '停用'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment