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.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 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/project/overview",query:{projectId:item.bizId}})
  13. }else{
  14. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/project/overview?projectId="+item.bizId)
  15. }
  16. }else if(item.objType=='2'){
  17. if(process.env.CONTEXT=='xm'){
  18. that.$router.push({path:"/xm/core/task/detail",query:{id:item.bizId}})
  19. }else{
  20. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/task/detail?id="+item.bizId)
  21. }
  22. }else if(item.objType=='3'){
  23. if(process.env.CONTEXT=='xm'){
  24. that.$router.push({path:"/xm/core/product/overview",query:{productId:item.bizId}})
  25. }else{
  26. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/product/overview?productId="+item.bizId)
  27. }
  28. }else if(item.objType=='4'){
  29. if(process.env.CONTEXT=='xm'){
  30. that.$router.push({path:"/xm/core/menu/detail",query:{menuId:item.bizId}})
  31. }else{
  32. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/menu/detail?menuId="+item.bizId)
  33. }
  34. }else if(item.objType=='5'){
  35. if(process.env.CONTEXT=='xm'){
  36. that.$router.push({path:"/xm/core/question/detail",query:{id:item.bizId}})
  37. }else{
  38. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/question/detail?id="+item.bizId)
  39. }
  40. }else if(item.objType=='6'){
  41. if(process.env.CONTEXT=='xm'){
  42. that.$router.push({path:"/xm/core/iteration/detail",query:{id:item.bizId}})
  43. }else{
  44. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/iteration/detail?id="+item.bizId)
  45. }
  46. }else if(item.objType=='7'){
  47. if(process.env.CONTEXT=='xm'){
  48. that.$router.push({path:"/xm/core/group/detail",query:{projectId:item.pbizId}})
  49. }else{
  50. window.open(curlDomain+"/xm/"+process.env.VERSION+"/#/xm/core/group/detail?projectId="+item.pbizId)
  51. }
  52. }
  53. }