|
@@ -335,12 +335,8 @@ export const getviewColumns = () => {
|
|
];
|
|
];
|
|
};
|
|
};
|
|
export const getColumns = (val) => {
|
|
export const getColumns = (val) => {
|
|
- const isobj = val == 6 || val == 8 || val == 57;
|
|
|
|
- // 判断val的值,用于确定某些列是否显示
|
|
|
|
- const isobj = val == 6 || val == 8 || val == 57;
|
|
|
|
-
|
|
|
|
|
|
+ const isobj = val == 6 || val == 57;
|
|
return [
|
|
return [
|
|
- // 场景标题列
|
|
|
|
{
|
|
{
|
|
title: '场景标题',
|
|
title: '场景标题',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
@@ -348,21 +344,18 @@ export const getColumns = (val) => {
|
|
slots: { customRender: 'href' },
|
|
slots: { customRender: 'href' },
|
|
width: 150,
|
|
width: 150,
|
|
},
|
|
},
|
|
- // 场景码列
|
|
|
|
{
|
|
{
|
|
title: '场景码',
|
|
title: '场景码',
|
|
dataIndex: 'num',
|
|
dataIndex: 'num',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
width: 180,
|
|
width: 180,
|
|
},
|
|
},
|
|
- // 拍摄时间列
|
|
|
|
{
|
|
{
|
|
title: '拍摄时间',
|
|
title: '拍摄时间',
|
|
dataIndex: 'createTime',
|
|
dataIndex: 'createTime',
|
|
sorter: true,
|
|
sorter: true,
|
|
width: 180,
|
|
width: 180,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染拍摄时间
|
|
|
|
return (
|
|
return (
|
|
record.createTime &&
|
|
record.createTime &&
|
|
h(Time, {
|
|
h(Time, {
|
|
@@ -372,13 +365,11 @@ export const getColumns = (val) => {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 计算完成时间列
|
|
|
|
{
|
|
{
|
|
title: '计算完成时间',
|
|
title: '计算完成时间',
|
|
dataIndex: 'amount',
|
|
dataIndex: 'amount',
|
|
width: 180,
|
|
width: 180,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染计算完成时间
|
|
|
|
return (
|
|
return (
|
|
(record.algorithmTime &&
|
|
(record.algorithmTime &&
|
|
h(Time, {
|
|
h(Time, {
|
|
@@ -389,35 +380,29 @@ export const getColumns = (val) => {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 计算时长列
|
|
|
|
{
|
|
{
|
|
title: '计算时长(分钟)',
|
|
title: '计算时长(分钟)',
|
|
dataIndex: 'computeTime',
|
|
dataIndex: 'computeTime',
|
|
width: 120,
|
|
width: 120,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染计算时长
|
|
|
|
return (record.computeTime && Math.round(record.computeTime / 60)) || '-';
|
|
return (record.computeTime && Math.round(record.computeTime / 60)) || '-';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 场景类型列
|
|
|
|
{
|
|
{
|
|
title: '场景类型',
|
|
title: '场景类型',
|
|
dataIndex: 'location',
|
|
dataIndex: 'location',
|
|
- ifShow: isobj,
|
|
|
|
|
|
+ ifShow: isobj || val == 8,
|
|
width: 120,
|
|
width: 120,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染场景类型
|
|
|
|
return record.location == 5 || record.location == 6 ? 'Slam' : '架站式';
|
|
return record.location == 5 || record.location == 6 ? 'Slam' : '架站式';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // SN码列
|
|
|
|
{
|
|
{
|
|
title: 'SN码',
|
|
title: 'SN码',
|
|
dataIndex: 'snCode',
|
|
dataIndex: 'snCode',
|
|
ifShow: val != 57 && val != 58,
|
|
ifShow: val != 57 && val != 58,
|
|
width: 180,
|
|
width: 180,
|
|
},
|
|
},
|
|
- // obj生成状态列
|
|
|
|
{
|
|
{
|
|
title: 'obj生成状态',
|
|
title: 'obj生成状态',
|
|
dataIndex: 'isObj',
|
|
dataIndex: 'isObj',
|
|
@@ -425,66 +410,56 @@ export const getColumns = (val) => {
|
|
ifShow: isobj || val == 2,
|
|
ifShow: isobj || val == 2,
|
|
width: 180,
|
|
width: 180,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染obj生成状态
|
|
|
|
return record.isObj == 0 ? '未生成' : record.isObj == 1 ? '已生成' : '计算中';
|
|
return record.isObj == 0 ? '未生成' : record.isObj == 1 ? '已生成' : '计算中';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 点位数量列
|
|
|
|
{
|
|
{
|
|
title: '点位数量',
|
|
title: '点位数量',
|
|
|
|
+ ifShow: val != 8,
|
|
dataIndex: 'shootCount',
|
|
dataIndex: 'shootCount',
|
|
width: 80,
|
|
width: 80,
|
|
},
|
|
},
|
|
- // 场景大小列
|
|
|
|
{
|
|
{
|
|
title: '场景大小',
|
|
title: '场景大小',
|
|
dataIndex: 'sceneSize',
|
|
dataIndex: 'sceneSize',
|
|
width: 80,
|
|
width: 80,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染场景大小
|
|
|
|
return record.sceneSize && record.sceneSize != 0
|
|
return record.sceneSize && record.sceneSize != 0
|
|
? h('span', { class: 'sceneSize' }, Math.ceil(record.sceneSize / 1024 / 1024) + 'M')
|
|
? h('span', { class: 'sceneSize' }, Math.ceil(record.sceneSize / 1024 / 1024) + 'M')
|
|
: '-';
|
|
: '-';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // slam帧数列
|
|
|
|
{
|
|
{
|
|
title: 'slam帧数',
|
|
title: 'slam帧数',
|
|
ifShow: isobj || val == 6,
|
|
ifShow: isobj || val == 6,
|
|
dataIndex: 'slamCount',
|
|
dataIndex: 'slamCount',
|
|
width: 80,
|
|
width: 80,
|
|
},
|
|
},
|
|
- // 拍摄位置列
|
|
|
|
{
|
|
{
|
|
title: '拍摄位置',
|
|
title: '拍摄位置',
|
|
dataIndex: 'addressComponent',
|
|
dataIndex: 'addressComponent',
|
|
width: 100,
|
|
width: 100,
|
|
ifShow: val != 57 && val != 58,
|
|
ifShow: val != 57 && val != 58,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染拍摄位置
|
|
|
|
if (!record.addressComponent) {
|
|
if (!record.addressComponent) {
|
|
return '-';
|
|
return '-';
|
|
}
|
|
}
|
|
return (record && record.addressComponent && record.addressComponent.city) || '-'; // + district + township;
|
|
return (record && record.addressComponent && record.addressComponent.city) || '-'; // + district + township;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 是否复制列
|
|
|
|
{
|
|
{
|
|
title: '是否复制',
|
|
title: '是否复制',
|
|
dataIndex: 'isCopy',
|
|
dataIndex: 'isCopy',
|
|
width: 80,
|
|
width: 80,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染是否复制
|
|
|
|
return record.isCopy ? '是' : '否';
|
|
return record.isCopy ? '是' : '否';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 复制时间列
|
|
|
|
{
|
|
{
|
|
title: '复制时间',
|
|
title: '复制时间',
|
|
dataIndex: 'copyTime',
|
|
dataIndex: 'copyTime',
|
|
width: 180,
|
|
width: 180,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- // 自定义渲染复制时间
|
|
|
|
return record.copyTime
|
|
return record.copyTime
|
|
? h(Time, {
|
|
? h(Time, {
|
|
value: record.copyTime,
|
|
value: record.copyTime,
|
|
@@ -493,27 +468,23 @@ export const getColumns = (val) => {
|
|
: '-';
|
|
: '-';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 绑定账号列
|
|
|
|
{
|
|
{
|
|
title: '绑定账号',
|
|
title: '绑定账号',
|
|
dataIndex: 'userName',
|
|
dataIndex: 'userName',
|
|
width: 100,
|
|
width: 100,
|
|
},
|
|
},
|
|
- // 浏览量列
|
|
|
|
{
|
|
{
|
|
title: '浏览量',
|
|
title: '浏览量',
|
|
dataIndex: 'viewCount',
|
|
dataIndex: 'viewCount',
|
|
sorter: true,
|
|
sorter: true,
|
|
width: 80,
|
|
width: 80,
|
|
},
|
|
},
|
|
- // 状态列
|
|
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'statusString',
|
|
dataIndex: 'statusString',
|
|
width: 120,
|
|
width: 120,
|
|
slots: { customRender: 'status' },
|
|
slots: { customRender: 'status' },
|
|
},
|
|
},
|
|
- // 操作列
|
|
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'action',
|
|
dataIndex: 'action',
|