Browse Source

优化关注

master
陈裕财 4 years ago
parent
commit
18fc5eaa22
  1. 18
      src/views/myWork/my/components/MyFocusList.vue

18
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 () {

Loading…
Cancel
Save