law-my-case.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <a-tabs ref="tabs" :class="[$style.myCase, 'sd-has-table']">
  3. <template>
  4. <span slot="tabBarExtraContent" :class="$style.morebtn" @click="mored">查看更多 ></span>
  5. </template>
  6. <a-tab-pane key="myCase" :class="$style.panel">
  7. <span slot="tab">
  8. <div :class="$style.bluePoint"></div> 在办案件<span
  9. v-show="shownum"
  10. :class="$style.caseNums"
  11. >{{ caseNums }}</span
  12. >
  13. </span>
  14. <my-case-list
  15. data-url="api/framework/v1/page/businessList"
  16. :search-fields="[]"
  17. :max-results="6"
  18. :hide-pagination="true"
  19. module-id="283805356673781760"
  20. form-list-id="287674105414115328"
  21. :order-by="['IMPORTANT', 'CASE_UPDATE_TIME']"
  22. @setNums="setNums"
  23. />
  24. </a-tab-pane>
  25. </a-tabs>
  26. </template>
  27. <script>
  28. import storeMixin from '@/common/store-mixin'
  29. import MyCaseList from './law-my-case-list.vue'
  30. import components from './_import-components/law-my-case-import'
  31. export default {
  32. name: 'LawMyCase',
  33. metaInfo: {
  34. title: '在办案件',
  35. },
  36. components: {
  37. ...components,
  38. 'my-case-list': MyCaseList,
  39. },
  40. mixins: [storeMixin],
  41. data() {
  42. return {
  43. type: 'myCase',
  44. caseNums: 0,
  45. shownum: false,
  46. }
  47. },
  48. methods: {
  49. mored(type) {
  50. this.$router.push(`/sd-frame/law-all-case-list`)
  51. },
  52. setNums(num) {
  53. this.caseNums = num
  54. this.shownum = true
  55. },
  56. },
  57. }
  58. </script>
  59. <style module lang="scss">
  60. @use '@/common/design' as *;
  61. .morebtn {
  62. font-size: 14px;
  63. cursor: pointer;
  64. }
  65. .syncbtn {
  66. margin-right: 10px;
  67. cursor: pointer;
  68. }
  69. .item {
  70. .body > div {
  71. border: 1px solid #eee;
  72. padding: 0.5rem 0;
  73. }
  74. }
  75. .my-case {
  76. background: transparent;
  77. :global(.ant-tabs-tab-active) {
  78. color: #000000 !important;
  79. font-weight: 600 !important;
  80. span {
  81. padding-left: 5px;
  82. }
  83. }
  84. :global(.ant-tabs-ink-bar-animated) {
  85. display: none !important;
  86. }
  87. :global(.ant-tabs-bar) {
  88. border: none !important;
  89. }
  90. :global(.ant-tabs-top-bar) {
  91. margin: 0 0 5px 0;
  92. }
  93. }
  94. .blue-point {
  95. background: #2775e2;
  96. width: 5px;
  97. height: 20px;
  98. position: absolute;
  99. border-radius: 5px;
  100. left: 0px;
  101. top: 9px;
  102. }
  103. .case-nums {
  104. background: #efefef;
  105. width: 35px;
  106. display: inline-block;
  107. border-radius: 15px;
  108. font-size: 10px;
  109. text-align: center;
  110. padding: 0 !important;
  111. margin-left: 7px;
  112. }
  113. </style>