This commit is contained in:
2025-09-15 16:11:38 +08:00
parent 39e9b9d472
commit 24dc4957fc

View File

@ -73,9 +73,9 @@
<MyTable <MyTable
:tableData="it.tableList" :tableData="it.tableList"
:tableColumn="it.tableColumn" :tableColumn="it.tableColumn"
:tableHeight="pageData.tableHeight"
:key="idx+''+it.keyCount" :key="idx+''+it.keyCount"
:fixed="false" :fixed="false"
:tableHeight="pageData.tableHeight"
:tabelModel="it.title" :tabelModel="it.title"
:tableConfiger="pageData.tableConfiger" :tableConfiger="pageData.tableConfiger"
:controlsWidth="pageData.controlsWidth" :controlsWidth="pageData.controlsWidth"
@ -83,7 +83,6 @@
<template #jqlbdm="{ row }"> <template #jqlbdm="{ row }">
<DictTag :tag="false" :value="row.jqlbdm" :options="JQLB" /> <DictTag :tag="false" :value="row.jqlbdm" :options="JQLB" />
</template> </template>
<!-- 操作 -->
<template #controls="{ row }"> <template #controls="{ row }">
<el-link type="primary" size="small" @click="handleHs(row)">网上会商</el-link> <el-link type="primary" size="small" @click="handleHs(row)">网上会商</el-link>
</template> </template>
@ -168,7 +167,7 @@ const list = reactive([
pageConfiger:{ pageConfiger:{
page:1, page:1,
total:0, total:0,
pageSize:10, pageSize:6,
}, },
tableColumn:[ tableColumn:[
{ label: "舆情标题", prop: "yqbt",showOverflowTooltip: true}, { label: "舆情标题", prop: "yqbt",showOverflowTooltip: true},
@ -184,7 +183,7 @@ const list = reactive([
pageConfiger:{ pageConfiger:{
page:1, page:1,
total:0, total:0,
pageSize:10, pageSize:6,
}, },
tableColumn:[ tableColumn:[
{ label: "接警单编号", prop: "jjdbh",showOverflowTooltip: true}, { label: "接警单编号", prop: "jjdbh",showOverflowTooltip: true},
@ -201,7 +200,7 @@ const list = reactive([
pageConfiger:{ pageConfiger:{
page:1, page:1,
total:0, total:0,
pageSize:10, pageSize:6,
}, },
tableColumn:[ tableColumn:[
{ label: "案件编号", prop: "ajbh",showOverflowTooltip: true}, { label: "案件编号", prop: "ajbh",showOverflowTooltip: true},
@ -217,7 +216,7 @@ const list = reactive([
pageConfiger:{ pageConfiger:{
page:1, page:1,
total:0, total:0,
pageSize:10, pageSize:6,
}, },
tableColumn:[ tableColumn:[
{ label: "隐患标题", prop: "yhbt",showOverflowTooltip: true}, { label: "隐患标题", prop: "yhbt",showOverflowTooltip: true},
@ -244,6 +243,7 @@ const pageData = reactive({
onMounted(() => { onMounted(() => {
// getCount(); //获取统计数据 // getCount(); //获取统计数据
tabHeightFn()
getJqList() //警情列表 getJqList() //警情列表
}); });
@ -300,6 +300,7 @@ const changeSize = (e,type) =>{
} }
// 警情列表
const getJqList = () =>{ const getJqList = () =>{
let params = { let params = {
pageCurrent: list[1].pageConfiger.page, pageCurrent: list[1].pageConfiger.page,
@ -382,7 +383,7 @@ const onSearch = () =>{
const tabHeightFn = () => { const tabHeightFn = () => {
pageData.boxHeight = window.innerHeight - searchBox.value.offsetHeight - 250 pageData.boxHeight = window.innerHeight - searchBox.value.offsetHeight - 250
nextTick(() => { nextTick(() => {
pageData.tableHeight = listBoxRef.value[0].offsetHeight - 240; pageData.tableHeight = listBoxRef.value[0].offsetHeight - 70;
}); });
window.onresize = function () { window.onresize = function () {
tabHeightFn(); tabHeightFn();
@ -484,13 +485,13 @@ const tabHeightFn = () => {
} }
.listBox{ .listBox{
height: calc(100% - 110px);
margin-top: 4px; margin-top: 4px;
border-radius: 10px; border-radius: 10px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
overflow: hidden; overflow: hidden;
overflow-y: auto;
.list-item{ .list-item{
width: 49.5%; width: 49.5%;
height: calc(100% / 2 - 5px); height: calc(100% / 2 - 5px);
@ -504,7 +505,6 @@ const tabHeightFn = () => {
font-size: 16px; font-size: 16px;
} }
.list-table{ .list-table{
height: calc(100% - 30px);
margin-top: 5px; margin-top: 5px;
overflow: hidden; overflow: hidden;
} }
@ -554,3 +554,4 @@ const tabHeightFn = () => {
} }
</style> </style>