law-check-apply-list.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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=282352741653991424 -->
  7. <sd-task-list
  8. v-if="ifRouterView"
  9. :module-id="'272182905903054848'"
  10. :form-list-id="'282352741653991424'"
  11. ></sd-task-list>
  12. </a-tab-pane>
  13. <a-tab-pane key="2" tab="审查中">
  14. <!-- /sd-frame/sd-task-list?moduleId=272182905903054848&formListId=282603215548370944 -->
  15. <sd-task-list
  16. v-if="ifRouterView2"
  17. :module-id="'272182905903054848'"
  18. :form-list-id="'282603215548370944'"
  19. ></sd-task-list>
  20. </a-tab-pane>
  21. <a-tab-pane key="3" tab="已反馈">
  22. <!-- /sd-frame/sd-task-list?moduleId=272182905903054848&formListId=282607519319511040 -->
  23. <sd-task-list
  24. v-if="ifRouterView3"
  25. :module-id="'272182905903054848'"
  26. :form-list-id="'282607519319511040'"
  27. ></sd-task-list>
  28. </a-tab-pane>
  29. </a-tabs>
  30. </a-card>
  31. </div>
  32. </template>
  33. <script>
  34. import sdBusinessList from '../../../../src/application-manage/sd-business-list.vue'
  35. import sdTaskList from '../../../../src/application-manage/sd-task-list.vue'
  36. import components from './_import-components/law-check-apply-list-import'
  37. export default {
  38. name: 'LawCheckApplyList',
  39. metaInfo: {
  40. title: 'LawCheckApplyList',
  41. },
  42. components: {
  43. ...components,
  44. sdTaskList,
  45. },
  46. data() {
  47. return {
  48. activeKey: '1',
  49. ifRouterView: true,
  50. ifRouterView2: false,
  51. ifRouterView3: false,
  52. }
  53. },
  54. methods: {
  55. toggleTabs(key) {
  56. this.activeKey = key
  57. this.ifRouterView = false
  58. this.ifRouterView2 = false
  59. this.ifRouterView3 = false
  60. if (this.activeKey === '1') {
  61. this.$nextTick(() => {
  62. this.ifRouterView = true
  63. })
  64. } else if (this.activeKey === '2') {
  65. this.$nextTick(() => {
  66. this.ifRouterView2 = true
  67. })
  68. } else if (this.activeKey === '3') {
  69. this.$nextTick(() => {
  70. this.ifRouterView3 = true
  71. })
  72. }
  73. },
  74. },
  75. }
  76. </script>
  77. <style module lang="scss">
  78. @use '@/common/design' as *;
  79. .lawapply {
  80. :global(.ant-tabs-bar) {
  81. margin-bottom: 8px;
  82. }
  83. :global(.ant-card-body) {
  84. padding-top: 0px;
  85. }
  86. }
  87. </style>