feat:设备管理

This commit is contained in:
houjunxiang
2026-03-09 17:53:33 +08:00
parent 9c88c45d66
commit 6004f6c032
19 changed files with 1196 additions and 1057 deletions

View File

@@ -1,4 +1,5 @@
import { ref, reactive } from 'vue'
import nx from '@/nx'
export const detailSchema = [
{ label: '设备名称', value: 'deviceName' },
{ label: '别名', value: 'alias' },
@@ -11,12 +12,13 @@ export const column = reactive([
{
label: '点检人',
name: 'checkUserName',
width: 160
width: 200
},
{
label: '点检日期',
name: 'checkDate',
width: 180
width: 200,
formatter: true
},
{
label: '备注',
@@ -30,3 +32,11 @@ export const column = reactive([
renders: [{ name: '详情', func: 'detail' }]
}
])
export function columnFormatter(row, column, rowIndex, columnIndex) {
// 判断是哪一列需要格式化
if (column.name === 'checkDate') {
return nx.$helper.formateToDateTime(row.checkDate)
}
// 对于不需要特殊格式化的列,返回原始值
return row[column.name]
}