|
@@ -0,0 +1,109 @@
|
|
|
+<template>
|
|
|
+ <div class="flex h-screen">
|
|
|
+ <aside class="bg-gray-800 text-white w-64">
|
|
|
+ <div class="p-4">
|
|
|
+ <h2 class="text-xl font-bold mb-6">Product Name</h2>
|
|
|
+ <ul>
|
|
|
+ <li class="mb-2">
|
|
|
+ <a href="#/module1" class="block px-4 py-2 rounded hover:bg-gray-700">系统模块1</a>
|
|
|
+ </li>
|
|
|
+ <li class="mb-2">
|
|
|
+ <a href="#/module2" class="block px-4 py-2 rounded hover:bg-gray-700">系统模块2</a>
|
|
|
+ </li>
|
|
|
+ <!-- Add more modules as needed -->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </aside>
|
|
|
+ <main class="p-4 flex-1">
|
|
|
+ <div class="mb-6">
|
|
|
+ <div class="flex items-center justify-between">
|
|
|
+ <h2 class="text-2xl font-bold">用户列表信息</h2>
|
|
|
+ <div class="relative">
|
|
|
+ <input type="text" placeholder="搜索..." class="p-2 border rounded w-full">
|
|
|
+ <svg xmlns="http://www.w3.org/2000/svg" class="absolute right-2 top-2 w-5 h-5 text-gray-400" viewBox="0 0 24 24" stroke="currentColor" fill="none">
|
|
|
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
|
|
|
+ </svg>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <form class="mb-6">
|
|
|
+ <div class="grid grid-cols-2 gap-4">
|
|
|
+ <div>
|
|
|
+ <label for="name" class="block text-sm font-medium text-gray-700">雇员姓名</label>
|
|
|
+ <input type="text" id="name" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="documentType" class="block text-sm font-medium text-gray-700">证件类型</label>
|
|
|
+ <select id="documentType" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ <option value="idCard">身份证</option>
|
|
|
+ <option value="passport">护照</option>
|
|
|
+ <!-- Add more document types as needed -->
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="documentNumber" class="block text-sm font-medium text-gray-700">证件号</label>
|
|
|
+ <input type="text" id="documentNumber" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="phoneNumber" class="block text-sm font-medium text-gray-700">手机号</label>
|
|
|
+ <input type="text" id="phoneNumber" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="birthDate" class="block text-sm font-medium text-gray-700">出生日期</label>
|
|
|
+ <input type="date" id="birthDate" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="creationDate" class="block text-sm font-medium text-gray-700">创建日期</label>
|
|
|
+ <input type="date" id="creationDate" class="mt-1 p-2 w-full border rounded focus:ring focus:ring-blue-300 focus:outline-none">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <button type="submit" class="mt-4 w-full bg-blue-500 text-white p-2 rounded hover:bg-blue-600">查询</button>
|
|
|
+ </form>
|
|
|
+ <table class="w-full border-collapse">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="p-2 border"><input type="checkbox"></th>
|
|
|
+ <th class="p-2 border">雇员姓名</th>
|
|
|
+ <th class="p-2 border">证件类型</th>
|
|
|
+ <th class="p-2 border">证件号</th>
|
|
|
+ <th class="p-2 border">手机号</th>
|
|
|
+ <th class="p-2 border">出生日期</th>
|
|
|
+ <th class="p-2 border">创建日期</th>
|
|
|
+ <th class="p-2 border">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="p-2 border"><input type="checkbox"></td>
|
|
|
+ <td class="p-2 border">张三</td>
|
|
|
+ <td class="p-2 border">身份证</td>
|
|
|
+ <td class="p-2 border">123456789012345678</td>
|
|
|
+ <td class="p-2 border">13800138000</td>
|
|
|
+ <td class="p-2 border">1990-01-01</td>
|
|
|
+ <td class="p-2 border">2020-01-01</td>
|
|
|
+ <td class="p-2 border">
|
|
|
+ <button class="bg-green-500 text-white p-1 rounded">编辑</button>
|
|
|
+ <button class="bg-red-500 text-white p-1 rounded ml-2">删除</button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Add more rows as needed -->
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="mt-6 flex justify-center">
|
|
|
+ <button class="bg-blue-500 text-white p-2 rounded">上一页</button>
|
|
|
+ <span class="mx-4">第 1 页,共 10 页</span>
|
|
|
+ <button class="bg-blue-500 text-white p-2 rounded">下一页</button>
|
|
|
+ </div>
|
|
|
+ </main>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'UserListView'
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+/* Additional styles can be added here */
|
|
|
+</style>
|