|
|
@@ -1,64 +1,14 @@
|
|
|
<template>
|
|
|
<ContentContainer>
|
|
|
<BreadCrumbMenu :current_label="'账号'" />
|
|
|
- <DataTable :data="tableData" :columns="tableColumns" row-key="id" :loading="isLoading" :pagination="paginationProps"
|
|
|
- @sorterChange="handleSorterChange" @select="handleSelect" @selectAll="handleSelectAll" @expand="handleExpand"
|
|
|
- @pageChange="handlePageChange" @sizeChange="handleSizeChange">
|
|
|
- </DataTable>
|
|
|
+
|
|
|
+ <AccountPage />
|
|
|
</ContentContainer>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref } from 'vue';
|
|
|
import ContentContainer from './layout/ContentContainer.vue';
|
|
|
import BreadCrumbMenu from './common/BreadCrumbMenu.vue';
|
|
|
-import DataTable from '@/components/DataTable/index.vue';
|
|
|
-
|
|
|
-// 示例数据
|
|
|
-const tableData = ref([
|
|
|
- { id: 1, name: '李雷', age: 25 },
|
|
|
- { id: 2, name: '韩梅梅', age: 30 },
|
|
|
-]);
|
|
|
-
|
|
|
-const tableColumns = ref([
|
|
|
- { title: '用户名', dataIndex: 'name', titleSlotName: 'nameSlot' },
|
|
|
- { title: '角色', dataIndex: 'age', titleSlotName: 'ageSlot' },
|
|
|
- { title: '所属部门', dataIndex: 'dept', titleSlotName: 'deptSlot' },
|
|
|
- { title: '状态', dataIndex: 'status', titleSlotName: 'statusSlot' },
|
|
|
- { title: '操作', dataIndex: 'operation', titleSlotName: 'operationSlot' },
|
|
|
-]);
|
|
|
-
|
|
|
-const isLoading = ref(false);
|
|
|
-const paginationProps = ref({
|
|
|
- current: 1,
|
|
|
- total: 100,
|
|
|
- pageSize: 10,
|
|
|
-});
|
|
|
-
|
|
|
-// 事件处理函数
|
|
|
-const handleSorterChange = (sorter) => {
|
|
|
- console.log('排序变化:', sorter);
|
|
|
-};
|
|
|
|
|
|
-const handleSelect = (selected, record) => {
|
|
|
- console.log('选择:', selected, record);
|
|
|
-};
|
|
|
-
|
|
|
-const handleSelectAll = (selected, records) => {
|
|
|
- console.log('选择所有:', selected, records);
|
|
|
-};
|
|
|
-
|
|
|
-const handleExpand = (expanded, record) => {
|
|
|
- console.log('展开:', expanded, record);
|
|
|
-};
|
|
|
-
|
|
|
-const handlePageChange = (page) => {
|
|
|
- console.log('当前页面:', page);
|
|
|
-};
|
|
|
-
|
|
|
-const handleSizeChange = (current, size) => {
|
|
|
- console.log('当前页面和页面大小:', current, size);
|
|
|
-};
|
|
|
+import AccountPage from '@/modules/permission/AccountPage.vue';
|
|
|
</script>
|
|
|
-
|
|
|
-<style lang="css" scoped></style>
|