report.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import request from '@/utils/request'
  2. // 获取检出物占比统计信息
  3. export async function getjcwzbInfo(id) {
  4. return request({
  5. url: '/data/report/jcwzb/' + id,
  6. method: 'get',
  7. })
  8. }
  9. // 获取获取样本类型统计信息
  10. export async function getyblxtjInfo(id) {
  11. return request({
  12. url: '/data/report/yblxtj/' + id,
  13. method: 'get',
  14. })
  15. }
  16. // 获取样本统计信息
  17. export async function getybtjInfo(type,assemblyAccession) {
  18. return request({
  19. url: `/data/report/ybtj/${type}/${assemblyAccession}`,
  20. method: 'get',
  21. })
  22. }
  23. // 获取病原体占比统计信息
  24. export async function getbytzbInfo(data) {
  25. return request({
  26. url: '/data/report/bytzb' ,
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 获取病原体占比柱状图信息
  32. export async function getbytzzfbnfo(data) {
  33. return request({
  34. url: '/data/report/bytzzfb',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 获取世界病原体占比统计信息
  40. export async function getsjbytztqkInfo(data) {
  41. return request({
  42. url: '/data/report/sjbytztqk',
  43. method: 'post',
  44. data: data
  45. })
  46. }
  47. // 获取中国病原体占比统计信息
  48. export async function getzgbytztqkInfo(data) {
  49. return request({
  50. url: '/data/report/zgbytztqk',
  51. method: 'post',
  52. data: data
  53. })
  54. }
  55. // 生成病菌预测世界地图
  56. export function generatesjbytfzzbqkInfo(data) {
  57. return request({
  58. url: '/data/report/sjbytfzzbqk',
  59. method: 'post',
  60. data: data
  61. })
  62. }
  63. // 生成病菌预测中国地图
  64. export function generatezgbytfzzbqkInfo(data) {
  65. return request({
  66. url: '/data/report/zgbytfzzbqk',
  67. method: 'post',
  68. data: data
  69. })
  70. }
  71. export function pathogenConfigGetAll(data) {
  72. return request({
  73. url: '/system/pathogenConfig/getAll',
  74. method: 'get'
  75. })
  76. }
  77. // 获取诊断统计设置编号列表
  78. export async function getConfigList() {
  79. return request({
  80. url: '/system/systemConfig/getAll',
  81. method: 'get',
  82. })
  83. }
  84. // 获取诊断统计设置编号对应图表数据
  85. export async function getConfigData(type, assemblyAccession, configId) {
  86. return request({
  87. url: `/data/report/yblxtj/${type}/${assemblyAccession}/${configId}`,
  88. method: 'get',
  89. })
  90. }
  91. // 模糊搜索NCBI基因组序列编号
  92. export async function getAssemblyAccessionList(keyword) {
  93. return request({
  94. url: `/data/dataBase/loadTop20DataBase/${keyword}`,
  95. method: 'get',
  96. })
  97. }