content.config.ts 729 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { ContentConfig } from "/@/components/PageContent";
  2. import { httpList, httpDelete } from "/@/api/system/updates";
  3. const columns = [
  4. {
  5. type: "expand",
  6. slot: "expand"
  7. },
  8. {
  9. label: "版本号",
  10. prop: "version",
  11. minWidth: 180
  12. },
  13. {
  14. label: "更新模块",
  15. prop: "module",
  16. minWidth: 180
  17. },
  18. {
  19. label: "更新时间",
  20. prop: "addtime",
  21. minWidth: 180
  22. },
  23. {
  24. label: "操作",
  25. fixed: "right",
  26. width: 120,
  27. slot: "operation"
  28. }
  29. ];
  30. const contentConfig: ContentConfig = {
  31. title: "版本更新",
  32. columns,
  33. isTree: true,
  34. notPreview: true,
  35. apis: {
  36. httpList,
  37. httpDelete,
  38. httpAdd: true,
  39. httpUpdate: true
  40. }
  41. };
  42. export default contentConfig;