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> <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"

View File

@ -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="">

View File

@ -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"