TimeControl微调

This commit is contained in:
sjl
2024-11-07 11:29:28 +08:00
parent 9de2c874f0
commit 4fc0781e05
5 changed files with 36 additions and 23 deletions

View File

@@ -9,8 +9,8 @@
<!-- 表格 header 按钮 -->
<template #tableHeader='scope'>
<el-button type='primary' :icon='CirclePlus' @click="openDialog('add')">新增</el-button>
<el-button type='primary' :icon='Download' plain @click='downloadFile()'>批量导出</el-button>
<el-button type='primary' :icon='Upload' plain @click='importFile()'>批量导入</el-button>
<el-button type='primary' :icon='Upload' plain @click='downloadFile()'>批量导出</el-button>
<el-button type='primary' :icon='Download' plain @click='importFile()'>批量导入</el-button>
<el-button type='danger' :icon='Delete' plain :disabled='!scope.isSelected'
@click='batchDelete(scope.selectedListIds)'>
批量删除
@@ -70,7 +70,6 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
prop: 'devType',
label: '类型',
enum: dictStore.getDictData('High_Cate'),
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'name', value: 'code' },
minWidth: 200,
},
@@ -92,6 +91,9 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
{
prop: 'manufacturer',
label: '制作厂商',
enum: dictStore.getDictData('High_Cate'),
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'name', value: 'code' },
minWidth: 200,
},
{
@@ -105,7 +107,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
<div class='flx-flex-start'>
<TimeControl
include={['日', '周', '月', '自定义']}
default={'自定义'}
default={''}
onUpdate-dates={handleDateChange}
/>
</div>