chore: prune org selectors from lightweight admin
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user