chore: prune org selectors from lightweight admin

This commit is contained in:
2026-06-11 10:15:55 +08:00
parent 7c83edba1d
commit 50402b5f8c
5 changed files with 2 additions and 73 deletions
@@ -50,8 +50,6 @@ import {
ElTooltip,
} from 'element-plus';
import { DeptSelector } from '../zq-form/dept-selector';
import { PostSelector } from '../zq-form/post-selector';
import { UserSelector } from '../zq-form/user-selector';
import { useTableForm } from './init';
@@ -611,16 +609,7 @@ const dateShortcuts = [
// 判断是否为弹窗选择器过滤的组件类型
function isDialogFilterComponent(componentType: string): boolean {
return [
'department-selector',
'dept-select',
'dept-selector',
'position-selector',
'post-select',
'post-selector',
'user-select',
'user-selector',
].includes(componentType);
return ['user-select', 'user-selector'].includes(componentType);
}
// 判断是否为日期时间组件类型
@@ -1255,28 +1244,6 @@ function getSummaryMethod(param: { columns: any[]; data: any[] }) {
:placeholder="$t('common.select')"
@change="handleSelectorFilterChange"
/>
<DeptSelector
v-else-if="
activeFilterComponentType === 'dept-select' ||
activeFilterComponentType === 'dept-selector' ||
activeFilterComponentType === 'department-selector'
"
:model-value="tempFilterValues"
multiple
:placeholder="$t('common.select')"
@change="handleSelectorFilterChange"
/>
<PostSelector
v-else-if="
activeFilterComponentType === 'post-select' ||
activeFilterComponentType === 'post-selector' ||
activeFilterComponentType === 'position-selector'
"
:model-value="tempFilterValues"
multiple
:placeholder="$t('common.select')"
@change="handleSelectorFilterChange"
/>
</div>
<!-- 操作按钮 -->
<div class="mt-2 flex justify-end gap-2">