update timeFilter

This commit is contained in:
2022-09-01 09:16:51 +08:00
parent 3668f92731
commit 2df5897f3d
36 changed files with 91 additions and 90 deletions

View File

@@ -30,6 +30,7 @@
<script>
import { calcMaxHeight } from '@/utils'
import { timeFilter } from '@/utils/filters'
// import AddOrUpdate from './equipmentPlcConnect-add-or-update'
import AddOrUpdate from '@/components/base-dialog/addOrUpdate'
import BaseTable from '@/components/base-table'
@@ -116,7 +117,7 @@ export default {
const categories = res.data.list.map(item => ({ label: item.name, value: item.id }))
this.tableConfigs = [
{ type: 'index', name: '序号' },
{ prop: 'createTime', name: '创建时间', width: 200 },
{ prop: 'createTime', name: '创建时间', filter: timeFilter, width: 200 },
{ prop: 'fileName', name: '报表名称' },
{ prop: 'category', name: '报表分类', subcomponent: CategoryList, options: categories },
{