Newer
Older
urbanLifeline_YanAn / src / api / system / file.js
@zhangqy zhangqy on 3 Oct 1003 bytes first commit
  1. import request from "@/utils/request";
  2.  
  3. // 查询附件列表
  4. export function fileList(data) {
  5. return request({
  6. url: "/system/list",
  7. method: "get",
  8. params: data,
  9. });
  10. }
  11. // 查询附件分页
  12. export function filePage(query) {
  13. return request({
  14. url: "/system/page",
  15. method: "get",
  16. params: query,
  17. });
  18. }
  19. // 查询附件详细
  20. export function getFile(id) {
  21. return request({
  22. url: "/system/" + id,
  23. method: "get",
  24. });
  25. }
  26.  
  27. // 上传附件
  28. export function upLoad(data) {
  29. return request({
  30. url: "/system/upload",
  31. method: "post",
  32. data: data,
  33. });
  34. }
  35.  
  36. // 新增附件
  37. export function addConfig(data) {
  38. return request({
  39. url: "/system/add",
  40. method: "post",
  41. data: data,
  42. });
  43. }
  44. // 批量新增附件
  45. export function addBatchConfig(data) {
  46. return request({
  47. url: "/system/add",
  48. method: "post",
  49. data: data,
  50. });
  51. }
  52. // 删除附件
  53. export function delConfig(ids) {
  54. return request({
  55. url: "/system/" + ids,
  56. method: "delete",
  57. });
  58. }