system.js 518 B

12345678910111213141516171819202122232425262728
  1. import request from '../utils/request'
  2. function getSystemCode(data) {
  3. return request({
  4. url: `/getSysParamList`,
  5. method: "get",
  6. params: data
  7. })
  8. }
  9. function editSystemCode(data){
  10. return request({
  11. url:`/saveSysParam`,
  12. method:"post",
  13. data
  14. })
  15. }
  16. // 下载附件
  17. function downLoad(data){
  18. return request({
  19. url:`/file/download`,
  20. method:'get',
  21. params:data,
  22. })
  23. }
  24. export default {
  25. getSystemCode,
  26. editSystemCode,
  27. downLoad,
  28. }