sysPortlet.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import request from '@/utils/request'
  2. // 查询工作台小页管理列表
  3. export function listSysPortlet (query) {
  4. return request({
  5. url: '/system/sysPortlet/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询工作台小页管理详细
  11. export function getSysPortlet (id) {
  12. return request({
  13. url: '/system/sysPortlet/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增工作台小页管理
  18. export function addSysPortlet (data) {
  19. return request({
  20. url: '/system/sysPortlet',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改工作台小页管理
  26. export function updateSysPortlet (data) {
  27. return request({
  28. url: '/system/sysPortlet',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除工作台小页管理
  34. export function delSysPortlet (id) {
  35. return request({
  36. url: '/system/sysPortlet/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 查询最大编号
  41. export function findMaxSort () {
  42. return request({
  43. url: '/system/sysPortlet/findMaxSort',
  44. method: 'get'
  45. })
  46. }
  47. // 校验小页编码是否存在
  48. export function checkCodeUnique (id, code) {
  49. if (id === undefined) {
  50. id = ''
  51. }
  52. return request({
  53. url: '/system/sysPortlet/checkCodeUnique/' + code + '/' + id,
  54. method: 'get'
  55. })
  56. }
  57. // 导出工作台小页管理
  58. export function exportSysPortlet (query) {
  59. return request({
  60. url: '/system/sysPortlet/export',
  61. method: 'get',
  62. params: query
  63. })
  64. }
  65. // 查询工作台小页管理列表
  66. export function listSysPortletByRoleId (query) {
  67. return request({
  68. url: '/system/sysPortlet/getSysPortletByRoleId',
  69. method: 'get',
  70. params: query
  71. })
  72. }