no message
This commit is contained in:
parent
208cc4f05f
commit
d0e7d2260f
@ -275,7 +275,13 @@
|
||||
this.nextMenu = this.filterUrl(route.children);
|
||||
if((!route.children || route.children.length == 0) && ( route.meta.type=='iframe' || route.component)){
|
||||
this.$router.push({path: route.path})
|
||||
return ;
|
||||
}
|
||||
|
||||
if (route.children.length > 0) {
|
||||
this.$router.push({path: route.children[0].path})
|
||||
}
|
||||
|
||||
},
|
||||
//转换外部链接的路由
|
||||
filterUrl(map){
|
||||
|
@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<el-container>
|
||||
<el-aside width="220px">
|
||||
<el-tree ref="category" class="menu" node-key="label" :data="category" :default-expanded-keys="['系统日志']" current-node-key="系统日志" :highlight-current="true" :expand-on-click-node="false">
|
||||
</el-tree>
|
||||
<el-tree ref="category" class="menu" node-key="label" :data="category" :default-expanded-keys="['系统日志']" current-node-key="系统日志" :highlight-current="true" :expand-on-click-node="false"> </el-tree>
|
||||
</el-aside>
|
||||
<el-container>
|
||||
<el-main class="nopadding">
|
||||
@ -98,25 +97,7 @@
|
||||
barWidth: '15px'
|
||||
}]
|
||||
},
|
||||
category: [
|
||||
{
|
||||
label: '系统日志',
|
||||
children: [
|
||||
{label: 'debug'},
|
||||
{label: 'info'},
|
||||
{label: 'warn'},
|
||||
{label: 'error'},
|
||||
{label: 'fatal'}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: '应用日志',
|
||||
children: [
|
||||
{label: 'selfHelp'},
|
||||
{label: 'WechatApp'}
|
||||
]
|
||||
}
|
||||
],
|
||||
category: [],
|
||||
date: [],
|
||||
data: [
|
||||
[{id:1}]
|
||||
@ -127,7 +108,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getType();
|
||||
},
|
||||
methods: {
|
||||
getType(){
|
||||
this.$http.get('log/admin/types', {}, { cacheparameters: true }).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.category, res.data
|
||||
}
|
||||
});
|
||||
},
|
||||
upsearch(){
|
||||
|
||||
},
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
<el-table-column prop="title" label="名称" width="180" />
|
||||
<el-table-column prop="alias" label="别名" width="180" />
|
||||
<el-table-column prop="alias" label="用户数量" width="180" />
|
||||
|
||||
<el-table-column prop="status" label="状态" width="90">
|
||||
<template #default="scope">
|
||||
@ -101,12 +102,12 @@
|
||||
key: "type",
|
||||
options: [
|
||||
{
|
||||
label: "系统组",
|
||||
label: "系统管理组",
|
||||
value: "system",
|
||||
icon: "el-icon-flag"
|
||||
},
|
||||
{
|
||||
label: "用户组",
|
||||
label: "用户等级套餐组",
|
||||
value: "member",
|
||||
icon: "el-icon-bottom-left"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user