This commit is contained in:
sjl
2024-11-14 19:24:36 +08:00
parent 7efaa253a2
commit 534cc0ab76
8 changed files with 49 additions and 45 deletions

View File

@@ -84,7 +84,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
return (
<div class='flx-flex-start'>
<TimeControl
include={['日', '周', '月', '季度','年','自定义']}
default={'月'}
onUpdate-dates={handleDateChange}
/>
@@ -97,25 +97,19 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
prop: 'devChns',
label: '设备通道数',
minWidth: 110,
render: scope => {
return String(scope.row.devChns) // 将数字转换为字符串
},
},
{
prop: 'devVolt',
label: '额定电压V',
minWidth: 130,
render: scope => {
return String(scope.row.devVolt) // 将数字转换为字符串
},
},
{
prop: 'devCurr',
label: '额定电流A',
minWidth: 130,
render: scope => {
return String(scope.row.devCurr) // 将数字转换为字符串
},
},
{
prop: 'manufacturer',
@@ -155,7 +149,7 @@ const handleDelete = async (params: Device.ResPqDev) => {
}
// 导出设备
const downloadFile = async (params: Device.ReqPqDevParams) => {
const downloadFile = async () => {
// 获取当前的搜索参数
const searchParam = proTable.value?.searchParam || {};