law-team-list.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div :class="$style.wrapHeight">
  3. <div :class="$style.rowHeight">
  4. <law-team-tree
  5. ref="lawTeamTree"
  6. show-line
  7. top-node-text="法律队伍"
  8. :is-select-dep="true"
  9. :draggable="false"
  10. @treeSelect="treeSelect"
  11. ></law-team-tree>
  12. <div :class="$style.rightcard">
  13. <a-card>
  14. <sd-task-list
  15. :module-id="this.$route.query.moduleId"
  16. :form-list-id="this.$route.query.formListId"
  17. :filter="Expressions"
  18. ></sd-task-list>
  19. </a-card>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import lawTeamTree from './law-team-tree.vue'
  26. import components from './_import-components/law-team-list-import'
  27. import sdTaskList from '@/application-manage/sd-task-list.vue'
  28. export default {
  29. name: 'LawTeamList',
  30. metaInfo: {
  31. title: '法律队伍管理',
  32. },
  33. components: {
  34. ...components,
  35. sdTaskList,
  36. lawTeamTree,
  37. },
  38. data() {
  39. return {
  40. Expressions: [],
  41. }
  42. },
  43. methods: {
  44. treeSelect(selectedKeys) {
  45. if (selectedKeys[0] === -1 || selectedKeys[0] === '-1') {
  46. this.Expressions = []
  47. } else {
  48. this.Expressions = [
  49. {
  50. dataType: 'str',
  51. name: 'OWNER_ORG_ID',
  52. op: 'eq',
  53. stringValue: selectedKeys[0],
  54. },
  55. ]
  56. }
  57. },
  58. },
  59. }
  60. </script>
  61. <style module lang="scss">
  62. @use '@/common/design' as *;
  63. .wrap-height {
  64. height: 100%;
  65. .row-height {
  66. display: flex;
  67. flex: auto;
  68. height: 100%;
  69. .rightcard {
  70. flex: 1;
  71. width: calc(100% - 20%);
  72. height: 100%;
  73. :global .ant-card,
  74. :global .ant-card-body {
  75. height: 100%;
  76. }
  77. :global .ant-table-default {
  78. height: 58vh;
  79. overflow: auto;
  80. }
  81. :global .header_sd-data-table_common .ant-btn:nth-child(2) {
  82. display: none;
  83. }
  84. }
  85. }
  86. }
  87. </style>