综合办公系统
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.

gausspositive.js 869B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import request from '@/utils/request'
  2. // 执行高斯正算
  3. export function calculate(data) {
  4. return request({
  5. url: `/calculate/gaussPositive/calculate`,
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 导入Excel
  11. export function importExcel(data) {
  12. return request({
  13. url: `/calculate/gaussPositive/import`,
  14. method: 'post',
  15. data: data,
  16. headers: {
  17. 'Content-Type': 'multipart/form-data'
  18. }
  19. })
  20. }
  21. // 导出高斯正算
  22. export function exportExcel(data) {
  23. return request({
  24. url: `/calculate/gaussPositive/export`,
  25. method: 'post',
  26. data: data,
  27. responseType: 'blob'
  28. })
  29. }
  30. // 下载模板
  31. export function downloadTemplate() {
  32. return request({
  33. url: '/calculate/gaussPositive/template',
  34. method: 'get',
  35. responseType: 'blob'
  36. })
  37. }