Browse Source

门禁记录和报警记录滚动

master
z_yu 2 years ago
parent
commit
73e9237cde
  1. 1
      src/views/components/SecurityDoor.vue
  2. 1
      src/views/components/WarehouseWarning.vue

1
src/views/components/SecurityDoor.vue

@ -95,6 +95,7 @@ export default {
this.scrollTimer = setInterval(() => {
// scrollTop = bodyWrapper.scrollTop
if (bodyWrapper.scrollTop + this.wrapperHeight >= this.tableData.length * 40) {
bodyWrapper.scrollTop = 0
this.getSecuritydoor()
} else {
bodyWrapper.scrollTop += this.displayNum * 40

1
src/views/components/WarehouseWarning.vue

@ -91,6 +91,7 @@ export default {
this.scrollTimer = setInterval(() => {
// scrollTop = bodyWrapper.scrollTop
if (bodyWrapper.scrollTop + this.wrapperHeight >= this.tableData.length * 40) {
bodyWrapper.scrollTop = 0
this.getAlarmInfo()
} else {
bodyWrapper.scrollTop += this.displayNum * 40

Loading…
Cancel
Save