OpenLdapOne.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div>
  3. <a-form-item :label="$t('system.text_217')" :extra="$t('system.text_218')">
  4. <a-input v-decorator="decorators.url" />
  5. </a-form-item>
  6. <a-form-item :label="$t('system.text_219')" :extra="$t('system.text_220')">
  7. <a-input v-decorator="decorators.suffix" />
  8. </a-form-item>
  9. <a-form-item :label="$t('system.text_126')">
  10. <a-input v-decorator="decorators.user" />
  11. </a-form-item>
  12. <a-form-item :label="$t('system.text_221')">
  13. <a-input-password v-decorator="decorators.password" />
  14. </a-form-item>
  15. <a-form-item :label="`${$t('dictionary.user')}DN`" :extra="$t('system.text_222')">
  16. <a-input v-decorator="decorators.user_tree_dn" />
  17. </a-form-item>
  18. <a-form-item :label="`${$t('dictionary.group')}DN`" :extra="$t('system.text_222')">
  19. <a-input v-decorator="decorators.group_tree_dn" />
  20. </a-form-item>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'IDPOpenLdapOneEdit',
  26. props: {
  27. offsetWrapperCol: {
  28. type: Object,
  29. required: true,
  30. },
  31. fd: {
  32. type: Object,
  33. required: true,
  34. },
  35. },
  36. data () {
  37. return {
  38. decorators: {
  39. url: [
  40. 'url',
  41. {
  42. rules: [
  43. { required: true, message: this.$t('system.text_236') },
  44. ],
  45. },
  46. ],
  47. suffix: [
  48. 'suffix',
  49. {
  50. rules: [
  51. { required: true, message: this.$t('system.text_237') },
  52. ],
  53. },
  54. ],
  55. user: [
  56. 'user',
  57. {
  58. rules: [
  59. { required: true, message: this.$t('scope.text_331') },
  60. ],
  61. },
  62. ],
  63. password: [
  64. 'password',
  65. {
  66. rules: [
  67. { required: true, message: this.$t('scope.text_333') },
  68. ],
  69. },
  70. ],
  71. user_tree_dn: [
  72. 'user_tree_dn',
  73. {
  74. rules: [
  75. { required: false, message: this.$t('system.text_240') },
  76. ],
  77. },
  78. ],
  79. group_tree_dn: [
  80. 'group_tree_dn',
  81. {
  82. rules: [
  83. { required: false, message: this.$t('system.text_241') },
  84. ],
  85. },
  86. ],
  87. },
  88. }
  89. },
  90. }
  91. </script>