reactor:【system 系统管理】user 进一步统一代码风格(dept tree)

pull/210/head
YunaiV 2025-09-08 12:51:07 +08:00
parent 28df31cc37
commit 96dadf9971
3 changed files with 25 additions and 29 deletions

View File

@ -53,19 +53,17 @@ onMounted(async () => {
<template>
<div>
<div class="mb-2">
<Input
placeholder="搜索部门"
allow-clear
v-model:value="searchValue"
@change="handleSearch"
class="w-full"
>
<template #prefix>
<Search class="size-4" />
</template>
</Input>
</div>
<Input
placeholder="搜索部门"
allow-clear
v-model:value="searchValue"
@change="handleSearch"
class="w-full"
>
<template #prefix>
<Search class="size-4" />
</template>
</Input>
<Tree
:spinning="loading"
class="pt-2"

View File

@ -10,7 +10,7 @@ import { DICT_TYPE } from '@vben/constants';
import { getDictLabel } from '@vben/hooks';
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 {
@ -211,9 +211,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
<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" />
</div>
</ElCard>
<!-- 右侧用户列表 -->
<div class="w-5/6">
<Grid table-title="">

View File

@ -52,19 +52,17 @@ onMounted(async () => {
<template>
<div>
<div class="mb-2">
<ElInput
placeholder="搜索部门"
clearable
v-model="searchValue"
@input="handleSearch"
class="w-full"
>
<template #prefix>
<Search class="size-4" />
</template>
</ElInput>
</div>
<ElInput
placeholder="搜索部门"
clearable
v-model="searchValue"
@input="handleSearch"
class="w-full"
>
<template #prefix>
<Search class="size-4" />
</template>
</ElInput>
<div v-loading="loading">
<ElTree
class="pt-2"