law-check-opinion-list.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div :class="[$style.wrapHeight, $style.lawapply]">
  3. <a-card :bordered="false">
  4. <a-tabs v-model="activeKey" type="line" @change="toggleTabs">
  5. <a-tab-pane key="1" tab="待反馈">
  6. <!-- /sd-frame/sd-task-list?moduleId=272182905903054848&formListId=285190987106795520 -->
  7. <sd-task-list
  8. v-if="ifRouterView"
  9. :module-id="'272182905903054848'"
  10. :form-list-id="'285190987106795520'"
  11. ></sd-task-list>
  12. </a-tab-pane>
  13. <a-tab-pane key="2" tab="已反馈">
  14. <!-- /sd-frame/sd-task-list?moduleId=272182905903054848&formListId=285194796818284544 -->
  15. <sd-task-list
  16. v-if="ifRouterView2"
  17. :module-id="'272182905903054848'"
  18. :form-list-id="'285194796818284544'"
  19. ></sd-task-list>
  20. </a-tab-pane>
  21. </a-tabs>
  22. </a-card>
  23. </div>
  24. </template>
  25. <script>
  26. import sdTaskList from '@/application-manage/sd-task-list.vue'
  27. import sdBusinessList from '../../../../src/application-manage/sd-business-list.vue'
  28. import components from './_import-components/law-check-opinion-list-import'
  29. export default {
  30. name: 'LawCheckOpinionList',
  31. metaInfo: {
  32. title: 'LawCheckOpinionList',
  33. },
  34. components: {
  35. ...components,
  36. sdTaskList,
  37. },
  38. data() {
  39. return {
  40. activeKey: '1',
  41. ifRouterView: true,
  42. ifRouterView2: false,
  43. }
  44. },
  45. methods: {
  46. toggleTabs(key) {
  47. this.activeKey = key
  48. this.ifRouterView = false
  49. this.ifRouterView2 = false
  50. this.ifRouterView3 = false
  51. if (this.activeKey === '1') {
  52. this.$nextTick(() => {
  53. this.ifRouterView = true
  54. })
  55. } else if (this.activeKey === '2') {
  56. this.$nextTick(() => {
  57. this.ifRouterView2 = true
  58. })
  59. }
  60. },
  61. },
  62. }
  63. </script>
  64. <style module lang="scss">
  65. @use '@/common/design' as *;
  66. .lawapply {
  67. :global(.ant-tabs-bar) {
  68. margin-bottom: 8px;
  69. }
  70. :global(.ant-card-body) {
  71. padding-top: 0px;
  72. }
  73. }
  74. </style>