【前端】智能库房综合管理系统前端项目
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.

113 lines
3.6 KiB

  1. <template>
  2. <div class="import-detail-container">
  3. <ul class="import-tab">
  4. <li :class="{'active': archivesTabIndex == 0}" @click="changeActiveTab(0)">案卷</li>
  5. <li :class="{'active': archivesTabIndex == 1}" @click="changeActiveTab(1)">文件</li>
  6. <li :class="{'active': archivesTabIndex == 2}" @click="changeActiveTab(2)">资料</li>
  7. </ul>
  8. <el-table
  9. ref="table"
  10. :data="tableData"
  11. style="width: 100%"
  12. height="calc(100vh - 504px)"
  13. @row-click="clickRowHandler"
  14. @selection-change="selectionChangeHandler"
  15. >
  16. <el-table-column prop="security_class" label="密级" align="center" width="80px" />
  17. <el-table-column prop="medium_type" label="载体类型" align="center" width="100px" />
  18. <el-table-column prop="micro_number" label="缩微号" align="center" width="80px" />
  19. <el-table-column prop="archive_no" label="档号" align="center" width="200px" />
  20. <el-table-column prop="page_qty" label="文件件数" align="center" width="100px" />
  21. <el-table-column prop="maintitle" label="案卷题名" align="center" show-overflow-tooltip width="240px" />
  22. <el-table-column prop="begin_date" label="起始时间" align="center" width="140px" />
  23. <el-table-column prop="end_date" label="终止时间" align="center" width="140px" />
  24. <el-table-column prop="archive_ctg_no" label="分类号" align="center" width="140px" />
  25. <el-table-column prop="subject_term" label="主题词" align="center" width="140px" />
  26. <el-table-column prop="remarks" label="附注" align="center" width="120px" />
  27. <el-table-column prop="retention" label="保管期限" align="center" width="120px" />
  28. <el-table-column prop="archive_year" label="年度" align="center" width="100px" />
  29. <el-table-column prop="fonds_no" label="全宗" align="center" width="100px" />
  30. <el-table-column prop="piece_no" label="卷号" align="center" width="100px" />
  31. </el-table>
  32. <!--分页组件-->
  33. <el-pagination
  34. :current-page="page.page"
  35. :total="page.total"
  36. :page-size="page.size"
  37. :pager-count="5"
  38. layout="total, prev, pager, next, sizes"
  39. @size-change="handleSizeChange"
  40. @current-change="handleCurrentPage"
  41. />
  42. </div>
  43. </template>
  44. <script>
  45. import tableJson from './table.json'
  46. export default {
  47. name: 'DataImport',
  48. components: { },
  49. data() {
  50. return {
  51. archivesTabIndex: 0,
  52. tableData: [],
  53. page: {
  54. page: 1,
  55. size: 10,
  56. total: 0
  57. }
  58. }
  59. },
  60. created() {
  61. this.tableData = tableJson
  62. },
  63. methods: {
  64. changeActiveTab(index) {
  65. this.archivesTabIndex = index
  66. },
  67. // table
  68. clickRowHandler(row) {
  69. this.$refs.table.toggleRowSelection(row)
  70. },
  71. // table
  72. selectionChangeHandler(val) {
  73. this.selections = val
  74. },
  75. handleSizeChange(size) {
  76. this.page.size = size
  77. this.page.page = 1
  78. },
  79. handleCurrentPage(val) {
  80. this.page.page = val
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang='scss' scoped>
  86. .import-tab{
  87. display: flex;
  88. justify-content: flex-start;
  89. margin-bottom: 10px;
  90. li{
  91. padding: 10px 20px 14px 20px;
  92. font-size: 16px;
  93. color: #339CFF;
  94. cursor: pointer;
  95. &.active{
  96. position: relative;
  97. color: #fff;
  98. &::after{
  99. content: "";
  100. position: absolute;
  101. left: 0;
  102. bottom: -1px;
  103. width: 100%;
  104. height: 3px;
  105. border-radius: 3px;
  106. background-color: #fff;
  107. }
  108. }
  109. }
  110. }
  111. </style>