Commit a4af1baf authored by zhengke's avatar zhengke

修复销售 模版 广告翻页

parent 83b2495b
<template>
<div ref="SellTemplateRef">
<div ref="SellTemplateRef" style="background: #f3f6fb;height:100vh;overflow: auto;">
<div style="padding: 30px; max-width:1440px; margin:0 auto;">
<el-row justify="space-between" class="items-center">
<el-col :span="6" class="row items-center">
<el-button-group class="ml-4">
......@@ -93,6 +94,8 @@
<div style="height:40px;" class="q-mt-md no-bg" background="transparent" v-loading="loading" element-loading-text="正在加载中"></div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
......@@ -142,6 +145,7 @@
console.log(Id)
queryObj.TemplateType = Id
searchData.value.SellTemplateType = Id
queryObj.pageIndex = 1
querySearchHandler()
}
const DeleteTemplate = async (item:any) => {
......@@ -231,7 +235,7 @@
if(SellTemplateRef.value && !loading.value){
let maxHeight = SellTemplateRef.value.scrollHeight - SellTemplateRef.value.offsetHeight
let scrollTop = SellTemplateRef.value.scrollTop
if(maxHeight - scrollTop==0 && queryObj.pageCount > queryObj.pageIndex) {
if((maxHeight - scrollTop==0||maxHeight - scrollTop<1) && queryObj.pageCount > queryObj.pageIndex) {
queryObj.pageIndex++
querySearchHandler()
}
......
<template>
<div class="common-layout" style="background: #f3f6fb;height:100vh;overflow: auto;">
<div style="padding: 30px; max-width:1440px; margin:0 auto;height: 100%;">
<div class="rounded-bottom rounded-top">
<SellTemplate />
</div>
</div>
</div>
</template>
<script setup lang="ts">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment