DeptConfigModal.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <a-modal width="50%" v-model:visible="deptvisible" title="部门配置" @cancel="handleCancel(2)" @ok="editDeptHandleOk">
  3. <div :style="{ display: 'flex' }">
  4. <a-card :style="{ 'width': '460px', 'height': '500px', 'overflow-y': 'auto' }" title="机构" hoverable>
  5. <a-tree class="tree-demo" v-model:checked-keys="checkedKeys" v-model:expanded-keys="expandKdys"
  6. :checkable="true" :data="treeData" :show-line="showLine" @check="onCheck" :fieldNames="{
  7. key: 'deptId',
  8. title: 'deptName',
  9. children: 'children',
  10. }">
  11. </a-tree>
  12. </a-card>
  13. <div :style="{ 'display': 'flex', 'flex-direction': 'column' }">
  14. <a-card class="card-demo" title="用户所属部门" :style="{ 'width': '460px', 'height': '500px', 'overflow-y': 'auto' }">
  15. <a-space wrap>
  16. <a-tag v-for="(tag, index) of checkStrictly" :key="tag.deptId">
  17. {{ tag.deptName }}
  18. </a-tag>
  19. </a-space>
  20. <a-divider />
  21. <a-space wrap>
  22. 部门角色:
  23. <a-tag v-for="(tag, index) of checkStrictlyDeptRole" :key="tag.roleId">
  24. {{ tag.roleName }}
  25. </a-tag>
  26. </a-space>
  27. </a-card>
  28. </div>
  29. </div>
  30. </a-modal>
  31. </template>
  32. <script setup>
  33. </script>
  34. <style lang="css" scoped></style>