159 lines
2.9 KiB
TypeScript
159 lines
2.9 KiB
TypeScript
import {BasicColumn} from '/@/components/Table';
|
|
import {FormSchema} from '/@/components/Table';
|
|
|
|
//列表数据
|
|
export const columns: BasicColumn[] = [
|
|
{
|
|
title: '设备序号',
|
|
align: "center",
|
|
dataIndex: 'deviceIndex'
|
|
},
|
|
{
|
|
title: '设备名称',
|
|
align: "center",
|
|
dataIndex: 'deviceName'
|
|
},
|
|
{
|
|
title: 'IP地址',
|
|
align: "center",
|
|
dataIndex: 'ip'
|
|
},
|
|
{
|
|
title: '录像开关',
|
|
align: "center",
|
|
dataIndex: 'recordSwitchBoolean',
|
|
},
|
|
{
|
|
title: '录像存储位置',
|
|
align: "center",
|
|
dataIndex: 'storageDevName'
|
|
},
|
|
{
|
|
title: '录像码流',
|
|
align: "center",
|
|
dataIndex: 'streamType',
|
|
customRender:({record})=>{
|
|
if(record.streamType == 0){
|
|
return '主码流';
|
|
}else if(record.streamType == 1){
|
|
return '子码流';
|
|
}else{
|
|
return '';
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '录像计划',
|
|
align: "center",
|
|
dataIndex: 'planName'
|
|
},
|
|
];
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
{
|
|
label: '',
|
|
field: 'ids',
|
|
component: 'Input',
|
|
show: false,
|
|
},
|
|
{
|
|
label: '设备序号',
|
|
field: 'deviceIndex',
|
|
component: 'Input',
|
|
dynamicDisabled: true
|
|
},
|
|
{
|
|
label: '设备名称',
|
|
field: 'deviceName',
|
|
component: 'Input',
|
|
dynamicDisabled: true
|
|
},
|
|
{
|
|
label: '录像开关',
|
|
field: 'recordSwitch',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [
|
|
{label:'开启' , value: '1'},
|
|
{label:'关闭' , value: '0'},
|
|
]
|
|
},
|
|
defaultValue: '1'
|
|
},
|
|
{
|
|
label: '存储位置',
|
|
field: 'storageDevName',
|
|
component: 'Input',
|
|
slot: 'storageDevInput',
|
|
},
|
|
{
|
|
label: '录像码流',
|
|
field: 'streamType',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [
|
|
{label:'主码流' , value: 0},
|
|
{label:'子码流' , value: 1},
|
|
]
|
|
},
|
|
dynamicDisabled: true
|
|
},
|
|
{
|
|
label: '录像计划',
|
|
field: 'planName',
|
|
component: 'Input',
|
|
}
|
|
];
|
|
|
|
export const addFormSchema: FormSchema[] = [
|
|
{
|
|
label: '设备序号',
|
|
field: 'deviceIndex',
|
|
component: 'Input',
|
|
show: false
|
|
},
|
|
{
|
|
label: '录像开关',
|
|
field: 'recordSwitch',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [
|
|
{label:'开启' , value: '1'},
|
|
{label:'关闭' , value: '0'},
|
|
]
|
|
},
|
|
defaultValue: '1',
|
|
required: true,
|
|
},
|
|
{
|
|
label: '存储位置',
|
|
field: 'storageDevId',
|
|
component: 'Input',
|
|
slot: 'storageDevInput',
|
|
defaultValue: '0',
|
|
required: true,
|
|
},
|
|
{
|
|
label: '录像码流',
|
|
field: 'streamType',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [
|
|
{label:'主码流' , value: 0},
|
|
{label:'子码流' , value: 1},
|
|
]
|
|
},
|
|
defaultValue: 0,
|
|
required: true,
|
|
},
|
|
{
|
|
label: '录像计划',
|
|
field: 'recordPlanId',
|
|
component: 'Input',
|
|
slot: 'planInput',
|
|
defaultValue: '1',
|
|
required: true,
|
|
}
|
|
];
|
|
|