You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.5 KiB
TypeScript
105 lines
2.5 KiB
TypeScript
import { BasicColumn, FormSchema } from '@/components/Table';
|
|
export const columns = [
|
|
{
|
|
title: '设备型号',
|
|
dataIndex: 'typeId',
|
|
},
|
|
{
|
|
title: '设备SN',
|
|
dataIndex: 'sn',
|
|
},
|
|
{
|
|
title: '设备名称',
|
|
dataIndex: 'name',
|
|
},
|
|
{
|
|
title: '固件版本',
|
|
dataIndex: 'firmwareVersion',
|
|
},
|
|
// {
|
|
// title: '固件升级',
|
|
// dataIndex: 'compatible_status',
|
|
// },
|
|
// {
|
|
// title: '飞行安全数据库',
|
|
// dataIndex: 'database',
|
|
// },
|
|
{
|
|
title: '工作状态',
|
|
dataIndex: 'flighttask_step_code',
|
|
},
|
|
{
|
|
title: '所属项目',
|
|
dataIndex: 'workSpaceId',
|
|
},
|
|
{
|
|
title: '加入组织时间',
|
|
dataIndex: 'createTime',
|
|
}
|
|
];
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
// {
|
|
// field: 'upgrade_status',
|
|
// label: '升级状态',
|
|
// component: 'Select',
|
|
// componentProps: {
|
|
// options: [
|
|
// { label: '固件待升级', value: '固件待升级' },
|
|
// { label: '固件一致性升级', value: '固件一致性升级' },
|
|
// { label: '飞行安全数据库待升级', value: '飞行安全数据库待升级' },
|
|
// ],
|
|
// },
|
|
// colProps: { span: 4 },
|
|
// },
|
|
// {
|
|
// field: 'work_status',
|
|
// label: '工作状态',
|
|
// component: 'Select',
|
|
// componentProps: {
|
|
// options: [
|
|
// { label: '全部工作状态', value: '全部工作状态' },
|
|
// { label: '设备空闲中', value: '设备空闲中' },
|
|
// { label: '现场调试中', value: '现场调试中' },
|
|
// { label: '远程调试中', value: '远程调试中' },
|
|
// { label: '设备作业中', value: '设备作业中' },
|
|
// { label: '设备升级中', value: '设备升级中' },
|
|
// { label: '设备已离线', value: '设备已离线' },
|
|
// { label: '未标定', value: '未标定' },
|
|
// ],
|
|
// },
|
|
// colProps: { span: 4 },
|
|
// },
|
|
{
|
|
field: 'workspaceid',
|
|
label: '项目',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [
|
|
],
|
|
},
|
|
colProps: { span: 4 },
|
|
},
|
|
{
|
|
field: 'model',
|
|
label: '设备型号',
|
|
component: 'Input',
|
|
colProps: { span: 4 },
|
|
},
|
|
{
|
|
field: 'sn',
|
|
label: '设备SN',
|
|
component: 'Input',
|
|
colProps: { span: 6 },
|
|
},
|
|
];
|
|
export const servicesReplyMessage = {
|
|
'canceled': '取消或终止',
|
|
'failed': '失败',
|
|
'in_progress': '执行中',
|
|
'ok': '执行成功',
|
|
'paused': '暂停',
|
|
'rejected': '拒绝',
|
|
'sent': '已下发',
|
|
'timeout': '超时',
|
|
} |