阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.9 KiB

  1. <template>
  2. <div class="app-container tab-container">
  3. <div class="head-container" style="display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px;">
  4. <div class="head-search" style="margin-bottom: 0;">
  5. <el-input
  6. v-model="keyWord"
  7. size="small"
  8. clearable
  9. placeholder="输入关键字可模糊检索"
  10. style="width: 245px;"
  11. class="filter-item"
  12. @clear="crud.toQuery"
  13. @keyup.enter.native="crud.toQuery"
  14. />
  15. <date-range-picker v-model="burryTime" class="date-item" />
  16. <el-button class="filter-item filter-search" size="mini" type="success" icon="el-icon-search" @click="crud.toQuery">搜索</el-button>
  17. <el-button class="filter-item filter-refresh" size="mini" type="warning" icon="el-icon-refresh-left" @click="resetQuery()">重置</el-button>
  18. <el-checkbox v-model="myEditing" style="line-height: 32px; padding-left: 10px;">我参与得编研</el-checkbox>
  19. </div>
  20. <crudOperation :permission="permission" />
  21. </div>
  22. <el-table
  23. ref="table"
  24. :data="crud.data"
  25. row-key="id"
  26. style="width: 100%;"
  27. height="calc(100vh - 330px)"
  28. @row-click="clickRowHandler"
  29. @cell-dblclick="tableDoubleClick"
  30. @selection-change="crud.selectionChangeHandler"
  31. >
  32. <el-table-column type="selection" :reserve-selection="true" width="55" align="center" />
  33. <el-table-column prop="username" label="编研主题" />
  34. <el-table-column prop="username" label="编研类型" align="center" />
  35. <el-table-column prop="username" label="主编人" align="center" />
  36. <el-table-column prop="username" label="其他编研人员" align="center" />
  37. <el-table-column prop="createTime" label="开始时间" width="200">
  38. <template slot-scope="scope">
  39. <div>{{ scope.row.createTime | parseTime }}</div>
  40. </template>
  41. </el-table-column>
  42. <el-table-column prop="createTime" label="结束时间" width="200">
  43. <template slot-scope="scope">
  44. <div>{{ scope.row.createTime | parseTime }}</div>
  45. </template>
  46. </el-table-column>
  47. </el-table>
  48. <pagination v-if="crud.data.length !== 0" />
  49. <EditingDetail ref="editingDetail" />
  50. </div>
  51. </template>
  52. <script>
  53. import CRUD, { presenter, crud } from '@crud/crud'
  54. import pagination from '@crud/Pagination'
  55. import DateRangePicker from '@/components/DateRangePicker'
  56. import crudOperation from '@crud/CRUD.operation'
  57. import EditingDetail from './module/detail'
  58. export default {
  59. name: 'ArchiveEditing',
  60. components: { pagination, DateRangePicker, crudOperation, EditingDetail },
  61. mixins: [presenter(), crud()],
  62. cruds() {
  63. return CRUD({
  64. url: 'api/log/initLog',
  65. title: '档案编研',
  66. optShow: {
  67. add: true,
  68. edit: true,
  69. del: true,
  70. download: false,
  71. reset: false,
  72. group: false
  73. }
  74. })
  75. },
  76. props: {
  77. activeIndex: {
  78. type: Number,
  79. default: 0
  80. }
  81. },
  82. data() {
  83. return {
  84. permission: {
  85. add: ['admin', 'archiveEditing:add'],
  86. edit: ['admin', 'archiveEditing:edit'],
  87. del: ['admin', 'archiveEditing:del']
  88. },
  89. keyWord: null,
  90. options: [
  91. { value: 'username', label: '利用人' },
  92. { value: 'account', label: '利用事由' }
  93. ],
  94. optionVal: '',
  95. burryTime: null,
  96. myEditing: false
  97. }
  98. },
  99. mounted() {
  100. },
  101. methods: {
  102. [CRUD.HOOK.beforeRefresh]() {
  103. },
  104. resetQuery() {
  105. },
  106. clickRowHandler(row) {
  107. // this.$refs.table.clearSelection()
  108. this.$refs.table.toggleRowSelection(row)
  109. },
  110. tableDoubleClick(row) {
  111. this.$refs.editingDetail.editingDetailVisible = true
  112. },
  113. handleCloseDialog(done) {
  114. }
  115. }
  116. }
  117. </script>
  118. <style lang="scss" scoped>
  119. </style>