MSADMulti.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.domain')}DN`" :extra="$t('system.text_222')">
  16. <a-input v-decorator="decorators.domain_tree_dn" />
  17. </a-form-item>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'IDPMSADMultiEdit',
  23. props: {
  24. offsetWrapperCol: {
  25. type: Object,
  26. required: true,
  27. },
  28. fd: {
  29. type: Object,
  30. required: true,
  31. },
  32. },
  33. data () {
  34. return {
  35. decorators: {
  36. url: [
  37. 'url',
  38. {
  39. rules: [
  40. { required: true, message: this.$t('system.text_236') },
  41. ],
  42. },
  43. ],
  44. suffix: [
  45. 'suffix',
  46. {
  47. rules: [
  48. { required: true, message: this.$t('system.text_237') },
  49. ],
  50. },
  51. ],
  52. user: [
  53. 'user',
  54. {
  55. rules: [
  56. { required: true, message: this.$t('scope.text_331') },
  57. ],
  58. },
  59. ],
  60. password: [
  61. 'password',
  62. {
  63. rules: [
  64. { required: true, message: this.$t('scope.text_333') },
  65. ],
  66. },
  67. ],
  68. domain_tree_dn: [
  69. 'domain_tree_dn',
  70. {
  71. rules: [
  72. { required: false, message: this.$t('common_529', [this.$t('dictionary.domain')]) },
  73. ],
  74. },
  75. ],
  76. },
  77. }
  78. },
  79. }
  80. </script>