<!-- d:\wordpack\WholeProcessPlatform\frontend\src\views\system\map\components\TiltPhotoManagement\index.vue -->
<template>
  <div class="content">
    <TiltPhotoManagementSearch
      ref="tiltPhotoManagementSearch"
      :handle-add="handleAdd"
      @reset="handleReset"
      @search-finish="onSearchFinish"
    />
    <BasicTable
      :columns="columns"
      :data="dataSource"
      :list-url="fetchTiltPhotoData"
      :search-params="searchParams"
    >
      <template #bodyCell="{ column, record }">
        <template v-if="column.key === 'action'">
          <div class="flex gap-[6px]">
            <a-button
              class="!p-0"
              type="link"
              size="small"
              @click="handleEdit(record)"
              >编辑</a-button
            >
            <a-button
              class="!p-0"
              type="link"
              size="small"
              danger
              @click="handleDelete(record)"
              >删除</a-button
            >
          </div>
        </template>
        <template v-if="column.key === 'status'">
          <a-tag :color="record.status === 'processed' ? 'green' : 'orange'">
            {{ record.status === 'processed' ? '已处理' : '待处理' }}
          </a-tag>
        </template>
      </template>
    </BasicTable>
    <TiltPhotoManagementForm
      ref="tiltPhotoManagementForm"
      v-model:visible="editModalVisible"
      :initial-values="currentRecord"
      @cancel="editModalCancel"
      @ok="handleEditSubmit"
    />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import BasicTable from '@/components/BasicTable/index.vue';
import TiltPhotoManagementSearch from './TiltPhotoManagementSearch.vue';
import TiltPhotoManagementForm from './TiltPhotoManagementForm.vue';
import { message } from 'ant-design-vue';

// 表格列配置
const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    key: 'index',
    width: 60,
    align: 'center',
    customRender: ({ text, record, index }) => index + 1
  },
  {
    title: '倾斜影像名称',
    dataIndex: 'stnm',
    key: 'stnm',
    width: 150
  },
  {
    title: 'URL',
    dataIndex: 'url',
    key: 'url',
    width: 360
  },
  {
    title: '所在河段',
    dataIndex: 'hbrvcdName',
    key: 'hbrvcdName',
    width: 120
  },
  {
    title: '所属电站',
    key: 'ennm',
    dataIndex: 'ennm',
    width: 140
  },
  {
    title: '创建人',
    key: 'recordUser',
    dataIndex: 'recordUser'
  },
  {
    title: '创建时间',
    key: 'recordTime',
    dataIndex: 'recordTime',
    width: 150
  },
  {
    title: '更新时间',
    key: 'modifyTime',
    dataIndex: 'modifyTime',
    width: 150
  },
  {
    title: '操作',
    key: 'action',
    width: 80,
    fixed: 'right'
  }
];

// 搜索参数
const searchParams = ref({});
// 编辑弹窗数据
const currentRecord = ref<any | null>(null);
const editModalVisible = ref(false);

// 数据源
const dataSource = ref([
  {
    _tls: {},
    id: 'OSGB_008640203500000001_GF',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-18 01:16:30',
    modifyTime: '2024-11-05 10:59:18',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203500000001_GF',
    stnm: '羊曲光伏区',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/yangQu_YQ-GF_merge/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640203500000001',
    ennm: '羊曲',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [-925601.0019712645, 5101341.168949657, 3707151.451255355],\n        orientation: {\n            heading: 3.935777607555498,\n            pitch: -0.30960256782642825,\n            roll: 6.280804479489018\n        },\n        center: [100.27966528149938, 35.74512881924376, 2527]\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[100.280085008313,35.7434126745264],[100.274143813334,35.7434126745264],[100.274854725553,35.7449360578545],[100.276936682769,35.746535610349],[100.283233333858,35.7494808181167],[100.285353375656,35.7472084379856],[100.281087902338,35.7437554357753],[100.280085008313,35.7434126745264]]]}}]}',
    height: 44,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640203900000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:56:52',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203900000001',
    stnm: '班多',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/banDuo/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640203900000001',
    ennm: '班多',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      ' {\r\n        destination: [-929696.6123032116, 5129200.419350642, 3668757.052689075],\r\n        orientation: {\r\n            heading: 3.0798081424820065,\r\n            pitch: -0.6148159031298439,\r\n            roll: 0.000238697395245957\r\n        },\r\n        center: [100.271729604817, 35.3107902811941, 2800]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[100.276306819621,35.3070198708922],[100.26643399204,35.3070198708922],[100.266505742241,35.3149697931008],[100.272461008877,35.3151850437021],[100.276966921465,35.3151850437021],[100.276966921465,35.3077660729768],[100.276306819621,35.3070198708922]]]}}]}',
    height: 44,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640203800000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:56:35',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203800000001',
    stnm: '拉西瓦',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/laXiWa/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640203800000001',
    ennm: '拉西瓦',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1002668.01364282, 5065411.889787282, 3736496.3127215244],\r\n        orientation: {\r\n            heading: 4.485903770759803,\r\n            pitch: -0.5306318071338225,\r\n            roll: 6.279578857452076\r\n        },\r\n        center: [101.184897041962, 36.070651370076, 2416.45174914598]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","name":"lxw_boundary","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[101.177314346395,36.0553063647701],[101.168809017664,36.0686783789251],[101.1787903122448,36.07534306172733],[101.18569389717655,36.07509083882469],[101.1913078908158,36.07363038685621],[101.193688241279,36.0708615649096],[101.177314346395,36.0553063647701]]]}}]}',
    height: 60,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640203700000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:56:19',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203700000001',
    stnm: '积石峡',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/jiShiXia/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640203700000001',
    ennm: '积石峡',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1139534.4509009295, 5052836.302100392, 3713220.2343443115],\r\n        orientation: {\r\n            heading: 5.981366614893845,\r\n            pitch: -0.5440370528907605,\r\n            roll: 6.282077087471317\r\n        },\r\n        center: [102.704592220253, 35.8259043091842, 1903.53630185407]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","name":"jsx_boundary","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[102.69530681909,35.8294628842497],[102.693855857125,35.8314865943588],[102.694466788479,35.8333193884199],[102.696452315378,35.8358394802539],[102.709014591339,35.8358394802539],[102.71389317825289,35.81905253997487],[102.71452157450645,35.8150089466911],[102.71217191894967,35.81405269152264],[102.70890004171,35.8142277836168],[102.69530681909,35.8294628842497]]]}}]}',
    height: 84,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640202600000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:56:01',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640202600000001',
    stnm: '苏只',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/suZhi/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640202600000001',
    ennm: '苏只',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: 'other',
    baseName: '其他',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1106591.5264852343, 5056266.424429915, 3718716.7615750157],\r\n        orientation: {\r\n            heading: 3.819123893872565,\r\n            pitch: -0.6049551059892484,\r\n            roll: 6.2807611001840336\r\n        },\r\n        center: [102.337330495664, 35.8720315291731, 1860.26357494015]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[102.336727944938,35.8659431118492],[102.330113343119,35.8703608062048],[102.340644171285,35.8785514503344],[102.346709546238,35.876354542871],[102.336727944938,35.8659431118492]]]}}]}',
    height: 38,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640202300000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:55:46',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640202300000001',
    stnm: '龙羊峡',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/longYangXia/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640202300000001',
    ennm: '龙羊峡',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      ' {\r\n        destination: [-978484.4656175541, 5067136.757304259, 3741215.7656669803],\r\n        orientation: {\r\n            heading: 4.77058620280604,\r\n            pitch: -0.773546963192036,\r\n            roll: 6.278725977146404\r\n        },\r\n        center: [100.918351276306, 36.1228958229073, 2558.99829344545]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"geometry":{"coordinates":[[[100.9139009281504,36.12777454726780],[100.9187677105970,36.11856061983825],[100.9220536986745,36.11315168748092],[100.9249463460061,36.11485880837403],[100.9278413602013,36.11721954956330],[100.9282265686215,36.11997360475776],[100.9277455925826,36.12411089425434],[100.9273678902740,36.12541103255819],[100.9271311603723,36.12686307096899],[100.9269482104378,36.12761047963833],[100.9266428533750,36.12830806106303],[100.9254395254174,36.12974059434591],[100.9237363800039,36.13137931925510],[100.9218180310860,36.13220316143079],[100.9192024368766,36.13220316143079],[100.9135570752082,36.13076718414857],[100.9124022180582,36.13034376456862],[100.9139009281504,36.12777454726780]]],"type":"Polygon"},"properties":{"UserID":0},"type":"Feature"}]}',
    height: 44,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640200600000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:55:30',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640200600000001',
    stnm: '李家峡',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/liJiaXia/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640200600000001',
    ennm: '李家峡',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1056838.2342324483, 5050939.864163284, 3740880.678268031],\r\n        orientation: {\r\n            heading: 4.259448409474915,\r\n            pitch: -0.6511273262566135,\r\n            roll: 6.279577142738661\r\n        },\r\n        center: [101.807873387655, 36.1182917300895, 2142.83166118246]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[101.805962184839,36.1167844227604],[101.804733343478,36.118918726177],[101.806134653802,36.1201260089176],[101.809454681338,36.1214842020009],[101.820729839792,36.1214842020009],[101.82124724668,36.1182935261862],[101.809174419274,36.1147579124457],[101.805962184839,36.1167844227604]]]}}]}',
    height: 40,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008610902100000002',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:55:12',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008610902100000002',
    stnm: '永庆',
    url: 'https://211.99.26.225:18085/qingXieSheYing/fengman/yq3dt/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY168',
    hbrvcdName: '丰满以下',
    rstcd: '008610902100000002',
    ennm: '永庆',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '12',
    baseName: '东北',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-2749991.4000875778, 3703611.667716356, 4391097.823840936],\r\n        orientation: {\r\n            heading: 1.9622093407367442,\r\n            pitch: -0.535668550857455,\r\n            roll: 0.003603576674832354\r\n        },\r\n        center: [126.60619194343177, 43.7782410182646, 5000.53630185407]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[126.603568306525,43.7719078767057],[126.596380902377,43.7738856187867],[126.603471831301,43.7834366659097],[126.615772422293,43.7796500133887],[126.611431037237,43.7708948868593],[126.603568306525,43.7719078767057]]]}}]}',
    height: -24,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008610902100000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:54:51',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008610902100000001',
    stnm: '丰满',
    url: 'https://211.99.26.225:18085/qingXieSheYing/fengman/fm3dt/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY168',
    hbrvcdName: '丰满以下',
    rstcd: '008610902100000001',
    ennm: '丰满',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '12',
    baseName: '东北',
    lgtd: null,
    lttd: null,
    location:
      ' {\r\n        destination: [-2757984.791200001, 3702731.89344555, 4387429.141142541],\r\n        orientation: {\r\n            heading: 2.726968159168443,\r\n            pitch: -0.659333747749792,\r\n            roll: 0.001705711752572725\r\n        },\r\n        center: [126.68777681485555, 43.72062815295212, 0]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[126.677201910442,43.7219629899428],[126.674824396421,43.7269429179591],[126.683017181222,43.7293204319798],[126.689699923334,43.7293204319798],[126.694037279993,43.7253364895667],[126.700013193613,43.7183967189117],[126.687290280746,43.7135453051668],[126.682631638408,43.7125171909957],[126.68125010999,43.7139629765488],[126.677201910442,43.7219629899428]]]}}]}',
    height: -10,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640204000000001',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:53:43',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640204000000001',
    stnm: '公伯峡',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/gongBoXia/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY1U',
    hbrvcdName: '黄河干流上游',
    rstcd: '008640204000000001',
    ennm: '公伯峡',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '08',
    baseName: '黄河上游干流',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1097283.8773704714, 5058275.150543221, 3719350.2177485977],\r\n        orientation: {\r\n            heading: 4.069005072911528,\r\n            pitch: -0.7601115186776273,\r\n            roll: 6.2796739221159825\r\n        },\r\n        center: [102.230856244147, 35.8777364102304, 1800]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","name":"gbx_boundary","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[102.23096545810546,35.87070203368848],[102.22344702081998,35.87705511319469],[102.225531265309,35.8796295746632],[102.228103470885,35.8811594485677],[102.231953373348,35.882991934893],[102.234374272713,35.8803524821126],[102.23707888742315,35.87656171574784],[102.23096545810546,35.87070203368848]]]}}]}',
    height: 50,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640203500001021',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:53:28',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203500001021',
    stnm: '羊曲移栽园',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/yangQu_YQ-YZY/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY119',
    hbrvcdName: '浑江口以上',
    rstcd: '008640203500001021',
    ennm: '羊曲移栽园',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: 'other',
    baseName: '其他',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-918241.2550154594, 5118065.7637626715, 3687260.3390196203],\r\n        orientation: {\r\n            heading: 5.259836877525001,\r\n            pitch: -0.5723985723270184,\r\n            roll: 6.279958994450198\r\n        },\r\n        center: [100.16275372918831, 35.52723692659094, 2803.53630185407]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","name":"yq_yzy_boundary","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[100.168575254524,35.5191839263442],[100.15747928780189,35.51922272824219],[100.15760326472177,35.5315736364896],[100.168522948508,35.5316589109779],[100.168575254524,35.5191839263442]]]}}]}',
    height: 44,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008640203700001017',
    recordUser: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    recordTime: '2023-05-14 00:02:12',
    modifyTime: '2024-11-05 10:53:11',
    displayRecordUser: null,
    recordUserName: 'A62AB110-D4EC-FF3E-F293-140AB60CAE61',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008640203700001017',
    stnm: '积石峡鱼类增殖站',
    url: 'https://211.99.26.225:18085/qingXieSheYing/huanghe/jiShiXia_JSX-ZZZ/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY119',
    hbrvcdName: '浑江口以上',
    rstcd: '008640203700001017',
    ennm: '积石峡鱼类增殖站',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: 'other',
    baseName: '其他',
    lgtd: null,
    lttd: null,
    location:
      '{\r\n        destination: [-1140971.640070955, 5051928.865525266, 3713299.455800881],\r\n        orientation: {\r\n            heading: 4.248666390778816,\r\n            pitch: -0.32885653878595567,\r\n            roll: 6.28017762476892\r\n        },\r\n        center: [102.722027790477, 35.820066370996095, 1903]\r\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[102.713719729036,35.8161431299919],[102.712877840146,35.8205587513157],[102.715214511352,35.8215552728596],[102.721451361704,35.8232905948584],[102.722585334496,35.8232905948584],[102.725609261939,35.822912603928],[102.726502695048,35.82193326379],[102.726932230196,35.819270145871],[102.727327402532,35.8167616606054],[102.724251930871,35.8157995018734],[102.721537268734,35.8154902365666],[102.717654270994,35.8157823204674],[102.713719729036,35.8161431299919]]]}}]}',
    height: 44,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660107300000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:52:50',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660107300000001',
    stnm: '瀑布沟',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/pbg_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660107300000001',
    ennm: '瀑布沟',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [102.87008, 29.19082, 4401.88],\n        orientation: {\n            heading: 5.380675551,\n            pitch: -0.87091929675,\n            roll: 0\n        },\n        center: [102.8376039, 29.2093539, 820]\n    }',
    accuracy: 16,
    boundary:
      '{ "type": "FeatureCollection", "name": "pbg", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 102.840797640489782, 29.213964126878459 ], [ 102.855678001879326, 29.2114613969921 ], [ 102.856222073593756, 29.21021003204892 ], [ 102.85643970227953, 29.208169763119823 ], [ 102.85630368435092, 29.204959740004711 ], [ 102.855841223393654, 29.204089225261626 ], [ 102.838022874746216, 29.204796518490379 ], [ 102.829181709386788, 29.206591955147985 ], [ 102.827930344443615, 29.209475535234443 ], [ 102.827277458386291, 29.212875983449607 ], [ 102.840797640489782, 29.213964126878459 ] ] ] ] } } ] }',
    height: 40,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660103600000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:52:17',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660103600000001',
    stnm: '沙坪二级',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/sperji_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660103600000001',
    ennm: '沙坪二级',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [103.2141, 29.23316, 904.46],\n        orientation: {\n            heading: 5.3297119368,\n            pitch: -0.5429719303,\n            roll: 0\n        },\n        center: [103.2087888, 29.2373865,550]\n    }',
    accuracy: 16,
    boundary:
      '{ "type": "FeatureCollection", "name": "spej", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.194898409051149, 29.235538315468801 ], [ 103.205283447950208, 29.241197228880864 ], [ 103.218342478901107, 29.242130016805927 ], [ 103.220021497166229, 29.240824113710836 ], [ 103.221016470952961, 29.238398865105669 ], [ 103.219710567857874, 29.236097988223843 ], [ 103.201738853834954, 29.227205410004892 ], [ 103.194898409051149, 29.235538315468801 ] ] ] ] } } ] }',
    height: 25,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660102000000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:50',
    modifyTime: '2024-11-05 10:52:01',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660102000000001',
    stnm: '枕头坝一级',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/ztbyiji_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660102000000001',
    ennm: '枕头坝一级',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [103.0548, 29.23505, 1204.95],\n        orientation: {\n            heading: 4.7448521045,\n            pitch: -0.6974335691,\n            roll: 0\n        },\n        center: [103.0451569, 29.2361348,800]\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[103.03508037100005,29.238394261000053],[103.03550867400008,29.237775601000067],[103.04157630000009,29.23394466900004],[103.05002338600008,29.231422440000074],[103.05477335100005,29.230721413000026],[103.05757159700005,29.23245366100008],[103.05479238700008,29.235480335000034],[103.04545733500004,29.238693915000056],[103.04071493500004,29.240112232000058],[103.03860197300008,29.240531017000023],[103.03593697700006,29.240726132000077],[103.03508037100005,29.238394261000053]]]},"properties":{"OBJECTID":1,"SHAPE_Leng":0.0510784849056,"SHAPE_Area":0.000108878511485}} ]}',
    height: 30,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660101400000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:51:51',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660101400000001',
    stnm: '龚嘴',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/gz_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660101400000001',
    ennm: '龚嘴',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [103.48497, 29.2966, 912.53],\n        orientation: {\n            heading: 5.5286794715,\n            pitch: -0.48712139423,\n            roll: 0\n        },\n        center: [103.4780156, 29.3029672, 490]\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[103.47109546400009,29.305520493000074],[103.47912852400003,29.294803400000035],[103.48588619300006,29.297658754000054],[103.48019452200003,29.309289559000035],[103.47109546400009,29.305520493000074]]]},"properties":{"OBJECTID":1,"SHAPE_Leng":0.0435272300608,"SHAPE_Area":0.000111320725035}} ]}',
    height: 36,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660101300000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:51:37',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660101300000001',
    stnm: '铜街子',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/tjz_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660101300000001',
    ennm: '铜街子',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [103.63945, 29.26618, 1147.14],\n        orientation: {\n            heading: 3.6472145379,\n            pitch: -0.57752944948,\n            roll: 0\n        },\n        center: [103.6327243, 29.2565762,500]\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[103.62492291400008,29.254544099000043],[103.63393954100007,29.249170900000024],[103.63571001800005,29.25017305600005],[103.64182317400008,29.263368120000052],[103.63166798600008,29.267510368000046],[103.62537263200005,29.255693378000046],[103.62492291400008,29.254544099000043]]]},"properties":{"OBJECTID":3,"SHAPE_Leng":0.0526639365108,"SHAPE_Area":0.000174571026443}} ]}',
    height: 33,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660103900000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:51:22',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660103900000001',
    stnm: '大岗山',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/dgs_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660103900000001',
    ennm: '大岗山',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [102.21188, 29.43792, 1998.92],\n        orientation: {\n            heading: 0.54628805587,\n            pitch: -0.62674773439,\n            roll: 0\n        },\n        center: [102.218611, 29.4495989, 1101]\n    }',
    accuracy: 16,
    boundary:
      '{ "type": "FeatureCollection", "name": "dgs", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 102.211945639635587, 29.463552037774974 ], [ 102.222998605826191, 29.463466355866519 ], [ 102.227368383157355, 29.458582487084623 ], [ 102.226168836439001, 29.437419055696413 ], [ 102.215201552156842, 29.437933147147138 ], [ 102.210831774825678, 29.442131560661398 ], [ 102.211945639635587, 29.463552037774974 ] ] ] ] } } ] }',
    height: 34,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660105700000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:51:11',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660105700000001',
    stnm: '双江口',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/sjk_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660105700000001',
    ennm: '双江口',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [101.92794, 31.79046, 2999.46],\n        orientation: {\n            heading: 5.1129420437,\n            pitch: -0.66270151698,\n            roll: 0\n        },\n        center: [101.9174412, 31.7944958, 2317]\n    }',
    accuracy: 16,
    boundary:
      '{\r\n"type": "FeatureCollection",\r\n"name": "sjk_boundary",\r\n"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },\r\n"features": [\r\n{ "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 101.918070761460442, 31.799020881908287 ], [ 101.915831763674746, 31.794542886336899 ], [ 101.920579518015487, 31.790091866642445 ], [ 101.934553022268375, 31.790091866642445 ], [ 101.934660925776129, 31.792654574951371 ], [ 101.918070761460442, 31.799020881908287 ] ] ] ] } }\r\n]\r\n}',
    height: 52,
    comments: null
  },
  {
    _tls: {},
    id: 'OSGB_008660107200000001',
    recordUser: '1',
    recordTime: '2023-06-26 14:51:49',
    modifyTime: '2024-11-05 10:50:58',
    displayRecordUser: null,
    recordUserName: '1',
    departmentId: null,
    displayDepartment: null,
    stcd: 'OSGB_008660107200000001',
    stnm: '深溪沟',
    url: 'https://211.99.26.225:18085/qingXieSheYing2/ddh_3dtiles/sxg_3dtiles/tileset.json',
    rvcd: null,
    rvcdName: null,
    hbrvcd: 'SJLY148',
    hbrvcdName: '大渡河',
    rstcd: '008660107200000001',
    ennm: '深溪沟',
    sttp: null,
    sttpCode: null,
    sttpName: null,
    sttpFullPath: null,
    sttpTreeLevel: null,
    baseId: '03',
    baseName: '大渡河干流',
    lgtd: null,
    lttd: null,
    location:
      '{\n        destination: [102.93682, 29.30348, 1593],\n        orientation: {\n            heading:  4.0931461618,\n            pitch: -1.040739833,\n            roll: 0\n        },\n        center: [102.9330302, 29.3016719, 1100]\n    }',
    accuracy: 16,
    boundary:
      '{"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[102.93710628900004,29.305941235000034],[102.93332294600003,29.304870477000065],[102.92946821900006,29.302693271000066],[102.92604179500006,29.299195463000046],[102.92289292500004,29.290856630000064],[102.92579295700006,29.290469959000063],[102.93764309500006,29.303935349000028],[102.93710628900004,29.305941235000034]]]},"properties":{"OBJECTID":2,"SHAPE_Leng":0.0451083802786,"SHAPE_Area":0.0000854803537049}} ]}',
    height: 51,
    comments: null
  }
]);

// 模拟数据获取函数
const fetchTiltPhotoData = (params: any) => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({
        data: {
          records: [
            {
              id: 1,
              projectName: '三峡库区倾斜摄影',
              captureDate: '2023-03-15',
              fileSize: '2.5GB',
              status: 'processed',
              coverageArea: '三峡大坝周边5公里范围'
            },
            {
              id: 2,
              projectName: '葛洲坝区域航拍',
              captureDate: '2023-04-20',
              fileSize: '1.8GB',
              status: 'processed',
              coverageArea: '葛洲坝枢纽工程区域'
            },
            {
              id: 3,
              projectName: '金沙江下游航测',
              captureDate: '2023-05-10',
              fileSize: '3.2GB',
              status: 'pending',
              coverageArea: '金沙江下游河段'
            }
          ],
          total: 3
        }
      });
    }, 500);
  });
};

const handleAdd = () => {
  currentRecord.value = null;
  editModalVisible.value = true;
};

// 预览处理
const handlePreview = (record: any) => {
  message.info(`预览倾斜摄影: ${record.projectName}`);
};

// 编辑处理
const handleEdit = (record: any) => {
  currentRecord.value = { ...record };
  editModalVisible.value = true;
};

// 删除处理
const handleDelete = (record: any) => {
  message.warning(`删除倾斜摄影: ${record.projectName}`);
};

// 搜索完成处理
const onSearchFinish = (values: any) => {
  console.log(values);
};

// 重置
const handleReset = (params: any) => {};

// 表单取消
const editModalCancel = () => {
  editModalVisible.value = false;
};

// 表单提交
const handleEditSubmit = (values: any) => {
  console.log(values);
};
</script>

<style scoped lang="scss">
.tilt-photo-management {
  height: 100%;
  padding: 16px;
}
</style>
