From 189adfcbe212b71e72b88ee8d55e2a3e2d3c72f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 15 Jan 2023 18:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 +++ src/router/routes_xm.js | 3 +- src/views/xm/core/xmProject/top-nav.vue | 48 ++++++++++++------------- 3 files changed, 29 insertions(+), 26 deletions(-) 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'