diff --git a/src/router/index.js b/src/router/index.js index d7c6b034..6e770287 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,6 +54,10 @@ export const constantRouterMap = [ name: '首页', meta: { title: '首页', icon: 'home-page', noCache: true ,roles:["user"]} }, + { path: 'forum', name: 'forum', meta: { title: '论坛',openTab:true,outUrl:'${curlDomain}/#/communityForum' },hidden:true}, + { path: 'im', name: 'im', meta: { title: '即聊',openTab:true,outUrl:'${curlDomain}/im/'+process.env.VERSION+'/' },hidden:true}, + { path: 'helpCenter', name: 'helpCenter', meta: { title: '客服',openTab:true,outUrl:'${curlDomain}/#/helpCenter' },hidden:true}, + // { // path: 'updateUserInfo', // component: _import('mdp/sys/user/UpdateUserInfo'), diff --git a/src/router/routes_xm.js b/src/router/routes_xm.js index 4dcd1b9b..65da9290 100644 --- a/src/router/routes_xm.js +++ b/src/router/routes_xm.js @@ -230,7 +230,8 @@ export default { ] }, - + + { path: '/xm/core/testCasedbRoute', component: _import('xm/core/xmTestCasedb/XmTestCasedbRoute'), name: 'XmTestCasedbRoute', meta: { title: '测试库管理',roles:["user"] },hidden:true}, { path: '/xm/core', diff --git a/src/views/xm/core/xmProject/top-nav.vue b/src/views/xm/core/xmProject/top-nav.vue index 15c5a1c1..0c52e197 100644 --- a/src/views/xm/core/xmProject/top-nav.vue +++ b/src/views/xm/core/xmProject/top-nav.vue @@ -104,35 +104,17 @@ 每月工时 - - - 预算 - - - 费用 - - - 考核 - - - 日志 - - - 合同管理 - - + + 环境清单 - - - 风险 - - + + 论坛 - + 即聊 - + 客服 @@ -315,7 +297,23 @@ export default { setInfotype(infotype) { this.infotype = infotype; }, - + /** + * 防止禁用弹框 _self模式 + * @param {} url + */ + newWin(url) { + var id='toOpenWindow' + var a = document.createElement('a'); + a.setAttribute('href', url); + a.setAttribute('target', '_self'); + a.setAttribute('id', id); + // 防止反复添加 + if(!document.getElementById(id)) document.body.appendChild(a); + a.click(); + }, + toForum(){ + this.newWin('https://www.maimengcloud.com/#/communityForum'); + }, goBack() { this.$router.push({ path:'/xm/core/xmProject/XmProjectMng'