切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
朱兆平
4 years ago
提交
24fafcba58aa587eb532d3e30db8671443dd71d4
2 个父辈
7a161fae
5c773028
Merge remote-tracking branch 'origin/message_bus' into message_bus
# Conflicts: # src/routes.js
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
34 行增加
和
22 行删除
src/routes.js
src/views/bus/MessageManagement.vue
src/views/bus/RouterBatch.vue
src/views/bus/RouterManage.vue
src/routes.js
查看文件 @
24fafcb
...
...
@@ -91,6 +91,7 @@ import ElasticSearchInfo from "./views/bus/ElasticSearchInfo.vue"
import
RouterBatch
from
"./views/bus/RouterBatch.vue"
import
MessageManagement
from
"./views/bus/MessageManagement.vue"
import
RouterManage
from
"./views/bus/RouterManage"
//组件练习
//import Page7 from "./views/nav3/Page7.vue"
...
...
@@ -112,14 +113,13 @@ let routes = [
},
{
path
:
'/'
,
name
:
"主页"
,
redirect
:
'/main'
,
redirect
:
'/login'
,
hidden
:
true
},
{
path
:
'/'
,
component
:
Home
,
name
:
'
INDEX
'
,
name
:
'
主页
'
,
leaf
:
true
,
iconCls
:
'el-icon-menu'
,
children
:
[
...
...
@@ -137,21 +137,21 @@ let routes = [
// ]
// },
// { path: '/test', component: Main },
// {
// path: '/admin',
// component: Home,
// name: '系统设置',
// iconCls: 'el-icon-setting',//图标样式class
// children: [
// {path: '/user', component: User, name: '用户管理'},
// {path: '/role', component: Role, name: '组织机构'},
// {path: '/perm', component: Perm, name: '权限管理'},
// {path: '/log', component: LOG, name: '系统日志'},
// {path: '/department', component: Department, name: '部门管理'},
// {path: '/company', component: Company, name: '公司管理'},
// {path: '/group', component: Group, name: '集团管理'}
// ]
// },
{
path
:
'/admin'
,
component
:
Home
,
name
:
'系统设置'
,
iconCls
:
'el-icon-setting'
,
//图标样式class
children
:
[
{
path
:
'/user'
,
component
:
User
,
name
:
'用户管理'
},
{
path
:
'/role'
,
component
:
Role
,
name
:
'组织机构'
},
{
path
:
'/perm'
,
component
:
Perm
,
name
:
'权限管理'
},
{
path
:
'/log'
,
component
:
LOG
,
name
:
'系统日志'
},
{
path
:
'/department'
,
component
:
Department
,
name
:
'部门管理'
},
{
path
:
'/company'
,
component
:
Company
,
name
:
'公司管理'
},
{
path
:
'/group'
,
component
:
Group
,
name
:
'集团管理'
}
]
},
{
path
:
'/bus'
,
...
...
@@ -159,7 +159,7 @@ let routes = [
name
:
'消息控制中心'
,
iconCls
:
'el-icon-message'
,
children
:
[
//
{path: '/userInfo', component: UserInfo, name: '用户关系管理'},
{
path
:
'/userInfo'
,
component
:
UserInfo
,
name
:
'用户关系管理'
},
{
path
:
'/server'
,
component
:
Server
,
name
:
'服务器管理'
},
// {path: '/host', component: VirtualHost, name: '虚拟主机管理'},
{
path
:
'/queue'
,
component
:
Queue
,
name
:
'队列管理'
},
...
...
@@ -185,6 +185,15 @@ let routes = [
// {path: '/exchangeView', component: ExchangeView, name: '交换机监控'},
]
},
// {
// path: '/nav3',
// component: Home,
// name: '组件练习',
// iconCls: 'el-icon-view',
// children: [
// {path: '/page7', component: Page7, name: '组件'},
// ]
// },
// {
...
...
src/views/bus/MessageManagement.vue
查看文件 @
24fafcb
...
...
@@ -258,7 +258,7 @@
let para = Object.assign({}, this.addForm);
addType(para).then((res) => {
this.$message({
message:
'提交成功'
,
message:
res.data.msg
,
type: 'success'
});
//数据初始化
...
...
src/views/bus/RouterBatch.vue
查看文件 @
24fafcb
...
...
@@ -352,8 +352,10 @@
_this.loadingStatus = true;
api_batchAddRouter(this.params).then(response => {
let res = response.data;
if (res.code !== '200') {
return _this.$message.error('批量添加路由,失败!');
console.log(res)
if (res.code != '200') {
return _this.$message.error(res.msg);
_this.loadingStatus = false;
}
// 关闭加载
_this.$message.success('批量添加路由,成功!');
...
...
src/views/bus/RouterManage.vue
查看文件 @
24fafcb
...
...
@@ -240,3 +240,4 @@
}
}
</script>
<style scoped></style>
...
...
请
注册
或
登录
后发表评论