|
@@ -193,7 +193,7 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- getTypeList()
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
const exType = ref(false)
|
|
const exType = ref(false)
|
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
@@ -232,7 +232,7 @@
|
|
|
current: 1,
|
|
current: 1,
|
|
|
size: 10
|
|
size: 10
|
|
|
})
|
|
})
|
|
|
- loadData(pagination.value)
|
|
|
|
|
|
|
+
|
|
|
// 切换应用标签查询菜单列表
|
|
// 切换应用标签查询菜单列表
|
|
|
const moduleClock = (value, t) => {
|
|
const moduleClock = (value, t) => {
|
|
|
exType.value = false
|
|
exType.value = false
|
|
@@ -260,13 +260,7 @@
|
|
|
const handleScroll = () => {
|
|
const handleScroll = () => {
|
|
|
const tableContainer = window.document.querySelector('.main-content-wrapper')
|
|
const tableContainer = window.document.querySelector('.main-content-wrapper')
|
|
|
const scrollPosition = tableContainer.scrollTop
|
|
const scrollPosition = tableContainer.scrollTop
|
|
|
- const isTop = scrollPosition === 0
|
|
|
|
|
const isBottom = tableContainer.scrollHeight - scrollPosition - 20 < tableContainer.clientHeight
|
|
const isBottom = tableContainer.scrollHeight - scrollPosition - 20 < tableContainer.clientHeight
|
|
|
- if (isTop) {
|
|
|
|
|
- // pagination.value.current = 1
|
|
|
|
|
- // loadData(pagination.value);
|
|
|
|
|
- console.log('重新加载')
|
|
|
|
|
- }
|
|
|
|
|
if (isBottom) {
|
|
if (isBottom) {
|
|
|
if (tableTotal.value > pagination.value.current * pagination.value.size) {
|
|
if (tableTotal.value > pagination.value.current * pagination.value.size) {
|
|
|
pagination.value.current += 1
|
|
pagination.value.current += 1
|
|
@@ -281,6 +275,8 @@
|
|
|
|
|
|
|
|
// 添加scroll监听
|
|
// 添加scroll监听
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
|
+ getTypeList()
|
|
|
|
|
+ loadData(pagination.value)
|
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
|
if (table.value) {
|
|
if (table.value) {
|
|
|
const tableContainer = window.document.querySelector('.main-content-wrapper')
|
|
const tableContainer = window.document.querySelector('.main-content-wrapper')
|