tangning 4 ماه پیش
والد
کامیت
e343e5d79a
1فایلهای تغییر یافته به همراه3 افزوده شده و 32 حذف شده
  1. 3 32
      src/views/productOperation/data.ts

+ 3 - 32
src/views/productOperation/data.ts

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