husq
2023-09-13 5ac4e22d4c590216734fb4f9b93881a92a1f2f4e
src/components/MediaPanel.vue
@@ -1,5 +1,5 @@
<template>
  <div class="header">Media Files</div>
  <div class="header">媒体文件</div>
  <a-spin :spinning="loading" :delay="1000" tip="downloading" size="large">
    <div class="media-panel-wrapper">
      <a-table class="media-table" :columns="columns" :data-source="mediaData.data" row-key="fingerprint"
@@ -40,40 +40,40 @@
const columns = [
  {
    title: 'File Name',
    title: '文件名称',
    dataIndex: 'file_name',
    ellipsis: true,
    slots: { customRender: 'name' }
  },
  {
    title: 'File Path',
    dataIndex: 'file_path',
    ellipsis: true,
    slots: { customRender: 'path' }
  },
  // {
  //   title: 'FileSize',
  //   dataIndex: 'size',
  //   title: '文件路径',
  //   dataIndex: 'file_path',
  //   ellipsis: true,
  //   slots: { customRender: 'path' }
  // },
  {
    title: 'Drone',
    dataIndex: 'drone'
  },
  {
    title: 'Payload Type',
    title: '拍摄负载',
    dataIndex: 'payload'
  },
  {
    title: 'Original',
    dataIndex: 'is_original',
    slots: { customRender: 'original' }
    title: '大小',
    dataIndex: 'size',
  },
  // {
  //   title: '拍摄负载',
  //   dataIndex: 'drone'
  // },
  // {
  //   title: 'Original',
  //   dataIndex: 'is_original',
  //   slots: { customRender: 'original' }
  // },
  {
    title: 'Created',
    title: '创建时间',
    dataIndex: 'create_time'
  },
  {
    title: 'Action',
    title: '操作',
    slots: { customRender: 'action' }
  }
]