audit-cover-situation.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <div :class="[$style.wrapHeight, $style.cover]">
  3. <div :class="$style.rowHeight">
  4. <a-card :class="$style.cardBox">
  5. <a-form layout="inline">
  6. <a-form-item label="组织机构:">
  7. <SdGroupPicker
  8. ref="dwRelSelect"
  9. v-model="mainSendUnit"
  10. :single="true"
  11. :read-only="false"
  12. style="width: 300px"
  13. @change="changeUnit"
  14. />
  15. </a-form-item>
  16. <a-form-item label="时间范围:">
  17. <a-date-picker style="width: 300px" />
  18. </a-form-item>
  19. <a-form-item>
  20. <a-button type="primary">
  21. 搜索
  22. </a-button>
  23. </a-form-item>
  24. </a-form>
  25. <div :class="$style.marginTop">
  26. <a-table :columns="columns" :data-source="tableData" bordered>
  27. <a slot="auditReport" slot-scope="text">报告链接</a>
  28. </a-table>
  29. </div>
  30. </a-card>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import components from './_import-components/audit-cover-situation-import'
  36. import SdGroupPicker from '@/common/components/sd-group-picker.vue'
  37. export default {
  38. name: 'AuditCoverSituation',
  39. metaInfo: {
  40. title: 'AuditCoverSituation',
  41. },
  42. components: {
  43. ...components,
  44. SdGroupPicker,
  45. },
  46. data() {
  47. return {
  48. mainSendUnit: [],
  49. columns: [
  50. {
  51. title: '单位名称',
  52. dataIndex: 'name',
  53. },
  54. {
  55. title: '单位简称',
  56. dataIndex: 'shortName',
  57. },
  58. {
  59. title: '上次被审计时间',
  60. dataIndex: 'lastAuditTime',
  61. },
  62. {
  63. tilte: '被审计年度',
  64. dataIndex: 'auditYear',
  65. },
  66. {
  67. title: '原审计报告',
  68. dataIndex: 'auditReport',
  69. scopedSlots: { customRender: 'auditReport' },
  70. },
  71. ],
  72. tableData: [
  73. {
  74. name: 'xxxxxxx',
  75. shortName: 'xxxxxxx',
  76. lastAuditTime: 'xxxxxxx',
  77. auditYear: 'xxxxxxx',
  78. auditReport: 'xxxxxxx',
  79. },
  80. {
  81. name: 'xxxxxxx',
  82. shortName: 'xxxxxxx',
  83. lastAuditTime: 'xxxxxxx',
  84. auditYear: 'xxxxxxx',
  85. auditReport: 'xxxxxxx',
  86. },
  87. ],
  88. }
  89. },
  90. methods: {
  91. changeUnit() {},
  92. },
  93. }
  94. </script>
  95. <style module lang="scss">
  96. @use '@/common/design' as *;
  97. .wrap-height {
  98. position: relative;
  99. height: 100%;
  100. .row-height {
  101. display: flex;
  102. flex: auto;
  103. gap: 10px;
  104. min-height: 100%;
  105. }
  106. }
  107. .cover {
  108. :global(.projectlist .ant-table-empty .ant-table-body) {
  109. overflow-x: hidden;
  110. }
  111. .card-box {
  112. width: 100%;
  113. }
  114. .margin-top {
  115. margin-top: 20px;
  116. }
  117. }
  118. </style>