Merge remote-tracking branch 'origin/message_bus' into message_bus
# Conflicts: # src/routes.js
正在显示
4 个修改的文件
包含
34 行增加
和
22 行删除
@@ -91,6 +91,7 @@ import ElasticSearchInfo from "./views/bus/ElasticSearchInfo.vue" | @@ -91,6 +91,7 @@ import ElasticSearchInfo from "./views/bus/ElasticSearchInfo.vue" | ||
91 | import RouterBatch from "./views/bus/RouterBatch.vue" | 91 | import RouterBatch from "./views/bus/RouterBatch.vue" |
92 | import MessageManagement from "./views/bus/MessageManagement.vue" | 92 | import MessageManagement from "./views/bus/MessageManagement.vue" |
93 | import RouterManage from "./views/bus/RouterManage" | 93 | import RouterManage from "./views/bus/RouterManage" |
94 | + | ||
94 | //组件练习 | 95 | //组件练习 |
95 | //import Page7 from "./views/nav3/Page7.vue" | 96 | //import Page7 from "./views/nav3/Page7.vue" |
96 | 97 | ||
@@ -112,14 +113,13 @@ let routes = [ | @@ -112,14 +113,13 @@ let routes = [ | ||
112 | }, | 113 | }, |
113 | { | 114 | { |
114 | path: '/', | 115 | path: '/', |
115 | - name: "主页", | ||
116 | - redirect: '/main', | 116 | + redirect: '/login', |
117 | hidden: true | 117 | hidden: true |
118 | }, | 118 | }, |
119 | { | 119 | { |
120 | path: '/', | 120 | path: '/', |
121 | component: Home, | 121 | component: Home, |
122 | - name: 'INDEX', | 122 | + name: '主页', |
123 | leaf: true, | 123 | leaf: true, |
124 | iconCls: 'el-icon-menu', | 124 | iconCls: 'el-icon-menu', |
125 | children: [ | 125 | children: [ |
@@ -137,21 +137,21 @@ let routes = [ | @@ -137,21 +137,21 @@ let routes = [ | ||
137 | // ] | 137 | // ] |
138 | // }, | 138 | // }, |
139 | // { path: '/test', component: Main }, | 139 | // { path: '/test', component: Main }, |
140 | - // { | ||
141 | - // path: '/admin', | ||
142 | - // component: Home, | ||
143 | - // name: '系统设置', | ||
144 | - // iconCls: 'el-icon-setting',//图标样式class | ||
145 | - // children: [ | ||
146 | - // {path: '/user', component: User, name: '用户管理'}, | ||
147 | - // {path: '/role', component: Role, name: '组织机构'}, | ||
148 | - // {path: '/perm', component: Perm, name: '权限管理'}, | ||
149 | - // {path: '/log', component: LOG, name: '系统日志'}, | ||
150 | - // {path: '/department', component: Department, name: '部门管理'}, | ||
151 | - // {path: '/company', component: Company, name: '公司管理'}, | ||
152 | - // {path: '/group', component: Group, name: '集团管理'} | ||
153 | - // ] | ||
154 | - // }, | 140 | + { |
141 | + path: '/admin', | ||
142 | + component: Home, | ||
143 | + name: '系统设置', | ||
144 | + iconCls: 'el-icon-setting',//图标样式class | ||
145 | + children: [ | ||
146 | + {path: '/user', component: User, name: '用户管理'}, | ||
147 | + {path: '/role', component: Role, name: '组织机构'}, | ||
148 | + {path: '/perm', component: Perm, name: '权限管理'}, | ||
149 | + {path: '/log', component: LOG, name: '系统日志'}, | ||
150 | + {path: '/department', component: Department, name: '部门管理'}, | ||
151 | + {path: '/company', component: Company, name: '公司管理'}, | ||
152 | + {path: '/group', component: Group, name: '集团管理'} | ||
153 | + ] | ||
154 | + }, | ||
155 | 155 | ||
156 | { | 156 | { |
157 | path: '/bus', | 157 | path: '/bus', |
@@ -159,7 +159,7 @@ let routes = [ | @@ -159,7 +159,7 @@ let routes = [ | ||
159 | name: '消息控制中心', | 159 | name: '消息控制中心', |
160 | iconCls: 'el-icon-message', | 160 | iconCls: 'el-icon-message', |
161 | children: [ | 161 | children: [ |
162 | - // {path: '/userInfo', component: UserInfo, name: '用户关系管理'}, | 162 | + {path: '/userInfo', component: UserInfo, name: '用户关系管理'}, |
163 | {path: '/server', component: Server, name: '服务器管理'}, | 163 | {path: '/server', component: Server, name: '服务器管理'}, |
164 | // {path: '/host', component: VirtualHost, name: '虚拟主机管理'}, | 164 | // {path: '/host', component: VirtualHost, name: '虚拟主机管理'}, |
165 | {path: '/queue', component: Queue, name: '队列管理'}, | 165 | {path: '/queue', component: Queue, name: '队列管理'}, |
@@ -185,6 +185,15 @@ let routes = [ | @@ -185,6 +185,15 @@ let routes = [ | ||
185 | // {path: '/exchangeView', component: ExchangeView, name: '交换机监控'}, | 185 | // {path: '/exchangeView', component: ExchangeView, name: '交换机监控'}, |
186 | ] | 186 | ] |
187 | }, | 187 | }, |
188 | + // { | ||
189 | + // path: '/nav3', | ||
190 | + // component: Home, | ||
191 | + // name: '组件练习', | ||
192 | + // iconCls: 'el-icon-view', | ||
193 | + // children: [ | ||
194 | + // {path: '/page7', component: Page7, name: '组件'}, | ||
195 | + // ] | ||
196 | + // }, | ||
188 | 197 | ||
189 | 198 | ||
190 | // { | 199 | // { |
@@ -258,7 +258,7 @@ | @@ -258,7 +258,7 @@ | ||
258 | let para = Object.assign({}, this.addForm); | 258 | let para = Object.assign({}, this.addForm); |
259 | addType(para).then((res) => { | 259 | addType(para).then((res) => { |
260 | this.$message({ | 260 | this.$message({ |
261 | - message: '提交成功', | 261 | + message: res.data.msg, |
262 | type: 'success' | 262 | type: 'success' |
263 | }); | 263 | }); |
264 | //数据初始化 | 264 | //数据初始化 |
@@ -352,8 +352,10 @@ | @@ -352,8 +352,10 @@ | ||
352 | _this.loadingStatus = true; | 352 | _this.loadingStatus = true; |
353 | api_batchAddRouter(this.params).then(response => { | 353 | api_batchAddRouter(this.params).then(response => { |
354 | let res = response.data; | 354 | let res = response.data; |
355 | - if (res.code !== '200') { | ||
356 | - return _this.$message.error('批量添加路由,失败!'); | 355 | + console.log(res) |
356 | + if (res.code != '200') { | ||
357 | + return _this.$message.error(res.msg); | ||
358 | + _this.loadingStatus = false; | ||
357 | } | 359 | } |
358 | // 关闭加载 | 360 | // 关闭加载 |
359 | _this.$message.success('批量添加路由,成功!'); | 361 | _this.$message.success('批量添加路由,成功!'); |
-
请 注册 或 登录 后发表评论