全局添加列配置功能

This commit is contained in:
guanj
2026-07-09 15:42:58 +08:00
parent 2106e2e9c1
commit e6313ca8c3
78 changed files with 7849 additions and 7549 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div>
<TableHeader datePicker showExport>
<TableHeader datePicker showExport showCustomColumn>
<template v-slot:select>
<el-form-item label="关键字筛选">
<el-input maxlength="32" show-word-limit v-model.trim="tableStore.table.params.searchValue"
@@ -76,10 +76,10 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ title: '调试时间', field: 'startTime', align: 'center', sortable: true, width: 180 },
{ title: '设备名称', field: 'deviceName', align: 'center', width: 180 },
{ title: '调试时间', field: 'startTime', align: 'center', sortable: true, minWidth: 180 },
{ title: '设备名称', field: 'deviceName', align: 'center', minWidth: 180 },
{
title: '监测点名称', field: 'lineName', align: 'center', width: 180, formatter: (row: any) => {
title: '监测点名称', field: 'lineName', align: 'center', minWidth: 180, formatter: (row: any) => {
return row.cellValue ? row.cellValue : '/'
}
},

View File

@@ -1,6 +1,6 @@
<template>
<!-- 异常事件 -->
<TableHeader datePicker ref="refheader" showExport>
<TableHeader datePicker ref="refheader" showExport >
<!-- <template v-slot:select>
<el-form-item label="数据来源">
<el-cascader