From 18fc5eaa22ebd7c49438a59763045af96030c639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 20 Jun 2022 22:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=B3=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/myWork/my/components/MyFocusList.vue | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/views/myWork/my/components/MyFocusList.vue b/src/views/myWork/my/components/MyFocusList.vue index 5582fa61..3b6a0b9a 100644 --- a/src/views/myWork/my/components/MyFocusList.vue +++ b/src/views/myWork/my/components/MyFocusList.vue @@ -75,6 +75,7 @@ import util from '@/common/js/util';//全局公共库 import config from '@/common/config';//全局公共库 import { initDicts,myFocusForIndex, delUserFocus, batchDelUserFocus,editSomeFieldsUserFocus } from '@/api/mdp/sys/userFocus'; +import { goToPage } from '@/api/cpd'; import { mapGetters } from 'vuex' export default { @@ -213,21 +214,8 @@ export default { * that.dicts['focusType']=[{id:'1',name:'项目'},{id:'2',name:'任务'},{id:'3',name:'产品'},{id:'4',name:'需求'},{id:'5',name:'缺陷'},] */ toBizPage(bizObj){ - if(bizObj.focusType=='1'){ - this.$router.push({path:'/xm/core/xmProject/XmProjectInfoRoute',query:{id:bizObj.bizId}}) - }else if(bizObj.focusType=='3'){ - this.$router.push({path:'/xm/core/xmProduct/XmProductInfoRoute',query:{id:bizObj.bizId}}) - }else if(bizObj.focusType=='2'){ - this.$router.push({path:'/xm/core/xmTask/XmTaskDetailRoute',query:{id:bizObj.bizId}}) - }else if(bizObj.focusType=='4'){ - this.$router.push({path:'/xm/core/xmMenu/XmMenuDetailRoute',query:{id:bizObj.bizId}}) - }else if(bizObj.focusType=='5'){ - this.$router.push({path:'/xm/core/xmQuestion/XmQuestionDetailRoute',query:{id:bizObj.bizId}}) - }else if(bizObj.focusType=='6'){ - this.$router.push({path:'/xm/core/xmIteration/XmIterationInfoRoute',query:{id:bizObj.bizId}}) - } - - + bizObj.objType=bizObj.focusType + goToPage(this,bizObj) }, //显示新增界面 UserFocus 我关注的项目或者任务 showAdd: function () {