api.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // 导入axios实例
  2. import httpRequest from '@/request/index'
  3. // 导出数据接口
  4. export function apiGetExportMsg(url, params) {
  5. return httpRequest({
  6. url: url,
  7. method: 'get',
  8. responseType: 'blob',
  9. params: params
  10. })
  11. }
  12. // 导出模版接口
  13. export function apiGetModel(url, params) {
  14. return httpRequest({
  15. url: url,
  16. method: 'get',
  17. params: params
  18. })
  19. }
  20. //----------------------------------------登录页接口------------------------------------------------
  21. // 获取验证码
  22. export function apiGetUserInfo() {
  23. return httpRequest({
  24. url: 'captchaImage',
  25. method: 'get'
  26. })
  27. }
  28. // 登录接口
  29. export function toLoginApi(params) {
  30. return httpRequest({
  31. url: 'toLogin',
  32. method: 'post',
  33. params: params
  34. })
  35. }
  36. // 天气Api接口
  37. export function apiGetWeather(params) {
  38. return httpRequest({
  39. url: 'predict/api/wfc/getWeatherForecastDataOne',
  40. method: 'get',
  41. params: params
  42. })
  43. }
  44. //----------------------------------------对标业务------------------------------------------------
  45. //----------------------------------------考评业务------------------------------------------------
  46. //----------------------------------------对标考评知识库------------------------------------------------
  47. //----------------------------------------对标体系配置------------------------------------------------
  48. //----考评指标管理
  49. //----"指标-查询"
  50. export function apiGetIndicatorList(params) {
  51. return httpRequest({
  52. url: 'indicator/list',
  53. method: 'get',
  54. params: params
  55. })
  56. }
  57. //----"指标-新增/修改"
  58. export function apiGetIndicatorSave(params) {
  59. return httpRequest.post('indicator/save', params)
  60. }
  61. //----"指标-删除"
  62. export function apiGetIndicatorDelete(params) {
  63. return httpRequest({
  64. url: `indicator/remove/${params}`,
  65. method: 'delete'
  66. })
  67. }
  68. //----"指标项-查询"
  69. export function apiGetIndicatordictionaryList(params) {
  70. return httpRequest({
  71. url: 'indicator-dictionary/list',
  72. method: 'get',
  73. params: params
  74. })
  75. }
  76. //----------------------------------------基础信息配置------------------------------------------------