摄像头增加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",
dataIndex: 'deviceIndex'
},
{
title: 'SN',
align: "center",
dataIndex: 'sn'
},
{
title: '设备名称',
align: "center",
@ -112,6 +117,11 @@ export const formSchema: FormSchema[] = [
// }
dynamicDisabled: true
},
{
label: 'SN',
field: 'sn',
component: 'Input',
},
{
label: '设备名称',
field: 'deviceName',

View File

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

View File

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