You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.8 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. import axios from '@/utils/request'
  2. import config from '@/common/config'
  3. let base = config.getSysBasePath();
  4. //export const getNoticeMsg = params => { return axios.get(`${base}/mallm/cpd/index/toHandleOrdersCount`, { params: params }); };
  5. export const getNoticeMsg = params => {
  6. return axios.get(`${base}/sys/notifyMsg/list`, { params: params });
  7. };
  8. export const goToPage = (that,item) => {
  9. var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net
  10. if(item.objType=='1'){
  11. if(process.env.CONTEXT=='xm'){
  12. that.$router.push({path:"/xm/core/xmProject/XmProjectInfoRoute",query:{id:item.bizId}})
  13. }else{
  14. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmProject/XmProjectInfoRoute?id="+item.bizId)
  15. }
  16. }else if(item.objType=='2'){
  17. if(process.env.CONTEXT=='xm'){
  18. that.$router.push({path:"/xm/core/xmTask/XmTaskDetailRoute",query:{id:item.bizId}})
  19. }else{
  20. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmTask/XmTaskDetailRoute?id="+item.bizId)
  21. }
  22. }else if(item.objType=='3'){
  23. if(process.env.CONTEXT=='xm'){
  24. that.$router.push({path:"/xm/core/xmProduct/XmProductInfoRoute",query:{id:item.bizId}})
  25. }else{
  26. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmProduct/XmProductInfoRoute?id="+item.bizId)
  27. }
  28. }else if(item.objType=='4'){
  29. if(process.env.CONTEXT=='xm'){
  30. that.$router.push({path:"/xm/core/xmMenu/XmMenuDetailRoute",query:{menuId:item.bizId}})
  31. }else{
  32. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmMenu/XmMenuDetailRoute?menuId="+item.bizId)
  33. }
  34. }else if(item.objType=='5'){
  35. if(process.env.CONTEXT=='xm'){
  36. that.$router.push({path:"/xm/core/xmQuestion/XmQuestionDetailRoute",query:{id:item.bizId}})
  37. }else{
  38. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmQuestion/XmQuestionDetailRoute?id="+item.bizId)
  39. }
  40. }else if(item.objType=='6'){
  41. if(process.env.CONTEXT=='xm'){
  42. that.$router.push({path:"/xm/core/xmIteration/XmIterationInfoRoute",query:{id:item.bizId}})
  43. }else{
  44. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmIteration/XmIterationInfoRoute?id="+item.bizId)
  45. }
  46. }else if(item.objType=='7'){
  47. if(process.env.CONTEXT=='xm'){
  48. that.$router.push({path:"/xm/core/xmGroup/xmGroupRoute",query:{projectId:item.pbizId}})
  49. }else{
  50. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/xmGroup/xmGroupRoute?projectId="+item.pbizId)
  51. }
  52. }
  53. }