xm-select-modal.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div>
  3. <a-form-model-item v-if="!hideMultipleOption">
  4. <a-checkbox slot="label" v-model="component.attrFD.formItemProps.inputProps.multiple">
  5. 多选
  6. </a-checkbox>
  7. </a-form-model-item>
  8. <a-form-model-item label="选择范围域">
  9. <a-input v-model="component.attrFD.formItemProps.inputProps.selectField"></a-input>
  10. </a-form-model-item>
  11. <a-form-model-item label="被检查单位ID回写域">
  12. <a-input v-model="component.attrFD.formItemProps.inputProps.groupIdField"></a-input>
  13. </a-form-model-item>
  14. <a-form-model-item label="被检查单位code回写域">
  15. <a-input v-model="component.attrFD.formItemProps.inputProps.groupCodeField"></a-input>
  16. </a-form-model-item>
  17. <a-form-model-item label="被检查单位名称回写域">
  18. <a-input v-model="component.attrFD.formItemProps.inputProps.groupNameField"></a-input>
  19. </a-form-model-item>
  20. <a-form-model-item label="字符长度范围">
  21. <sd-range-input
  22. :max.sync="component.attr.maxLength"
  23. :min.sync="component.attr.minLength"
  24. disable-negative
  25. :max-max="2000"
  26. />
  27. </a-form-model-item>
  28. </div>
  29. </template>
  30. <script>
  31. import { Input, Button } from 'ant-design-vue'
  32. import sdRangeInput from '@/form-designer/sd-range-input'
  33. import auditGroupPicker from '../../../src_product/iam/components/picker/audit-group-picker.vue'
  34. import components from './_import-components/xm-select-modal-import'
  35. export const metaInfo = {
  36. caption: '被检查单位选择',
  37. component: {
  38. props: ['designerData'],
  39. render() {
  40. return (
  41. <auditGroupPicker
  42. v-bind='$attrs'
  43. single={false}
  44. read-only={false}
  45. selectchecked={true}
  46. selectcheckfw={[]}
  47. />
  48. )
  49. },
  50. },
  51. icon: 'sd-list',
  52. order: 900,
  53. }
  54. export const fieldProps = {
  55. dataType: 'selectperson',
  56. attr: { selectionType: 'GROUP', multiple: 'true' },
  57. attrFD: {
  58. formItemProps: {
  59. inputProps: {
  60. selectField: '',
  61. groupIdField: '',
  62. groupCodeField: '',
  63. groupNameField: '',
  64. multiple: false,
  65. },
  66. },
  67. },
  68. }
  69. export default {
  70. name: 'XmSelectModal',
  71. components: { sdRangeInput, ...components },
  72. data() {
  73. return {}
  74. },
  75. methods: {},
  76. }
  77. </script>
  78. <style module lang="scss">
  79. @use '@/common/design' as *;
  80. :global(.xmselinput) {
  81. :global .ant-input {
  82. width: 60%;
  83. margin-right: 5px;
  84. }
  85. :global .ant-btn {
  86. padding: 0 5px;
  87. }
  88. }
  89. </style>