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

149 lines
4.4 KiB

  1. <template>
  2. <div class="lend-query">
  3. <head-slot>
  4. <!-- <el-button icon="el-icon-download" size="mini" class="margin-r" disabled
  5. >导出</el-button
  6. > -->
  7. <crudOperation />
  8. <el-select
  9. v-model="lendState"
  10. class="filter-item"
  11. style="width: 100px; height: 30px;margin-left:10px"
  12. >
  13. <el-option
  14. v-for="item in lendStateOptions"
  15. :key="item.value"
  16. :label="item.label"
  17. :value="item.value"
  18. />
  19. </el-select>
  20. <!-- <el-input v-model="query.name" clearable size="small" placeholder="输入岗位名称搜索" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> -->
  21. <el-input
  22. v-model="keyWord"
  23. size="small"
  24. clearable
  25. placeholder="请输入关键词"
  26. style="width: 300px"
  27. class="input-prepend"
  28. @keyup.enter.native="crud.toQuery"
  29. >
  30. <el-select slot="prepend" v-model="cateSearch" style="width: 100px">
  31. <el-option
  32. v-for="item in cateSearchOptions"
  33. :key="item.value"
  34. :label="item.label"
  35. :value="item.value"
  36. />
  37. </el-select>
  38. </el-input>
  39. <rrOperation />
  40. </head-slot>
  41. <!--表格渲染-->
  42. <el-table
  43. ref="fieldTable"
  44. style="min-width: 100%"
  45. height="calc(100vh - 355px)"
  46. @selection-change="selectionChangeHandler"
  47. @row-click="clickRowHandler"
  48. >
  49. <el-table-column type="selection" width="55" />
  50. <el-table-column type="index" label="序号" width="55" />
  51. <el-table-column prop="isColumnLength" label="借阅状态" min-width="85" />
  52. <el-table-column prop="fieldCnName" label="所属门类" min-width="140" />
  53. <el-table-column prop="fieldName" label="档号" min-width="140" />
  54. <el-table-column label="题名" min-width="85" />
  55. <el-table-column prop="isColumnLength" label="盒名称" min-width="85" />
  56. <el-table-column prop="isColumnLength" label="存放位置" min-width="85" />
  57. <el-table-column prop="isColumnLength" label="借阅人" min-width="85" />
  58. <el-table-column prop="isColumnLength" label="借阅时间" min-width="85" />
  59. <el-table-column prop="isColumnLength" label="借阅目的" min-width="85" />
  60. </el-table>
  61. <!-- 分页 -->
  62. <pagination />
  63. </div>
  64. </template>
  65. <script>
  66. import headSlot from '../components/headSlot.vue'
  67. import CRUD, { presenter } from '@crud/crud'
  68. import pagination from '@crud/Pagination'
  69. import rrOperation from '@crud/RR.operation'
  70. import crudOperation from '@crud/CRUD.operation'
  71. export default {
  72. components: { headSlot, pagination, rrOperation, crudOperation },
  73. mixins: [presenter()],
  74. cruds() {
  75. return CRUD({
  76. // title: '岗位',
  77. // url: 'api/job',
  78. // crudMethod: { ...crudJob },
  79. optShow: {
  80. add: false,
  81. edit: false,
  82. del: false,
  83. download: true,
  84. group: false
  85. }
  86. })
  87. },
  88. data() {
  89. return {
  90. tableData: [],
  91. lendStateOptions: [
  92. { value: '选项1', label: '全部' },
  93. { value: '选项2', label: '待登记' },
  94. { value: '选项3', label: '待借阅' },
  95. { value: '选项4', label: '待归还' },
  96. { value: '选项5', label: '逾期' },
  97. { value: '选项6', label: '已归还' }
  98. ],
  99. lendState: '全部',
  100. keyWord: '',
  101. cateSearch: '借阅人',
  102. cateSearchOptions: [
  103. { value: '选项1', label: '借阅人' },
  104. { value: '选项2', label: '档号' },
  105. { value: '选项3', label: '题名' },
  106. { value: '选项4', label: '位置' },
  107. { value: '选项5', label: '档案盒' },
  108. { value: '选项6', label: '条形码' },
  109. { value: '选项6', label: 'TID' }
  110. ]
  111. }
  112. },
  113. methods: {
  114. selectionChangeHandler() {
  115. console.log('selectionChangeHandler')
  116. },
  117. clickRowHandler() {
  118. console.log('clickRowHandler')
  119. }
  120. }
  121. }
  122. </script>
  123. <style rel="stylesheet/scss" lang="scss" scoped>
  124. ::v-deep.input-prepend {
  125. margin: 0 10px 0 -10px;
  126. background-color: #021941;
  127. border-radius: 3px;
  128. // word-spacing: -10px;
  129. border: 1px solid #339cff;
  130. .el-select {
  131. background-color: #021941;
  132. color: #fff;
  133. }
  134. .el-input__inner {
  135. background-color: #021941;
  136. border: none;
  137. caret-color: #fff;
  138. height: 28px;
  139. line-height: 28px;
  140. }
  141. .el-input-group__prepend {
  142. border: none;
  143. }
  144. }
  145. </style>