log.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. 'addBtn': false,
  29. 'editBtn': false,
  30. 'delBtn': false,
  31. 'dicUrl': '/admin/dict/type/log_type',
  32. props: {
  33. label: 'label',
  34. value: 'value'
  35. },
  36. 'column': [{
  37. label: '类型',
  38. prop: 'type',
  39. type: 'select',
  40. dicData: 'log_type',
  41. search: true
  42. }, {
  43. label: '请求接口',
  44. prop: 'requestUri'
  45. }, {
  46. label: 'IP地址',
  47. prop: 'remoteAddr'
  48. }, {
  49. label: '请求方式',
  50. prop: 'method'
  51. }, {
  52. label: '客户端',
  53. prop: 'serviceId'
  54. }, {
  55. label: '请求时间',
  56. prop: 'time'
  57. }, {
  58. label: '创建时间',
  59. prop: 'createTime',
  60. type: 'datetime',
  61. format: 'yyyy-MM-dd HH:mm',
  62. valueFormat: 'yyyy-MM-dd HH:mm:ss'
  63. }]
  64. }