audit-maintain-log-list.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <div :class="$style.maintainLogListDiv">
  3. <a-card :bordered="false">
  4. <audit-advanced-query
  5. :expand="expand"
  6. :search-data="formData"
  7. ref-name="searchform"
  8. :search-style="{ height: '150px', left: '20px', top: '57px' }"
  9. :search-fun="handleSearch"
  10. @searchedClick="searchedClick"
  11. >
  12. <template>
  13. <a-col :span="12">
  14. <a-form-model-item :label="'操作人员'" prop="creatorName">
  15. <a-input v-model="formData.creatorName" allow-clear />
  16. </a-form-model-item>
  17. </a-col>
  18. <a-col :span="12">
  19. <a-form-model-item :label="'所属单位'" prop="unitName">
  20. <a-input v-model="formData.unitName" allow-clear />
  21. </a-form-model-item>
  22. </a-col>
  23. </template>
  24. </audit-advanced-query>
  25. <sd-data-table-ex
  26. ref="dataTable"
  27. :projectlist="true"
  28. :filter-expressions="expressions"
  29. :columns="columns"
  30. :actions="actions"
  31. form-id="iamModelMaintainLog"
  32. page-id="audit/maintain/iamModelMaintainLog"
  33. :search-fields="['creatorName', 'unitName', 'maintainCode', 'maintainName']"
  34. show-selection
  35. :show-advance-query="true"
  36. @searchbtnClick="searchbtnClick"
  37. >
  38. </sd-data-table-ex>
  39. </a-card>
  40. </div>
  41. </template>
  42. <script>
  43. import TableColumnTypes from '@/common/services/table-column-types'
  44. import auditAdvancedQuery from '../../components/audit-advanced-query.vue'
  45. import auditAdvancedQueryMixins from '../../components/audit-advanced-query-mixins'
  46. import auditAdvancedGroupMixins from '../../components/audit-advanced-group-mixins'
  47. import components from './_import-components/audit-maintain-log-list-import'
  48. export default {
  49. name: 'AuditMaintainLogList',
  50. metaInfo: {
  51. title: '审计模型操作日志',
  52. },
  53. components: {
  54. ...components,
  55. auditAdvancedQuery,
  56. },
  57. mixins: [auditAdvancedQueryMixins, auditAdvancedGroupMixins],
  58. data() {
  59. return {
  60. expressions: [],
  61. formData: {
  62. creatorName: '',
  63. unitName: '',
  64. },
  65. columns: [
  66. {
  67. title: '序号',
  68. dataIndex: 'sortNum',
  69. width: '80px',
  70. customRender: (text, record, index) => `${index + 1}`,
  71. },
  72. {
  73. title: '操作人员',
  74. dataIndex: 'creatorName',
  75. },
  76. {
  77. title: '所属单位',
  78. dataIndex: 'unitName',
  79. },
  80. {
  81. title: '模型编码',
  82. dataIndex: 'maintainCode',
  83. },
  84. {
  85. title: '模型名称',
  86. dataIndex: 'maintainName',
  87. },
  88. {
  89. title: '操作时间',
  90. dataIndex: 'creationTime',
  91. width: '180px',
  92. // sdRender: TableColumnTypes.dateSecondime,
  93. sdRender: TableColumnTypes.date,
  94. defaultSortOrder: 'desc',
  95. sorter: true,
  96. },
  97. {
  98. title: '操作类型',
  99. dataIndex: 'operateType',
  100. },
  101. ],
  102. actions: [],
  103. }
  104. },
  105. created() {},
  106. methods: {
  107. // 查询
  108. handleSearch() {
  109. this.expressions = []
  110. // 操作人员
  111. if (this.formData.creatorName) {
  112. this.expressions.push({
  113. dataType: 'str',
  114. name: 'creatorName',
  115. op: 'like',
  116. stringValue: `%${this.formData.creatorName}%`,
  117. })
  118. }
  119. // 所属单位
  120. if (this.formData.unitName) {
  121. this.expressions.push({
  122. dataType: 'str',
  123. name: 'unitName',
  124. op: 'like',
  125. stringValue: `%${this.formData.unitName}%`,
  126. })
  127. }
  128. },
  129. },
  130. }
  131. </script>
  132. <style module lang="scss">
  133. @use '@/common/design' as *;
  134. .maintainLogListDiv {
  135. :global(.ant-table-content) {
  136. :global(.ant-table-body) {
  137. overflow-x: hidden !important;
  138. }
  139. }
  140. }
  141. </style>