摄像头增加sn

This commit is contained in:
曹磊 2025-08-13 14:35:02 +08:00
parent b8adb33956
commit 2675154ff1
3 changed files with 36 additions and 26 deletions

View File

@ -9,6 +9,11 @@ export const columns: BasicColumn[] = [
align: "center", align: "center",
dataIndex: 'deviceIndex' dataIndex: 'deviceIndex'
}, },
{
title: 'SN',
align: "center",
dataIndex: 'sn'
},
{ {
title: '设备名称', title: '设备名称',
align: "center", align: "center",
@ -112,6 +117,11 @@ export const formSchema: FormSchema[] = [
// } // }
dynamicDisabled: true dynamicDisabled: true
}, },
{
label: 'SN',
field: 'sn',
component: 'Input',
},
{ {
label: '设备名称', label: '设备名称',
field: 'deviceName', field: 'deviceName',

View File

@ -36,14 +36,14 @@ export const columns: BasicColumn[] = [
return record.status?(record.status=='0'?'在线':'离线'):''; return record.status?(record.status=='0'?'在线':'离线'):'';
}, },
}, },
{ // {
title: '启用状态', // title: '启用状态',
align: "center", // align: "center",
dataIndex: 'delFlag', // dataIndex: 'delFlag',
customRender:({record})=>{ // customRender:({record})=>{
return record.delFlag?(record.delFlag=='0'?'启用':'停用'):''; // return record.delFlag?(record.delFlag=='0'?'启用':'停用'):'';
}, // },
}, // },
{ {
title: '温度', title: '温度',
align: "center", align: "center",

View File

@ -115,24 +115,24 @@
onClick: handleEdit.bind(null, record), onClick: handleEdit.bind(null, record),
ifShow: ()=>{ return record.delFlag == 0 } ifShow: ()=>{ return record.delFlag == 0 }
}, },
{ // {
label: '启用', // label: '',
popConfirm: { // popConfirm: {
title: '是否确认启用', // title: '',
confirm: activateDevice.bind(null, record,'0'), // confirm: activateDevice.bind(null, record,'0'),
placement: 'topLeft', // placement: 'topLeft',
}, // },
ifShow: ()=>{ return record.delFlag == '1' } // ifShow: ()=>{ return record.delFlag == '1' }
}, // },
{ // {
label: '停用', // label: '',
popConfirm: { // popConfirm: {
title: '是否确认停用', // title: '',
confirm: activateDevice.bind(null, record,'1'), // confirm: activateDevice.bind(null, record,'1'),
placement: 'topLeft', // placement: 'topLeft',
}, // },
ifShow: ()=>{ return record.delFlag == '0' } // ifShow: ()=>{ return record.delFlag == '0' }
}, // },
{ {
label: '日志', label: '日志',
onClick: handleApiLogAlarm.bind(null, record), onClick: handleApiLogAlarm.bind(null, record),