<template>
    <n-form inline ref="formRef" size="small" label-placement="left">
        <n-form-item>
            <n-date-picker type="daterange" clearable style="width: 240px" />
        </n-form-item>
        <n-form-item>
            <n-input placeholder="输入途经点" clearable style="width: 240px" />
        </n-form-item>
        <n-form-item>
            <n-input placeholder="类型" clearable style="width: 240px" />
        </n-form-item>

        <n-form-item>
            <n-button type="info"> 查询 </n-button>
            <n-button color="#6E90A9" style="margin-left: 10px"> 重置 </n-button>
        </n-form-item>
    </n-form>

    <!-- 内容区域 -->
    <n-data-table :columns="columns" :data="data" />
    <div style="margin-top: 10px; display: flex; justify-content: flex-end">
        <n-pagination
            v-model:page="page"
            v-model:page-size="pageSize"
            :page-count="100"
            show-size-picker
            :page-sizes="[10, 20, 30, 40]"
        />
    </div>
</template>

<script setup>
import { ref } from 'vue'

const page = ref(1)
const pageSize = ref(10)

const columns = ref([
    {
        title: '途经点',
        key: 'age',
        align: 'center',
    },
    {
        title: '比对时间',
        key: 'tags',
        align: 'center',
    },
    {
        title: '第一张巡检照片',
        key: 'age',
        align: 'center',
    },
    {
        title: '上一次巡检照片',
        key: 'age',
        align: 'center',
    },
    {
        title: '比对结果',
        key: 'age',
        align: 'center',
    },
    {
        title: '第一张巡检照片拍摄时间',
        key: 'age',
        align: 'center',
    },
    {
        title: '上一次巡检照片拍摄时间',
        key: 'age',
        align: 'center',
    },
    {
        title: '相似度',
        key: 'age',
        align: 'center',
    },
])
const data = ref([
    {
        age: '2025-06-01 10:00:00',
        tags: ['nice'],
    },
])
</script>
