摄像头增加sn
This commit is contained in:
parent
b8adb33956
commit
2675154ff1
|
@ -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',
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue