sys-public-param.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. import { rule } from "@/util/validateRules";
  18. export const tableOption = {
  19. searchShow: false,
  20. column: [
  21. {
  22. label: '名称',
  23. search: true,
  24. prop: 'publicName',
  25. rules: [
  26. { required: true, message: '请输名称', trigger: 'blur' },
  27. { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
  28. { validator: rule.validatorNameCn, trigger: 'blur'}
  29. ]
  30. },
  31. {
  32. label: '键',
  33. prop: 'publicKey',
  34. rules: [
  35. { required: true, message: '请输入键', trigger: 'blur' },
  36. { validator: rule.validatorKey, trigger: 'blur'}
  37. ]
  38. },
  39. {
  40. label: '值',
  41. overHidden: true,
  42. prop: 'publicValue',
  43. rules: [
  44. { required: true, message: '请输入值', trigger: 'blur' }
  45. ]
  46. },
  47. {
  48. label: '编码',
  49. prop: 'validateCode'
  50. },
  51. {
  52. label: '类型',
  53. prop: 'system',
  54. type: 'select',
  55. dicUrl: '/admin/dict/type/dict_type',
  56. rules: [{
  57. required: true,
  58. message: '请输入类型',
  59. trigger: 'blur'
  60. }],
  61. search: true
  62. },
  63. {
  64. label: '状态',
  65. prop: 'status',
  66. width: 80,
  67. type: 'select',
  68. dicUrl: '/admin/dict/type/status_type'
  69. },
  70. {
  71. label: '类型',
  72. prop: 'publicType',
  73. width: 80,
  74. type: 'select',
  75. dicUrl: '/admin/dict/type/param_type',
  76. rules: [{
  77. required: true,
  78. message: '请选择类型',
  79. trigger: 'blur'
  80. }]
  81. }
  82. // 省略 ...
  83. ]
  84. }