<script setup lang="ts">
import { ref } from 'vue'
const queryParams = ref({})

const tableData = [
    {
        date: '2016-05-02',
        name: '123xxx',
        address: '合肥市蜀山区',
    },
    {
        date: '2016-05-02',
        name: '123xxx',
        address: '合肥市蜀山区',
    },
    {
        date: '2016-05-04',
        name: '123xxx',
        address: '合肥市蜀山区',
    },
    {
        date: '2016-05-01',
        name: '123xxx',
        address: '合肥市蜀山区',
    },
]
</script>

<template>
    <!-- 机手管理 -->

    <el-form :model="queryParams" :inline="true" label-width="auto" size="small">

        <el-form-item>
            <el-button type="primary">新增</el-button>
        </el-form-item>
    </el-form>

    <!-- 表格 -->
    <el-table :data="tableData" style="width: 100%" :header-cell-style="{
        background: '#3E98FF', color: '#fff'
    }">
        <el-table-column align="center" prop="name" label="机手姓名" />
        <el-table-column align="center" prop="name" label="机手电话" />
        <el-table-column align="center" prop="date" label="年龄" />
        <el-table-column align="center" prop="name" label="性别" />
        <el-table-column align="center" prop="name" label="身份证号" />
        <el-table-column align="center" prop="name" label="操作" width="180">
            <template #default="scope">
                <el-button size="small" type="primary">编辑</el-button>
                <el-button size="small" type="danger">删除</el-button>
            </template>
        </el-table-column>
    </el-table>
</template>

<style>
.el-form {
    margin: 15px 0;
}
</style>