修改冀北问题

This commit is contained in:
guanj
2025-12-09 20:04:55 +08:00
parent 8c41a8fc77
commit 0fe2d2b911
49 changed files with 6357 additions and 5917 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="default-main">
<div >
<TableHeader ref="TableHeaderRef">
<template v-slot:select>
<el-form-item label="名称">
@@ -26,6 +26,7 @@ const tableStore = new TableStore({
url: '/supervision-boot/libModel/pageLibModelQuery',
method: 'POST',
showPage: true, // 确保启用分页
publicHeight: 60,
column: [
{
title: '典型设备',

View File

@@ -1,15 +1,19 @@
<template>
<div class="default-main">
<div>
<TableHeader>
<template v-slot:select>
<el-form-item label="名称">
<el-input v-model="tableStore.table.params.searchValue" clearable
placeholder="请输入搜索名称" maxlength="32" show-word-limit/>
<el-input
v-model="tableStore.table.params.searchValue"
clearable
placeholder="请输入搜索名称"
maxlength="32"
show-word-limit
/>
</el-form-item>
</template>
</TableHeader>
<Table ref="tableRef" isGroup/>
<Table ref="tableRef" isGroup />
</div>
</template>
<script setup lang="tsx">
@@ -23,7 +27,8 @@ const tableRef = ref()
const tableStore = new TableStore({
url: '/supervision-boot/libModel/pageLibModelQuery',
method: 'POST',
column: [
publicHeight: 60,
column: [
{
title: '谐波源',
children: [
@@ -32,12 +37,14 @@ const tableStore = new TableStore({
title: '序号',
width: '80',
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
return (
(tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
)
}
},
{ field: 'name', title: '名称',minWidth: 200 },
{ field: 'voltage', title: '电压等级',minWidth: 200 },
{ field: 'capacity', title: '容量',minWidth: 200 }
{ field: 'name', title: '名称', minWidth: 200 },
{ field: 'voltage', title: '电压等级', minWidth: 200 },
{ field: 'capacity', title: '容量', minWidth: 200 }
]
},
{
@@ -50,13 +57,13 @@ const tableStore = new TableStore({
}))
}
],
// 在请求发送前处理参数
// 在请求发送前处理参数
beforeSearchFun: () => {
tableStore.table.params.pageSize = 100
tableStore.table.params.pageSize = 100
},
resetCallback: () => {
resetCallback: () => {
tableStore.table.params.searchValue = ''
},
}
})
tableStore.table.params.type = 1
@@ -70,5 +77,4 @@ const queryData = () => {
defineExpose({
queryData
})
</script>