feat:组织管理页面

This commit is contained in:
dzc committed 2025-07-11 18:02:12 +08:00
1 parent f72e14ff0e
commit 91d5bddb42
8 files changed
+596 -130

No files matched your search

+9 -20
View File
@@ -2,7 +2,8 @@
<div class="head-container">
<div class="head-container-header">
<div class="head-container-header-input">
<el-input v-model="searchName" suffix-icon="search" :placeholder="placeholder" clearable @change="getdeptTree" />
<el-input v-model="searchName" suffix-icon="search" :placeholder="placeholder" clearable
@change="getdeptTree" />
</div>
<div class="head-container-header-dropdown" v-if="showExpand">
<el-dropdown :hide-on-click="false">
@@ -12,13 +13,8 @@
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item>
<el-button
:class="buttonClass"
link
type="primary"
:icon="isExpand ? 'expand' : 'fold'"
@click="toggleRowExpansionAll(isExpand ? false : true)"
>
<el-button :class="buttonClass" link type="primary" :icon="isExpand ? 'expand' : 'fold'"
@click="toggleRowExpansionAll(isExpand ? false : true)">
{{ isExpand ? '折叠' : '展开' }}
</el-button>
</el-dropdown-item>
@@ -27,18 +23,9 @@
</el-dropdown>
</div>
</div>
<el-tree
class="mt20"
:data="state.List"
:props="props.props"
:expand-on-click-node="false"
ref="deptTreeRef"
:loading="state.localLoading"
node-key="id"
highlight-current
default-expand-all
@node-click="handleNodeClick"
>
<el-tree class="mt20" :data="state.List" :props="props.props" :expand-on-click-node="false" ref="deptTreeRef"
:loading="state.localLoading" node-key="id" highlight-current default-expand-all
@node-click="handleNodeClick">
<template #default="{ node, data }" v-if="$slots.default">
<slot :node="node" :data="data"></slot>
</template>
@@ -176,9 +163,11 @@ defineExpose({
&-header {
display: flex;
align-items: center;
&-input {
width: 90%;
}
&-dropdown {
flex: 1;
margin-left: 5%;