补召列表双滚动条问题修改

This commit is contained in:
zhujiyan
2024-10-17 14:33:00 +08:00
parent 8a1a9d31ab
commit 244ceaf114

View File

@@ -1,6 +1,13 @@
<!-- 补召日志 --> <!-- 补召日志 -->
<template> <template>
<el-dialog modal-class="analysisList" v-model="dialogVisible" title="补召日志" width="70%" draggable @closed="close"> <el-dialog
modal-class="analysisList"
v-model="dialogVisible"
title="补召日志"
width="70%"
draggable
@closed="close"
>
<TableHeader date-picker></TableHeader> <TableHeader date-picker></TableHeader>
<Table ref="tableRef" /> <Table ref="tableRef" />
</el-dialog> </el-dialog>
@@ -21,7 +28,7 @@ height.value = window.innerHeight < 1080 ? 230 : 450
const detailRef: any = ref() const detailRef: any = ref()
const tableStore: any = new TableStore({ const tableStore: any = new TableStore({
url: '/cs-device-boot/portableOfflLog/queryMainLogPage', url: '/cs-device-boot/portableOfflLog/queryMainLogPage',
publicHeight: 200, publicHeight: 400,
method: 'POST', method: 'POST',
column: [ column: [
// { width: '60', type: 'checkbox', fixed: 'left' }, // { width: '60', type: 'checkbox', fixed: 'left' },
@@ -79,6 +86,7 @@ const tableStore: any = new TableStore({
}, },
loadCallback: () => { loadCallback: () => {
// tableStore.table.data=[] // tableStore.table.data=[]
tableStore.table.height = 400
console.log(tableStore.table.data, 'tableStore.table.data') console.log(tableStore.table.data, 'tableStore.table.data')
} }
}) })
@@ -99,7 +107,7 @@ const close = () => {
const updateViewportHeight = async () => { const updateViewportHeight = async () => {
// height.value = window.innerHeight; // height.value = window.innerHeight;
height.value = window.innerHeight < 1080 ? 230 : 450 height.value = window.innerHeight < 1080 ? 230 : 450
tableStore.table.publicHeight = height.value // tableStore.table.publicHeight = height.value
// await tableStore.index() // await tableStore.index()
} }