飞天云平台-国产化
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.

72 lines
1.7 KiB

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. <template>
  2. <div style="height: calc(100vh - 232px);">
  3. <Search :is-log-type="isLogType" />
  4. <el-table
  5. ref="table"
  6. :data="crud.data"
  7. style="width: 100%;"
  8. height="calc(100vh - 330px)"
  9. >
  10. <el-table-column type="index" label="序号" width="55" align="center" />
  11. <el-table-column prop="cdoorCode" label="安全门设备" />
  12. <el-table-column prop="inCount" label="进馆人次" />
  13. <el-table-column prop="outCount" label="出馆人次" />
  14. <el-table-column prop="LastTime" label="时间">
  15. <template slot-scope="scope">
  16. <div>{{ scope.row.LastTime | parseTime }}</div>
  17. </template>
  18. </el-table-column>
  19. </el-table>
  20. <pagination v-if="crud.data.length !== 0" />
  21. </div>
  22. </template>
  23. <script>
  24. import CRUD, { presenter, crud, header } from '@crud/crud'
  25. import pagination from '@crud/Pagination'
  26. import Search from '../search.vue'
  27. import { mapGetters } from 'vuex'
  28. export default {
  29. name: 'LoginLog',
  30. components: { pagination, Search },
  31. mixins: [presenter(), crud(), header()],
  32. cruds() {
  33. return CRUD({
  34. url: 'api/accessLog/initSafetyDoorLog',
  35. sort: [],
  36. optShow: {
  37. add: false,
  38. edit: false,
  39. del: false,
  40. download: false,
  41. reset: false,
  42. group: false
  43. }
  44. })
  45. },
  46. data() {
  47. return {
  48. isLogType: 'visitor',
  49. selections: []
  50. }
  51. },
  52. computed: {
  53. ...mapGetters([
  54. 'user'
  55. ])
  56. },
  57. methods: {
  58. [CRUD.HOOK.beforeRefresh]() {
  59. this.crud.query.libcode = this.user.fonds.fondsNo
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. ::v-deep .el-pagination{
  66. margin: 24px 0 10px 0 !important
  67. }
  68. </style>