index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * @Author: liuzhenlin 461480418@qq.ocm
  3. * @Date: 2023-01-19 14:06:58
  4. * @LastEditors: liuzhenlin
  5. * @LastEditTime: 2023-02-15 18:45:00
  6. * @Description: file content
  7. * @FilePath: \oms\api\system\user.js
  8. */
  9. import micro_request from "../../utils/micro_request";
  10. // console.log(process.uniEnv.VITE_INSTR_ADMIN);
  11. const instPath = process.uniEnv.VITE_INSTR_ADMIN;
  12. export default {
  13. // 获取照片
  14. getPhoto(query) {
  15. return micro_request.postRequest(
  16. instPath,
  17. "TusInstrumentPad",
  18. "Photo",
  19. query
  20. );
  21. },
  22. // 仪器信息
  23. getInstrInfo(query) {
  24. return micro_request.postRequest(
  25. instPath,
  26. "TusInstrumentPad",
  27. "IndexInfo",
  28. query
  29. );
  30. },
  31. // 上机
  32. getOn(query) {
  33. return micro_request.postRequest(
  34. instPath,
  35. "TusInstrumentPad",
  36. "Geton",
  37. query
  38. );
  39. },
  40. // 获取上机中的信息
  41. getOnInfo(query) {
  42. return micro_request.postRequest(
  43. instPath,
  44. "TusInstrumentPad",
  45. "Current",
  46. query
  47. );
  48. },
  49. // 获取预约信息
  50. getAppointInfo(query) {
  51. return micro_request.postRequest(
  52. instPath,
  53. "TusInstrumentPad",
  54. "AppointmentList",
  55. query
  56. );
  57. },
  58. // 下机
  59. geOff(query) {
  60. return micro_request.postRequest(
  61. instPath,
  62. "TusInstrumentPad",
  63. "Getoff",
  64. query
  65. );
  66. },
  67. // 获取公告信息
  68. getNoticeInfo(query) {
  69. return micro_request.postRequest(
  70. instPath,
  71. "TusInstrumentPad",
  72. "NoticeList",
  73. query
  74. );
  75. },
  76. // 获取公告信息
  77. switch(query) {
  78. return micro_request.postRequest(
  79. instPath,
  80. "TusInstrumentPad",
  81. "Switch",
  82. query
  83. );
  84. },
  85. };