log.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. export const tableOption = {
  18. border: true,
  19. index: true,
  20. indexLabel: '序号',
  21. stripe: true,
  22. menuAlign: 'center',
  23. menuWidth: 150,
  24. align: 'center',
  25. refreshBtn: true,
  26. showClomnuBtn: false,
  27. searchSize: 'mini',
  28. searchMenuSpan: 6,
  29. addBtn: false,
  30. editBtn: false,
  31. viewBtn: true,
  32. props: {
  33. label: 'label',
  34. value: 'value'
  35. },
  36. column: [{
  37. label: '类型',
  38. prop: 'type',
  39. type: 'select',
  40. dicUrl: '/admin/dict/type/log_type',
  41. search: true
  42. }, {
  43. label: '标题',
  44. prop: 'title'
  45. }, {
  46. label: 'IP地址',
  47. prop: 'remoteAddr'
  48. }, {
  49. label: '请求方式',
  50. prop: 'method'
  51. }, {
  52. label: '客户端',
  53. prop: 'serviceId'
  54. }, {
  55. width: 80,
  56. label: '请求时间',
  57. prop: 'time'
  58. }, {
  59. width: 150,
  60. label: '创建时间',
  61. prop: 'createTime',
  62. type: 'datetime',
  63. format: 'yyyy-MM-dd HH:mm',
  64. valueFormat: 'yyyy-MM-dd HH:mm:ss'
  65. }]
  66. }