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

字典参数点击跳转权限

parent 25a03096
......@@ -92,7 +92,7 @@ export const constantRoutes = [
name: 'welcome',
hidden: true,
meta: { title: '欢迎', icon: 'dashboard' }
},
}
// {
// path: '/dict',
// component: Layout,
......
......@@ -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' ? '启用' : '停用'
......
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