Browse Source

20250429

master
qiezi 9 months ago
parent
commit
0f13b47ff3
  1. 35
      src/views/modules/board/VulcanizationDispatchOrder.vue

35
src/views/modules/board/VulcanizationDispatchOrder.vue

@ -20,7 +20,7 @@ export default {
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
columnWidth: 38,
columnWidth: 30,
format: null, format: null,
functionId: this.$route.meta.menuId, functionId: this.$route.meta.menuId,
sortLv: 0, sortLv: 0,
@ -56,7 +56,7 @@ export default {
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
columnWidth: 100,
columnWidth: 105,
format: null, format: null,
functionId: this.$route.meta.menuId, functionId: this.$route.meta.menuId,
sortLv: 0, sortLv: 0,
@ -193,6 +193,7 @@ export default {
align: 'center' align: 'center'
}, },
], ],
scrollTimer:'',
} }
}, },
methods:{ methods:{
@ -204,7 +205,30 @@ export default {
this.dataList = [] this.dataList = []
this.$message.warning(data.msg) this.$message.warning(data.msg)
} }
}
},
//
autoScroll(stop) {
const table = this.$refs.scrollTable
// div
const divData = table.$refs.bodyWrapper
// (1001)
if (stop) {
//
window.clearInterval(this.scrollTimer)
} else {
this.scrollTimer = window.setInterval(() => {
// 1
divData.scrollTop += 1
// (+=)
if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
// table
divData.scrollTop = 0
// table=() - /2
// divData.scrollTop = divData.scrollTop - divData.scrollHeight / 2
}
}, 150) //
}
},
}, },
created() { created() {
this.handleQuery(); this.handleQuery();
@ -212,8 +236,12 @@ export default {
this.handleQuery(); this.handleQuery();
},this.setTimeoutDelay) },this.setTimeoutDelay)
}, },
mounted() {
this.autoScroll()
},
destroyed() { destroyed() {
clearInterval(this.refreshTool) clearInterval(this.refreshTool)
this.autoScroll(true)
} }
} }
</script> </script>
@ -225,6 +253,7 @@ export default {
height="100%" height="100%"
:data="dataList" :data="dataList"
border border
ref="scrollTable"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
v-for="(item,index) in columnList" :key="index" v-for="(item,index) in columnList" :key="index"

Loading…
Cancel
Save