reactor:【system 系统管理】user 进一步统一代码风格(dept tree)
parent
28df31cc37
commit
96dadf9971
|
@ -53,19 +53,17 @@ onMounted(async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2">
|
<Input
|
||||||
<Input
|
placeholder="搜索部门"
|
||||||
placeholder="搜索部门"
|
allow-clear
|
||||||
allow-clear
|
v-model:value="searchValue"
|
||||||
v-model:value="searchValue"
|
@change="handleSearch"
|
||||||
@change="handleSearch"
|
class="w-full"
|
||||||
class="w-full"
|
>
|
||||||
>
|
<template #prefix>
|
||||||
<template #prefix>
|
<Search class="size-4" />
|
||||||
<Search class="size-4" />
|
</template>
|
||||||
</template>
|
</Input>
|
||||||
</Input>
|
|
||||||
</div>
|
|
||||||
<Tree
|
<Tree
|
||||||
:spinning="loading"
|
:spinning="loading"
|
||||||
class="pt-2"
|
class="pt-2"
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { DICT_TYPE } from '@vben/constants';
|
||||||
import { getDictLabel } from '@vben/hooks';
|
import { getDictLabel } from '@vben/hooks';
|
||||||
import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
|
import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
|
||||||
|
|
||||||
import { ElLoading, ElMessage } from 'element-plus';
|
import { ElCard, ElLoading, ElMessage } from 'element-plus';
|
||||||
|
|
||||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import {
|
import {
|
||||||
|
@ -211,9 +211,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
|
|
||||||
<div class="flex h-full w-full">
|
<div class="flex h-full w-full">
|
||||||
<!-- 左侧部门树 -->
|
<!-- 左侧部门树 -->
|
||||||
<div class="h-full w-1/6 pr-4">
|
<ElCard class="mr-4 h-full w-1/6">
|
||||||
<DeptTree @select="handleDeptSelect" />
|
<DeptTree @select="handleDeptSelect" />
|
||||||
</div>
|
</ElCard>
|
||||||
<!-- 右侧用户列表 -->
|
<!-- 右侧用户列表 -->
|
||||||
<div class="w-5/6">
|
<div class="w-5/6">
|
||||||
<Grid table-title="用户列表">
|
<Grid table-title="用户列表">
|
||||||
|
|
|
@ -52,19 +52,17 @@ onMounted(async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2">
|
<ElInput
|
||||||
<ElInput
|
placeholder="搜索部门"
|
||||||
placeholder="搜索部门"
|
clearable
|
||||||
clearable
|
v-model="searchValue"
|
||||||
v-model="searchValue"
|
@input="handleSearch"
|
||||||
@input="handleSearch"
|
class="w-full"
|
||||||
class="w-full"
|
>
|
||||||
>
|
<template #prefix>
|
||||||
<template #prefix>
|
<Search class="size-4" />
|
||||||
<Search class="size-4" />
|
</template>
|
||||||
</template>
|
</ElInput>
|
||||||
</ElInput>
|
|
||||||
</div>
|
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<ElTree
|
<ElTree
|
||||||
class="pt-2"
|
class="pt-2"
|
||||||
|
|
Loading…
Reference in New Issue